Dude
Guest
|
 |
Different templates for different boards
« on: March 01, 2002, 09:32:17 AM » |
|
I'm going to write one as soon as 1.3 comes out since Godai is swamped. I started it but used a flatfile txt db. The final will use mysql.
the idea: Each board can have it's own template which can be set in the admin area.
the execution: add a field in the db. in subs.php use a fori loop to match template and board in admin.php when a board is created insert template.php (the default) into the db template field. also in admin.php link to the form that allows the admin to change templates.
Possible enhancments: Add a field to the create board function that displays the default template and allows the user to change it when creating/modifing a board. Add the option to use one template per catagory.
|
|
|
Logged
|
|
|
|
|
|
|
|
Dude
Guest
|
 |
Re:Different templates for different boards
« Reply #5 on: April 09, 2002, 06:22:27 PM » |
|
Just about done. Ran into a couple of probs with 1.3, nothing major, just detail stuff. Anyway, should have it done sometime this weekend. Got a couple of things left to do. 
|
|
|
Logged
|
|
|
|
|
|
|
|
Dude
Guest
|
 |
Re:Different templates for different boards
« Reply #10 on: April 15, 2002, 04:34:38 AM » |
|
Quote from: Rpg Cyco on April 14, 2002, 09:38:07 AMAre you going to expand this and let members choose a template through their profile or something like that?
l8ter
Rpg Cyco
Doubt it. I'm way too anal to let other folks mess with my templates.  It probably wouldn't be that hard. Add a field to the member table and a line to the profile page. course you'd have to add some stuff to subs.php. hmmmm. Let me make sure this one works ok first. Then I'll look into it.
|
|
|
Logged
|
|
|
|