Page Index Toggle Pages: [1] 2  Send TopicPrint
Hot Topic (More than 10 Replies) Style Switcher for YaBB 2.5AE - V.1.5 (Read 12995 times)
ThM
God Member
*****
Offline



Posts: 585
Location: Germany, Nds.
Joined: May 21st, 2006
Gender: Male
Style Switcher for YaBB 2.5AE - V.1.5
Oct 27th, 2010 at 1:30pm
Print Post  
YaBB Style Switcher V.1.5


Description:

This mod allows a quick design change by using multiple templates in combination with a simple dropdown box. The last setting is save by a cookie. You can enabled/disabled these option and select a membergroups allows to use the Style Switcher.

General features:

  • Enable/Disable the Style Switcher Option.
  • Select the membergroup allow to use the Style Switcher (Guest and Members or Members only)
  • Add new templates automaticly.
  • Displays in the dropdopwn field the template name there is actually used.


Screenshot Admin Settings:




Note:

Special Thanks goes to AK108 for the permission to use his Set Template in URL Mod, Deti for a little bit help on the previous versions, Scavanger for small modifications and Carsten for Support. Thanks Guys.

Contents mod package:

  • style_switcher_mod_v_1_5_.mod
  • style switcher_mod_german_du_patch.mod
  • style switcher_mod_german_patch.mod


Installation:

1) Use the BoardMod Programm to install the mod or edit the files manually.
2) Upload all modified files in ASCII mode.

  • Admin/Modlist.pl
  • Admin/Settings_Main.pl
  • Admin/NewSettings.pl
  • Admin/ManageTemplates.pl
  • Sources/Subs.pl
  • Sources/Load.pl
  • Languages/English/Admin.lng
  • Languages/English/Main.lng
  • Templates/default/default.html
  • Templates/yabb21/yabb21.html


Mod History:

  • **NEW** Version 1.5 - 17.10.2010 for YaBB 2.5AE - only removed the errors
  • Version 1.5 - 17.10.2010 for YaBB 2.5AE - Downloads: 24 -
  • Version 1.4 - 02.10.2010 for YaBB 2.5AE - Released on YaBB Welt
  • Version 1.3  for using myself only - Not relaesed
  • Version 1.2 - 28.10.2008 for YaBB 2.3.1
  • Version 1.1 - 28.10.2008 for YaBB 2.3
  • Version 1.0 - 16.06.2008 for YaBB 2.2.1/2.2.2/2.2.3


A german description you find here: German Description
Eine deutsche Beschreibung findest Du hier: Deutsche Beschreibung

Have fun  Smiley
« Last Edit: Dec 27th, 2010 at 3:13pm by ThM »  

yabb_styleswitcher_1_5.zip ( 4 KB | Downloads )

Greeting ThM
Back to top
 
IP Logged
 
Captain John
Senior Member
****
Offline


Pass to Port !

Posts: 264
Location: Reno Beach
Joined: Jan 18th, 2007
Gender: Male
Re: Style Switcher for YaBB 2.5AE - V.1.5
Reply #1 - Nov 5th, 2010 at 9:36pm
Print Post  
Glad to see this one back ThM !!
  

Love to live and love on the water
Back to top
 
IP Logged
 
batchman
Global Moderator
*****
Offline


What's up?!

Posts: 1280
Location: Orlando
Joined: Apr 28th, 2002
Gender: Male
Re: Style Switcher for YaBB 2.5AE - V.1.5
Reply #2 - Nov 5th, 2010 at 9:50pm
Print Post  
I will mention something I have mentioned once before, because I now have a forum where I would specifically use this, if this 'feature' were involved, since it might fit in especially well with the theme of my new forum.

Since the styles used by this mod are simply a difference in color, rather than a difference in layout or anything else, what if it could randomly choose a new style each time it loaded a page. First page you look at is blueberry, next page is strawberry, and so on.

