Page Index Toggle Pages: [1] 2 3  Send TopicPrint
Very Hot Topic (More than 25 Replies) [YaBB 2.2.1-2.2.3] Style Switcher 1.0 (Read 31177 times)
ThM
God Member
*****
Offline



Posts: 585
Location: Germany, Nds.
Joined: May 21st, 2006
Gender: Male
[YaBB 2.2.1-2.2.3] Style Switcher 1.0
Jun 16th, 2008 at 8:05am
Print Post  
Hi YaBB Friends .....

..... a new Mod for YaBB 2.2.1/2.2.2/2.2.3  Cheesy

----------------------------------------------------------
YaBB Style Switcher 1.0 for YaBB 2.2.1/2.2.2/2.2.3
----------------------------------------------------------


Author Information:

Orginal Code by AK108
Code Modification and Mod Writer: ThM

Credit:

Special Thanks goes to AK108 for the permission to use his Set Template in URL 1.0 for YaBB 2.0/2.1 Mod for a YaBB 2.2.2 mod, to Namster for permission to use his Style Sheet Sets and to Deti for a little bit Support. Thanks Guys.

Description:

This mod allows users and guests a quick design change by using multiple template stylesheet in combination with a simple dropdown box. the last setting is save by a cookie.

Demo with all included stylesheets:

Take a look at the middle on the top at the header.

http://www.yabbwelt.de/cgi-bin/yabb222/YaBB.pl

Zip Package included:

  • Style Switcher Version 1.0 [YaBB 2.2.1]
  • Style Switcher Version 1.0 [YaBB 2.2.2/2.2.3]
  • Style Switcher Version 1.0 German_Du Patch [YaBB 2.2.1/2.2.2/2.2.3]
  • Style Switcher Version 1.0 German Patch [YaBB 2.2.1/2.2.2/2.2.3]
  • 14 Style sheets therefrom 11 created by Namster (small modifications for using 2.2.1/2.2.2/2.2.3 by me)
    - Strawberry,
    - Cherry,
    - Orange,
    - Banana,
    - Kiwi,
    - Melon,
    - Mint,
    - Ice,
    - Plum,
    - Grape,
    - Sakura as well as
    - standard (default), yabb21 and
    - inspire.

Installation:

