Greenguy's Board


Go Back   Greenguy's Board > General Business Knowledge
Register FAQ Calendar Today's Posts

 
 
Thread Tools Search this Thread Rate Thread Display Modes
Prev Previous Post   Next Post Next
Old 2004-07-08, 11:33 AM   #5
Thiago Dickman
A woman is like beer. They look good, they smell good, and you'd step over your own mother just to get one!
 
Thiago Dickman's Avatar
 
Join Date: Nov 2003
Location: Sao Paulo, Brazil
Posts: 52
Send a message via ICQ to Thiago Dickman
You're right, that's possible... you can do it with PHP using a querystring on your URL. You'll need to add something like this somewhere on your gallery:

PHP Code:
<?php

// this checks if the "pop" querystring is available on the URL code. If if it, use it to determine if it should redirect or not; if it's not available, use no pop as default.
//If you want to use pop as default just change $pop = 0 to $pop =1 
if (isset($_GET['pop'])) { $pop $_GET['pop']; } else { $pop 0; }

// edit the urls here...
if ($pop == 0$gotourl "http://www.yourdomain.com/nopop.html";
if (
$pop == 1$gotourl "http://www.yourdomain.com/pop.html";

?>
Then on your link you will have something like this:

Code:
<a href="<?=$gotourl?>">Text</a>
All webmasters will need to do is adding a ?pop=0 suffix on the url if they don't want popups or 1 otherwise. Let's say your gallery is named gallery.php, so the two alternatives would be:

http://www.yourdomain.com/gallery.php?pop=0 (no popups)
http://www.yourdomain.com/gallery.php?pop=1 (with popups)

I'm pretty sure that will work even though I haven't tested the code above

Best Regards,

Thiago Dickman
__________________
work hard. play hard.

iCQ # 339924518
Thiago Dickman is offline   Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 10:55 PM.


Mark Read
Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
© Greenguy Marketing Inc