The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Private Text Message Hack v1.0 Details »» | |||||||||||||||||||||||||
As requested [ Here ]
Please download the fixed attachment located [ Here ] If you've downloaded this hack before the redownload it or make the changes below... else the hack won't work... that should be it Unfortunately FireFly didn't have the time to make the hack so i took it up on my own Hope that you enjoy it... here's the breakdown... screenshots will be included below Private Text Hack v1.0 Hack created g-force2k2 Sunday August 18th, 2002 vbulletin 2.2.6 Please don't edit this hack if you need any assistance refer to the thread. If you have any problems please refer to the thread. // ++++++++++++++ To Do // ++++++++++++++ Queries to Run (6) File Modifications (28) newreply.php (8) showthread.php (6) editpost.php (8) admin/functions.php (2) admin/usergroup.php (4) Templates to Add (8) Templats to Edit (3) What does this hack do? // ++++++++++++++ It allows your users to private text each other within a post. It still maintains a regular post. but allows an option to private text other users. You can choose which usergroupcs can add private text messages and which groups can see them. But unless a usergroup is allowed to view no other user will be able to view it except the user recieving and the user posting. Enjoy this hack It's really a good addition to keep things smart. The usergroups options can be edited in the admin cp usergroup.php And the private text length can also edited in the vbulletin options in admin cp under thread options. The private text messages work with bbcode... smilies... and disables html etc... same as a regular message would work. Also maintains the same image count... so if you have your image set at 5 per post and the user tries 3 in a post and 3 in the private text message they will get the images error The private text messages can be edited the same way as a post, but when quoting they're bypassed. Hopefully you'll enjoy this hack as much as i did making it If you like it please click on the install thanks [ g-force2k2 ] For editpost.php change view this post https://vborg.vbsupport.ru/showthrea...518#post287518 For another editpost.php change view this post https://vborg.vbsupport.ru/showthrea...633#post287633 For enabling users to edit their own private text messages view this post https://vborg.vbsupport.ru/showthrea...651#post287651 g-force2k2 Show Your Support
|
Comments |
#132
|
|||
|
|||
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 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 |
#133
|
||||
|
||||
Actually, I think that has to do with Xenon's "Extra Edit Options for Admins" hack, if that helps at all.
Quote:
|
#134
|
|||
|
|||
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:
PHP Code:
g-force2k2 |
#135
|
|||
|
|||
It's a great hack, I just want to know if it's possible to private message more than one person per message?
Odil |
#136
|
|||
|
|||
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 !! !? |
#137
|
|||
|
|||
Quote:
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 |
#138
|
|||
|
|||
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 |
#139
|
|||
|
|||
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 |
#140
|
||||
|
||||
Ok it works, Sorry for the delay but the fixes in post 46 worked for me. Thank you.
|
#141
|
||||
|
||||
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 |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|