vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=246)
-   -   Moderators Functions - View IP in post - Admin/Mods (https://vborg.vbsupport.ru/showthread.php?t=311269)

AURFSCAN 05-11-2014 10:00 PM

View IP in post - Admin/Mods
 
1 Attachment(s)
View the IP addresses of Members in their posts. The IP address displayed in the post is only viewable by the usergroup you set and you can add the users you dont want to display their IP's.

The displayed IP is clickable and linked to the Info page from ipaddress.is


In postbit template find

Code:

{vb:raw template_hook.postbit_signature_start}

add the following code above that but before you do, change

bbuserinfo, 6,7 to the usergroups you want to display the IP to, eg. bbuserinfo, 2,3

- 2,3 being admin, mod group eg.

and

change [userid] , array(1,2,3,4,5,88) to the user id's you dont want their IP's displayed

eg. user id's of moderators etc.


you can change the font size and color of font to suit your forum style


Code:

<vb:if condition="is_member_of($bbuserinfo, 6,7) AND !in_array($post[userid] , array(1,2,3,4,5,88))">

<br />

<span style="font-size:0.8em; color:#7a7a7a;"><a href="http://ipaddress.is/{vb:raw post.ip}" target="_blank">{vb:raw post.ip}</a></span>

</vb:if>


enjoy
:)


All times are GMT. The time now is 10:31 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.01059 seconds
  • Memory Usage 1,707KB
  • 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
  • (2)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (1)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