Go Back   BuyScripts Forums > vShare YouTube Clone > Template Modifications

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 10-28-2009, 03:34 AM
Member
 
Join Date: May 2009
Posts: 37
Lightbulb Add Twitter Button to Your View Video Page of VShare 2.7

Dear All,

Here is the code to add a twitter button below the player:

Code:
 
<a href="h t t p : / / twitter . com/home/?status={$base_url}/view/{$view.video_info.video_id}/{$view.video_info.video_seo_name}/{literal}%20{/literal}{$view.video_info.video_title}" target="_blank" title="Twitter"><img src="{$img_css_url}/images/twitter.gif" title="Follow me on Twitter" width="18" height="18" border="0" alt="Follow me on Twitter" /></a>
Please remove the spaces in the first part of the code. (this is because of this forum)

Enjoy.

Thanks

Last edited by faceknock; 10-29-2009 at 02:32 AM.
Reply With Quote
  #2 (permalink)  
Old 11-23-2009, 06:27 AM
Junior Member
 
Join Date: Jul 2008
Posts: 8
Default

For noobs like me, what template and where in the body/code would one add this code to?
Reply With Quote
  #3 (permalink)  
Old 11-24-2009, 12:53 AM
Member
 
Join Date: May 2009
Posts: 37
Red face Twitter Code

You shoud enter this code in "view_video.tpl" file which is located in templates folder.

In this file you should locate the following line:

Quote:
<a href="http://myweb2.search.yahoo.com/myres...fo.video_title}" target="_blank" title="My Yahoo!"><img src="{$img_css_url}/images/yahoo.png" border="0" alt="yahoo" /></a>
and then add below this line:

Quote:
&nbsp;
<a href="Twitter}" target="_blank" title="Twitter"><img src="{$img_css_url}/images/twitter.gif" title="Follow me on Twitter" width="18" height="18" border="0" alt="Follow me on Twitter" /></a>
I hope this will help.

Thanks
Reply With Quote
  #4 (permalink)  
Old 11-24-2009, 02:25 PM
Junior Member
 
Join Date: Jul 2008
Posts: 8
Thumbs up

Quote:
Originally Posted by faceknock View Post
You shoud enter this code in "view_video.tpl" file which is located in templates folder.

In this file you should locate the following line:



and then add below this line:



I hope this will help.

Thanks
Thanks, that worked!!
Reply With Quote
  #5 (permalink)  
Old 11-29-2009, 04:22 PM
Junior Member
 
Join Date: Nov 2008
Posts: 17
Default

did not work for me on http://funmakeout.com/vblog/view/17/mini-extended-motorer-protection/
Reply With Quote
  #6 (permalink)  
Old 11-29-2009, 05:19 PM
Member
 
Join Date: May 2009
Posts: 37
Default Twitter Button

It will work. The only thing is that you have to add a 16x16 twitter icon to your "template/images" directory and name it twitter.jpg.
Reply With Quote
  #7 (permalink)  
Old 11-29-2009, 07:38 PM
Junior Member
 
Join Date: Nov 2008
Posts: 17
Default

fix it thanks for the help ? have you use the twitter mod and if so can you show me some video how it work

or more info on that im real more in to login mod like i did with word press for face book myspace yahoo and msn

Last edited by bunnytv; 11-29-2009 at 07:40 PM.
Reply With Quote
Reply

Bookmarks

Tags
twitter button

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



All times are GMT. The time now is 12:29 AM.


Powered by vBulletin. Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
SEO by vBSEO