The BoardMod Project
 The Project | News | Downloads | Mods | FAQ | Templates | Chat | Forum
BoardMod Support Forum
[ Home | Help | Search | Login | Register ]  

22.05.13 at 23:21:05, Welcome, Guest. Please Login or Register

Choose Language:
Pages: 1 2 3 4
phpBB-subTemplates v0.1e for YaBB 2.0 (Read 6556 times)
Curtiss Grymala
Hacker God
*****
Offline

Posts: 1314



03.05.05 at 03:36:28  
This is the version for YaBB 2.0

I have finally put my phpBB-styled subSilver, subTrail and subBlack templates together in a mod package.  The following files are included:
  • phpBB-subTemplate_01e.mod
  • sub-style *.template files
  • subSilver template images and CSS file
  • subBlack template images and CSS file
  • subTrail template images and CSS file
  • ...and possibly a few more that I can't currently remember
Please read the information included in the mod file.  Please report any bugs, missing items, feedback, etc. either in this topic, the Mod Bugs board, or my own forums.

To see these templates in action, you can log into my boards with the following info:
username:  testuser
password:  test

DOWNLOAD v0.1e (~700kb)

EDIT - Two other things I wanted to mention:
1)  Please do not remove the credit image from any of the templates.  I would not have been able to create this mod without the original phpBB templates, and I wanted to make sure to give credit where credit is due.  If the credit image is too big or ugly for you, feel free to make your own, but please do not change the wording or content.
2)  This mod should make it possible for you to easily create your own phpBB-style templates.  If you do, please give credit where credit is due.  Please create your own temp_cred.gif file and include it with the template images.  When you create the temp_cred.gif file, I ask as a courtesy that you please credit the original template creator (if you're porting it from an existing phpBB template), and that you credit me (although I have no problem if you credit me in fine print).

Other Features of this Mod:
1)  Once installed, you will be able to easily insert Perl variables into your main template files.  You can easily re-arrange your YaBB menu and assign new icons to the menu items, etc. by simply editing your $templatename.code file.  Even on non phpBB-style templates, you can add things like different "Read" and "Unread" message icons on your Message Index by simply adding *_new.gif icons (sticky_new.gif, ann_new.gif, etc.) into your Template folder.

Changelog:
From 0.1d:
  • Made a minor formatting change to make this mod compatible with YaBB 2.0
  • Fixed a few minor typographical errors that were causing people some problems (namely with the language files).

From 0.1c:
  • Removed the modifications that were being made to existing language files, and added in new language files specifically for this mod (to comply with the modding rules for Y2)

From 0.1b:
  • Added quite a few new Image definitions to the subSilver.code file.  This fixed the messed up YaBB Menu that resulted from the code changes between YaBB 2 RC 1 and YaBB 2 RC 2.
  • Corrected the new language that's added to the Nederlands language files (thanks to JetLi for the translation)

From 0.1a:
  • Removed General.template and replaced it with subSilver.code - you can now parse Perl in any template by simply creating your own $templatename.code file (where $templatename is the same as your template directory name), and placing Perl code within it.
  • Removed underscores from modlist info (aesthetic change)
  • Corrected German translation of Private Message text (thanks to JetLi).
« Last Edit: 16.10.05 at 15:40:02 by Curtiss Grymala »  
IP Logged
 

Currently using Y2.3 With no mods (though that will hopefully change, soon).

Click Here To See A List Of All The Mods I've Written
LoonyPandora
Moderator
*****
Offline

London, United Kingdom
Posts: 1705



Reply #1 - 03.05.05 at 11:54:54  
Those templates are fantastic! - Well Done Grin - Barely distinguishable from a phpBB board!

Just goes to show that templating is much more flexible in Y2 than in Y1.

The templating system was Ok for you? no major headaches, or anything you think can be improved?
 
IP Logged
 

