Poll

What do you think about this  hack ?

Great! i want the same at home.
I like the idea.
I like the idea but not the realization.
I do not like this idea.
It is very bad.

Author Topic: [HACK] Many More colors with only ONE template  (Read 60253 times)

0 Members and 1 Guest are viewing this topic.

Offline Acidgod

  • 4images Moderator
  • 4images Guru
  • *****
  • Posts: 2.421
  • It's me?
    • View Profile
    • Flash-Webdesign
Re: [HACK] Many More colors with only ONE template
« Reply #45 on: November 07, 2005, 11:14:15 PM »
also ich kwerde für heute schluss machen, wenn dir bis morgen niemand helfen konnt schaue ich nochmal...

Offline ch€ri{Bi}²

  • Sr. Member
  • ****
  • Posts: 315
  • A PRoBLeM wIthOUt SoLuTioN Is NoT rEAllY a PRoBLeM
    • View Profile
    • Pat's Gallery
Re: [HACK] Many More colors with only ONE template
« Reply #46 on: November 08, 2005, 03:01:10 AM »
Allerdings habe ich keinen Cookie der mit 4images_ anfängt....
I do not speak this language   :oops:  but according to what I understood (and what I saw on your site),it does not work for you and you don't find the cookie...

this code:
Code: [Select]
$cookie_name = (defined("COOKIE_NAME")) ? COOKIE_NAME : "4images_"; checks if the name of the cookie were already defined. 
if it is true, the cookie will use this name ( => it's your case.)
if it is false, a new name (in this code 4images) is defined for a new the cookie.

 :arrow:  the problem is as follows:  when you refresh or load a new page, it is not possible to know which style to use in your page because the information about the style is not stored in your cookie(you should find in your cookie an item called 4images_design, but...no trace )... then default style is used.

 :?: can you reach the logs of your php server and if so, can you find errors about cookies creation (or writing) about the creation/update line?

ch€ri{Bi}²


Offline JensF

  • Addicted member
  • ******
  • Posts: 1.028
    • View Profile
    • http://www.terraristik-galerie.de
Re: [HACK] Many More colors with only ONE template
« Reply #47 on: November 08, 2005, 03:09:33 PM »
hhmm, i have nothing about an error of a cookie in my log file.... :(
Mit freundlichem Gruß
Jens Funk



-> Sorry for my bad English <-

Offline Acidgod

  • 4images Moderator
  • 4images Guru
  • *****
  • Posts: 2.421
  • It's me?
    • View Profile
    • Flash-Webdesign
Re: [HACK] Many More colors with only ONE template
« Reply #48 on: November 08, 2005, 03:54:27 PM »
nicht in den access log schauen, du musst dann auch im error log schauen... (o:

Ist jetzt nur eine Vermutung...

Offline JensF

  • Addicted member
  • ******
  • Posts: 1.028
    • View Profile
    • http://www.terraristik-galerie.de
Re: [HACK] Many More colors with only ONE template
« Reply #49 on: November 08, 2005, 09:18:51 PM »
nicht in den access log schauen, du musst dann auch im error log schauen... (o:

Ist jetzt nur eine Vermutung...

Hab ich doch. Kann bei meinem Anbieter in Logfiles gehen und dann das laufende Error Logfile ansehen oder die letzten 10 Error Logs.

Wie müsste denn die Fehlermeldung ungefähr aussehen???
Mit freundlichem Gruß
Jens Funk



-> Sorry for my bad English <-

Offline JensF

  • Addicted member
  • ******
  • Posts: 1.028
    • View Profile
    • http://www.terraristik-galerie.de
Re: [HACK] Many More colors with only ONE template
« Reply #50 on: November 09, 2005, 09:29:19 PM »
hhmmm, no one can help me?!

I deinstall this Mod :(

Mit freundlichem Gruß
Jens Funk



-> Sorry for my bad English <-

Offline impss

  • Sr. Member
  • ****
  • Posts: 382
    • View Profile
    • Cusstom.net
Re: [HACK] Many More colors with only ONE template
« Reply #51 on: February 05, 2006, 02:32:40 AM »
cheribibi

Say someone has selected a Color, and they have it saved in there cookie. And you want to get rid of that template.
They next time they comeback to the site, it will be messed up , because the css is no longer there.

Is there a way so that the defualt shows , if the one they had seleted is no longer avaliable.


Thanks for your help, this is one of my favorite mods
This mod should be made a sticky

Offline ch€ri{Bi}²

  • Sr. Member
  • ****
  • Posts: 315
  • A PRoBLeM wIthOUt SoLuTioN Is NoT rEAllY a PRoBLeM
    • View Profile
    • Pat's Gallery
Re: [HACK] Many More colors with only ONE template
« Reply #52 on: February 05, 2006, 02:52:32 PM »
well,  2 things about it :

  • if you are talking about a template modification :
don't worry about it since you did not make the modification in header.html file (see STEP 2) in the new template. the script will use  the default value (style.css).

  • now, if you speak about the removal of a stylesheet file :
:? thank you to point this dysfunction...
There is something which misses in the original publication in connection with the checking of the presence (or not) of the css file chosen by the user (  :arrow: if the stylesheet is not found, it shows no style, just html text... dirty page  :evil:).

 :idea: here the code to repair this:

In STEP 1, replace this code :
Quote
$mycss = $design.'.css';
by this one :
Code: [Select]
$mycss = (in_array ($design, $list_css))? $design.'.css' : 'style.css'; //style.css is the default style in 4images : try to keep it unchanged in your tempalte directory

You should be sure that the style.css file is present in the directory  :wink:
Original code updated.
ch€ri{Bi}²


Offline impss

  • Sr. Member
  • ****
  • Posts: 382
    • View Profile
    • Cusstom.net
Re: [HACK] Many More colors with only ONE template
« Reply #53 on: February 05, 2006, 10:37:38 PM »
THanks cheribibi

That did it  8)

rinaldos

  • Guest
Re: [HACK] Many More colors with only ONE template
« Reply #54 on: February 24, 2007, 10:20:01 PM »
Thanks for this nice colorfull MOD :-)

It works on my Website :-)

Greetings
Ingo

Offline m.a

  • Jr. Member
  • **
  • Posts: 83
    • View Profile
Re: [HACK] Many More colors with only ONE template
« Reply #55 on: February 27, 2008, 06:46:19 AM »
Hi Acidgod,
Es gibt ein Problem, wenn auf der Seite verschiedene Sprache instaliert sein!
Nämlich:
Die Seite kehrt immer auf default-Sprache zurück, wenn man Farb-Änderung b.z.w Style.css wechselt.
Hast du auch das Problem?

Danke dir im Voraus
m.a




nicht in den access log schauen, du musst dann auch im error log schauen... (o:

Ist jetzt nur eine Vermutung...