Results 1 to 7 of 7

Thread: how to make website clikable using user name as anchor text

  1. #1

    Default how to make website clikable using user name as anchor text

    well, that is the question...

    I'd like to make that text link an hyperlink using as anchor text the user name in profile page

    check it here: http://www.videoannuncisexy.com/spacash

  2. #2
    Join Date
    May 2007
    Posts
    11

    Default

    prova cosi

    in templates/user.tpl


    line 146 trova
    {if $user_info[0].website ne ""}
    <TR>
    <TD>Website:</TD>
    <TD>{$user_info[0].website}</TD>
    </TR>
    {/if}
    sostituisci con
    {if $user_info[0].website ne ""}
    <TR>
    <TD>Website:</TD>
    <TD>{$user_info[0].username}</TD>
    </TR>
    {/if}
    dovrebbe funzionare

  3. #3

    Default

    funzia, grazie :wink:

  4. #4

    Default

    I tried to add Visit site of "username" in this code of view_video.tpl

    Code:
    <DIV style="FONT-WEIGHT: bold; FONT-SIZE: 12px; PADDING-BOTTOM: 10px; TEXT-ALIGN: center">
    {if $smarty.session.UID eq ""} 
    <A href="{$baseurl}/view_video.php?id={$smarty.request.id}&page={$smarty.request.page}&viewtype={$smarty.request.viewtype}&category={$smarty.request.category}&action=comment">
    {else}
    <A href="#postcomment">
    {/if}
    Post Comments</A>//
    
    Add to Favorites //
    
    Flag This Video
    
    
    
    
    {if $user_info[0].website ne ""}
    Visita il sito di:{$user_info[0].username}
    {/if}
    
    
    
    </DIV>

    but it doesn't work... :cry:

  5. #5

    Default Re: how to make website clikable using user name as anchor text

    thanks, I'll try it asap

    Paolo

  6. #6

    Default Re: how to make website clikable using user name as anchor text

    correct code for user.tpl is:

    {if $user_info.website ne ""}
    <TR>
    <TD>Website:</TD>
    <TD>{$user_info.username}</TD>
    </TR>
    {/if}



    i don't understant where should I copy the my_profile.tpl code

    thanks

  7. #7

    Default Re: how to make website clikable using user name as anchor text

    oh, OK

    I was trying to get a link to user website in profile page, my code makes it working, maybe your code is for previous versions


    thanks

Similar Threads

  1. text editor + SSI
    By mevaser in forum Template Modifications
    Replies: 2
    Last Post: 11-09-2008, 10:11 PM
  2. Text Editor and SSI
    By mevaser in forum Feature Requests
    Replies: 0
    Last Post: 11-05-2008, 02:23 AM
  3. Change text
    By danielle in forum Template Modifications
    Replies: 2
    Last Post: 06-07-2008, 01:51 PM
  4. Reason to make user to add videos
    By RAMMSTEIN in forum General Discussions
    Replies: 1
    Last Post: 05-08-2008, 10:41 AM
  5. Add to text
    By winkler in forum Feature Requests
    Replies: 4
    Last Post: 07-10-2007, 05:08 AM

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
  •