![]() |
Quick PM Sending (pop-up) v2
Quick PM Sending
--------------------------------------- Description: This hack normally adds an option in the menu when you click on an Username. When you click on it, vb will give you a pop-up with the content just like the page that you use to send a new PM with full functions as the original one, which is design for users with have to mass PM others in thread with different PM's content and that persons don't have to reload that thread again again each time, lessen time is lessen costed ;) You might find out its handy in someway. Updated: New newpm.php has cleared unwanted script and reduced extra queries when executing Security Fixed v2 includes pm sent with template and fixed security in newpm.php v2.01 includes new bug XSS found in vb 3.0.* refer to this announcement here https://vborg.vbsupport.ru/showthread.php?t=74035 *Thank Erwin for heads-up :) Note: If you want a better look for the page indicated your message has been sent then just see the pm_sent_with_template.txt file. ;) Installating Instruction & Screenshot are in attachments. Enjoy :) And don't forget to click install if you use this hack ;) |
this is pretty cool and useful.
*clicks install* :) |
It IS. Thanks ;)
|
excellent....installed perfectly :D thank you!!
|
Niceness.
/me clicks install |
Works well, thanks. *clicks install*
|
Great idea! Good work!
|
Quote:
|
Quote:
|
Hmm, so basically you've copied/pasted chunks of code from the private.php file? I'm not even sure that is allowed, but you might want to ask around just to make sure. :)
|
Quote:
|
Quote:
For instant, if i wanted to make the attachments in the new thread page instead of a popup and i just copyed /pasted chucks of the attachments.php file to the newthread.php file. That is not allowed? |
I did the modify to the code and left the copyright notice as you can see :)
|
This looks nice ;) I will go ahead and install this mod ;)
|
Sweet.
|
is it me or what? For some reason I don't have a newpm.php file anywhere, are you sure that's what the file is called?
|
It's(newpm.php) in my attachment at the first post, check it out ;)
|
2 issues:
1. You have not cached a LOT of templates causing 20 extra queries for no reason. You need to add these templates to be cached (including newpm - make that a global template to be cached, not an actiontemplate). Replace globaltemplates with these ones: PHP Code:
2. Get rid of the smilie panel by doing this: Find: PHP Code:
PHP Code:
|
Oh thank you Erwin, that would help :)
New newpm.php file updated ;) |
*theArchitect clicks install*.
A great hack. Very useful. And thankyou Erwin for your corrections. |
why would I get a javascript error in there? That happened why after I did a copy n paste
|
My problem is at line 116 character 2 object expected. Problem is that line is just plain html. But I could say that it pops up everytime I start typing in the editor's body textarea. Which function or which editor brings that up? And at what point? I am using the WYSIWYG
|
I found the reason... I installed the excellent character counter hack, so I needed to adjust your templates accordingly.
|
This hack has a potential huge security hole - there is no internal usergroup permission check, so unregistered members can use newpm.php to send PMs. :) I would add some sort of check in the newpm.php file itself, plus use templates to prevent unregistered users from accessing the link.
|
@erwin
if I put the below in newpm.php, will that be sufficient? if (!$vboptions['enablepms']) { eval(print_standard_error('pm_adminoff')); } // check permission to use private messaging if ($permissions['pmquota'] < 1 OR !$bbuserinfo['userid']) { print_no_permission(); } //check if the user will receive PMs if (!$bbuserinfo['receivepm']) { eval(print_standard_error('pm_turnedoff')); } |
Quote:
I've just logged out of my board and try to access /newpm.php?do=newwpm&userid=... and I get the page said needed to login, although I haven't changed anything from the one I posted here. :) |
that would not hurt to incorporate the above. It checks for quotas, pm enabled etc...
|
Quote:
Unregistered visitors on my site were sending PMs and it took us a day to figure out it was this hack. Serves me right for not checking the code properly. |
I changed the pmsent template a bit...
Code:
<script language="Javascript"> |
Erwin, I had the same problem. I had to add in..
Code:
if (!($permissions['forumpermissions'] & CANVIEW) OR ($bbuserinfo['userid'] == '0')) { |
You're right Erwin, I found it now, and newpm.php had been updated too, you can look through and check it yourself, thanks everyone for reporting. :)
|
IT works well for me, only 1 prob..
After i sent a pm, i get no "message succesfull", nothing.. after i send the pm, i get a blank page :S |
|
Nice, Installed
|
Installed and working sweet. Thanks :)
|
As per the private.php XSS loophole, you need to patch newpm.php as well or else you can be hacked.
Manual Patch Instructions In newpm.php, find the following: PHP Code:
BELOW it, add the following: PHP Code:
https://vborg.vbsupport.ru/showthread.php?t=74035 |
i noticed that when i select the quick pm link my curser is in the message box. i don't suppose there's a way to get the cursor in the title box first? seems it'd be a more appropriate place to start.
otherwise... great hack. thanks! |
/me loved it
|
Good job! :)
|
All times are GMT. The time now is 04:46 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|