Welcome, Guest. Please Login or Register.
June 17, 2024, 12:22:56 AM
Home Help Search Log in Register
News: SMF is the next generation in forum software, almost completely re-written from the ground up, make sure you don't fall for cheap imitations that suffer from feature bloat!

YaBB SE Community  |  Development  |  Completed mods  |  [Done 1.5.1] Custom Templates 1.0.0 « previous next »
Pages: 1 [2] 3 Reply Ignore Print
Author Topic: [Done 1.5.1] Custom Templates 1.0.0  (Read 11517 times)
Egg
Full Member
***
Posts: 139


I'm a llama!

WWW
Re:[Beta 1.5.1 Rc1 B43] Custom Templates 0.9.4
« Reply #15 on: March 02, 2003, 08:55:51 AM »
Reply with quote

hey Jack-UK

when in the forum with the altered template, all the admin and user functions etc all use the altered template, to start with....except the calander

also, in the admin function, the first admin index is in the altered template, but clicking "edit boards" or any other feature reverts to default. is this correct??

do you want to check it out??

www.200mph.org.uk

altered template is the  Track racing by Splodge racing forum. 5th from top.

cheers
Egg
Logged
jack-uk
Full Member
***
Posts: 118


I'm a llamatron addict

Re:[Beta 1.5.1 Rc1 B43] Custom Templates 0.9.4
« Reply #16 on: March 02, 2003, 12:59:03 PM »
Reply with quote

Quote from: Egg on March 02, 2003, 08:55:51 AMalso, in the admin function, the first admin index is in the altered template, but clicking "edit boards" or any other feature reverts to default. is this correct??

Yeah, it's a 'feature' in YaBB that I still haven't decided how (or if) to deal with.

The problem is letting the template handler what is going on. If you look in the Address bar when you are doing most stuff in YaBB, there is a board=xxx extry (in this case here it's board=158). That (unsuprisingly) is the  internal ID number for the current board - and it is what I use to decide on the template to use.
If there is no board argument (such as in the calendar and main page) them we default back to the primary template. For some reason, the 'admin' link keeps it' 'board' argument, which it doesn't seem to need.
The only place I've seen this look odd is in the admin pages & I figured the admins on my board could live with it ;)

The fix is for me to either code an exception to check for the 'admin' action, or for me to finally get round to reporting the exraneous info in the admin link as a bug.

I don't like writing such exceptions, cos it means that you then have to keep track of a lot more stuff than is technically relevant.

If you want to do it yourself, just edit Subs.php and find the following lines in the template_header function :-
       global $currentboard;
and
  if ($currentboard) {
and replace them with :-
       global $currentboard, $action;
and
  if ($currentboard && ($action != 'admin')) {
Logged

jack-uk
Full Member
***
Posts: 118


I'm a llamatron addict

Re:[Beta 1.5.1 Rc1 B44] Custom Templates 0.9.4
« Reply #17 on: March 02, 2003, 11:49:53 PM »
Reply with quote

Hehe .. I was waiting for the release of B44 for this..

We now have a 'Delete Template' button!!

Guess what that does 8)

No upgrade package this time .. cos you'll all be upgrading to B44 anyway, won;t you? ;)

There are no changes between B43 and B44 that affect this mod in any way that I can see - it's happy on both.
Logged

jack-uk
Full Member
***
Posts: 118


I'm a llamatron addict

Re:[Beta 1.5.1 Rc1 B44] Custom Templates 0.9.7
« Reply #18 on: March 05, 2003, 09:24:53 PM »
Reply with quote

OK, I've fixed another bug.

Previously, it would just ignore any PHP code embedded in a template & pass it on straight through to the browser instead of executing it. (see 'Supermod' thread for more details).

Any further bugs are now officially figments of your deranged imagination ;)
Logged

Dude
Guest
Re:[Beta 1.5.1 Rc1 B44] Custom Templates 0.9.7
« Reply #19 on: March 07, 2003, 06:45:08 PM »
Reply with quote

Do you have in this another format besides the package thing? I wrote this mod for several previous versions, just wondering how you did it. And I seem to remember someone did write an upgrade for 1.5 but I'm too lazy to look it up. ;)
Logged
Webby
Beta Tester
YaBB God
*****
Posts: 829


Some mistakes are too funny to make only once.

ICQ - 9814812webby@salesplaza.nl WWW
Re:[Beta 1.5.1 Rc1 B44] Custom Templates 0.9.7
« Reply #20 on: March 07, 2003, 09:00:11 PM »
Reply with quote

Installed with just one little error : it couldn't find the line in Admin.php, so I added it manually.

Now just thinking about what kind of different templates I can make........ ;D
Logged

Webby of salesplaza.nl
The YaBBSE buttongenerator : Click HERE !
jack-uk
Full Member
***
Posts: 118


I'm a llamatron addict

Re:[Beta 1.5.1 Rc1 B44] Custom Templates 0.9.7
« Reply #21 on: March 09, 2003, 05:59:17 PM »
Reply with quote

Quote from: Dude on March 07, 2003, 06:45:08 PMDo you have in this another format besides the package thing? I wrote this mod for several previous versions, just wondering how you did it. And I seem to remember someone did write an upgrade for 1.5 but I'm too lazy to look it up. ;)

There's a zipfile available with everything in at http://www.jack.org.uk/yabbse-stuff/PackageCustomTemplates098-151.zip

The actual .mod file uses Yabbpak's syntax, though - cos I've forgotten everything I knew about BoardMod's ;)
Logged

timo_copts
Noobie
*
Posts: 20


I'm a llama!

Re:[Beta 1.5.1 Rc1 B44] Custom Templates 0.9.7
« Reply #22 on: March 11, 2003, 05:13:35 AM »
Reply with quote

i use YaBB SE 1.5.1 RC1
it will work with this ver??
and how i setup for this....sorry its first time to use mods
Logged
jack-uk
Full Member
***
Posts: 118


I'm a llamatron addict

Re:[Beta 1.5.1 Rc1 B44] Custom Templates 0.9.7
« Reply #23 on: March 11, 2003, 10:30:41 PM »
Reply with quote

The current version is only tested by me on Build 44 of RC1. It may work with earlier or later builds but I'm not promising anything.
Logged

jack-uk
Full Member
***
Posts: 118


I'm a llamatron addict

Re:[Done 1.5.1] Custom Templates 1.0.0
« Reply #24 on: April 20, 2003, 08:27:07 AM »
Reply with quote

OK, bumped this up to version 1.0.0 and taken it out of beta cos no-one has mentioned finding any bugs in ages.

This works on YaBBSE 1.5.1 Final
Logged

Daniel Hofverberg
YaBB God
*****
Posts: 582


WWW
Re:[Done 1.5.1] Custom Templates 1.0.0
« Reply #25 on: April 26, 2003, 12:55:33 AM »
Reply with quote

Does this mod work with 1.5.2? Also, is there any BoardMod version available, for those of us stuck in safe-mode?
Logged
Egg
Full Member
***
Posts: 139


I'm a llama!

WWW
Re:[Done 1.5.1] Custom Templates 1.0.0
« Reply #26 on: April 26, 2003, 07:09:16 AM »
Reply with quote

I had it insitalled ion 1.5.1 upgraded to 1.5.2 and all is working ok still
Logged
jack-uk
Full Member
***
Posts: 118


I'm a llamatron addict

Re:[Done 1.5.1] Custom Templates 1.0.0
« Reply #27 on: April 27, 2003, 03:45:15 PM »
Reply with quote

Quote from: Daniel Hofverberg on April 26, 2003, 12:55:33 AMDoes this mod work with 1.5.2? Also, is there any BoardMod version available, for those of us stuck in safe-mode?

The 1.5.2 upgrade, frm what I can see should not affect the operation of this mod (I personally haven't tried it yet).

As Egg has said it works, I'm willing to believe him as he caused me loads of extra work found loads of bug earlier ;)

I do not have a boardmod version, but it should not be hard for anyone who is familiar with boardmod syntax (which I'm not) to convert. Filaing that, this mod is part of Wiziwig's 'Supermod' which is boardmod (and includes *loads* more cool stuff)
Logged

Daniel Hofverberg
YaBB God
*****
Posts: 582


WWW
Re:[Done 1.5.1] Custom Templates 1.0.0
« Reply #28 on: April 29, 2003, 03:31:28 PM »
Reply with quote

Okay, I'll have to try then. I'm not interested in Supermod, as this is pretty much the only mod I'm interested in...
Logged
Tilton53
Jr. Member
**
Posts: 73


I'm a llama!

Re:[Done 1.5.1] Custom Templates 1.0.0
« Reply #29 on: May 11, 2003, 11:32:16 PM »
Reply with quote

Great Mod Had installed it once and did not work so I just uploaded a fresh copy of MangeBoards.php  

I went back and put everything in by hand and it works now!
Logged
Pages: 1 [2] 3 Reply Ignore Print 
YaBB SE Community  |  Development  |  Completed mods  |  [Done 1.5.1] Custom Templates 1.0.0 « previous - next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 0.046 seconds with 20 queries.