Quote Originally Posted by grynmoors
The thing ramius posted works...it puts up their profile picture with the link to their profile page, but not the website they mention in their profile. We're also trying to figure out how to get their website to appear.

I'll also try the "else" statement,but where you have an "else" statement, you must also have an "if" statement (I believe).
Ok, I have got the users website on my View Video page as well as my View Picture/Audio pages.

The problem is that it requires that you edit the /include/function.php file which is encoded.

Here is the code anyway.

Add to /include/function.php
Code:
function insert_id_to_website($id)

{

        global $config,$conn;



        $sql="select website from signup where UID=$id[un]";

        $rs=$conn->execute($sql);

        return $rs->fields[website];

}
Add to /templates/view_video.tpl
Code:
 {insert name=id_to_website assign=uwebsite un=$UID}

{if $uwebsite ne ""}<center>My Website: {$uwebsite}</center>{else} {/if}

This will display the Users website only if they have entered one. You need to be sure that the user does not inlcude the http://. I did this by putting a note next to the field when they initially add it.

You can see it in action here.

Again, this will NOT work on vshare unless someone knows how to pass different functions into the pages. For instance maybe we could save all of these new functions in a file named /include/extra_functions.php and then pass them into the view_video.php page. I am just not sure how to do that since the view_video.php file is also encoded. :(

Jereme