Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Not a member yet? Click here to register.
Forgot Password?

Shoutbox after refresh AJAX

Asked Modified Viewed 1,510 times
C
Costa1337
C
  • Junior Member, joined since
  • Contributed 13 posts on the community forums.
  • Started 5 threads in the forums
  • Started this discussions
asked
Junior Member

It seems like the avatars are not loading the correct directory.

I inspected the code and I think the mistake is here:

if($data['user_avatar']) { echo '<img class="sb_fl" src="'.IMAGES.'avatars/'.$data['user_avatar'].'" width="32" hspace="4" vspace="1" />'; } //set ava


Now my php-fusion is installed in a directory called "forum" please help me fix this. Now i get the link: site.com/images/forum/avatars/paperplane.png

And it should be: site.com//forum/images/avatars/paperplane.png

Thanks anyways!
0 replies

1 post

C
Chan
C
Chan 0
Lead Developer of PHP-Fusion
  • Super Admin, joined since
  • Contributed 3,842 posts on the community forums.
  • Started 232 threads in the forums
  • Answered 6 questions
answered
Super Admin

if($data['user_avatar']) { echo '<img class="sb_fl" src="'.IMAGES.'avatars/'.$data['user_avatar'].'" width="32" hspace="4" vspace="1" />'; } //set ava

Change to:

echo display_avatar($data, '32px');
0 replies

Category Forum

Panels and Infusions

Labels

None yet

Statistics

  • Views 0 views
  • Posts 1 post
  • Votes 0 votes
  • Topic users 2 members

2 participants

C
C
Chan 0
Lead Developer of PHP-Fusion
  • Super Admin, joined since
  • Contributed 3,842 posts on the community forums.
  • Started 232 threads in the forums
  • Answered 6 questions
C
C
  • Junior Member, joined since
  • Contributed 13 posts on the community forums.
  • Started 5 threads in the forums
  • Started this discussions

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet