Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Seeking applications ...
Author Message
Virgin_Steel
Worker
Worker



Joined: Sep 30, 2004
Posts: 108
Location: Sf

PostPosted: Fri Sep 23, 2005 1:54 pm Reply with quote

My site Header is using flash.But now i want to make a non-flash version.
So i don't know how to set cookies variables to use them in my theme.php

if ($flash) {

<object> bla bla
}
else {

<img>....
}

I was trying to find how Language cookies works in nuke, but with no success.I'll be very thankful if someone can help me to make this function for (Flash or No Flash).
I have made my Header non-flash with Fireworks so only left wat users to switch between them.
 
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number
phoenix-cms
Worker
Worker



Joined: Aug 05, 2005
Posts: 139

PostPosted: Fri Sep 23, 2005 2:25 pm Reply with quote

what theme are you using, i take a look at the flash elements and make then static image or advise you where possible

thanks

steve
 
View user's profile Send private message Send e-mail
Virgin_Steel







PostPosted: Fri Sep 23, 2005 3:25 pm Reply with quote

I've already made a static image instead of a flash.
Just want users to switch between them.
 
Virgin_Steel







PostPosted: Fri Sep 23, 2005 6:05 pm Reply with quote

Got little progress.
Put it in mainfile.php:
if (isset($nmode)) {
setcookie("mode",$nmode,time()+31536000);
$currentmode = $nmode;
}


In my theme.php > themheader() put global $currentmode
if ($currentmode == flash) {
echo "<object .........."</object>";
} else if ($currentmode == nflash){
echo "<img src=\"http://novavalna.org/nwdb1/themes/DeepBlue/images/head.jpg\" align=\"center\" border=\"0\" width=\"840\" height=\"130\">";
}
else {
echo "<object .........."</object>";
}


And two links:
<a href=\"index.php?nmode=nflash\">No Flash</a> | <a href=\"index.php?nmode=flash\">Flash</a>
If i set nmode = flash or nflash it works but when i open next page it doesnt remember $currentmode/$nmode variables ??

Where i'm wrong...i'm newbie to php?
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Seeking applications ...

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©