Video in story page.

Register an Account
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 10-30-2008, 07:02 AM
ArturOzimek's Avatar
Casual Pligger/Coder
 
Join Date: Jul 2008
Posts: 38
Hi.
I made small modification for pligg. This mod displays video in story page.

Supported Sites:
Google Video, YouTube, Xoinks, Revver, My Space, Vimeo, Veoh, MetaCafe, iFilm, Guba , Daily Motion, Stage6Divx, MSN Soapbox, Live Video, GoFish, YouAreTv, LiveLeak, CollegeHumor, putfile.com.


Copy attached files to root directory.

Open root/templates/your template/link_summary.tpl
find:
Code:
{if $Enable_Extra_Field_15 eq 1}{if $link_field15 neq ""}<br/><b>{$Field_15_Title}:</b> {$link_field15}{/if}{/if} 		  			
					{if $pagename neq "story"} <a href="{$story_url}">{#PLIGG_Visual_Read_More#}</a><img src="{$my_pligg_base}/templates/{$the_template}/images/read_more.png">{/if}<br />
		  	
                                                    	</span>
	
                    </span>
	  	{/if}
paste below:
Code:
{if $pagename eq "story"}
<div>
{if $url_short eq "http://www.collegehumor.com" || $url_short eq "http://www.guba.com" || $url_short eq "http://video.google.com" || $url_short eq "http://video.google.co.uk" || $url_short eq "http://video.google.nl" || $url_short eq "http://youtube.com" || $url_short eq "http://www.youtube.com" || $url_short eq "http://uk.youtube.com" || $url_short eq "http://br.youtube.com" || $url_short eq "http://fr.youtube.com" || $url_short eq "http://ie.youtube.com" || $url_short eq "http://it.youtube.com" || $url_short eq "http://jp.youtube.com" || $url_short eq "http://nl.youtube.com" || $url_short eq "http://pl.youtube.com" || $url_short eq "http://es.youtube.com" || $url_short eq "http://www.livevideo.com" || $url_short eq "http://www.youare.tv" || $url_short eq "http://youare.tv" || $url_short eq "http://stage6.divx.com" || $url_short eq "http://www.metacafe.com" || $url_short eq "http://soapbox.msn.com" || $url_short eq "http://www.gofish.com" || $url_short eq "http://www.ifilm.com" || $url_short eq "http://www.veoh.com" || $url_short eq "http://vimeo.com" || $url_short eq "http://www.vimeo.com" || $url_short eq "http://vids.myspace.com" || $url_short eq "http://one.revver.com" || $url_short eq "http://xoinks.com" || $url_short eq "http://www.xoinks.com" || $url_short eq "http://www.dailymotion.com" || $url_short eq "http://www.liveleak.com"  }
<center><iframe src="{$my_pligg_base}/videostory.php?id={$link_id}" {include file='videostory.tpl'} ></iframe></center>
{/if}
</div>{/if}
Done.

Have a look at attached image.
Modification works with 9.9.5 and SVN as well.
Attached Thumbnails
Video in story page.-videostory.jpg  
Attached Files
File Type: rar video mod.rar (3.6 KB, 98 views)

Last edited by ArturOzimek; 10-30-2008 at 09:58 AM.
Reply With Quote
  #2 (permalink)  
Old 12-23-2008, 01:15 AM
jerrytheman's Avatar
Casual Pligger
Pligg Template: custom
 
Join Date: Dec 2008
Posts: 31
dailymotion not working
Reply With Quote
  #3 (permalink)  
Old 12-24-2008, 01:44 PM
ArturOzimek's Avatar
Casual Pligger/Coder
 
Join Date: Jul 2008
Posts: 38
I know this problem but I am not able to resolve it now. They mixed embed links. I will try in near future.
Reply With Quote
  #4 (permalink)  
Old 12-24-2008, 04:38 PM
New Pligger
Pligg Version: Beta 9
 
Join Date: Dec 2008
Posts: 3
This may be a silly question, but I have copied the code where u directed and copied the files to my root directory, and now I am not sure how to actually add a video.

Thanks for this!
Reply With Quote
  #5 (permalink)  
Old 12-29-2008, 09:26 AM
ArturOzimek's Avatar
Casual Pligger/Coder
 
Join Date: Jul 2008
Posts: 38
If you add to your pligg video site this code will make everything automaticly.
Reply With Quote
Reply

Tags
story, story page, video, video in story page

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Page Variables Yankidank Wiki Articles 3 05-19-2011 09:21 AM


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