I could see the constantly changing colors as working really well for my dream forum ... just a hint of the psychadelic to go with the crazy dreams.
  

Improving my forum, one mod at a time!


Now up and running again, with an accurate link.


Back to top
WWW  
IP Logged
 
Derek Barnstorm
God Member
*****
Offline



Posts: 1146
Location: Warwickshire
Joined: Mar 23rd, 2008
Gender: Male
Re: Style Switcher for YaBB 2.5AE - V.1.5
Reply #3 - Dec 7th, 2010 at 4:19am
Print Post  
Hi ThM,

A nice useful Mod!

I've noticed a couple of markup errors after installing this today though...

In the edit to the default template you've mixed up divisions and spans:

Code
Select All
		<td class="small" align="left" valign="middle" width="32%" height="23"><div id="yabbclock">{yabb time}</span></td> 


Should be:

Code
Select All
		<td class="small" align="left" valign="middle" width="32%" height="23"><div id="yabbclock">{yabb time}</div></td> 


And:

Code
Select All
		<td class="small" align="center" valign="middle" width="32%" height="23"><div id="yabbclock">{yabb styleswitch}{yabb tempswitcher}</span></td> 


There's no need for the Style Switcher to have the 'yabbclock' id anyway though, so it may as well be removed:

Code
Select All
		<td class="small" align="center" valign="middle" width="32%" height="23">{yabb styleswitch}{yabb tempswitcher}</td> 


And... not really important, but the link to the settings in the ModList edit is pointing to your forum:

Code
Select All
Style Switcher in your <a href=\"http://www.yabbwelt.de/cgi-bin/forum/AdminIndex.pl?action=newsettings;page=main\" target=\"_self\">admin center</a> 


Smiley
  
Back to top
 
IP Logged
 
ThM
God Member
*****
Offline



Posts: 585
Location: Germany, Nds.
Joined: May 21st, 2006
Gender: Male
Re: Style Switcher for YaBB 2.5AE - V.1.5
Reply #4 - Dec 13th, 2010 at 9:38pm
Print Post  
Thanks Derek for reporting this ...... A modified version without these errors comming soon.... Thanks again .....  Smiley
  

Greeting ThM
Back to top
 
IP Logged
 
ThM
God Member
*****
Offline



Posts: 585
Location: Germany, Nds.
Joined: May 21st, 2006
Gender: Male
Re: Style Switcher for YaBB 2.5AE - V.1.5
Reply #5 - Dec 27th, 2010 at 3:19pm
Print Post  
New Version - error free, i hope - at the first post.
No reinstall needed - remove the typos that derek posted ..... and delete the link to yabbwelt in the modfile .....

Thanks again Derek  Wink
  

Greeting ThM
Back to top
 
IP Logged
 
Derek Barnstorm
God Member
*****
Offline



Posts: 1146
Location: Warwickshire
Joined: Mar 23rd, 2008
Gender: Male
Re: Style Switcher for YaBB 2.5AE - V.1.5
Reply #6 - Dec 27th, 2010 at 5:02pm
Print Post  
Great - Thanks ThM! Smiley
  
Back to top
 
IP Logged
 
ThM
God Member
*****
Offline



Posts: 585
Location: Germany, Nds.
Joined: May 21st, 2006
Gender: Male
Re: Style Switcher for YaBB 2.5AE - V.1.5
Reply #7 - Jan 21st, 2011 at 2:00pm
Print Post  
batchman wrote on Nov 5th, 2010 at 9:50pm:
I will mention something I have mentioned once before, because I now have a forum where I would specifically use this, if this 'feature' were involved, since it might fit in especially well with the theme of my new forum.

Since the styles used by this mod are simply a difference in color, rather than a difference in layout or anything else, what if it could randomly choose a new style each time it loaded a page. First page you look at is blueberry, next page is strawberry, and so on.

I could see the constantly changing colors as working really well for my dream forum ... just a hint of the psychadelic to go with the crazy dreams.  



