Quote:
Originally Posted by venomx
So noone else has had this happen?
|
I see now. Thanks for the hint. The PM routines happen to use the same postbit templates that are also used by showthread (it never occured to me to check PM out). Your suggestion for an additional IF conditional is correct if you don't want to have ads shown in private messages.
I uploaded version 1.1 of this hack where ads are explicitely shown only in showthread instances. Upgrade instruction is included:
Quote:
If you plan on upgrading from 1.0 to 1.1 of this hack, you only need to edit your postbit templates.
In both postbit and postbit_legacy, find:
<if condition="($post['postid'] == $GLOBALS['FIRSTPOSTID']) AND (!$show['member'] OR $bbuserinfo[usergroupid] == 2)">
and replace it with:
<if condition="THIS_SCRIPT == 'showthread' AND ($post['postid'] == $GLOBALS['FIRSTPOSTID']) AND (!$show['member'] OR $bbuserinfo[usergroupid] == 2)">
Done.
|