geeky

themed pop ups

bubs from bubblessoc.net asked me this question. I thought i’d share the answer.

“How do you get your popups (ie: xchange) to match the current theme? Is it complicated coding or something you wrote yourself?”

This can be done regardless what theme script you are using. Usually your theme/skin script has a cookie variable. In my script, it’s $css, in some other scripts it could be $newskin. For my exchange popup, i made different popupheader.php and popupfooter.php in different theme folders. Then you include the header and footer in the popup page the same way you do for other pages.

For example for my “love” theme, I made
lovepopupheader.php
&
lovepopupfooter.php
in my themes/love folder

in my x.php
i just put
include($DOCUMENT_ROOT.”themes/$css/”.$css.”popupheader.php”);
&
include($DOCUMENT_ROOT.”themes/$css/”.$css.”popupfooter.php”);

Then the x.php file will change with different themes.

2 thoughts on “themed pop ups

  1. Thank you so very much! As soon as I get finished cleaning the house 😛 Im gonna give it a shot 😀 Hope you have a wonderful Christmas!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s