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)

g-force2k2 08-20-2002 12:37 AM

ExAvIoUr did you make enable the usergroup to be able to post private text messages?

Schorsch :: thanks for telling me about that... i made it so that you can't edit your private text messages... because if a user trys something then they can't go back and edit it... the only users that can are the ones that can veiw all private text messages... but i will work on a quick fix for the problem about just simply editing :) thanks for bringing that to my attention...

g-force2k2

Boofo 08-20-2002 12:43 AM

Just curious, but xhouldn't there be a comma at the beginning of these lines?

Code:

// +++++++ Private Text Hack [ g-force2k2 ] +++++++
$templatesused.= "postbit_privtxt";
// +++++++ Private Text Hack [ g-force2k2 ] +++++++

like this?

Code:

// +++++++ Private Text Hack [ g-force2k2 ] +++++++
$templatesused.= ",postbit_privtxt";
// +++++++ Private Text Hack [ g-force2k2 ] +++++++


ExAvIoUr 08-20-2002 12:44 AM

I've fixed the problem and it worked like gem!

To all members who want to install this hack: make sure your new templates are NAMED correctly, with "Txt" not "text"...

g-force2k2 08-20-2002 12:53 AM

for the post editing part that Exaviour brought up try this code...

open editpost.php

find:

PHP Code:

// +++++++ Private Text Hack [ g-force2k2 ] +++++++
  
$DB_site->query("UPDATE post SET title='".addslashes(htmlspecialchars($title))."',pagetext='".addslashes($message)."',allowsmilie='$allowsmilie',showsignature='$signature',iconid='$iconid'$editedbysql$attachmentsql,dopriv=$dopriv,privuser='".addslashes($privuser)."',privmsg='".addslashes($privmsg)."' WHERE postid='$postid'");
// +++++++ Private Text Hack [ g-force2k2 ] +++++++ 

replace it with:

PHP Code:

// +++++++ Private Text Hack [ g-force2k2 ] +++++++
if($getperms[canviewprivtxt]) {
  
$DB_site->query("UPDATE post SET title='".addslashes(htmlspecialchars($title))."',pagetext='".addslashes($message)."',allowsmilie='$allowsmilie',showsignature='$signature',iconid='$iconid'$editedbysql$attachmentsql,dopriv=$dopriv,privuser='".addslashes($privuser)."',privmsg='".addslashes($privmsg)."' WHERE postid='$postid'");
} else {
  
$DB_site->query("UPDATE post SET title='".addslashes(htmlspecialchars($title))."',pagetext='".addslashes($message)."',allowsmilie='$allowsmilie',showsignature='$signature',iconid='$iconid'$editedbysql$attachmentsql WHERE postid='$postid'");
}
// +++++++ Private Text Hack [ g-force2k2 ] +++++++ 

can anyone confirm this one for me? thanks i advance :)

g-force2k2

g-force2k2 08-20-2002 12:55 AM

btw Boofo you're correct x_X...

im just a beginner at hacking and it shows :)

thanks for the info Boofo i will update the install shortly but just want to insure any other errors or such :)

g-force2k2

Boofo 08-20-2002 01:04 AM

The editing part you posted above doesn't work. Even as an Admin I can't edit it.

Boofo 08-20-2002 01:09 AM

Also, is there any way to have it so when you have the cursor in the private message box and you click on a smilie, it will add it to the private message instead of the regular message box? I have the code installed that I gave you in the pm already. :)

g-force2k2 08-20-2002 01:13 AM

Boofo does the box just now show up or does it just not edit?

And you can show the code here but i will add it to a new update when i finish sorting things out here ;)

g-force2k2

Boofo 08-20-2002 01:16 AM

The box shows up fine but you can't edit it with or without the new code you posted. It won't even do it with the old code in it. :)

Also, do you need to add "newreply_privtxt" to the templatedused in the newreply template? :)

Quote:

Originally posted by g-force2k2
Boofo does the box just now show up or does it just not edit?

And you can show the code here but i will add it to a new update when i finish sorting things out here ;)

g-force2k2


g-force2k2 08-20-2002 01:41 AM

Boofo the newrepy_privtxt shows n my templatesused ;)

btw send me your editpost.php

i just test and i can edit successfully and Exaviour the code that i stated above works like a charm :)

g-force2k2


All times are GMT. The time now is 08:48 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.01193 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
  • (2)bbcode_code_printable
  • (2)bbcode_php_printable
  • (1)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