Page Index Toggle Pages: 1 Send TopicPrint
Hot Topic (More than 10 Replies) YaBB2.2 Template on YaBB2.1 (Read 13849 times)
Namster
New Member
*
Offline


GTN

Posts: 36
Location: Aichi
Joined: Jul 27th, 2006
Gender: Male
YaBB2.2 Template on YaBB2.1
Feb 6th, 2008 at 10:29am
Print Post  
If you're like me and are still using YaBB2.1 as you wait for YaBB2.2 mods, but at the same time you really like the YaBB2.2 template, you just might like this template. Wink

See it live here.

I converted over the BoardIndex and Header (as closely as possible), but haven't touched the Display, HelpCentre, and MessageIndex (not sure how to).  If anybody can give me suggestions on how to convert these other templates, I can apply them to this package.
« Last Edit: Feb 20th, 2008 at 12:28pm by Namster »  

YaBB2.1_to_2.2.zip ( 370 KB | Downloads )
Back to top
WWW  
IP Logged
 
Outumuro
God Member
*****
Offline


Publisher - YaBB Toolbar

Posts: 569
Location: Los Angeles
Joined: Apr 14th, 2004
Gender: Male
Re: YaBB2.2 Template on YaBB2.1
Reply #1 - Feb 6th, 2008 at 1:51pm
Print Post  
Hi Namster,

Nice work, looks great.

News item.
  


Back to top
WWW  
IP Logged
 
Namster
New Member
*
Offline


GTN

Posts: 36
Location: Aichi
Joined: Jul 27th, 2006
Gender: Male
Re: YaBB2.2 Template on YaBB2.1
Reply #2 - Feb 9th, 2008 at 8:02am
Print Post  
The template is already configured to work with the following template-effecting mods:

Boardviewers
ChatIRC Mod YaBB2.x Beta1
Custom Page Mod
Event Calendar YaBB2.x V1.2
Recent Posts Bar Mod
RSS Feed version 1.0 beta 7 for YaBB 2.1
Showcase Poll


YaBB_2.1_to_2.2_Template_(v1.1) also comes with the following flavours (click to enlarge):
Strawberry Cherry Orange
Banana Kiwi Melon
Mint Ice Blueberry
Plum Grape Sakura

Note that the .css files are compatible with YaBB2.2.  "Blueberry" is the default YaBB2.2 colour theme.  All other colour themes are variations of the default colour theme.
« Last Edit: Feb 9th, 2008 at 8:00pm by Namster »  
Back to top
WWW  
IP Logged
 
Namster
New Member
*
Offline


GTN

Posts: 36
Location: Aichi
Joined: Jul 27th, 2006
Gender: Male
Re: YaBB2.2 Template on YaBB2.1
Reply #3 - Feb 9th, 2008 at 8:11am
Print Post  
I'm having trouble uploading my YaBB_2.1_to_2.2_Template_(v1.1).zip file.  It's only 373KB.  Any idea why this is happening? ???
  
Back to top
WWW  
IP Logged
 
Captain John
Senior Member
****
Offline


Pass to Port !

Posts: 264
Location: Reno Beach
Joined: Jan 18th, 2007
Gender: Male
Re: YaBB2.2 Template on YaBB2.1
Reply #4 - Feb 10th, 2008 at 12:23am
Print Post  
PM Michael ... he might have to clear some files..
  

Love to live and love on the water
Back to top
 
IP Logged
 
Namster
New Member
*
Offline


GTN

Posts: 36
Location: Aichi
Joined: Jul 27th, 2006
Gender: Male
Re: YaBB2.2 Template on YaBB2.1
Reply #5 - Feb 12th, 2008 at 10:30am
Print Post  
Turns out that the problem was due to the length of the filename.  I shortened the filename and can now upload the file.
« Last Edit: Feb 20th, 2008 at 12:30pm by Namster »  
Back to top
WWW  
IP Logged
 
LWS
Senior Member
****
Offline


seek and ye shall find...i
must be BLIND!!

Posts: 285
Location: Southern Ohio
Joined: Feb 25th, 2007
Re: YaBB2.2 Template on YaBB2.1
Reply #6 - Feb 21st, 2008 at 4:18am
Print Post  
You have been busy!! Nice work Namster!
  

