Theme changer
|
Posted
#83005
(In Topic #17281)
|
|
|---|---|
|
Community saint |
needs a little work but so far so goodonce I had it working okay I wondered why OCPortal doesn't have one already, seems like it should to me, but I aint no coder and I have no idea to make it automatically add new links as and when new theme get installed on the site. Presently I have to add new themes manually, not a big deal for me but if anything for OCPortal should ideally function automatically. Thought I would toss it in the pot for others to consider, perhaps the dev's could consider it too. Any way, this is my hack attempt at making a theme changer, no laughing, I know it's crude but I am quite pleased with it myself. Code
<div>
You can see it on my site, it only sends you to the default theme at the moment, I haven't added the code to the default theme as I don't want to change anything there for upgrade purposes, but it works!
Metal IS Forever & We WILL Rock You 'til You Choke! Rock Babe
|
|
Posted
|
|
|
Community saint |
It works great! I see your point though, about the inconvenience of having it hard coded for each new theme. I was trying to find how ocPortal does it with the theme changer in the "Edit profile", but I can't find its template and the "Show template edit links" does not seem to work on that page. This might be a good source to look for. Love how you keep pursuing interesting angles! Jean |
|
Posted
|
|
|
Community saint |
oddly I cannot find a theme selector in the edit profile, not here or on my own site, I have looked for a setting I must have missed but haven't found anything!
Metal IS Forever & We WILL Rock You 'til You Choke! Rock Babe
|
|
Posted
|
|
|
Community saint |
Ah yes, it is not there by default…I forgot about that! To activate this feature, do the following: Admin Zone » Structure » Zones » Choose » Edit zone (do this for the zones where you want to allow members to change themes) For the Theme options: Select "Respect member settings" Note: The viewing member must have access to view these themes (by default any new theme does have full access) Jean |
|
Posted
|
|
|
Community saint |
~~~~~~~~~~~~ edited ~~~~~~~~~~~~~~~~~~~~~ Hmmmmmm, seems I am jumping the gun a little here, my search results say I need to be looking in one of these: » default/templates/CHAT_SET_EFFECTS_SETTING_BLOCK.tpl » default/templates/FORM_SCREEN_FIELD.tpl » default/templates/FORM_SCREEN_INPUT_HUGE.tpl » default/templates/FORM_SCREEN_INPUT_HUGE_COMCODE.tpl » default/templates/FORM_SCREEN_INPUT_HUGE_LIST.tpl I'm looking in them now and it might as well be written in Martian for all I care, I have no idea what these templates are going on about! ~~~~~~~~~~~ edited ~~~~~~~~~~~~~~~~~~~~~~~~~~~ Okay, further deduction, FORM_SCREEN_INPUT_HUGE_LIST.tpl is the one that has a 'select' thingie going on so I am going to go with that one for now, just wish I had a clue what it was saying is all! :( Not liking your silence Chris, I bet you knew straight away which template we had to find huh! ~~~~~~~~~~~~~~~ edited ~~~~~~~~~~~~~~~ Right then, so it doesn't seem to be any of those listed above, I don't have a clue now!
Last edit: by Petrikuhr
Metal IS Forever & We WILL Rock You 'til You Choke! Rock Babe
|
|
Posted
|
|
|
ocStaff (admin) |
If I answered something that you think should be in the documentation, please take the initiative and add it to the community documentation. We really need people to help out here and build a well-organised large support resource. |
|
Posted
|
|
|
Community saint |
Well that really is me scuppered, php is a no go for me, it all just looks like a load of nonesnse to me. Oh well, guess I'll be sticking to manual imput, no biggie for me to be honest. I'll just slide off and play some more in photoshop.
Metal IS Forever & We WILL Rock You 'til You Choke! Rock Babe
|
|
Posted
|
|
|
ocStaff (admin) |
The other thing is I just found out today I have to get glasses, I've been suffering really bad eye strain for months which has left me feeling like I had flu for 1-2 days a week over the last half year If I answered something that you think should be in the documentation, please take the initiative and add it to the community documentation. We really need people to help out here and build a well-organised large support resource. |
|
Posted
|
|
|
Community saint |
digiflash | Photography,Webdesign and digital art community (dutch) |
|
Posted
|
|
|
ocStaff (admin) |
If I answered something that you think should be in the documentation, please take the initiative and add it to the community documentation. We really need people to help out here and build a well-organised large support resource. |
|
Posted
|
|
|
Community saint |
Bob |
|
Posted
|
|
|
Community saint |
Take care of those eyes, Chris. I suffer the exact same nearsighted in one eye and farsighted in the other. My eye doc says very few people are both Myopia and Hyperopia. I also suffer from astigmatism and a cataract.
Steve
|
1 guests and 0 members have just viewed this: None
Control functions:









Last edit: by 