PDA

View Full Version : Happy Holidays Greeting in Members PM's


Kalina
12-12-2006, 10:00 PM
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:

<div style="margin-top: 10px" align="$stylevar[right]">

Beneath it, paste the following:

<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>

SAVE!

In your postbit_legacy template, find this code:

<td class="alt1" align="$stylevar[right]" style="border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-left: 1px solid #f8f5e9">
</if>

Beneath it, paste the following 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>

SAVE!

Be sure to upload your graphic to the smilies folder, I got my Santa smiley from this site (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.

Kalina
12-13-2006, 06:19 AM
If you use it, please click installed. Thanks!

Cornie
12-13-2006, 07:03 AM
Thanks, is install

Feckie (Roger)
12-13-2006, 07:50 AM
Nice Touch

installed

basilrath
12-13-2006, 09:28 AM
lovely idea but "happy holidays" is so naff happy christmas is the only thing !

CHRISTMAS !

nice little touch tho

Darat
12-13-2006, 03:06 PM
A neat little mod - I'm going to use it to insert a small advert for some forum t-shirts we've just started selling!

iran.gs
12-13-2006, 03:39 PM
Nice Job Installed

Kalina
12-13-2006, 08:12 PM
lovely idea but "happy holidays" is so naff happy christmas is the only thing !

CHRISTMAS !

nice little touch tho

Not to me, I don't feel right saying Christmas well before the actual date. Right near Christmas I will change mine to "Merry Christmas" :D

Glad you all liked it. :)

Ramsesx
12-14-2006, 02:03 PM
Nice idea, will use it on christmas, thanks.

thelittleguy
12-15-2006, 07:42 PM
it keeps showing up as a rex X in a box

Kalina
12-15-2006, 08:21 PM
Then you have not uploaded an image, or didn't upload it to the right spot, or need to change it's name to reflect the name of the image you're using.

I have it like so in the code above, ./images/smilies/santa-1-icon.gif

If that's not the same info as your own personal icon, adjust it accordingly.

thelittleguy
12-15-2006, 11:28 PM
Then you have not uploaded an image, or didn't upload it to the right spot, or need to change it's name to reflect the name of the image you're using.

I have it like so in the code above, ./images/smilies/santa-1-icon.gif

If that's not the same info as your own personal icon, adjust it accordingly. meh never could get the image to show up so I just took out the image code line and left the rest of the script and added my own text


all good thoe great hack will come in handy for future events
:)

kether1
12-16-2006, 01:34 AM
This works very well in my forum! Thanks for your creative work! After the holidays I will find another use for this wonderful hack!

Regards,
Kether

rezapci
12-17-2006, 06:21 AM
Hot Dog, Installed :D

alawee.blawee
12-17-2006, 10:22 AM
cooool

Installed thx

sunnycher
12-17-2006, 02:29 PM
Kalina,
I like this!!
Thank you!