11
ghia
Re: Need help from a PHP expert
  • 2010/2/12 11:36

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


Don't see this here (FF 3.6 or IE6). When I select one eg giana-monday, it stays when I click FAQ, Movies, Forum, etc.
(I have not .org but .ath.cx in my URL)
Check your cookie settings.

12
bjuti
Re: Need help from a PHP expert
  • 2010/2/12 11:44

  • bjuti

  • Just can't stay away

  • Posts: 871

  • Since: 2009/1/7 2


Quote:
bjuti: Nice, You should install the Winuae Amiga emulator so you can enjoy these old classic games again


Hhhe, I did and still have. My old harddrive is connected and I'm running my old system

13
hipoonios
Re: Need help from a PHP expert
  • 2010/2/12 11:51

  • hipoonios

  • Friend of XOOPS

  • Posts: 298

  • Since: 2005/9/24


It ALMOST does every time for me. Tested in both IE8 and FF 3.6.

I clear my cookies of course before testing.

Try this:

1. Select a logo
2. Go to another module page
3. select another logo again
4. go back to the the other module page.

This way i can set a new logo for every page

14
hipoonios
Re: Need help from a PHP expert
  • 2010/2/12 12:18

  • hipoonios

  • Friend of XOOPS

  • Posts: 298

  • Since: 2005/9/24


Ok, I think I know why it happens.

The path for the cookie is modules/news2

If I change logo from a normal page (root) page then it works.

Resized Image

Now the problem is to find out how the path should always be '/' and not modules/news etc..

15
ghia
Re: Need help from a PHP expert
  • 2010/2/12 13:15

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


Try changing
((expiredays==null) ? "" ";expires="+exdate.toGMTString());

to
((expiredays==null) ? "" ";expires="+exdate.toGMTString())+
";path=/";

16
hipoonios
Re: Need help from a PHP expert
  • 2010/2/12 13:38

  • hipoonios

  • Friend of XOOPS

  • Posts: 298

  • Since: 2005/9/24


It works!!! Thanks again for being so helpful!

17
ghia
Re: Need help from a PHP expert
  • 2010/2/12 13:49

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


Added it also in the code.

18
hipoonios
Re: Need help from a PHP expert
  • 2010/3/14 10:53

  • hipoonios

  • Friend of XOOPS

  • Posts: 298

  • Since: 2005/9/24


Sorry for taking up this topic again. But now I have 14 logos. But a week only have 7 days. And I want all logos rotating. Is it possible to modify the script to do that?

19
hipoonios
Re: Need help from a PHP expert
  • 2010/3/20 19:01

  • hipoonios

  • Friend of XOOPS

  • Posts: 298

  • Since: 2005/9/24


Bump.

I would be really happy if someone could help me with this. Thanks.

20
ghia
Re: Need help from a PHP expert
  • 2010/3/22 9:04

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


Try by using
$today=date(z)%14;

and by replacing the naming of the days from Monday to Sunday with 0 to 13.

Login

Who's Online

67 user(s) are online (38 user(s) are browsing Support Forums)


Members: 0


Guests: 67


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits