vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=192)
-   -   Happy Holidays Greeting in Members PM's (https://vborg.vbsupport.ru/showthread.php?t=133880)

Kalina 12-12-2006 10:00 PM

Happy Holidays Greeting in Members PM's
 
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]"

Beneath it, paste the following:

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> 

SAVE!

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">
    </if> 

Beneath it, paste the following code:

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> 

SAVE!

Be sure to upload your graphic to the smilies folder, I got my Santa smiley from this site.

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

Quote:

Originally Posted by basilrath (Post 1137658)
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

Quote:

Originally Posted by Kalina (Post 1139356)
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!


All times are GMT. The time now is 04:08 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01709 seconds
  • Memory Usage 1,759KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (16)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete