Results 1 to 7 of 7

Thread: Add Twitter Button to Your View Video Page of VShare 2.7

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1

    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 01:32 AM.

  2. #2
    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?

  3. #3

    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:

    <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:

    &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

  4. #4
    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!!

  5. #5

  6. #6

    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.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •