Page Index Toggle Pages: [1] 2 3 ... 11 Send TopicPrint
Very Hot Topic (More than 25 Replies) Board Templates 1.4 for YaBB 2.0/2.1 (Read 51328 times)
AK108
God Member
*****
Offline



Posts: 942
Joined: Oct 1st, 2003
Gender: Male
Board Templates 1.4 for YaBB 2.0/2.1
Nov 11th, 2005 at 9:19pm
Print Post  
Languages (as of 1.4): English, Dutch

There's not too much to say about this mod. It adds an area into the Admin Center for you to choose what template is loaded on what board. You can also select templates for a category.

Both category and board level templates change the template on the topic index (MessageIndex.pl), the topic itself (Display.pl), and the post page (Post.pl).

If you set a category template, it also changes the template on the category selection part of the board index (BoardIndex.pl).

There's one more option I included, which sets if your templates set here should override a user's choice or not.

In version 1.2, the ability to add template specific menu defs was added. See the post announcing 1.2 for more details. This was rewritten in 1.3. Check out the "Template Configuration" area in the Admin Center to change your menu style.

Note: This mod was written and tested mostly on YaBB 2.1. It should work on YaBB 2.0 though.

Note2: I included the imgloc bugfix in versions above 1.1. It's in CVS, but I felt it'd be nice to include it here as well.

To install:
Use BoardMod like normal
Upload these files in Sources/: BoardIndex.pl, MessageIndex.pl, Display.pl, Post.pl, Load.pl
Upload these files in Admin/: Modlist.pl, AdminSubList.pl, BoardTemplates.pl (provided in zip)
Upload AdminIndex.pl
Upload Languages/English/BoardTemplates.lng (provided in zip)

Version History:
1.4 (YaBB 2.0/2.1): Massive bugfix updates. Also added Dutch lng pack. (March 13th, 2006)
1.3 (YaBB 2.0/2.1): Rewrote the code changing menu styles and put it into the ManageTemplates section. (December 23rd, 2005)
1.2 (YaBB 2.0/2.1): Changed the arrangement of boards and categories in the Admin section to match the view on the Board Index. Added the ability to use a different .def file with a template. (December 8th, 2005)
1.1 (YaBB 2.0/2.1): Fixed bug with announcements board. Fixed bug with a board template replacing a user-set template in their profile. Updated the Language file. (November 20th, 2005)
1.0 (YaBB 2.0/2.1): Mod package made available on BoardMod. (November 11th, 2005)
« Last Edit: Mar 14th, 2006 at 1:54pm by AK108 »  

boardtemplates1.4.zip ( 8 KB | Downloads )

For my mods, check out my public notes.

You might be interested in my projects, or my forum, the Flying Kirby Pub.
Back to top
WWWAIM  
IP Logged
 
Xavier
Senior Member
****
Offline



Posts: 442
Location: Ipswich
Joined: Apr 5th, 2005
Gender: Male
Re: Board Templates 1.0 for YaBB 2.0/2.1
Reply #1 - Nov 11th, 2005 at 9:48pm
Print Post  
Great mod, works like a charm. it will block Set Template in URL if a user trys and changes the template bu URL.
  
Back to top
WWWYIM  
IP Logged
 
AK108
God Member
*****
Offline



Posts: 942
Joined: Oct 1st, 2003
Gender: Male
Re: Board Templates 1.0 for YaBB 2.0/2.1
Reply #2 - Nov 11th, 2005 at 9:54pm
Print Post  
Yep, the idea is it can override anything if the admin sets it to override user set templates, which is the default.

If you want it to not block it, changing the override setting in the admin center should make it work.
  

For my mods, check out my public notes.

You might be interested in my projects, or my forum, the Flying Kirby Pub.
Back to top
WWWAIM  
IP Logged
 
Xavier
Senior Member
****
Offline



Posts: 442
Location: Ipswich
Joined: Apr 5th, 2005
Gender: Male
Re: Board Templates 1.0 for YaBB 2.0/2.1
Reply #3 - Nov 11th, 2005 at 9:58pm
Print Post  
The Set Templates will work on the forum index though
  
Back to top
WWWYIM  
IP Logged
 
AK108
God Member
*****
Offline



Posts: 942
Joined: Oct 1st, 2003
Gender: Male
Re: Board Templates 1.0 for YaBB 2.0/2.1
Reply #4 - Nov 11th, 2005 at 10:07pm
Print Post  
Yeah. These two mods probably aren't the best to co-exist. If you want that much control over the user's template, you probably should deinstall Set Template in URL.
  

For my mods, check out my public notes.

You might be interested in my projects, or my forum, the Flying Kirby Pub.
Back to top
WWWAIM  
IP Logged
 
