![]() |
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')) { |
All times are GMT. The time now is 08:00 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|