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-19-2002 12:07 AM

Tested it with a few members and across all usergroups, works great now. Thanks!

Jashugan 08-19-2002 12:40 AM

Thanks G-force for hard work and fix it up :)

[high]* Jashugan install![/high]

Tim Wheatley 08-19-2002 12:44 AM

Doesn't work here.

Firstly, whenever I change permissions I do so, go back to check and they've gone back to the original (off) setting.

Even when I do click on then don't go back in, I (admin) can view all of them (as I should), so can the person I send it to (as he should), but unfortunately when each of us logs out of the board we can still read it... :(

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

Tim there's two changes that you need to make...

A)

open admin/usergroup.php

find:

PHP Code:

$cannviewprivtxt 

it should be:

PHP Code:

$canviewprivtx 

B)

open showthread.php

find:

PHP Code:

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

should find it twice and replace them both with:

PHP Code:

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


I await to hear good news from you too Tim :)

g-force2k2

Sho 08-19-2002 12:49 AM

@Tim Wheatley:

First open your modified usergroup.php.

Replace

PHP Code:

makeyesnocode("Can add private text messages","canaddprivtxt",$usergroup[cannaddprivtxt]); 

with

PHP Code:

makeyesnocode("Can add private text messages","canaddprivtxt",$usergroup[canaddprivtxt]); 

---

Now, open your modified showthread.php. When you first modified it, you inserted the following two times:

PHP Code:

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

Replace both with:

PHP Code:

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

Now everything should work.

Sho 08-19-2002 01:00 AM

@Boofo: See step 3 and step 6 for showthread.php in your install_privatetext.php.

Boofo 08-19-2002 01:04 AM

Thanks. I just found that about 2 seconds after I posted the message that I just deleted. :)

Quote:

Originally posted by Sho
@Boofo: See step 3 and step 6 for showthread.php in your install_privatetext.php.

g-force2k2 08-19-2002 01:08 AM

my posts though the quick reply keep timing out x_X then i saw that Boofo's post disappeared so i guess it doesn't matter now xD

g-force2k2

Sho 08-19-2002 01:08 AM

Quote:

Thanks. I just found that about 2 seconds after I posted the message that I just deleted. :)
Happens. ;)

Boofo 08-19-2002 01:16 AM

Sorry about that. I erased it after I found the second instance of code. It was formatted different in my showthread.php so I had to search for a single line. I felt kind-of stupid and thought I could erase it before anyone caught it. :)

My ISP has been down since about 1/3 into this hack. I had just uploaded the newreply (before the added change which I have to do when I can get the site back online) and just got done with the showthread.php and was uploading it when the site went down. Now, I have made the changes to it and am just waiting for the site to come back up so I can finish the hack. I'm in a holding pattern, I guess you could say. :)

g-force2k2, I may need your assistance when I finish this in case I got something wrong in the middle of all of this. Having a site go down in the middle of a hack can be quite frustrating, especially when there are changes made during that time. :)

Quote:

Originally posted by g-force2k2
my posts though the quick reply keep timing out x_X then i saw that Boofo's post disappeared so i guess it doesn't matter now xD

g-force2k2



All times are GMT. The time now is 09:55 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.01316 seconds
  • Memory Usage 1,753KB
  • 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
  • (8)bbcode_php_printable
  • (3)bbcode_quote_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