kiro
New Member
*
Offline


I N F E C T E D  L O G
I C

Posts: 20
Joined: Oct 5th, 2005
Re: Board Templates 1.0 for YaBB 2.0/2.1
Reply #5 - Nov 12th, 2005 at 11:43am
Print Post  
This is absolutely wonderful.
  
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: Board Templates 1.0 for YaBB 2.0/2.1
Reply #6 - Nov 13th, 2005 at 11:46am
Print Post  
Thanks AK108! Smiley
  


Back to top
WWW  
IP Logged
 
kiro
New Member
*
Offline


I N F E C T E D  L O G
I C

Posts: 20
Joined: Oct 5th, 2005
Re: Board Templates 1.0 for YaBB 2.0/2.1
Reply #7 - Nov 15th, 2005 at 6:51am
Print Post  
Bug Report:  Once you visit a forum with a template other than the default and post in it, your profile options are changed so your default is the last template you saw.  This means that when people visit the joke 'lurid pink' forum on my site, they are stuck seeing that every time they return to the index.
  
Back to top
WWW  
IP Logged
 
AK108
God Member
*****
Offline



Posts: 942
Joined: Oct 1st, 2003
Gender: Male
Re: Board Templates 1.0 for YaBB 2.0/2.1
Reply #8 - Nov 15th, 2005 at 1:50pm
Print Post  
I'll fix that, I know why it's happening I think.
  

For my mods, check out my public notes.

You might be interested in my projects, or my forum, the Flying Kirby Pub.
Back to top
WWWAIM  
IP Logged
 
AK108
God Member
*****
Offline



Posts: 942
Joined: Oct 1st, 2003
Gender: Male
Re: Board Templates 1.0 for YaBB 2.0/2.1
Reply #9 - Nov 15th, 2005 at 11:50pm
Print Post  
If you would, try this new BoardTemplates.pl (rename from .txt to .pl) and see if it fixes the problem. Upload it to your admin directory, go into the BoardTemplates settings and submit the changes again.
  

BoardTemplates.txt ( 6 KB | Downloads )

For my mods, check out my public notes.

You might be interested in my projects, or my forum, the Flying Kirby Pub.
Back to top
WWWAIM  
IP Logged
 
kiro
New Member
*
Offline


I N F E C T E D  L O G
I C

Posts: 20
Joined: Oct 5th, 2005
Re: Board Templates 1.0 for YaBB 2.0/2.1
Reply #10 - Nov 16th, 2005 at 3:10am
Print Post  
Fixed!
  
Back to top
WWW  
IP Logged
 
kiro
New Member
*
Offline


I N F E C T E D  L O G
I C

Posts: 20
Joined: Oct 5th, 2005
Re: Board Templates 1.0 for YaBB 2.0/2.1
Reply #11 - Nov 16th, 2005 at 3:24am
Print Post  


My smilie row is text instead of images on a board set to use a new template, but isn't supposed to be - possible bug report.
  
Back to top
WWW  
IP Logged
 
AK108
God Member
*****
Offline



Posts: 942
Joined: Oct 1st, 2003
Gender: Male
Re: Board Templates 1.0 for YaBB 2.0/2.1
Reply #12 - Nov 16th, 2005 at 1:48pm
Print Post  
Could I have a link to that page? I'll register if it's members only.
  

For my mods, check out my public notes.

You might be interested in my projects, or my forum, the Flying Kirby Pub.
Back to top
WWWAIM  
IP Logged
 
kiro
New Member
*
Offline


I N F E C T E D  L O G
I C

Posts: 20
Joined: Oct 5th, 2005
Re: Board Templates 1.0 for YaBB 2.0/2.1
Reply #13 - Nov 17th, 2005 at 1:45am
Print Post  
AK108 wrote on Nov 16th, 2005 at 1:48pm:
Could I have a link to that page? I'll register if it's members only.

Sent to your gmail.  :sunny:
  
Back to top
WWW  
IP Logged
 
AK108
God Member
*****
Offline



Posts: 942
Joined: Oct 1st, 2003
Gender: Male
Re: Board Templates 1.0 for YaBB 2.0/2.1
Reply #14 - Nov 17th, 2005 at 3:07am
Print Post  
I found the problem. It's actually a YaBB 2 bug. I also found another bug relating to Global Announcements. Since I'll fix the YaBB 2 bug in the actual YaBB 2 code, I'll include a modfile to fix that as needed.

1.1 will come out shortly with these fixes, hopefully tonight.
  

For my mods, check out my public notes.

You might be interested in my projects, or my forum, the Flying Kirby Pub.
Back to top
WWWAIM  
IP Logged
 
Page Index Toggle Pages: [1] 2 3 ... 11
Send TopicPrint