PDA

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


Kalina
13 Dec 2006, 07:19
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
13 Dec 2006, 07:19
If you use it, please click installed. Thanks!

Cornie
13 Dec 2006, 08:03
Thanks, is install

Feckie (Roger)
13 Dec 2006, 08:50
Nice Touch

installed

basilrath
13 Dec 2006, 10:28
lovely idea but "happy holidays" is so naff happy christmas is the only thing !

CHRISTMAS !

nice little touch tho

Darat
13 Dec 2006, 16:06
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
13 Dec 2006, 16:39
Nice Job Installed

Kalina
13 Dec 2006, 21:12
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
14 Dec 2006, 15:03
Nice idea, will use it on christmas, thanks.

thelittleguy
15 Dec 2006, 20:42
it keeps showing up as a rex X in a box

Kalina
15 Dec 2006, 21:21
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
16 Dec 2006, 00:28
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
16 Dec 2006, 02:34
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
17 Dec 2006, 07:21
Hot Dog, Installed :D

alawee.blawee
17 Dec 2006, 11:22
cooool


Installed thx

sunnycher
17 Dec 2006, 15:29
Kalina,
I like this!!
Thank you!