LoneWebSurfer.com Nothing but YaBB templates
Back to top
WWW  
IP Logged
 
Namster
New Member
*
Offline


GTN

Posts: 36
Location: Aichi
Joined: Jul 27th, 2006
Gender: Male
Re: YaBB2.2 Template on YaBB2.1
Reply #7 - Feb 21st, 2008 at 5:10am
Print Post  
Thanks! Smiley

By the way, your template drop-down list will be in random order after setting up all of these templates if you're running YaBB2.1.  (This is already fixed in YaBB2.2).  To sort them alphabetically, you'd need to modify the following code (thanks Jet Li for the instructions!):


Admin/ManageTemplates.pl

Find the highlighted code (search around line 1070):
Code
Select All
	while (($curtemplate, $value) = each(%templateset)) {
		$selected = "";
		if ($curtemplate eq $thistemplate) { $selected = qq~ selected="selected"~; $akttemplate = $curtemplate; }
		$templatesel .= qq~<option value="$curtemplate"$selected>$curtemplate</option>\n~;
	} 


Replace it with:
Code
Select All
	my @templateset = sort{ $templateset{$a} cmp $templateset{$b} } keys %templateset;
	foreach my $curtemplate (@templateset) {
		$selected = "";
		if ($curtemplate eq $thistemplate) { $selected = qq~ selected="selected"~; $akttemplate = $curtemplate; }
		$templatesel .= qq~<option value="$curtemplate"$selected>$curtemplate</option>\n~;
	} 



Sources/Profile.pl

Find the highlighted code (search around line 535):
Code
Select All
	while (($curtemplate, $value) = each(%templateset)) {
		$selected = "";
		if ($curtemplate eq ${$uid.$user}{'template'}) { $selected = qq~ selected="selected"~; $akttemplate = $curtemplate; }
		$drawndirs .= qq~<option value="$curtemplate"$selected>$curtemplate</option>\n~;
	} 


Replace it with:
Code
Select All
	my @templateset = sort{ $templateset{$a} cmp $templateset{$b} } keys %templateset;
	foreach my $curtemplate (@templateset) {
		$selected = "";
		if ($curtemplate eq ${$uid.$user}{'template'}) { $selected = qq~ selected="selected"~; $akttemplate = $curtemplate; }
		$drawndirs .= qq~<option value="$curtemplate"$selected>$curtemplate</option>\n~;
	} 



Sources/Register.pl

Find the highlighted code (search around line 483):
Code
Select All
	while (($curtemplate, $value) = each(%templateset)) {
		$selected = "";
		if($FORM{'ttemplate'}) {
			if ($curtemplate eq $FORM{'ttemplate'}) { $selected = qq~ selected="selected"~; $akttemplate = $curtemplate; }
		}
		elsif($default_Template eq 1 && $default_Template_val) {
			if ($curtemplate eq $default_Template_val) { $selected = qq~ selected="selected"~; $akttemplate = $curtemplate; }
		}
		else {
			if ($curtemplate eq $default_template) { $selected = qq~ selected="selected"~; $akttemplate = $curtemplate; }
		}
		$drawndirs .= qq~<option value="$curtemplate"$selected>$curtemplate</option>\n~;
	} 


Replace it with:
Code
Select All
	my @templateset = sort{ $templateset{$a} cmp $templateset{$b} } keys %templateset;
	foreach my $curtemplate (@templateset) {
		$selected = "";
		if($FORM{'ttemplate'}) {
			if ($curtemplate eq $FORM{'ttemplate'}) { $selected = qq~ selected="selected"~; $akttemplate = $curtemplate; }
		}
		elsif($default_Template eq 1 && $default_Template_val) {
			if ($curtemplate eq $default_Template_val) { $selected = qq~ selected="selected"~; $akttemplate = $curtemplate; }
		}
		else {
			if ($curtemplate eq $default_template) { $selected = qq~ selected="selected"~; $akttemplate = $curtemplate; }
		}
		$drawndirs .= qq~<option value="$curtemplate"$selected>$curtemplate</option>\n~;
	} 

« Last Edit: Feb 26th, 2008 at 8:17am by Namster »  
Back to top
WWW  
IP Logged
 
batchman
Global Moderator
*****
Offline


What's up?!

Posts: 1282
Location: Orlando
Joined: Apr 28th, 2002
Gender: Male
Re: YaBB2.2 Template on YaBB2.1
Reply #8 - Mar 25th, 2008 at 2:46am
Print Post  
Those templates look nice ... I might almost forego looking for a way to create a new template to match my 1.3 template.

Now how is this for a cool (but possibly difficult) idea? What about a mod that takes a set of templates like this, and chooses which one to use for a session randomly, unless the person has specifically chosen a color they want to use all the time?

Any way to do this, you think?
  

Improving my forum, one mod at a time!


Now up and running again, with an accurate link.


Back to top
WWW  
IP Logged
 
Namster
New Member
*
Offline


GTN

Posts: 36
Location: Aichi
Joined: Jul 27th, 2006
Gender: Male
Re: YaBB2.2 Template on YaBB2.1
Reply #9 - Apr 1st, 2008 at 6:12pm
Print Post  
batchman wrote on Mar 25th, 2008 at 2:46am:
Those templates look nice ... I might almost forego looking for a way to create a new template to match my 1.3 template.

Thanks. Smiley

batchman wrote on Mar 25th, 2008 at 2:46am:
Now how is this for a cool (but possibly difficult) idea? What about a mod that takes a set of templates like this, and chooses which one to use for a session randomly, unless the person has specifically chosen a color they want to use all the time?

Any way to do this, you think?

I personally wouldn't know how to do this, but here's a mod that might interest you:

Set Template in URL 1.0 for YaBB 2.0/2.1

If you can modify some code, you just might be able to pull your idea off. Wink
  
Back to top
WWW  
IP Logged
 
Namster
New Member
*
Offline


GTN

Posts: 36
Location: Aichi
Joined: Jul 27th, 2006
Gender: Male
Re: YaBB2.2 Template on YaBB2.1
Reply #10 - Apr 1st, 2008 at 7:24pm
Print Post  
Actually I just installed that mod and implemented a simple drop-down box on my page which allows users to select which template they wish to use.  See it on my forum:

http://forum.aichiajet.com

The drop-down box is on the bottom-right of the screen.  This might be more effective than a random template selector.
  
Back to top
WWW  
IP Logged
 
batchman
Global Moderator
*****
Offline


What's up?!

Posts: 1282
Location: Orlando
Joined: Apr 28th, 2002
Gender: Male
Re: YaBB2.2 Template on YaBB2.1
Reply #11 - Apr 2nd, 2008 at 2:56am
Print Post  
I just think random color changes could be kind of neat.

Since I'm never going to get around to converting my old 1.3 template to 2, the idea of a random board from a set that all look alike except for the colors sounds kind of fun.
  

Improving my forum, one mod at a time!


Now up and running again, with an accurate link.


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



Posts: 585
Location: Germany, Nds.
Joined: May 21st, 2006
Gender: Male
Re: YaBB2.2 Template on YaBB2.1
Reply #12 - Jun 6th, 2008 at 2:25pm
Print Post  
@Namster

I'm intend in the next days a release the first and simple version from a style switch mod. My ask: Can i add your stylesheets i my package. I have the css files modified for yabb 2.2.1
  

Greeting ThM
Back to top
 
IP Logged
 
Namster
New Member
*
Offline


GTN

Posts: 36
Location: Aichi
Joined: Jul 27th, 2006
Gender: Male
Re: YaBB2.2 Template on YaBB2.1
Reply #13 - Jun 8th, 2008 at 5:00am
Print Post  
Sure you can add my stylesheets to it. Wink
  
Back to top
WWW  
IP Logged
 
ThM
God Member
*****
Offline



Posts: 585
Location: Germany, Nds.
Joined: May 21st, 2006
Gender: Male
Re: YaBB2.2 Template on YaBB2.1
Reply #14 - Jun 12th, 2008 at 6:44am
Print Post  
Thanks Namster.  Wink

The first Version will be the easiest solution with hardcoded Text and hardcoded Path settings as we have it currently. I know, it is not the most elegant solution but actually i have rare time to look which code comes to which place.

In the next version i'll will modify it do more dynamic.


The first version with more dynamic included is shortly ready. I think, in the course of monday June 16 2008 i will release it.
« Last Edit: Jun 15th, 2008 at 5:52am by ThM »  

Greeting ThM
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint