1 (edited by Tjalve 2007-11-05 05:48)

Topic: Horizontal Layout for Viewtopic 1.0

##
##
##        Mod title:  Horizontal Layout for Viewtopic
##
##      Mod version:  1.0
##   Works on PunBB:  1.2.15
##     Release date:  05.11.2007
##           Author:  Tjalve @ punbb.org / punres.org 
##              Azog @ epixplx.com
##
##      Description:  This mod allows the user too change his viewtopic layout to horizontal.
##              This is done via changing your style, too a style with the name %stylename%_horizontal.
##              Valid XHTML 1.0 Strict!
## 
##   Affected files:  viewtopic.php
##
##       Affects DB:  No
##
##            Notes:  None
##
##
##       DISCLAIMER:  Please note that "mods" are not officially supported by
##                    PunBB. Installation of this modification is done at your
##                    own risk. Backup your forum database and any and all
##                    applicable files before proceeding.
##
##

Download here

This is my first official mod, so if anyone have pointers please say so smile

especial wondering if this is the best and fastest way too do it...

    if (ereg ('([A-Za-z])_horizontal', $pun_user['style'])){
        include('horizontal_layout.php');
    }else{
        include('normal_layout.php');
    }
Post hoc ergo propter hoc

Re: Horizontal Layout for Viewtopic 1.0

Happy that you made this mod! Will try it out now. I asked for something like this a while ago - here. Very nice to have this as a style option.