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-20-2002 04:50 AM

Emtpy shell.

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

Sho please remove the editpost.php vbulletin rules say you can't attach full files... just warning you ahead of time man...

Boofo you're correct... remove that part...

find:

PHP Code:

  } else {
   
// +++++++ 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 with:

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 ] +++++++ 

that should do the trick nice eyes Boofo :)

g-force2k2

Jashugan 08-20-2002 05:02 AM

Sho and elyrain

dont attach these full file, pls delete it and PM to g-force. VB.org staffs are not allow it.

Sho 08-20-2002 05:18 AM

Done. I did not think - I am very sorry. Won't do it again.

Boofo 08-20-2002 05:20 AM

Here's what I have. What am I supposed to replace it with?

Code:

// +++++++ Private Text Hack [ g-force2k2 ] +++++++
if(($getperms[canviewprivtxt]) OR ($postinfo[username] == "$bbuserinfo[username]")) {
  $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 ] +++++++

And I can't delete the Edit admin options because that is for Xenon's hack. :)

g-force2k2 08-20-2002 05:32 AM

PHP Code:

//Admin Edit Hack  
  
if ($bbuserinfo[usergroupid] == 6) {
    
$datetime=mktime($datetime[hours],$datetime[minutes],0,$datetime[mon],$datetime[mday],$datetime[year])-3600*($bbuserinfo['timezoneoffset']-$timeoffset);
    
$DB_site->query("UPDATE post SET ipaddress='".addslashes($ipadd)."',dateline='$datetime',editable='$editable',userid='$userid',threadid='$pthreadid',title='".addslashes(htmlspecialchars($title))."',pagetext='".addslashes($message)."',allowsmilie='$allowsmilie',showsignature='$signature',iconid='$iconid'$editedbysql$attachmentsql WHERE postid='$postid'");
  } else {
// +++++++ Private Text Hack [ g-force2k2 ] +++++++
if(($getperms[canviewprivtxt]) OR ($postinfo[username] == "$bbuserinfo[username]")) {
  
$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 ] +++++++


try that Boofo if not i will look into it tomarrow... im out... peace

g-force2k2

Boofo 08-20-2002 06:27 AM

I'm sorry. maybe I missed something but that code looks exactly the same as the code I already have except that you added a } after it. The code I already have has one of those already there, I just didn't include it in the code I gave you. Sorry about that. :) Is there something different in the new code that I'm not seeing?

g-force2k2 08-20-2002 01:36 PM

yeah its the same as you probably had... just means that i have to make Xenon's double post hack compatible with this hack... just give me soemtime and i'll go about doing something of the sort ;)

g-force2k2

empreur76 08-20-2002 07:08 PM

hello !!

i'm install this hack but i have this mail !! !?
in showthread.php i think !

can you help me !?
thank
Invalid SQL:
SELECT
post.*,post.username AS postusername,post.ipaddress AS ip,user.*,userfield.*,icon.title as icontitle,icon.iconpath,
// +++++++ Private Text Hack [ g-force2k2 ] +++++++
post.dopriv AS dopriv, post.privmsg AS privmsg, post.privuser AS privuser,
// +++++++ Private Text Hack [ g-force2k2 ] +++++++
attachment.attachmentid,attachment.filename,attach ment.visible AS attachmentvisible,attachment.counter
,avatar.avatarpath,NOT ISNULL(customavatar.avatardata) AS hascustomavatar,customavatar.dateline AS avatardateline
FROM post
LEFT JOIN icon ON icon.iconid=post.iconid
LEFT JOIN user ON user.userid=post.userid
LEFT JOIN userfield ON userfield.userid=user.userid
LEFT JOIN avatar ON avatar.avatarid=user.avatarid
LEFT JOIN customavatar ON customavatar.userid=user.userid
LEFT JOIN attachment ON attachment.attachmentid=post.attachmentid
WHERE post.postid = '217'

mysql error: You have an error in your SQL syntax near '// +++++++ Private Text Hack [ g-force2k2 ] +++++++
post.dopriv AS dopriv' at line 4

mysql error number: 1064

Schorsch 08-20-2002 07:18 PM

lol empreur76 what the heck did u do ??

ExAvIoUr 08-20-2002 08:26 PM

Find in Showthread (Line 69):

Code:

