The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#11
|
||||
|
||||
You need to chdir to the forums directory:
PHP Code:
|
#12
|
|||
|
|||
I did that and the page is coming up without error now, but nothing from vb works when I place it on the page, like avatars for example. I tried this code for an avatar:
Code:
<table cellpadding="0" cellspacing="0" align="left" style="margin-top:5px;"> <tr> <td><a href="$vbpoptions[bbdir]/profile.php?$session[sessionurl]do=editavatar"><img src="$vbpoptions[bbdir]/image.php?u=$bbuserinfo[userid]" alt="Your avatar" border="0" /></a> </td> |
#13
|
||||
|
||||
I don't believe that is the code to get you to the avatar. You are calling a script (image.php) not an image. You need to call an actual image in order to have an image displayed. Where did you get that code from?
|
#14
|
|||
|
|||
From the article. What would be the proper code to display an avatar for a member if they were logged in?
|
#15
|
||||
|
||||
Hmmm, I tried to look but couldn't find it in there. Perhaps they were using an older version of vbulletin or something.
I'm not really sure what to use for the avatar. I looked in the postbit template and this is what is in there: HTML Code:
<a href="member.php?$session[sessionurl]u=$post[userid]"><img src="$post[avatarurl]" $post[avwidth] $post[avheight] alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /></a> |
#16
|
||||
|
||||
Avatars can be accessed using image.php - but only if avatars are stored in the database. You can access avatars stored in the file system using fetch_avatar_url().
|
#17
|
|||
|
|||
Mine are stored as files, so I'd need to use fetch. Can you give me the exact code (using an example file path) I would need for an avatar to appear?
|
#18
|
||||
|
||||
Take a look in member.php around line 395:
PHP Code:
|
#19
|
|||
|
|||
I then get this error:
Fatal error: Call to undefined function fetch_avatar_url() in ********************** on line 16 I'm using this code in the header: PHP Code:
|
#20
|
||||
|
||||
You need to include the user functions to be able to use it:
PHP Code:
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|