Flickr Image Set Gallery

Register an Account
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 09-10-2008, 01:22 PM
Casual Pligger
 
Join Date: May 2008
Posts: 44
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.
Reply With Quote
  #2 (permalink)  
Old 09-10-2008, 01:45 PM
Casual Pligger
 
Join Date: May 2008
Posts: 44
You can see this in action at this site Test Site on this page Test Page
Reply With Quote
  #3 (permalink)  
Old 12-31-2009, 12:58 PM
New Pligger
Pligg Version: 1.0
 
Join Date: Dec 2009
Posts: 8
This is a great feature. Is there a way to keep the slide-show from auto-playing until the user presses play? that would be the only request I'd have for it, otherwise it's perfect.
Reply With Quote
  #4 (permalink)  
Old 12-31-2009, 06:43 PM
chuckroast's Avatar
Pligg Developer/Coder/Designer
Pligg Version: SVN
Pligg Template: Social Pro Kit
 
Join Date: Jun 2006
Posts: 5,448
Quote:
Originally Posted by demassifier View Post
This is a great feature. Is there a way to keep the slide-show from auto-playing until the user presses play? that would be the only request I'd have for it, otherwise it's perfect.
Unfortunately no. That's part of the flickr api.
I'm sure it "is" possible.. Just not with this hack.

Thanks to method20 for sharing his experiences with this..
Reply With Quote
  #5 (permalink)  
Old 03-12-2010, 03:24 PM
Casual Pligger
 
Join Date: Jan 2010
Posts: 49
This module is great, Próximos | MeGusta

see it here working,

How can i get this to only show on the story page and not both pages
Reply With Quote
  #6 (permalink)  
Old 03-12-2010, 08:46 PM
Casual Pligger
 
Join Date: Jan 2010
Posts: 49
Sorry to ask again but if ou click on my link above you will see that the flicker gallery shows in the list but not on the story page, i have tried for 6 hours moving things around and cannot get it to work, what i want is the Gallery to show on the Story page and not the List page

Here is the code fromthe bottom of my link summary tpl file i highlighted the area that in controlling the flickr field location,,,,,,,PLEASE HELP
Code:
<div class="storycontent">
		{checkActionsTpl location="tpl_link_summary_pre_story_content"}
		{if $pagename eq "story"}{checkActionsTpl location="tpl_pligg_story_body_start_full"}{else}{checkActionsTpl location="tpl_pligg_story_body_start"}{/if}

		{if $viewtype neq "short"}
			<span class="news-body-text">
				<span id="ls_contents-{$link_shakebox_index}">
					{if $show_content neq 'FALSE'}
						{$story_content}
					{/if}
					{if $Enable_Extra_Field_1 eq 1}{if $link_field1 neq ""}<br/><b>{$title_short} Images</b><div align="center"><iframe align="center" src="http://www.flickr.com/slideShow/index.gne?set_id={$link_field1}" frameBorder="0" width="500" scrolling="no" height="400"></iframe></div>{/if}{/if}
					{if $Enable_Extra_Field_2 eq 1}{if $link_field2 neq ""}<br/><b>{$Field_2_Title}:</b> {$link_field2}{/if}{/if}
					{if $Enable_Extra_Field_3 eq 1}{if $link_field3 neq ""}<br/><b>{$Field_3_Title}:</b> {$link_field3}{/if}{/if}
					{if $Enable_Extra_Field_4 eq 1}{if $link_field4 neq ""}<br/><b>{$Field_4_Title}:</b> {$link_field4}{/if}{/if}
					{if $Enable_Extra_Field_5 eq 1}{if $link_field5 neq ""}<br/><b>{$Field_5_Title}:</b> {$link_field5}{/if}{/if}
					{if $Enable_Extra_Field_6 eq 1}{if $link_field6 neq ""}<br/><b>{$Field_6_Title}:</b> {$link_field6}{/if}{/if}
					{if $Enable_Extra_Field_7 eq 1}{if $link_field7 neq ""}<br/><b>{$Field_7_Title}:</b> {$link_field7}{/if}{/if}
					{if $Enable_Extra_Field_8 eq 1}{if $link_field8 neq ""}<br/><b>{$Field_8_Title}:</b> {$link_field8}{/if}{/if}
					{if $Enable_Extra_Field_9 eq 1}{if $link_field9 neq ""}<br/><b>{$Field_9_Title}:</b> {$link_field9}{/if}{/if}
					{if $Enable_Extra_Field_10 eq 1}{if $link_field10 neq ""}<br/><b>{$Field_10_Title}:</b> {$link_field10}{/if}{/if}
					{if $Enable_Extra_Field_11 eq 1}{if $link_field11 neq ""}<br/><b>{$Field_11_Title}:</b> {$link_field11}{/if}{/if}
					{if $Enable_Extra_Field_12 eq 1}{if $link_field12 neq ""}<br/><b>{$Field_12_Title}:</b> {$link_field12}{/if}{/if}
					{if $Enable_Extra_Field_13 eq 1}{if $link_field13 neq ""}<br/><b>{$Field_13_Title}:</b> {$link_field13}{/if}{/if}
					{if $Enable_Extra_Field_14 eq 1}{if $link_field14 neq ""}<br/><b>{$Field_14_Title}:</b> {$link_field14}{/if}{/if}
					{if $Enable_Extra_Field_15 eq 1}{if $link_field15 neq ""}<br/><b>{$Field_15_Title}:</b> {$link_field15}{/if}{/if}
					<div style="clear:both;"> </div>
				</span>
			</span>
			{checkActionsTpl location="tpl_pligg_story_body_end"}
		{/if}
		<div class="clear"> </div>
	</div>
	{checkActionsTpl location="tpl_link_summary_end"}