SELECT
post.*,post.username AS postusername,post.ipaddress AS ip,user.*,userfield.*,icon.title as icontitle,icon.iconpath,
// +++++++ Private Text Hack [ g-force2k2 ] +++++++
post.dopriv AS dopriv, post.privmsg AS privmsg, post.privuser AS privuser,
// +++++++ Private Text Hack [ g-force2k2 ] +++++++
attachment.attachmentid,attachment.filename,attachment.visible AS attachmentvisible,attachment.counter
,avatar.avatarpath,NOT ISNULL(customavatar.avatardata) AS hascustomavatar,customavatar.dateline AS avatardateline
FROM post
LEFT JOIN icon ON icon.iconid=post.iconid
LEFT JOIN user ON user.userid=post.userid
LEFT JOIN userfield ON userfield.userid=user.userid
LEFT JOIN avatar ON avatar.avatarid=user.avatarid
LEFT JOIN customavatar ON customavatar.userid=user.userid
LEFT JOIN attachment ON attachment.attachmentid=post.attachmentid

replace with

Code:

        SELECT
        post.*,post.username AS postusername,post.ipaddress AS ip,user.*,userfield.*,".iif($forum[allowicons],'icon.title as icontitle,icon.iconpath,','')."
        // +++++++ Private Text Hack [ g-force2k2 ] +++++++
        post.dopriv AS dopriv, post.privmsg AS privmsg, post.privuser AS privuser,
// +++++++ Private Text Hack [ g-force2k2 ] +++++++
        attachment.attachmentid,attachment.filename,attachment.visible AS attachmentvisible,attachment.counter
        ".iif($avatarenabled,",avatar.avatarpath,NOT ISNULL(customavatar.avatardata) AS hascustomavatar,customavatar.dateline AS avatardateline","")."
        FROM post
        ".iif($forum[allowicons],'LEFT JOIN icon ON icon.iconid=post.iconid','')."
        LEFT JOIN user ON user.userid=post.userid
        LEFT JOIN userfield ON userfield.userid=user.userid
        ".iif ($avatarenabled,"LEFT JOIN avatar ON avatar.avatarid=user.avatarid
                              LEFT JOIN customavatar ON customavatar.userid=user.userid","")."
        LEFT JOIN attachment ON attachment.attachmentid=post.attachmentid

If that doesn't work, I don't know :( Just trying to suggest solutions.

Boofo 08-20-2002 11:11 PM

Actually, I think that has to do with Xenon's "Extra Edit Options for Admins" hack, if that helps at all. :)

Quote:

Originally posted by g-force2k2
yeah its the same as you probably had... just means that i have to make Xenon's double post hack compatible with this hack... just give me soemtime and i'll go about doing something of the sort ;)

g-force2k2


g-force2k2 08-21-2002 02:18 AM

empreur76

to solve the sql error simply just remove my coding slashes... for some reason on the second edit of the showthread for that query it will error out...

so just make this coding:

PHP Code:

// +++++++ Private Text Hack [ g-force2k2 ] +++++++
post.dopriv AS doprivpost.privmsg AS privmsgpost.privuser AS privuser,
// +++++++ Private Text Hack [ g-force2k2 ] +++++++ 

and change it to this:

PHP Code:

post.dopriv AS doprivpost.privmsg AS privmsgpost.privuser AS privuser

hoep that fixes your problem :)

g-force2k2

Odil 08-21-2002 01:29 PM

It's a great hack, I just want to know if it's possible to private message more than one person per message?

Odil

empreur76 08-21-2002 01:50 PM

ok very thanks !!
it's ok for me !!! but i have a question!!

only admin can make private message ! ?
i make change in usergroup for member but this don't work, the member can't make message !!
!?

g-force2k2 08-21-2002 02:44 PM

Quote:

Originally posted by Odil
It's a great hack, I just want to know if it's possible to private message more than one person per message?

Odil

No at the moment its only possible to private text message one person... but maybe in the near future i will make an addon to make this possible :)

empreur76 :: are you sure that everythign is correct? im trying to think of what could be wrong... just make sure that the usergroups are configured correctly... if not then i will do what i can to help ;)

g-force2k2

Odil 08-21-2002 06:32 PM

Hi again

I have noticed that in a few of my forums the private text box doesn't appear. There is no option to turn this on or off on each forum. Any ideas what can be wrong?

Odil

g-force2k2 08-22-2002 01:16 AM

No there isn't an option... but are you sure that you have the correct permissions? And is this for the adding or editing of the private text messages? Regards...

g-force2k2

Tim Wheatley 08-22-2002 06:58 PM

Ok it works, Sorry for the delay but the fixes in post 46 worked for me. Thank you. :)

Xenon 08-22-2002 07:10 PM

g-force: i have had a look at your code, everything seems ok, but may i suggest a optimization? (could perhaps also help with next version alowing more users to view...)

i see your privacy infos depent on the username, that's no problem as long as you don't change someones username because he want....

you should convert the username into the userid and just save the userid of the user a private message is shown, so he can always read the message, no matter if he changes his name somewhere in future.

as said this could help later also with adding more users to view this...

just a suggestion :)

g-force2k2 08-23-2002 12:51 AM

yeah Tim thanks for sharing :)

