- Moderated by:
- Support Team
-
- rank:
-
Helper
- registered:
- May 2003
- Status:
- offline
- last visit:
- 05.11.08
- Posts:
- 456
I am trying out this style switcher on the Gemini theme and it refuses to work!
I looked at the source code at markwests site and it is exactly as I have it, yet his works, and mine doesn't!
I can't seem to figure out why the exact same code will not work...
On theit just sticks the # at the end of the website URL and returns you to the top of the page like an anchor of sorts.Code
<a href="#" onclick="setActiveStyleSheet('daisyrae'); return false;">Daisy Rae</a>
hmm...
--
My PN's:
Health News
Canadian Domain Names
Free Press Releases
Politics Journal
-
- rank:
-
Helper
- registered:
- May 2003
- Status:
- offline
- last visit:
- 05.11.08
- Posts:
- 456
http://www.canadiandemocraticmovement.ca/
That's where we are trying it out. Would like to make three themes in the end - one stylish - one plain - and last one large type font for those that like that. (thought about CSS driven font size change - but thats for later...)
Thanks for looking
--
My PN's:
Health News
Canadian Domain Names
Free Press Releases
Politics Journal
-
- rank:
-
Helper
- registered:
- May 2003
- Status:
- offline
- last visit:
- 05.11.08
- Posts:
- 456
lol - I just don't get why it's not working... it's probably the most stupid thing but I can't find it - so who is the stupid one... hahah don't answer.
Anyways I did manage to add a header image swap from the Xanthia travelogue theme into the gemini theme. That at least went as planned! Have ten seperate images swaping there now. Down the road I would like to incorporate that idea further in that once I get the theme swap working - each theme will come with its own swapped header images - otherwise specific to the users theme choice.
For now back to hunting why this is not working...
--
My PN's:
Health News
Canadian Domain Names
Free Press Releases
Politics Journal
-
- rank:
-
Helper
- registered:
- May 2003
- Status:
- offline
- last visit:
- 05.11.08
- Posts:
- 456
Well I think my neighbours are afraid of me after hearing **&*^ and ^%$*+!! All night long...
Has anyone who is using this gemini theme for xanthia/postnuke got this theme style switcher to work? On threads about this theme everyone using it that I could find has disabled the theme switching, so there is only one working example I can find and that is Mark's but my code matches his line for line it would appear...
There is the wordpress community using this too, and looked over coding there as well, but it differs from the xanthia PostNuke one.
Someone throw this dog a bone!
--
My PN's:
Health News
Canadian Domain Names
Free Press Releases
Politics Journal
-
- rank:
-
Moderator
- registered:
- March 2002
- Status:
- offline
- last visit:
- 26.08.08
- Posts:
- 7720
I'd start with the base theme (rename the directory and upload - say gemini2) and see if this works - i'm afraid it's going to be a step by step process of elimination. Also try the theme on a base test site to verify that it works ok.
-Mark -
- rank:
-
Helper
- registered:
- May 2003
- Status:
- offline
- last visit:
- 05.11.08
- Posts:
- 456
Sounds like a solid plan. I will try it from scratch and even on a different server setup. Will report back the findings...
I was hoping for a - "oh i just found an extra space in...".
after all the headbanging done so far!
--
My PN's:
Health News
Canadian Domain Names
Free Press Releases
Politics Journal
-
- rank:
-
Helper
- registered:
- May 2003
- Status:
- offline
- last visit:
- 05.11.08
- Posts:
- 456
I tried it fresh on a different server and it still didn't work - same effect as I get now. I may have gotten a bad download as the javascript is setting off IE. I will download again and try once more. Failing that... could always do it the old fashioned way and install the theme a number of times. It would save me time on coding the CSS changes to reflect the header image swap per theme selection. If that makes any sense! LOL
--
My PN's:
Health News
Canadian Domain Names
Free Press Releases
Politics Journal
-
- rank:
-
Professional
- registered:
- December 2002
- Status:
- offline
- last visit:
- 24.08.08
- Posts:
- 1588
czardogs
Code
<a href="#" onclick="setActiveStyleSheet('daisyrae'); return false;">Daisy Rae</a>
This will not help your problem, but it is better, I think to call javascript functions like this:
Code
<a href="javascript:;" onclick="setActiveStyleSheet('daisyrae'); return false;">Daisy Rae</a>
buy doing this the user will not be "bounced" to the top of the page when they click on the link...
-Lobos
--
-Lobos
Professional PHP Framework Services: Concept, Development and Deployment -
- rank:
-
Helper
- registered:
- May 2003
- Status:
- offline
- last visit:
- 05.11.08
- Posts:
- 456
Thanks for reading my screed Lobos, I will give that a go as well.
--
My PN's:
Health News
Canadian Domain Names
Free Press Releases
Politics Journal
-
- rank:
-
Helper
- registered:
- May 2003
- Status:
- offline
- last visit:
- 05.11.08
- Posts:
- 456
Indeed doesn't help my situation any! Does stop the anchor type response but also comes up as "javascript is not a registered protocol". In the end same effect - doesn't work. (edit - my bad - missed a closing tag)
No biggy, we will just make it like different themes and make an old fashioned theme switcher, or from the user's account settings. i wish xanthia had a function like AutoTheme to set themes for dates. Better still it would be nice if both had a 'sniffer' that could detect browser settings and display the best theme for it.
Next up is to incorporate CSS driven font size change into the theme. Any hints Lobos as you are an expert theme builder and all...
--
My PN's:
Health News
Canadian Domain Names
Free Press Releases
Politics Journal