</div>
{checkActionsTpl location="tpl_pligg_story_end"}
Reply With Quote
  #7 (permalink)  
Old 03-12-2010, 10:35 PM
chuckroast's Avatar
Pligg Developer/Coder/Designer
Pligg Version: SVN
Pligg Template: Social Pro Kit
 
Join Date: Jun 2006
Posts: 5,448
You will want to wrap the extra fields in a conditional story tag like this

Code:
{if $pagename eq "story"}            
{if $Enable_Extra_Field_1 eq 1}{if $link_field1 neq ""}<br/><b>{$title_short} Images</b><div align="center"><iframe align="center" src="http://www.flickr.com/slideShow/index.gne?set_id={$link_field1}" frameBorder="0" width="500" scrolling="no" height="400"></iframe></div>{/if}{/if}
{if $Enable_Extra_Field_2 eq 1}{if $link_field2 neq ""}<br/><b>{$Field_2_Title}:</b> {$link_field2}{/if}{/if}
{if $Enable_Extra_Field_3 eq 1}{if $link_field3 neq ""}<br/><b>{$Field_3_Title}:</b> {$link_field3}{/if}{/if}
{if $Enable_Extra_Field_4 eq 1}{if $link_field4 neq ""}<br/><b>{$Field_4_Title}:</b> {$link_field4}{/if}{/if}
{if $Enable_Extra_Field_5 eq 1}{if $link_field5 neq ""}<br/><b>{$Field_5_Title}:</b> {$link_field5}{/if}{/if}
{if $Enable_Extra_Field_6 eq 1}{if $link_field6 neq ""}<br/><b>{$Field_6_Title}:</b> {$link_field6}{/if}{/if}
{if $Enable_Extra_Field_7 eq 1}{if $link_field7 neq ""}<br/><b>{$Field_7_Title}:</b> {$link_field7}{/if}{/if}
{if $Enable_Extra_Field_8 eq 1}{if $link_field8 neq ""}<br/><b>{$Field_8_Title}:</b> {$link_field8}{/if}{/if}
{if $Enable_Extra_Field_9 eq 1}{if $link_field9 neq ""}<br/><b>{$Field_9_Title}:</b> {$link_field9}{/if}{/if}
{if $Enable_Extra_Field_10 eq 1}{if $link_field10 neq ""}<br/><b>{$Field_10_Title}:</b> {$link_field10}{/if}{/if}
{if $Enable_Extra_Field_11 eq 1}{if $link_field11 neq ""}<br/><b>{$Field_11_Title}:</b> {$link_field11}{/if}{/if}
{if $Enable_Extra_Field_12 eq 1}{if $link_field12 neq ""}<br/><b>{$Field_12_Title}:</b> {$link_field12}{/if}{/if}
{if $Enable_Extra_Field_13 eq 1}{if $link_field13 neq ""}<br/><b>{$Field_13_Title}:</b> {$link_field13}{/if}{/if}
{if $Enable_Extra_Field_14 eq 1}{if $link_field14 neq ""}<br/><b>{$Field_14_Title}:</b> {$link_field14}{/if}{/if}
{if $Enable_Extra_Field_15 eq 1}{if $link_field15 neq ""}<br/><b>{$Field_15_Title}:</b> {$link_field15}{/if}{/if}
<div style="clear:both;"> </div>
{/if}
Reply With Quote
  #8 (permalink)  
Old 03-13-2010, 11:39 AM
Casual Pligger
 
Join Date: Jan 2010
Posts: 49
Worked Great, Thanks Chuck, I do appreciate it!..
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Upload Module (File and Image Attachment) Yankidank Free Modules 268 02-03-2012 12:19 PM
Image Upload -> Link Image to Story MikeF Questions and Comments 9 04-11-2011 07:30 PM
[Mod]Fancy photo gallery v1 for 9.7-9.9 scrill Modules for Sale 33 07-11-2010 08:51 AM
Miising loading image in image upload/thickbox module Peter Questions and Comments 5 12-06-2007 03:24 AM
Image Upload / Image display with stories mod - Will pay for dev and share adampoots Questions and Comments 8 04-10-2007 08:22 PM


Pligg Modules and Pligg Templates from Pligg Pro Find support on the Pligg CMS Forum - 24 hours a day! Make a donation to support Pligg CMS development