vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Identifying a new page on "Who's Online"? (https://vborg.vbsupport.ru/showthread.php?t=93698)

Dorign 08-05-2005 07:15 PM

Identifying a new page on "Who's Online"?
 
Since I use a portal, I've renamed my "index.php" to "community.php" and the portal has become the "index.php." However, the Forum Portal (index.php) is defined as "Forum Index" on Who's Online (which is fine), but the Forum List (community.php) is "unknown location." How do I fix that?

Thanks!

Christine 08-06-2005 01:06 AM

Take a look at:

https://vborg.vbsupport.ru/showthread.php?t=83247

Nice, clean way to be able to manage all non-vB pages in WOL.

Edit to add another option:

https://vborg.vbsupport.ru/showthread.php?t=82882

Dorign 08-06-2005 01:19 AM

First one doesn't seem to work.. second one is for 3.5. :/ I'm on 3.0.8

I figured it out. For anyone who needs it.

Code:

=============================
includes/functions_online.php
=============================

Find:
___________________________________________________________________________________________

                default:
                        if ($permissions['wolpermissions'] & CANWHOSONLINEBAD)

???????????????????????????????????????????????????????????????????????????????????????????

Above this, add:
___________________________________________________________________________________________

                case 'XCUSTOMX':
                        $userinfo['action'] = 'XCUSTOMX';
                        $userinfo['where'] = "<a href=\"XCUSTOMX.php?$session[sessionurl]\">XCUSTOMX</a>";
                        break;

???????????????????????????????????????????????????????????????????????????????????????????


Find:
___________________________________________________________________________________________

        default:
                $userinfo['activity'] = 'unknown';
        }

???????????????????????????????????????????????????????????????????????????????????????????

Above this, add:
___________________________________________________________________________________________

        case 'XCUSTOMX.php':
                $userinfo['activity'] = 'XCUSTOMX';
                break;

???????????????????????????????????????????????????????????????????????????????????????????

Just replace XCUSTOMX with what you need.

bigcurt 08-06-2005 08:56 AM

or you could use this https://vborg.vbsupport.ru/showthrea...ht=trigunflame ---ALOT simpler..

~Curt

Christine 08-06-2005 04:26 PM

Sorry, wasn't paying attention to the main forum. *doh*


All times are GMT. The time now is 07:30 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01115 seconds
  • Memory Usage 1,718KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete