![]() |
Question.
Ok I installed the hack and it seems to be working well. But I have a q. When you send a pm, then delete it before they read it, it still shows up in the navabar as the user having a new pm. This is what it looks like: Welcome, Test User. You last visited: Today at 12:53 PM Private Messages: 1 Unread, Total 1. I can't seem to find away to clear that up. Any suggestions? |
Yup and I tried to finally found a fix:
change the original file edit to this: FILE EDITS: private.php **find PHP Code:
PHP Code:
Code:
UPDATE user SET pmunread=pmunread-1 WHERE userid='<<recipient>>'; HTH cheers |
Thank you EVER so much! :)
|
Nice one BeePee. :D
The $pm variable should however be sanitized to prevent a possible SQL injection. replace: PHP Code:
PHP Code:
|
Thanks m8 ;)
|
while doing the template edits I get this error in 3.0.6:
Quote:
Code:
eval('$devnull = "' . $template . '";'); |
does anyone know what the problem is? I find it odd that I am the first one to encounter this error, since I am adding this hack to a new forum without any other hacks installed. Is this a 3.0.6 incompatibilty issue?
|
What editor did you use to change the files?
|
Quote:
|
Please post a few lines before and after the line you posted above.
|
All times are GMT. The time now is 10:37 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:
|