btw Xenon yeah i know exactly what you mean by the userid x_X should have thought about that ;) but thanks as always for giving me the input it is more then appreciated :)

g-force2k2

Boofo 08-31-2002 03:56 AM

g-force2k2, 2 quick questions for you. Did you ever get the problem figured out for me not being able to edit a private text message? And are you planning on doing an upfdate anytime soon with Xenon's suggestions from post #140?

g-force2k2 08-31-2002 04:13 AM

yeah Boofo... i believe i told you about the problem had the same think with the newreply.php about the Admin Quick Edit or something of that nature... as for Xenon's suggestion i will take it into consideration with my next version of this hack... just don't have enough on hand to make a second version yet... regards...

g-force2k2

Boofo 08-31-2002 04:20 AM

Ok, that's all I needed to know. I'll go ahead and uninstall this hack, too, since we can't get it to work and wait on any others you come up with until after version 3.0 comes out. I just don't seem to have very good luck with your hacks it seems. :)

Quote:

Originally posted by g-force2k2
yeah Boofo... i believe i told you about the problem had the same think with the newreply.php about the Admin Quick Edit or something of that nature... as for Xenon's suggestion i will take it into consideration with my next version of this hack... just don't have enough on hand to make a second version yet... regards...

g-force2k2


g-force2k2 08-31-2002 04:23 AM

heh... you're telling me Boofo :p but don't worry man we'll keep doing it over and over until something finally works out btw the two of us :p regards man...

g-force2k2

Boofo 08-31-2002 04:27 AM

I hope you don't think I blame you. I just have one of those setups that always seems to have problems. They usually get worked out in time, but with over 100 hacks installed, there are bound to be conflicts that don't seem worth the time for very many hack authors to fix. Maybe my site is telling me "enough hacks", you think? ;)

Quote:

Originally posted by g-force2k2
heh... you're telling me Boofo :p but don't worry man we'll keep doing it over and over until something finally works out btw the two of us :p regards man...

g-force2k2


Dark Shogun 10-18-2002 02:30 PM

g-force2k2 I get this error when I try to send a message. Do you know how I could possibly fix it?

Code:

Warning: Wrong parameter count for addslashes() in /web/blah/public_html/forum/newreply.php on line 378
Dark Shogun

Dark Shogun 10-18-2002 09:00 PM

Fixed

Dark Shogun

LangTuDaTinh 11-15-2002 11:37 PM

i must have did something wrong... when i try to edit my my thread, the username of the one i sent private text to is in the message form not in the username form.

please help

#01 12-11-2002 11:54 AM

Man this is one hell of a hack. Does a lot of code changes.

Is the newest version still under development? The one that allows you to show to certain groups?

Brain Crusher 02-09-2003 09:38 PM

Works also fine in 2.2.9 :)

Great Hack, but it will be more cool to write a private text to a few guys :)!

Brain Crusher 02-11-2003 04:47 PM

I added the quick reply and
also vB v2.2.6] Private Text Message Hack v1.0

now i want under the quick reply the private text message hack, any guy know what#?s must i make?

I search a quick private text hack :)!

Red Blaze 05-01-2003 03:43 PM

pretty big bump, but I need some help. :(

I'm using 2.2.9, but making a test run on 2.3.0.

I'm looking for

PHP Code:

   if ($parseurl) {
    
$message=parseurl($message);
  }
  
// remove sessionhash from urls:
  
$message=ereg_replace("&sessionhash=[a-z0-9]{32}","",$message);
  
$message=ereg_replace("\\?sessionhash=[a-z0-9]{32}","",$message);
  
$message=ereg_replace("&s=[a-z0-9]{32}","",$message);
  
$message=ereg_replace("\\?s=[a-z0-9]{32}(&)?","?",$message); { 

But all I can find is

PHP Code:

  if ($parseurl) {
    
$message=parseurl($message);
  }
  
// remove sessionhash from urls:
  
$message stripsession($message);

  if (
strlen($message)>$postmaxchars and $postmaxchars!=0) {
    eval(
"standarderror(\"".gettemplate("error_toolong")."\");");
  } 

Can someone help me?

Dark Shogun 05-20-2003 04:10 PM

Same here. I need help with 2.3.0. :)

Dark Shogun

Crank 01-27-2004 12:33 AM

would love to use this. does it work with 2.3.4?

Gio~Logist 11-10-2004 01:06 AM

is this hack made so that admins can see al private text? because if it isnt then everyone can private text other people like crazy spamming

Renada 03-05-2005 07:11 PM

Hi,

Does anyone know if this will work with 3.07?

Thanks,
Renada


All times are GMT. The time now is 01:15 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.01516 seconds
  • Memory Usage 1,865KB
  • 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
  • (4)bbcode_code_printable
  • (7)bbcode_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (37)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