Happy Holidays Greeting in Members PM's
This modification is in the archives.
I put this little modification in for my members and they really liked it, so I thought I would share.
What this does is place a graphic of your choosing in your members private messages and it says "Happy Holidays, Username!" It will appear in messages they receive, see screenshot below. Of course you can change the greeting and image to anything. Depending on which postbit you use, here's instructions for both. In your postbit template, find this code: PHP Code:
<div style="margin-top: 10px" align="$stylevar[right]">
PHP Code:
<if condition="$_REQUEST['do'] == 'showpm'"><div style="float:left;line-height:32px;height;32px;vertical-align:middle;"><img src="./images/smilies/santa-1-icon.gif" alt="Happy Holidays, Forum Members!" align="left" style="margin:0 7px 0 0;"/><b><font color="red">Happy Holidays,</font></b> <b><font color="green">$bbuserinfo[username]!</font></b></div></if>
In your postbit_legacy template, find this code: PHP Code:
<td class="alt1" align="$stylevar[right]" style="border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-left: 1px solid #f8f5e9">
PHP Code:
<if condition="$_REQUEST['do'] == 'showpm'"><div style="float:left;line-height:32px;height;32px;vertical-align:middle;"><img src="./images/smilies/santa-1-icon.gif" alt="Happy Holidays, Forum Members!" align="left" style="margin:0 7px 0 0;"/><b><font color="red">Happy Holidays,</font></b> <b><font color="green">$bbuserinfo[username]!</font></b></div></if>
Be sure to upload your graphic to the smilies folder, I got my Santa smiley from http://www.iconarchive.com/category/christmas/christmas-smilies-icons-by-live-pencil.html. You can of course change the greeting and colors in the code above to anything you like. This is my first time sharing so if I've not covered anything, please let me know. Download No files for download. Screenshots |
Similar Mods
Happy Holidays! | vBulletin 3.6 Styles |