Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)

Reply
 
Thread Tools Display Modes
  #1  
Old 11-10-2004, 10:12 PM
madkidz madkidz is offline
 
Join Date: Aug 2004
Location: EN-Y-CE Get it
Posts: 51
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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.
Reply With Quote
  #2  
Old 11-11-2004, 02:49 AM
paulyy paulyy is offline
 
Join Date: Jul 2004
Location: England, UK
Posts: 187
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Can't you use an IF condition?
Reply With Quote
  #3  
Old 11-15-2004, 11:31 AM
madkidz madkidz is offline
 
Join Date: Aug 2004
Location: EN-Y-CE Get it
Posts: 51
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #4  
Old 11-15-2004, 12:02 PM
Colin F's Avatar
Colin F Colin F is offline
 
Join Date: Jul 2004
Location: Switzerland
Posts: 1,551
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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>
Reply With Quote
  #5  
Old 11-15-2004, 12:07 PM
Michael Morris's Avatar
Michael Morris Michael Morris is offline
 
Join Date: Nov 2003
Location: Knoxville TN
Posts: 774
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Wouldn't it be even easier to just turn these permissions off in the usergroup permissions menu?
Reply With Quote
  #6  
Old 11-15-2004, 12:13 PM
Colin F's Avatar
Colin F Colin F is offline
 
Join Date: Jul 2004
Location: Switzerland
Posts: 1,551
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

He mentions or any group capable of viewing IP addresses so I assume he wants them to see normal users IP's
Reply With Quote
  #7  
Old 11-15-2004, 09:48 PM
madkidz madkidz is offline
 
Join Date: Aug 2004
Location: EN-Y-CE Get it
Posts: 51
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #8  
Old 11-16-2004, 11:16 AM
madkidz madkidz is offline
 
Join Date: Aug 2004
Location: EN-Y-CE Get it
Posts: 51
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #9  
Old 11-16-2004, 11:36 AM
Colin F's Avatar
Colin F Colin F is offline
 
Join Date: Jul 2004
Location: Switzerland
Posts: 1,551
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #10  
Old 11-16-2004, 12:08 PM
madkidz madkidz is offline
 
Join Date: Aug 2004
Location: EN-Y-CE Get it
Posts: 51
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 11:38 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.05096 seconds
  • Memory Usage 2,252KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (3)bbcode_html
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete