Quote:
Originally Posted by .Tim
Would be nice if this could be made optional, so the user could decide if they wanted it on or not.
|
Just figured out how:
1) Go to admincp and create a new profile field. Choose Multiple-Selection Checkbox. Fill in the details and then choose where you want to appear, I chose Options: Messaging / Notification
2) And then replace either the original code or the hack code if you already did this with (change the xx after field to whatever your field number is):
Code:
<if condition="($vbulletin->userinfo['fieldxx'] == 'Yes')">
<td class="alt1Active" id="m$pm[pmid]" width="100%">
<div>
<span style="float:$stylevar[right]" class="time" style="font-size:9px;">$pm[senddate] @ $pm[sendtime]</span>
<a href="private.php?$session[sessionurl]do=showpm&pmid=$pm[pmid]"><if condition="$show['unread']"><strong>$pm[title]</strong><else />$pm[title]</if></a> (<if condition="$show['unread']"><strong>$userbit</strong><else />$userbit</if> )
</div>
<div class="smallfont">
<i>$pm[pmpreview]</i>
</div>
</td>
<else />
<td class="alt1Active" id="m$pm[pmid]" width="100%">
<div>
<span style="float:$stylevar[right]" class="smallfont">$pm[senddate]</span>
<a href="private.php?$session[sessionurl]do=showpm&pmid=$pm[pmid]"><if condition="$show['unread']"><strong>$pm[title]</strong><else />$pm[title]</if></a>
</div>
<div class="smallfont">
<span style="float:$stylevar[right]" class="time">$pm[sendtime]</span>
<if condition="$show['unread']"><strong>$userbit</strong><else />$userbit</if>
</div>
</td>
</if>
Don't know if that was the best way to do it but it worked for me.