Apple Technical Support
Code:
#!/usr/bin/perl --
($sig ='ddiissjjttuuffss ddaoouu ssffaee uuiijjtt
jj ssvvmmff auu qqffssmm ttmmaoohhjjoohh nnauuddiifftt')
=~y~b-v~a-z~s;
print $sig;
Curtiss Grymala
Hacker God
*****
Offline

Posts: 1314



Reply #2 - 03.05.05 at 13:20:28  
LoonyPandora wrote on 03.05.05 at 11:54:54:
Those templates are fantastic! - Well Done Grin - Barely distinguishable from a phpBB board!

Just goes to show that templating is much more flexible in Y2 than in Y1.

The templating system was Ok for you? no major headaches, or anything you think can be improved?


The templating system is actually extremely nice.  The fact that you can now use perl in most of the templates is fantastic.

The only thing I would have changed (and I think it would have either meant a whole lot more work for you guys, or a lot more templates) is, it would be nice if it were easier to manipulate the appearance of things like PM interface and Recent Posts interface (basically anything that has a set layout in its own source file).  Other than that, I found everything I needed rather easily.

Did you try the mod Loony?  Did it work okay on the CVS?  Did I do the ModList step correctly?
 
IP Logged
 

Currently using Y2.3 With no mods (though that will hopefully change, soon).

Click Here To See A List Of All The Mods I've Written
LoonyPandora
Moderator
*****
Offline

London, United Kingdom
Posts: 1705



Reply #3 - 03.05.05 at 13:45:27  
Can't test the actual installation, as I don't have access to BoardMod here. - Looking at the code though, I guess there was no way for you to have the templates as "drop-in" templates? (ones that don't modify the code in the source files)

I would suggest, that if there was no way to get this template to work without modifying the code, that you re-name the file "General.template" to be "subSilver.template" - just in case someone has another template that requires code modifiction, and they use a "general.template" too. Looks cleaner also, IMO.

Oh, and the line:

$phpBB-Style_mod = "phpBB-Style_Templates|Curtiss_Grymala|Utilize_phpBB-style_templates_on_your_YaB
B_forum|0.1a|05-02-2005";


I've got rid of the requirement to have underscores, so put spaces in and it will work fine (and look nicer)

Other than that, I can't see any problems with it - Well done Grin


You're right about only certain areas being fully templatable, with the current code layout, it would have been a huge task to make everywhere templatable, so we only did the most important parts.
 
IP Logged
 

Apple Technical Support
Code:
#!/usr/bin/perl --
($sig ='ddiissjjttuuffss ddaoouu ssffaee uuiijjtt
jj ssvvmmff auu qqffssmm ttmmaoohhjjoohh nnauuddiifftt')
=~y~b-v~a-z~s;
print $sig;
Curtiss Grymala
Hacker God
*****
Offline

Posts: 1314



Reply #4 - 03.05.05 at 14:05:11  
LoonyPandora wrote on 03.05.05 at 13:45:27:
I guess there was no way for you to have the templates as "drop-in" templates? (ones that don't modify the code in the source files)


No - there was no way to achieve the functionality of phpBB without making a few very minor modifications.  YaBB uses one icon for two or three different items (like private messages), where phpBB uses two different icons.

Quote:
I would suggest, that if there was no way to get this template to work without modifying the code, that you re-name the file "General.template" to be "subSilver.template" - just in case someone has another template that requires code modifiction, and they use a "general.template" too. Looks cleaner also, IMO.


Well, the point of using "general.template" is that anyone can now create any new template without further modifying the source files.  That small line of code in Subs.pl essentially added the ability to use Perl in the main template file.  If anyone else needs to add Perl functionality to their template, all they need to do is create a file called "general.template" in their template directory, and all the Perl in that file will be parsed before loading the template.

Quote:
Oh, and the line:

$phpBB-Style_mod = "phpBB-Style_Templates|Curtiss_Grymala|Utilize_phpBB-style_templates_on_your_YaB
B_forum|0.1a|05-02-2005";


I've got rid of the requirement to have underscores, so put spaces in and it will work fine (and look nicer)

Other than that, I can't see any problems with it - Well done Grin


Thanks.  I'll release a 0.1b later with that change, and I'll probably include a source file for the template credit image.

Quote:
You're right about only certain areas being fully templatable, with the current code layout, it would have been a huge task to make everywhere templatable, so we only did the most important parts.


That's kind of what I figured.   Grin
 
IP Logged
 

Currently using Y2.3 With no mods (though that will hopefully change, soon).

Click Here To See A List Of All The Mods I've Written
LoonyPandora
Moderator
*****
Offline

London, United Kingdom
Posts: 1705



Reply #5 - 03.05.05 at 14:29:58  
Quote:
Well, the point of using "general.template" is that anyone can now create any new template without further modifying the source files.  That small line of code in Subs.pl essentially added the ability to use Perl in the main template file.  If anyone else needs to add Perl functionality to their template, all they need to do is create a file called "general.template" in their template directory, and all the Perl in that file will be parsed before loading the template.


Yeah, it's cool doing those small modifictions, and the general.template idea is a good one - however, to keep with the naming scheme that we use, I think it would be better to call it $template_name.template (or even change the extension totally - .code perhaps?) - and access it using: require "$templatesdir/$useboard/$useboard.template"; - I think it fits a bit better with the existing naming scheme, that's all Smiley
 
IP Logged
 

Apple Technical Support
Code:
#!/usr/bin/perl --
($sig ='ddiissjjttuuffss ddaoouu ssffaee uuiijjtt
jj ssvvmmff auu qqffssmm ttmmaoohhjjoohh nnauuddiifftt')
=~y~b-v~a-z~s;
print $sig;
Curtiss Grymala
Hacker God
*****
Offline

Posts: 1314



Reply #6 - 03.05.05 at 14:37:15  
LoonyPandora wrote on 03.05.05 at 14:29:58:
require "$templatesdir/$useboard/$useboard.template"; - I think it fits a bit better with the existing naming scheme, that's all Smiley


Interesting - I hadn't thought of that.  I'll give that a whirl and see how that works.  Thanks for the tip.
 
IP Logged
 

Currently using Y2.3 With no mods (though that will hopefully change, soon).

Click Here To See A List Of All The Mods I've Written
LoonyPandora
Moderator
*****
Offline

London, United Kingdom
Posts: 1705



Reply #7 - 03.05.05 at 14:40:07  
Also, since it is just code, and not strictly a template - I would change the extension to .code - just to make the distinction clearer Smiley
 
IP Logged
 

Apple Technical Support
Code:
#!/usr/bin/perl --
($sig ='ddiissjjttuuffss ddaoouu ssffaee uuiijjtt
jj ssvvmmff auu qqffssmm ttmmaoohhjjoohh nnauuddiifftt')
=~y~b-v~a-z~s;
print $sig;
T3rrabug
Fulltime Hacker
***
Offline

over there, Nordrhein-Westfalen, Germany
Posts: 220



Reply #8 - 03.05.05 at 15:31:23  
Shocked almost looks like a phpBB  Shocked
But there is something wrong with the background of the text, for example the site count in the Boardindex(where u can select the different threads).
Could be that its my windowsstyle  Lips Sealed
 
IP Logged
 

...
Curtiss Grymala
Hacker God
*****
Offline

Posts: 1314



Reply #9 - 03.05.05 at 15:59:31  
If you're talking about the problem in the image below, I noticed that, too.  I'm working on it.
 
IP Logged
 

InvisibleLink.jpg (Attachment deleted)

Currently using Y2.3 With no mods (though that will hopefully change, soon).

Click Here To See A List Of All The Mods I've Written
T3rrabug
Fulltime Hacker
***
Offline

over there, Nordrhein-Westfalen, Germany
Posts: 220



Reply #10 - 03.05.05 at 17:03:07  
I mean:
...

Same Problem with the lower one  Lips Sealed
 
IP Logged
 

...
Curtiss Grymala
Hacker God
*****
Offline

Posts: 1314



Reply #11 - 03.05.05 at 17:06:08  
Ah - I see.  I'll take a look at that.

Also - JetLi pointed out that I should change the language that I add to the German language file ("You have new messages" and "You have no new messages"), so I'll be changing that before releasing 0.1b.  Does anyone here speak Dutch?  If so, can you possibly provide me with the best translations of "You have new messages" and "You have no new messages"?
 
IP Logged
 

Currently using Y2.3 With no mods (though that will hopefully change, soon).

Click Here To See A List Of All The Mods I've Written
Curtiss Grymala
Hacker God
*****
Offline

Posts: 1314



Reply #12 - 03.05.05 at 18:34:04  
I have made a couple of minor changes, suggested by JetLi, LoonyPandora and T3rrabug.
Version 0.1b is now available from the first post.

I attempted to test this mod, and found that, with the new version of YaBB 2, some things may need to be fixed.  However, that installation of YaBB 2 had some problems, and isn't fully functional, so I'm not sure if the problem lies in the mod, or the bad installation.  I will be testing further tomorrow, but would appreciate some help from others that might be able to test it out.
 
IP Logged
 

BadMenu.jpg (Attachment deleted)

Currently using Y2.3 With no mods (though that will hopefully change, soon).

Click Here To See A List Of All The Mods I've Written
Jeff
Moderator
*****
Offline

, Netherlands
Posts: 2552



Reply #13 - 03.05.05 at 18:39:50  
Hi Curiss

Translation for Dutch:

Je hebt geen nieuwe berichten. = you have no new messages.

Je hebt nieuwe berichten. = you have new messages

« Last Edit: 03.05.05 at 19:31:10 by Jeff »  
IP Logged
 

greetings
Jeff
Curtiss Grymala
Hacker God
*****
Offline

Posts: 1314



Reply #14 - 01.06.05 at 12:42:48  
I have released v0.1c of this mod.  The new download is available from the first post in this topic.

Future plans for this mod:
1)  Figure out how to call variables from new language files, so that I can use a unique language file for this mod, rather than editing the existing language files that came with YaBB2.
2)  Figure out how to allow users to edit the $templatename.code file from the template editor interface, rather than having to edit that file locally and re-upload it.
 
IP Logged
 

Currently using Y2.3 With no mods (though that will hopefully change, soon).

Click Here To See A List Of All The Mods I've Written
Pages: 1 2 3 4
© 2000-2012 by - All rights reserved.

Project website hosting proudly sponsored and provided by UK2 Hosting
 The Project | News | Downloads | Mods | FAQ | Templates | Chat | Forum