vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Show IP's directly for those who may view them (https://vborg.vbsupport.ru/showthread.php?t=45535)

Stadler 11-09-2002 06:29 PM

Well, I just got rid of another bug, which caused, that IP's weren't logged anymore, after activating the hack through the new setting in the admin-cp.

Just apply the following and it works again
PHP Code:

###################################################
#-------------==={OPEN THE FILES}===--------------#
###################################################

forum/newthread.php
forum
/newreply.php

###################################################
#---------------==={FIND IN BOTH}===--------------#
###################################################

    
if ($logip==or $logip==2) {

###################################################
#---------==={REPLACE IT IN BOTH WITH}===---------#
###################################################

    
if ($logip>0) { 

It should work then.

Stadler 11-12-2002 03:43 PM

Quote:

Originally posted by Goldknight
Edit: before I install this hack, I d like to know will it add more queries?
Well, actually yes: One extra query per Post, but I've managed to solve it now.

Now it's only 1 additional query.

Could someone test Version 1.0.4, plz? It works on our forums, as it should do, but I want to make sure, that it didn't miss something in the hack-file.

shaith 11-13-2002 03:53 AM

Quote:

Originally posted by Stadler
Well, actually yes: One extra query per Post, but I've managed to solve it now.

Now it's only 1 additional query.

Could someone test Version 1.0.4, plz? It works on our forums, as it should do, but I want to make sure, that it didn't miss something in the hack-file.

seems to work just fine.

AngelPride 11-28-2002 01:27 PM

Modifying the database update script as follows cleans up the display in Admin CP so that the radio buttons are aligned down the left:

Code:

UPDATE setting SET optioncode='<input type=\\"radio\\" name=\\"setting[$setting[settingid]]\\" ".iif($setting[value]==0,"checked","")." value=\\"0\\"> Do not log IP<br><input type=\\"radio\\" name=\\"setting[$setting[settingid]]\\" ".iif($setting[value]==1,"checked","")." value=\\"1\\">  Display but require administrator or moderator<br><input type=\\"radio\\" name=\\"setting[$setting[settingid]]\\" ".iif($setting[value]==2,"checked","")." value=\\"2\\"> Display publicly<br><input type=\\"radio\\" name=\\"setting[$setting[settingid]]\\" ".iif($setting[value]==3,"checked","")." value=\\"3\\"> Display directly for administrator or moderator or original poster' WHERE varname='logip';

Stadler 11-28-2002 01:41 PM

THX. :)

Updated the attachment

Chris M 12-01-2002 05:13 PM

Nice:)

Satan

#01 12-04-2002 07:30 AM

Ummm... really dumb question... but... I am running VB Version 2.2.7... How do I do the Query thing?

I have done everything that is stated in the installation of this hack... but I am confused when it comes to "DO THE FOLLOWING QUERY". I do this through phpmyadmin right?

#01 12-04-2002 07:50 AM

ok I'm sorry I got that working. But now I have another prob. When I activate the "Display directly for administrator or moderator or original poster" I am not able to view anybodys IP addresses at all. :(

Stadler 12-04-2002 12:40 PM

Maybe you just forgot to add the new template?
PHP Code:

###################################################
#--------==={ADD A NEW TEMPLATE CALLED}===--------#
###################################################

postbit_ip_link

###################################################
#----------==={PUT IN THE FOLLOWING}===-----------#
###################################################

IP: <a href="postings.php?s=$session[sessionhash]&action=getip&postid=$post[postid]">$post[ip]</a


#01 12-06-2002 10:30 AM

Nope. I did add that template. But it still won't work. :( It's just blank.


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.01032 seconds
  • Memory Usage 1,744KB
  • 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
  • (1)bbcode_code_printable
  • (2)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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