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)
-   -   ipInfo -- Extra user IP information (https://vborg.vbsupport.ru/showthread.php?t=66824)

SaN-DeeP 10-17-2004 07:32 AM

anyway to restrict this hack to be used only by administrators ?
i want to disable this to be used by moderators and super-mods

Regards,

Techguy1 10-19-2004 09:52 PM

Quote:

Originally Posted by SaN-DeeP
anyway to restrict this hack to be used only by administrators ?
i want to disable this to be used by moderators and super-mods

Regards,

I would add a conditional to postbit:
PHP Code:

<if condition="$bbuserinfo[usergroupid] == 6">
// ipinfo.php URL
<else />
// regular URL
</if> 

Then, edit ipinfo.php
Find:
PHP Code:

if (!can_moderate($threadinfo['forumid'], 'canviewips')) 

Replace with:
PHP Code:

if ($bbuserinfo['usergroupid'] != 6


SaN-DeeP 10-20-2004 12:29 AM

Thank You Techguy1 for your help :)
I remember your site but not your ID

Regards,

alzibub 12-11-2004 04:30 PM

Great - this is just what I needed.
Thanks for the code :)

trevelyn1015 12-12-2004 07:01 AM

great hack... installed..

Widok 01-06-2005 04:40 PM

well done Jordeh, thanks
[high]* Widok clicks install ;) [/high]

Onkel_Tom, Thanx for
For instance the "proxy IP hack" Users can do a workaround.

Limey-YMR 01-06-2005 05:13 PM

I tried adding a location for Whos Online so that you don't just get "Unknown Location" but its not working out, I edited Includes/functions_online
though something is missing...

Dennis B 01-18-2005 07:02 PM

Installed, great hack, integrated with the proxy hack. :up:
Thanks.

chriswible 01-24-2005 01:30 PM

YES! I missed this so much when we migrated from phpBB. Poo, I actually just went through all the trouble of coding a hack like this one (stupid me, only looked in the admin section). Yours is far superior, though, so I'm using it instead. :p Thanks!

Skyline_GT 01-24-2005 06:08 PM

very nice..
will install this.


All times are GMT. The time now is 01:46 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.01504 seconds
  • Memory Usage 1,738KB
  • 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
  • (3)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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