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)
-   -   Private Text Message Hack v1.0 (https://vborg.vbsupport.ru/showthread.php?t=42444)

Sho 08-18-2002 10:55 PM

Well, I give up. Doesn't work either way.

Gonna uninstall this hack now & wait for a cleaned up and *working* version.

g-force2k2 08-18-2002 10:58 PM

umm... its working O_o

the screenshots show its working... my forum shows its working...

i can only give so much support... but it might have something to do with other hacks you have installed...

what others do you have?

g-force2k2

Sho 08-18-2002 11:00 PM

Nope, it's not. I log out, I can see all private messages. "Can view all private text messages" for usergroup "Unregistered / Not Logged In" is set to no. According to my database, "canaddprivtxt" is set to 1 for all usergroups I'm interested in, yet usergroup.php shows no. "canviewprivtxt" is set to 0 for all usergroups but 6 ("Administrators"), yet a guest can see all private texts. I just rechecked all file changes again. I'm going crazy. ;)

Sho 08-18-2002 11:06 PM

I have installed Post Counter & Direct Link (change to showthread.php - probably significant?), NewStatistikHack 1.2.1e (change to newreply.php, among others). There are others, but none of them touches any of the files or tables I had to modify for your hack.

g-force2k2 08-18-2002 11:47 PM

okay Sho im really really sorry ;\ i just overlook such easy things... last fix i promise... just make these two edits...

open showthread.php

find:

PHP Code:

// +++++++ Private Text Hack [ g-force2k2 ] +++++++
if(!$getperms['canviewprivtxt']) {
  
$viewprivtxt=0;
}
// +++++++ Private Text Hack [ g-force2k2 ] +++++++ 

and replace that with:

PHP Code:

// +++++++ Private Text Hack [ g-force2k2 ] +++++++
if($getperms['canviewprivtxt']) {
  
$viewprivtxt=1;
}
// +++++++ Private Text Hack [ g-force2k2 ] +++++++ 

it appears twice... and i swear... no joking it'll work :)

g-force2k2

Sho 08-18-2002 11:50 PM

Gonna try it, hold on

Sho 08-18-2002 11:54 PM

I'm sorry g-force2k2, but still ... log in as A, attach a private text to B to a reply, log out, visit the thread as a guest ... and there is the private text to B. Doesn't work. :(

g-force2k2 08-18-2002 11:56 PM

Sho email me your showthread.php and i will debug if for you and send it back aight?

g-force2k2

Sho 08-18-2002 11:58 PM

No, this time it was my fault! Forgot to delete those "!" in front of "$getperms", just looked at the 0/1 difference. I guess we both overlook the easy things. ;)

Seems to work now!

g-force2k2 08-19-2002 12:06 AM

:D thats great to hear Sho ^^ sorry for all the trouble... but if its working then thats the best thing i could ask for :)

g-force2k2


All times are GMT. The time now is 12:39 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.01131 seconds
  • Memory Usage 1,739KB
  • 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_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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