Results 1 to 2 of 2

Thread: {if $user_info[0].website ne ""}

  1. #1

    Default {if $user_info[0].website ne ""}

    Trying to select website info from signup table in database

    I want to add the users website info to view_video.tpl

    user.tpl has the variable:
    Code:
    {if $user_info[0].website ne ""}
    <TR>
    <TD>Website:</TD>
    <TD>{$user_info[0].website}</TD>
    </TR>
    {/if}
    and my_profile.tpl has this variable:
    Code:
    {$answers[0].website}
    What is the variable for view_video.tpl??

  2. #2
    Join Date
    May 2007
    Location
    Planet Earth
    Posts
    1,389

    Default Re: {if $user_info[0].website ne ""}

    Let me see if I understand this correctly...

    In the view_video.tpl where it has the "User Details"... user name and all that, you want to also include the user's website as part of the User Details and sticking in the {$answers[0].website} in that section doesn't work?

    Look to user.tpl and see if there's something in there that will work...

    It might be this?

    Code:
    {if $user_info.website ne ""}
    <TR>
    <TD>Website:</TD>
    <td>{$user_info.website}</td>
    </TR>
    {/if}
    If it's not fun, stop doing it!

Similar Threads

  1. broken link on " users's website "
    By heyahey in forum Bug Reports
    Replies: 2
    Last Post: 04-13-2009, 01:44 PM
  2. Where is "guest bar" also bar "most viewed" etc
    By abeez in forum Template Modifications
    Replies: 2
    Last Post: 01-21-2008, 03:33 AM
  3. How long do the "last 5 users online" names stay in list?
    By grynmoors in forum General Discussions
    Replies: 4
    Last Post: 09-12-2007, 08:18 AM
  4. Bottom Advert Broken in "Recently Added Groups" page
    By grynmoors in forum Installation Support
    Replies: 2
    Last Post: 09-09-2007, 01:24 AM
  5. "Classified " Site, and "Image Hosting"
    By chiefody in forum Sales Questions
    Replies: 1
    Last Post: 07-04-2007, 08:26 PM

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
  •