PDA

View Full Version : Private message read reciept


Corriewf
01-18-2005, 01:18 AM
Anyone know how to get rid of this evil pop up box everytime a pm is sent?

Zachery
01-18-2005, 01:21 AM
Anyone know how to get rid of this evil pop up box everytime a pm is sent?
You try searching at vBulletin.com ;)

Corriewf
01-18-2005, 02:28 AM
No I figured they would refer me here.

Andreas
01-18-2005, 02:45 AM
I removed the poup and replaced it with a checkbox (for which a default can be set in User CP/ Edit Options / Messaging & Notifications.
But this does not qualify as a hack, it's a pure template modification.

Corriewf
01-18-2005, 01:54 PM
You mind posting that template edit?

Andreas
01-18-2005, 02:15 PM
Hmm, we use a very custom style that has almost nothing in common with the default style ^.^
Lemme check ...

In Template pm_newpm FIND and REMOVE

else if (formname.dopreview != true)
{
<if condition="$show['trackpm']">
if (confirm("$vbphrase[request_receipt_for_message]"))
{
formname.receipt.value = 1;
}
</if>
}


FIND and REMOVE

<input type="hidden" name="receipt" value="0" />


FIND

<div><label for="cb_parseurl"><input type="checkbox" name="parseurl" tabindex="1" $checked[parseurl] />$vbphrase[automatically_parse_links_in_text]</label></div>


BELOW that ADD

<if condition="$show[trackpm]">
<div><label for="cb_receipt"><input type="checkbox" name="receipt" value="1" id="cb_receipt" tabindex="1" <if condition="$bbuserinfo[fieldx]">checked="checked"</if> />$vbphrase[request_receipt_for_message]</div>
</if>


Where fieldx is the custom profile field for setting the default.

Corriewf
01-18-2005, 02:25 PM
AHH I had the first two figured out but didnt know where to add that code.Thank you very much.