Results 1 to 9 of 9

How can I add the location of custom vBulletin pages to Who Is Online?

This is a discussion on How can I add the location of custom vBulletin pages to Who Is Online? within the General Discussion forums, part of the vBulletin SEO Discussion category; Can anyone tell me how I can make the information appear correctly in the Who Is Online page for members ...

  1. #1
    Senior Member
    Real Name
    Johnny5
    Join Date
    Oct 2008
    Posts
    231
    Liked
    0 times

    How can I add the location of custom vBulletin pages to Who Is Online?

    Can anyone tell me how I can make the information appear correctly in the Who Is Online page for members viewing custom vBulletin pages I have created? I heard it needs to be done using plugins/hooks but I have no idea how to use the plugin/hook system.

    I would really appreciate a step by step description if anyone knows. I'd hoped it was as easy as editing a switch in functions_online.php, but that doesn't appear to be the case.

    Thanks

  2. #2
    Senior Member Shadab's Avatar
    Real Name
    Shadab
    Join Date
    Oct 2007
    Location
    Bhopal
    Posts
    821
    Liked
    0 times
    Blog Entries
    12
    [How-To] vBulletin API Basics: Creating Custom Pages & Misc. - vBulletin.org Forum

    See the second section of the first post for "Adding Custom Online Locations"

  3. #3
    Senior Member
    Real Name
    Johnny5
    Join Date
    Oct 2008
    Posts
    231
    Liked
    0 times
    Thank you. I followed those instructions but it is showing the location as

    Unknown Location common/common.css

    Is there something else to it?

  4. #4
    Senior Member briansol's Avatar
    Real Name
    Brian
    Join Date
    Apr 2006
    Location
    Central CT, USA
    Posts
    6,981
    Liked
    8 times
    sounds like you have a 404 there.

    when you include a page that doesn't exist, using the 404 addon as keith describes here, it will show up in the online bit.

  5. #5
    Senior Member
    Real Name
    Johnny5
    Join Date
    Oct 2008
    Posts
    231
    Liked
    0 times
    Sorry, Brian, I'm not sure I follow. When you say "include a page" you mean the page I am specifying the filename for, right? The custom page definitely exists.

    Plugin PHP Code: if ($filename == 'test.php')
    {
    $userinfo['activity'] = 'test';
    }

  6. #6
    Senior Member briansol's Avatar
    Real Name
    Brian
    Join Date
    Apr 2006
    Location
    Central CT, USA
    Posts
    6,981
    Liked
    8 times
    common/common.css
    is the problem file.

    it's being called incorrectly (wrong path, etc).

    ie, if you have site.com/common/common.css in a link rel, but its really site.com/forum/common/common.css it will hit the vbseo 404 script, which then pushes a user to the online. unknown location.

    check the path to that file

  7. #7
    Senior Member
    Real Name
    Johnny5
    Join Date
    Oct 2008
    Posts
    231
    Liked
    0 times
    Hmm, thanks, Brian. I see <link rel="stylesheet" type="text/css" href="common/common.css"/> when I view the page's source but sure enough there is no folder common or common.css inside of it. I've searched the templates and the php files that make up my custom page but I can't find any call to common.css... the mind boggles.

    I'll keep hunting, but thank you for pointing me in the right direction.

  8. #8
    Senior Member
    Real Name
    Johnny5
    Join Date
    Oct 2008
    Posts
    231
    Liked
    0 times
    I found it, commented it out, and now it works like a charm. Thanks so much for your help, Brian!

  9. #9
    Senior Member briansol's Avatar
    Real Name
    Brian
    Join Date
    Apr 2006
    Location
    Central CT, USA
    Posts
    6,981
    Liked
    8 times
    No problem.

    Since the 404 handler hits the misc.php script, it effectively makes a new 'session' for each page or local linked element with a page that can't be found. It ends up hitting the -f (not a file) -d (not a directory) => send to vbseo.php. If it were an actual file, it would never get processed by vbseo in the first place, thus not hitting misc.php or the 404 handler which starts the extra 'session' for the call

Similar Threads

  1. Display Users Viewing non-vBulletin Pages in "Online Users"
    By NeutralizeR in forum Member Articles
    Replies: 15
    Last Post: 09-02-2009, 06:30 PM
  2. Custom metatags for custom pages
    By benFF in forum vBSEO Features Archive
    Replies: 0
    Last Post: 12-07-2007, 02:59 PM
  3. Custom VB pages...
    By spiceman in forum Pre-Sales Questions
    Replies: 3
    Last Post: 04-05-2007, 05:28 PM
  4. Custom Rewrite for search.php, online.php & uShop.php
    By theself in forum Custom Rewrite Rules
    Replies: 3
    Last Post: 09-24-2005, 09:57 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
  •