vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Resolve Ip Switch (https://vborg.vbsupport.ru/showthread.php?t=92323)

untold4you 07-15-2005 10:00 PM

Resolve Ip Switch
 
This hack for vBulletin 3.0.7 will add an extra drop down list to the ?Who's Online Page?,
where you can easily select to resolve the users ip's or not.

Vbulletin Version: 3.0.7

Name: Resolve Ip Switch
Version: 1.0
Date: 16-07-2005
DB Changes: N/A
Upload Files: N/A
File Modifications: 1
Phrases To Add: 1
Templates To Edit: 1
Time To Install: 5-10 Minutes

Screenshot:

http://www.powerplant.be/ppimages/re...switchhack.gif

yoyoyoyo 07-16-2005 07:08 PM

Starting with a fresh copy of online.php I tried the edits a few times and still get the same error:
Quote:

Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/mysite/public_html/forum/online.php on line 442
line 442 is:
Code:

$frmjmpsel['wol'] = ' selected="selected" class="fjsel"';
Here is the code that is listed above and below that area
Code:

                $metarefresh .= "\n</script>\n";
        }
        else
        {
                /* [START] [Resolve Ip Switch Hack] [ID:5] */
                $metarefresh = "<meta http-equiv=\"refresh\" content=\"$vboptions[WOLrefresh]; url=online.php?$session[sessionurl]order=$sortorder&amp;sort=$sortfield&amp;pp=$perpage&amp;page= $pagenumber" . iif($who, "&amp;who=$who") . iif($showua, '&amp;ua=1') . iif($showlsv, '&amp;rslv=1') . "\" /> ";
                /* [END] [Resolve Ip Switch Hack] [ID:5] */";
        }
}

$frmjmpsel['wol'] = ' selected="selected" class="fjsel"';
construct_forum_jump();

/* [START] [Resolve Ip Switch Hack] [ID:6] */
$pagenav = construct_page_nav($totalonline, "online.php?$session[sessionurl]sort=$sortfield&amp;order=$sortorder&amp;pp=$perpage" . iif($who, "&amp;who=$who") . iif($showua, '&amp;ua=1') . iif($showlsv, '&amp;rslv=1'));
/* [END] [Resolve Ip Switch Hack] [ID:6] */
$numbervisible += $numberinvisible;

Then I uploaded a virgin copy of online.php, and went to that page on my site, and I am able to resolve IP's etc., so the edits in the online.php are needless, as far as I can see since the hack works fine without them, which means it is a template mod.

untold4you 07-16-2005 07:27 PM

/* [END] [Resolve Ip Switch Hack] [ID:5] */";

Remove the stuff in green and your on your way!

Quote:

so the edits in the online.php are needless, as far as I can see since the hack works fine without them, which means it is a template mod.
No they are not, because the page is refreshing itself and when you order your online list by location or username, the setting of the switch is not saved .


All times are GMT. The time now is 09:56 AM.

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.01030 seconds
  • Memory Usage 1,719KB
  • 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
  • (2)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)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