vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=139)
-   -   [Release] Show users ip on forum home [for gaming boards] (https://vborg.vbsupport.ru/showthread.php?t=85365)

Brad 11-17-2002 10:00 PM

[Release] Show users ip on forum home [for gaming boards]
 
Hack: User ip on forumhome

What it dose: When a user is logged in it shows their current ip on the forums home page right after 'Welcome back 'username here'.

Why install?

If you run a gaming board this can be useful to your users if they run servers.

Tony G 11-18-2002 08:23 AM

Nice mod, I remember this one for another software. ;)

[JAB] Ben 11-25-2002 07:05 PM

Ben]I run a vBulletin forum for a Gaming Community.

I tried your mod and the mod for the drop down menu to select a style but both are not working.

For the IP, I only see "Welcome back, [JAB] Ben your ip is " without an IP and without the menu.

I followed your instruction to the letter.

I run a vBulletin v2.2.2 over a FreeBSD, running a MySQL engine.

Maybe it's because it's not up to date? (2.2.9)

Thank you! :)

filburt1 11-25-2002 07:09 PM

If his doesn't work, try this:

add to phpinclude:
Code:

$currentip = $_SERVER['REMOTE_ADDR'];
Then use $currentip instead of $bbuserinfo[ipaddress]. It might be because you're using an old version, yes.

Brad 11-25-2002 09:11 PM

Its the verson, it was tested and ran fine on 2.2.8 and 2.2.9 RC.

imported_TMG1 11-29-2002 08:15 PM

then what would $bankuser[bankval] on a old vb version?

filburt1 11-29-2002 08:20 PM

Huh? :confused:

imported_TMG1 11-29-2002 08:36 PM

I want to show the persons cash in the bank the same way as the ip but its not working heh.

Rufus69 11-29-2002 08:37 PM

O_o I dont think this has anything to do with this mod...

filburt1 11-29-2002 08:39 PM

Right, it's a hack.


All times are GMT. The time now is 02:45 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.01143 seconds
  • Memory Usage 1,724KB
  • 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)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete