[Request] Notification after moderating thread
#31
Gotcha. Thanks guys. One more thing though.... (Don't worry about fixing it, I already restored the original file), I got this error on my site after I edited some of the messages sent by NAM:

Quote:Parse error: syntax error, unexpected '{' in /home/tmtarringer/schoolforums.org/html/inc/plugins/nam.php on line 119

Here is my edited nam.php file, can you please tell me how I screwed up? Any help you can provide is greatly appreciated. I didn't think that simply editing the message sent could cause trouble......

EDIT: Sure, sorry LeX-.


Attached Files
.php   nam.php (Size: 15.48 KB / Downloads: 80)
Tristan
Come talk about school, how to improve it, and just chill out here!
SchoolForums.org
Reply
#32
Can you attach it ? =P And delete this horrible long message ! =P
Reply
#33
Done. Again, sorry about that....
Tristan
Come talk about school, how to improve it, and just chill out here!
SchoolForums.org
Reply
#34
Why are you doing this all the time ?

Ex.

Code:
<i>" {$thread['subject']} "</i>

Delete those " "
Reply
#35
LeX- Wrote:Why are you doing this all the time ?

Ex.

Code:
<i>" {$thread['subject']} "</i>

Delete those " "

'cause you're supposed to put quotes around a title. I forgot that those are also used in php. Rolleyes My bad.
Tristan
Come talk about school, how to improve it, and just chill out here!
SchoolForums.org
Reply
#36
If you want to use them, you'll need to escape them.
Reply
#37
Great beta-mod Smile
I have problem with merging posts in the same topic. When I try to do this:

Code:
Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/public_html/inc/plugins/nam.php on line 242

Warning: Cannot modify header information - headers already sent by (output started at /home/public_html/inc/plugins/nam.php:242) in /home/public_html/inc/functions.php on line 570

What is wrong?
[Image: moderator-btn.png]
Reply
#38
dunno =P i've added a thing, can you try to new file ? Just reupload.
Reply
#39
LeX- Wrote:dunno =P i've added a thing, can you try to new file ? Just reupload.

Thanks, but in my nam.php a have a lot of polish modification... so, can you write here what did you update, which place? This will be very helpful Smile
[Image: moderator-btn.png]
Reply
#40
Find
Code:
function nam_mp($info)
{
    global $db, $mybb, $nam;
Add below
Code:
    $pm_pids = array();

Find
Code:
function nam_split($info)
{
    global $db, $mybb, $nam;
Add Below
Code:
    $pm_pids = array();
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)