WNxWakko |
01-13-2006 01:54 AM |
Few more things. I noticed when you edit a post using the ajax editing, when you save all the rep images disappear. So you need to add editpost in your array also.
Quote:
if(in_array(THIS_SCRIPT, array('showthread','showpost','memberlist','member ','private','newreply',editpost)))
|
Also as a suggestion, I would recommend rather than an array, a comparison as its faster. I have a large board so optimization is important.
If you change what I posted right above with this it will be faster,
Quote:
if ((THIS_SCRIPT == 'showthread') OR (THIS_SCRIPT == 'showpost') OR (THIS_SCRIPT == 'memberlist') OR (THIS_SCRIPT == 'member') OR (THIS_SCRIPT == 'ajax') OR (THIS_SCRIPT == 'private') OR (THIS_SCRIPT == 'newreply') OR (THIS_SCRIPT == 'editpost'))
|
|