Results 1 to 6 of 6

What's the correct URL format for retrieving the avatar image based on User ID?

This is a discussion on What's the correct URL format for retrieving the avatar image based on User ID? within the General Discussion forums, part of the vBSEO SEO Plugin category; What's the correct URL format for retrieving the avatar image based on User ID? My realchat chatroom uses Code: $avatarURL ...

  1. #1
    Junior Member
    Real Name
    MediaHound
    Join Date
    Jan 2008
    Posts
    23
    Liked
    0 times

    What's the correct URL format for retrieving the avatar image based on User ID?

    What's the correct URL format for retrieving the avatar image based on User ID?

    My realchat chatroom uses

    Code:
            $avatarURL = $vbulletin->options[bburl]."/image.php?u=".$vbulletin->userinfo[userid];
    I think its a conflict - the images are not appearing.

    What is the correct way to call an avatar image?
    I dug around here:
    vBSEO Functions for Extensibility
    but could not figure it out. Anyone have a clue? I would really appreciate it! Thanks in advance.

  2. #2
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,689
    Liked
    157 times
    Hello,

    does it work correctly with vBSEO disabled?
    Oleg Ignatiuk / Crawlability Inc.
    vBSEO 3.6.0 GOLD Released!
    Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!


  3. #3
    Senior Member
    Real Name
    Michael Biddle
    Join Date
    Jan 2007
    Location
    Southern California
    Posts
    7,097
    Liked
    4 times
    Where exactly are you using that code?

    Try something like this:

    PHP Code:
    $avatarURL $vbulletin->options['bburl'] . "/image.php?u=" $vbulletin->userinfo['userid']; 
    The Forum Hosting - Forum Hosting from the Forum Experts

  4. #4
    Junior Member
    Real Name
    MediaHound
    Join Date
    Jan 2008
    Posts
    23
    Liked
    0 times
    I see your schwartz has more spaces than mine.
    I will test both disabling vbseo (yikes!) and adding the spacing as quoted.

    I'm using the code in realchat.php - the (very) popular realchat chatroom software file that bridges the two scripts. This worked on the site once upon a time and a few updates, mods, plugins, and technicians later, we don't get avatars in the chatroom anymore. I have a real itchy feeling that its a vbseo conflict.

    Thank you for the two valuable suggestions!

  5. #5
    Junior Member
    Real Name
    MediaHound
    Join Date
    Jan 2008
    Posts
    23
    Liked
    0 times
    PS if you guys have nothing to do (ha!) and want to play around with one on your testbed, have at it:
    Download Chat Server Software - RealChat
    http://www.realchat.com/doc/plugins/..._vBulletin.zip
    http://www.realchat.com/doc/scripting-api.html

  6. #6
    Senior Member
    Real Name
    Michael Biddle
    Join Date
    Jan 2007
    Location
    Southern California
    Posts
    7,097
    Liked
    4 times
    I am not to sure that $vbulletin would work on this. What if you typed out your full URL?
    The Forum Hosting - Forum Hosting from the Forum Experts

Similar Threads

  1. Problem about retrieving titles
    By bonjurkes in forum General Discussion
    Replies: 4
    Last Post: 12-08-2007, 09:51 AM
  2. Example URLs based on 'Select Your Forum URLs Global Format"
    By GlowHost in forum URL Rewrite Settings
    Replies: 5
    Last Post: 11-10-2007, 05:16 PM
  3. cPanel based / -> www won't work
    By 64North in forum URL Rewrite Settings
    Replies: 2
    Last Post: 06-28-2006, 07:05 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •