Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 7 of 7
  1. #1
    Senior Coder
    Join Date
    Jun 2002
    Location
    near Oswestry
    Posts
    4,508
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Making an XHTML template for phpBB

    I'm working on it at the moment ... but I've had to make quite a lot of small changes to the scripts other than the .tpl files. How would I distribute it as a useable template to others with that being the case - is there some kind of macro mechanism, or a way of writing a mod that would make those changes transparently?
    "Why bother with accessibility? ... Because deep down you know that the web is attractive to people who aren't exactly like you." - Joe Clark

  • #2
    Super Moderator
    Join Date
    May 2002
    Location
    Perth Australia
    Posts
    4,073
    Thanks
    11
    Thanked 98 Times in 96 Posts
    I dont know (though I doubt) if phpBB has some sort of API for external modifications of the core scripts.

    You can distribute a mod that rewrites the scripts in question but then when the user upgrades to a new phpBB version your changes may get overwritten.

    I think the best bet might be to approach the phpBB developers to see if they will incorporate your changes , this means your mods will have to be able to handle both scenarios , both your XHTML templates and `regular` ones.
    resistance is...

    MVC is the current buzz in web application architectures. It comes from event-driven desktop application design and doesn't fit into web application design very well. But luckily nobody really knows what MVC means, so we can call our presentation layer separation mechanism MVC and move on. (Rasmus Lerdorf)

  • #3
    Regular Coder
    Join Date
    Jun 2002
    Location
    Sheffield, UK
    Posts
    552
    Thanks
    0
    Thanked 0 Times in 0 Posts
    sorry to thread dig, but what ever happened to this?

    i'd kinda like to see and use a validating forum.
    "To be successful in IT you don't need to know everything - just where to find it in under 30 seconds"

    (Me Me Me Me Me Me Me Me Me)

  • #4
    Senior Coder
    Join Date
    Jun 2002
    Location
    near Oswestry
    Posts
    4,508
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I've basically finished, but it's not up and public yet. http://www.brothercake.com/forum/ - feel free to try and break it, or offer any comments or critisicm

    Unfortunately to make it work I had to hack the underlying PHP scripts quite a lot .. I'm not sure how distributable it really is in the final analysis.. But you're welcome to the source files if you want them.
    "Why bother with accessibility? ... Because deep down you know that the web is attractive to people who aren't exactly like you." - Joe Clark

  • #5
    Mega-ultimate member
    Join Date
    Jun 2002
    Location
    Winona, MN - The land of 10,000 lakes
    Posts
    1,855
    Thanks
    1
    Thanked 45 Times in 42 Posts
    That is sooo sweet, semantic and accessible with excellent separation of content and data. I don't know why more BB software doesn't jump on this bandwagon. What you've developed allows for easy skin creation, simply change the css and you're done.

    Nice job!

  • #6
    Senior Coder
    Join Date
    Jun 2002
    Location
    near Oswestry
    Posts
    4,508
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Yeah exactly Much easier to skin if all you have to do is write a stylesheet - and of course it means that people visiting the forum can reskin it for themselves, no trouble. I guess I should add a stylesheet switcher in there to illustrate the point.

    But if there's one thing I've learnt from doing this, it's that to design a properly semantic and accessible forum, it needs to be considered from the start. There are many things I just removed (private messaging, BBCode buttons, avatars) because it was too hectic - too much work to turn it into decent code.
    Last edited by brothercake; 08-27-2004 at 08:51 PM.
    "Why bother with accessibility? ... Because deep down you know that the web is attractive to people who aren't exactly like you." - Joe Clark

  • #7
    Regular Coder
    Join Date
    Jun 2002
    Location
    Sheffield, UK
    Posts
    552
    Thanks
    0
    Thanked 0 Times in 0 Posts
    my thoughts exactly, which is why writing an XHTML forum has been on my to-do list for about 9 months now. In that time i've become better at coding but not much better at time management
    "To be successful in IT you don't need to know everything - just where to find it in under 30 seconds"

    (Me Me Me Me Me Me Me Me Me)


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •