PDA

View Full Version : Custom Avatars are not shown


jluerken
06-20-2004, 09:18 AM
Hi,

I installed cmps and I really like it.
I have only one small problem. On the portal page the avatar should be displayed for every user who is logged in.
This is working for normal avatars (already in the forum) but not for custom
avatars.

Can someone please help?

jluerken
06-20-2004, 11:07 AM
Instead of http://forumurl/image.gif the links are shown as http://forumurl/http://forumurl/image.gif

Our Sponsors
 

jluerken
06-20-2004, 11:14 AM
In the adv_welcome_block seems to be the failure in my case

<td><a href="$vboptions[bburl]/profile.php?do=editavatar"><img src="$avatarurl" border="0" alt="$vbphrase[edit_avatar]" /></a>
</td>


This "<img src="$avatarurl" border="0" alt="$vbphrase[edit_avatar]" />" seems not to work for me cause it doubles the HTTP:// text.
Can anyone tell me how I can change this?

Brian
06-21-2004, 12:52 PM
What do you have set for your 'Forum URL' in your main vBulletin options section?

Our Sponsors
 

maniac
12-15-2004, 11:48 PM
I'm having the same problem...

The img src on the welcome block for my custom avatar is

<img src="http://www.mydomain.org/forum//images/avatar1_2.gif" border="0" alt="Edit Avatar" />

Wherehttp://www.mydomain.org/forum is the forum URL as set in the vBulletin preferences...

Any ideas?

Thanks in advance.

Brian
12-16-2004, 10:16 AM
Remove the trailing / from the end of your 'Forum URL' option.

maniac
12-16-2004, 03:24 PM
Remove the trailing / from the end of your 'Forum URL' option.

I have no trailing slash at the end of my forum url...

maniac
12-18-2004, 12:48 AM
figured it out...

My avatars are uploaded into the root level of my site, same level as my forum directory. I could change that, but it was easier to change one line in the welcomeback module as opposed to moving all my avatars to a new directory...

This is what I did:

Opened welcomeback.php and searched for:

$avatarurl = $vboptions['bburl'] . '/' . $avatarurl;

and changed it to:

$avatarurl = '' . $avatarurl;

That fixed it for me...

Zachery
12-18-2004, 12:52 AM
In vBoptions what do you have set for your forum url

maniac
12-18-2004, 09:34 AM
In vBoptions what do you have set for your forum url

It's set to "http://www.mydomain.com/forum" Which is the url to my forum...

But, my cmps_index file is outside that directory - it's on the same level as my forum directory. My custom avatars, attachments and other site images are on the top level as well...

I've had this installation for a while and want to retain the directory structure as is. And, since my cmps_index file will eventually be my default home page it has to be in the root level.

I guess I could put it in the forum directory and add a redirect to it, but it's now working fine with the change I made.

Brian
12-18-2004, 10:37 AM
Looks like the problem is with your 'Avatar URL' setting. Put your forum in debug mode for a minute (Just add $debug = 1; somewhere in your includes/config.php file). Then go to your Admin CP => Version Info and Other Untouchables => Avatar URL and make sure that option is set to 'customavatars' (or whatever your avatar folder is called) and doesn't have the /forum part in front of it. Make sure you take your forum out of debug mode afterwards as leaving it on could be a security risk.

maniac
12-18-2004, 04:10 PM
Thanks,

That shed more light on my forum...

it appears that there was a discrpeancy between the actual directory where my custom avatars are stored and the path to the avatar directory - not sure how I did that...

I've got it working now - I appreciate all the help and patience in helping me solve this :)

7thGenCivic.com
03-01-2005, 03:56 PM
Looks like the problem is with your 'Avatar URL' setting. Put your forum in debug mode for a minute (Just add $debug = 1; somewhere in your includes/config.php file). Then go to your Admin CP => Version Info and Other Untouchables => Avatar URL and make sure that option is set to 'customavatars' (or whatever your avatar folder is called) and doesn't have the /forum part in front of it. Make sure you take your forum out of debug mode afterwards as leaving it on could be a security risk.

cool, worked for me.