Go Back   Pligg CMS Forum > Pligg Development > Modification Tutorials

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 09-10-2008, 12:22 PM
Casual Pligger
 
Join Date: May 2008
Posts: 50
Thanks: 16
Thanked 5 Times in 5 Posts
Flickr Image Set Gallery

Flickr image set gallery on your story page. This is slightly different then ChuckRoasts mod Flickr Module. In this we will create an extra field on the submit form and allow a user to enter his/her set ID to produce a gallery on their story page.


Step 1-Create an extra field, I will be using field 3, but you can use whatever you like. Open /libs/extra_fields.php and change;

Code:
define('Enable_Extra_Field_3', false);

	define('Field_3_Title', 'misc field3');

	define('Field_3_Instructions', 'this is where you put the instructions for this new field.');

	define('Field_3_Searchable', false); 

	//the variables below are not yet used in version 6.02.

	define('Field_3_Required', false); 

	define('Field_3_Validation_Method', '');

	define('Field_3_Validation_Error_Message', '');
To-
Code:
define('Enable_Extra_Field_3', true);

	define('Field_3_Title', 'Flickr Photo Gallery');

	define('Field_3_Instructions', 'Enter the Flickr set id#');

	define('Field_3_Searchable', false); 

	//the variables below are not yet used in version 6.02.

	define('Field_3_Required', false); 

	define('Field_3_Validation_Method', '');

	define('Field_3_Validation_Error_Message', '');

Simple enough. The title and instructions can be changed to whatever you like.


Step 2-open link_summary.tpl and change
Code:
{if $Enable_Extra_Field_3 eq 1}{if $link_field3 neq ""}<br/><b>{$Field_3_Title}:</b> {$link_field3}{/if}{/if}

To-
Code:
{if $Enable_Extra_Field_3 eq 1}{if $link_field3 neq ""}<br/><b>{$title_short} Images</b> <iframe align="center" src="http://www.flickr.com/slideShow/index.gne?set_id={$link_field3}" frameBorder="0" width="400" scrolling="no" height="350"></iframe>{/if}{/if}
That is it. Simple.
__________________
OSS Supporter.
Reply With Quote
  #2 (permalink)  
Old 09-10-2008, 12:45 PM
Casual Pligger
 
Join Date: May 2008
Posts: 50
Thanks: 16
Thanked 5 Times in 5 Posts
You can see this in action at this site Test Site on this page Test Page
__________________
OSS Supporter.
Reply With Quote
Reply

Thread Tools
Display Modes
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Similar Threads
Thread Thread Starter Forum Replies Last Post
[Mod]Fancy photo gallery v1 for 9.7-9.9 scrill Module Sales 32 09-10-2008 02:19 AM
Submit step 2 image link werushka General Help 1 03-08-2008 07:47 PM
Miising loading image in image upload/thickbox module Peter General Help 5 12-06-2007 02:24 AM
how to resize uploaded image like in indianpad jitu "Mollio-Beat" 1 10-19-2007 10:31 AM
Image Upload / Image display with stories mod - Will pay for dev and share adampoots Modification Tutorials 11 04-10-2007 07:22 PM


Search Engine Friendly URLs by vBSEO 3.2.0