I know you have asked, batchman. But sorry, i have no idea how i can build in such a feature. But if anybody (maybe Derek) have an idea, feel free to play with the mod.
  

Greeting ThM
Back to top
 
IP Logged
 
kigiin
Junior Member
**
Offline


I Love YaBB 2!

Posts: 71
Joined: Jan 29th, 2011
Re: Style Switcher for YaBB 2.5AE - V.1.5
Reply #8 - Feb 2nd, 2011 at 10:44pm
Print Post  
I installed the mod, now how do I add new templates?
It says I can do it automatically... I must be missing something.
  
Back to top
 
IP Logged
 
Derek Barnstorm
God Member
*****
Offline



Posts: 1146
Location: Warwickshire
Joined: Mar 23rd, 2008
Gender: Male
Re: Style Switcher for YaBB 2.5AE - V.1.5
Reply #9 - Feb 3rd, 2011 at 12:24am
Print Post  
The Mod doesn't actually include any templates, but it will automatically pick up any templates that you do have (or add). If that makes sense...
  
Back to top
 
IP Logged
 
kigiin
Junior Member
**
Offline


I Love YaBB 2!

Posts: 71
Joined: Jan 29th, 2011
Re: Style Switcher for YaBB 2.5AE - V.1.5
Reply #10 - Feb 3rd, 2011 at 12:57am
Print Post  
I installed the style switcher. Tried copying all the template files into their respective folders and tested. Nothing but the 2 original styles are listed  Embarrassed
  
Back to top
 
IP Logged
 
Derek Barnstorm
God Member
*****
Offline



Posts: 1146
Location: Warwickshire
Joined: Mar 23rd, 2008
Gender: Male
Re: Style Switcher for YaBB 2.5AE - V.1.5
Reply #11 - Feb 3rd, 2011 at 1:10am
Print Post  
Did you save the templates in Template Configuration after you uploaded them?

From the YaBB Codex:

Quote:
Setting up for use:
1. Go to the Admin Center/Forum Layout/Template Configuration screen.
2. In the Configuration box, select the following:
Style Sheet: newtemplate
Images, Header, Board Index, Message Index, Posts, and User CP set to newtemplate if there is a specific file for that template to use, otherwise select default in the pull-down menus.
3. In the "Save As" section, type "newtemplate" (without quotes) in the input box and click the Save button.

http://www.yabbforum.com/codex/YaBB.pl?num=1241892021
  
Back to top
 
IP Logged
 
kigiin
Junior Member
**
Offline


I Love YaBB 2!

Posts: 71
Joined: Jan 29th, 2011
Re: Style Switcher for YaBB 2.5AE - V.1.5
Reply #12 - Feb 3rd, 2011 at 1:30am
Print Post  
Hi Derek, Thanks for the help. I'll try the instructions you posted.
Question: The files are all inside a folder that is named for the template. Do I upload the folder into the respective area it goes into or just the files inside it?
  
Back to top
 
IP Logged
 
Derek Barnstorm
God Member
*****
Offline



Posts: 1146
Location: Warwickshire
Joined: Mar 23rd, 2008
Gender: Male
Re: Style Switcher for YaBB 2.5AE - V.1.5
Reply #13 - Feb 3rd, 2011 at 1:36am
Print Post  
You need to keep the folder structure as it is, so yeah, upload the whole folder to its respective area...
  
Back to top
 
IP Logged
 
kigiin
Junior Member
**
Offline


I Love YaBB 2!

Posts: 71
Joined: Jan 29th, 2011
Re: Style Switcher for YaBB 2.5AE - V.1.5
Reply #14 - Feb 5th, 2011 at 7:33am
Print Post  
Got it working ... Great mod and thanks for the help! I'm quickly learning  Smiley
Can someone tell me when v2.5ae can expect more mods? I'd like to see the extended profile and a chat mod.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: [1] 2 
Send TopicPrint