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.