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

Colin F 11-16-2004 02:39 PM

Quote:

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

Do you have the IP's displayed in a postbit, or are they linked?

madkidz 11-16-2004 02:45 PM

Quote:

Originally Posted by Colin F
Do you have the IP's displayed in a postbit, or are they linked?

HOw do I tell if it's displayed in a postbit.
When I go to postbit and search for "ip" the only thing which comes up is $post[iplogged].
I am not sure if this is what you mean.

SaN-DeeP 11-19-2004 06:00 AM

Quote:

Originally Posted by Colin F
Do you have the IP's displayed in a postbit, or are they linked?

Colin I guess he meant, He wants to hide the Ip Addresses everywhere on the board for all usergroups.

Ie. only Administrator should be able to view the IPs of any user or usergroups from mod cp or admincp or wether it be postbits.

Can you help me acheive this ? I want to disable all usergroups Moderators, Super-Moderators, Jr. Administrators (Members who have access to admincp) from viewing IPs of users.. from everywhere on board

Regards,
Sandy...

madkidz 11-19-2004 10:14 AM

Thats it SaN-DeeP

SaN-DeeP 11-23-2004 04:04 PM

bump Colin F waiting for a reply from ya :)

Regards,


All times are GMT. The time now is 08:00 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.01284 seconds
  • Memory Usage 1,747KB
  • 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
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (15)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