vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Admin Ip Address (https://vborg.vbsupport.ru/showthread.php?t=71584)

madkidz 11-10-2004 10:12 PM

Admin Ip Address
 
IS there a hack which will not allow super moderators or any group capable of viewing IP address (except admins) to view the admin IP address.

paulyy 11-11-2004 02:49 AM

Can't you use an IF condition?

madkidz 11-15-2004 11:31 AM

Quote:

Originally Posted by paulyy
Can't you use an IF condition?

How would you set that up. I am not good on any programming level.

Colin F 11-15-2004 12:02 PM

In the template used to show the ip address, surround the code with

HTML Code:

<if condition="$post[usergroupid] == 6 AND $bbuserinfo[usergroupid] == 6">
// all that regular template code
<else />
//error message
</if>


Michael Morris 11-15-2004 12:07 PM

Wouldn't it be even easier to just turn these permissions off in the usergroup permissions menu?

Colin F 11-15-2004 12:13 PM

He mentions or any group capable of viewing IP addresses so I assume he wants them to see normal users IP's

madkidz 11-15-2004 09:48 PM

Quote:

Originally Posted by Colin F
He mentions or any group capable of viewing IP addresses so I assume he wants them to see normal users IP's

Correct and thanks for the code, but which template do it edit?
Keep in mind im a illiterate when it comes to this.

madkidz 11-16-2004 11:16 AM

Quote:

Originally Posted by Colin F
In the template used to show the ip address, surround the code with

HTML Code:

<if condition="$post[usergroupid] == 6 AND $bbuserinfo[usergroupid] == 6">
// all that regular template code
<else />
//error message
</if>


DO I put this code anywhere in the template or does it go in a specific, location.

Colin F 11-16-2004 11:36 AM

Quote:

Originally Posted by madkidz
DO I put this code anywhere in the template or does it go in a specific, location.

This would be if you have the IP shown in the postbit.

HTML Code:

<if condition="$show['ip']">
 <if condition="$post[usergroupid] == 6">
 <if condition="$bbuserinfo[usergroupid] == 6">
 $vbphrase[ip]: $post[ip]
 </if>
 <else />
 $vbphrase[ip]: $post[ip]
 </if>
 <else />
        <a href="postings.php?$session[sessionurl]do=getip&amp;p=$post[postid]"><img class="inlineimg" src="$stylevar[imgdir_button]/ip.gif" alt="$vbphrase[ip]" title="$post[ip]" border="0" /></a>
 </if>


[edit] in the postbit_ip template of course ;)

madkidz 11-16-2004 12:08 PM

Thanks, but when I input that code it still allows for supermods to view IPs


All times are GMT. The time now is 02: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.01056 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_html_printable
  • (4)bbcode_quote_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