1) Modify YaBB files using BoardMod or manually.
2) Load modified files to your server in ASCII mode.

  • Sources/Load.pl
  • Templates/default/default.html
  • Templates/yabb21/yabb21.html
  • Languages/English/Main.lng
  • Admin/ManageTemplates.pl  
  • Admin/Modlist.pl
  • yabbfiles/Templates/Forum/*.css Files (Set chmod to 666)


Additional important duty after upload:

Go into your admin Center -> Template Configuration and choose a added stylesheet. Then save the Template with the same name as the stylesheet. It's needed, that you make this too with all other styesheets.

Possibly it's needed re-start your browser, delete temporary internet files and cookies.


Example:

stylesheet name -> strawberry - Save Template as -> strawberry
stylesheet name -> banana - Save Template as -> banana
.... and so on ....

Old YaBB Style Template:

Change also Images, Header, Board Index, Message Index and Posts to yabb21.



Mod History:

Status Style Switcher 1.0 for YaBB 2.2.1/2.2.2 - June 16 2008

Note: Tested on a fresh YaBB 2.2.1/2.2.2 installation.



Have fun - Feedback welcome  Smiley
« Last Edit: Jul 30th, 2008 at 4:43pm by ThM »  

yabb_styleswitcher.zip ( 36 KB | Downloads )

Greeting ThM
Back to top
 
IP Logged
 
mick
Senior Member
****
Offline


I love YaBB

Posts: 345
Location: Dorsten
Joined: Nov 29th, 2005
Gender: Male
Re: [YaBB 2.2.1/2.2.2] Style Switcher 1.0
Reply #1 - Jun 17th, 2008 at 6:11am
Print Post  
Hi ThM,

very good Idea! I tested your Mod, but
some Problems. I can't delete "your"
templates and activate only mine. I
changed the main.lng's manually, then
I have only my two templates, but clicking
on them - nothing changes.

Greetings
Mick
  
Back to top
WWW  
IP Logged
 
ThM
God Member
*****
Offline



Posts: 585
Location: Germany, Nds.
Joined: May 21st, 2006
Gender: Male
Re: [YaBB 2.2.1/2.2.2] Style Switcher 1.0
Reply #2 - Jun 17th, 2008 at 10:10am
Print Post  
mick wrote on Jun 17th, 2008 at 6:11am:
I can't delete "your" templates and activate only mine.


These are not really templates. Only new stylesheets. To delete them go into your admin-center -> forum layout -> style sheets and delete it.

mick wrote on Jun 17th, 2008 at 6:11am:
I changed the main.lng's manually, then I have only my two templates.....


Ok, thats right. Are you sure, you make it correct ?

mick wrote on Jun 17th, 2008 at 6:11am:
..... but clicking on them - nothing changes.


Additional important duty after upload

Go into your admin Center -> Template Configuration and choose a added stylesheet. Then save the the new stylesheet with the same name as the stylesheet. It's needed, that you make this too with all other stylsheets.

Example:

stylesheet name -> strawberry - Save as -> Strawberry
stylesheet name -> banana - Save as -> Banana
.... and so on ....

Possibly it's needed re-start your browser, delete temporary internet files and cookies.

Old YaBB Style Template or other complett new style

Change also Images, Header, Board Index, Message Index and Posts to yabb21 or whatever to be called your new template.


  

Greeting ThM
Back to top
 
IP Logged
 
mick
Senior Member
****
Offline


I love YaBB

Posts: 345
Location: Dorsten
Joined: Nov 29th, 2005
Gender: Male
Re: [YaBB 2.2.1/2.2.2] Style Switcher 1.0
Reply #3 - Jun 17th, 2008 at 5:35pm
Print Post  
Hi again,

you search in 5th Step for:

Code
Select All
<table width="100%" cellpadding="0" cellspacing="0" border="0" class="menutop">
	<tr>
		<td class="small" align="left" valign="middle" width="2%" height="23">&nbsp;</td>
		<td class="small" align="left" valign="middle" width="48%" height="23"><span class="ie6alpha">{yabb time}</span></td>
		<td class="small" align="right" valign="middle" width="48%" height="23"><span class="ie6alpha">{yabb langChooser}</span></td>
		<td class="small" align="left" valign="middle" width="2%" height="23">&nbsp;</td>
	</tr>
</table> 



In my default.html is written:
Code
Select All
<table width="100%" cellpadding="0" cellspacing="0" border="0" class="menutop">
	<tr>
		<td class="small" align="left" valign="middle" width="2%" height="23">&nbsp;</td>
		<td class="small" align="left" valign="middle" width="48%" height="23"><span class="ie6alpha">{yabb time}</span></td>
		<td class="small" align="right" valign="middle" width="48%" height="23">{yabb langChooser}</td>
		<td class="small" align="left" valign="middle" width="2%" height="23">&nbsp;</td>
	</tr>
</table> 



There is a small difference, so the 5th step
gives a foult.
  
Back to top
WWW  
IP Logged
 
Jeff
God Member
*****
Offline


There are no bugs there
are only features

Posts: 2552
Joined: Jan 14th, 2005
Gender: Male
Re: [YaBB 2.2.1/2.2.2] Style Switcher 1.0
Reply #4 - Jun 17th, 2008 at 5:39pm
Print Post  
           <td class="small" align="right" valign="middle" width="48%" height="23"><span class="ie6alpha">{yabb langChooser}</span></td>

@ThM
yellow marked should be removed in modfile.
  

greetings
Jeff
Back to top
WWW  
IP Logged
 
mick
Senior Member
****
Offline


I love YaBB

Posts: 345
Location: Dorsten
Joined: Nov 29th, 2005
Gender: Male
Re: [YaBB 2.2.1/2.2.2] Style Switcher 1.0
Reply #5 - Jun 17th, 2008 at 6:03pm
Print Post  
Sorry, I think it's my foult.

He search for
Code
Select All
		<td class="small" align="right" valign="middle" width="48%" height="23">{yabb langChooser}</td> 



It's because I changed the code!

Sorry again!
  
Back to top
WWW  
IP Logged
 
Jeff
God Member
*****
Offline


There are no bugs there
are only features

Posts: 2552
Joined: Jan 14th, 2005
Gender: Male
Re: [YaBB 2.2.1/2.2.2] Style Switcher 1.0
Reply #6 - Jun 17th, 2008 at 6:24pm
Print Post  
yep your foult.
  

greetings
Jeff
Back to top
WWW  
IP Logged
 
bartez
Ex Member


Re: [YaBB 2.2.1/2.2.2] Style Switcher 1.0
Reply #7 - Jun 17th, 2008 at 11:29pm
Print Post  
Dutch translation added Smiley
« Last Edit: Jun 18th, 2008 at 6:36am by »  
Back to top
 
IP Logged
 
ThM
God Member
*****
Offline



Posts: 585
Location: Germany, Nds.
Joined: May 21st, 2006
Gender: Male
Re: [YaBB 2.2.1/2.2.2] Style Switcher 1.0
Reply #8 - Jun 18th, 2008 at 6:00am
Print Post  
@bartez

thx  Smiley

Please make at the first line instead

Quote:
<id>
Style Switcher for YaBB 2.2.1/2.2.2 - German Patch
</id>


Quote:
<id>
Style Switcher for YaBB 2.2.1/2.2.2 - Netherland Patch
</id>


Wink

@mick

..... runs's now ?
  

Greeting ThM
Back to top
 
IP Logged
 
bartez
Ex Member


Re: [YaBB 2.2.1/2.2.2] Style Switcher 1.0
Reply #9 - Jun 18th, 2008 at 6:37am
Print Post  
Ah, forgot that one! Updated Wink
  
Back to top
 
IP Logged
 
Gizmoy
New Member
*
Offline


I love YaBB 1G - SP1.2!

Posts: 7
Joined: May 31st, 2008
Re: [YaBB 2.2.1/2.2.2] Style Switcher 1.0
Reply #10 - Jun 20th, 2008 at 6:06am
Print Post  
Millions Of THANKS


Since i saw it on your website , I was visiting this section , expecting you will release it some day.


I HAVE INSTALLED IT...

Working fine without any problem.
Most important part is , after you install mod go these steps (for all defaulters)

Quote:
Additional important duty after upload

Go into your admin Center -> Template Configuration and choose a added stylesheet. Then save the the new stylesheet with the same name as the stylesheet. It's needed, that you make this too with all other stylsheets.  

Example:  

stylesheet name -> strawberry - Save as -> Strawberry  
stylesheet name -> banana - Save as -> Banana  
.... and so on ....  

Possibly it's needed re-start your browser, delete temporary internet files and cookies.  

Old YaBB Style Template or other complett new style

Change also Images, Header, Board Index, Message Index and Posts to yabb21 or whatever to be called your new template.




Rest Assured this mod is best release of Yabb 2.2.2 for those who Love graphics.

THANKS ThM YOU ROCK Yea
  
Back to top
 
IP Logged
 
ThM
God Member
*****
Offline



Posts: 585
Location: Germany, Nds.
Joined: May 21st, 2006
Gender: Male
Re: [YaBB 2.2.1/2.2.2] Style Switcher 1.0
Reply #11 - Jun 20th, 2008 at 7:13am
Print Post  
You are welcome  Wink
  

Greeting ThM
Back to top
 
IP Logged
 
mick
Senior Member
****
Offline


I love YaBB

Posts: 345
Location: Dorsten
Joined: Nov 29th, 2005
Gender: Male
Re: [YaBB 2.2.1/2.2.2] Style Switcher 1.0
Reply #12 - Jun 20th, 2008 at 10:25am
Print Post  
ThM wrote on Jun 18th, 2008 at 6:00am:
@mick

..... runs's now ?


Hi ThM,

I get it running:

We have two Templates, "default" and "i4a". The
default-Template is a modifyed template, not
original.
When I changed to i4a I can't get back to default.
I think, it's a cookie-"Problem"?

Greetings
Mick
  
Back to top
WWW  
IP Logged
 
ThM
God Member
*****
Offline



Posts: 585
Location: Germany, Nds.
Joined: May 21st, 2006
Gender: Male
Re: [YaBB 2.2.1/2.2.2] Style Switcher 1.0
Reply #13 - Jun 20th, 2008 at 10:36am
Print Post  
mick wrote on Jun 20th, 2008 at 10:25am:
When I changed to i4a I can't get back to default.


As Member or as Guest ?
Please give me a link where i can viewing it.
  

Greeting ThM
Back to top
 
IP Logged
 
mick
Senior Member
****
Offline


I love YaBB

Posts: 345
Location: Dorsten
Joined: Nov 29th, 2005
Gender: Male
Re: [YaBB 2.2.1/2.2.2] Style Switcher 1.0
Reply #14 - Jun 23rd, 2008 at 5:16pm
Print Post  
Hi ThM,

sorry for late answer, had a lot to do Wink

The link:

http://www.info4alien.de/cgi-bin/134/YaBB.cgi

It's a test-board!

In my main.pl is written:

Code
Select All
%tempswitcheroptions = (
'0' => 'Template wählen:',
'1' => '=> Auswahl',
'2' => '&raquo; i4a-Blue',
'3' => '&raquo; i4a-Style',
);

$yystyleswitch = qq~$tempswitcheroptions{'0'}&nbsp;~;
$yytempswitcher = qq~<form name="styleswitcher">
	<select onChange="if(this.options[this.selectedIndex].value) window.location.href='$scripturl' + this.options[this.selectedIndex].value;">
	<option value="">$tempswitcheroptions{'1'}</option>
	<option value="?template=i4a-blue">$tempswitcheroptions{'2'}</option>
	<option value="?template=i4a">$tempswitcheroptions{'3'}</option>
	</select>
	</form>~;
 



i4a-blue.css and i4a.css are online.
  
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: [1] 2 3 
Send TopicPrint