Info/Instructions: Edti the rules from the Admin Menu. You may wish to use simple HTML like <br /> for linebreaks so that your rules appear best. <img src="/forum/images/graemlins/smile.gif" alt="" />
Demo: Here at threadsdev. Link at bottom of screen.
Disclaimer: Please backup every file that you intend to modify. If the modification modifies the database, it's a good idea to backup your database before doing so.
Note: If you modify your UBB.Threads code, you may be giving up your right for "official" support from Infopop.If you need official support, you'll need to restore unmodified files.
This led me to see how to solve one of my problems, wanting to have a board rules link on every page - just put it in the footer (and maybe in the thing at the top, too)! I had a look at the footer template to see how these additions (like the "Delete Cookies" button) were added.
But instead of making the full set of changes in your mod, all I did was add these two lines in the template: | <a href=/testboard/faq.php?Cat=#rules>Board Rules</a>
(after "{$template['privacy_statement']}"
This takes one directly to the board rules as stated in the FAQ, as seen by clicking on the "Board Rules" link in the footer on my test board.
This worked much like what I had done on the my test board's new user screen, to avoid having a different source for board rules than on the FAQ. (I guess I should just move that link into the separate board rules new user signup, huh?)
All seems to work! Do you see any problems with it?
The rules in the FAQ are generic. You can link to them if you edit them with your own rules. Otherwise this mod includes what you put in the /includes/boardrules.php file.
If you want to keep your rules in the FAQ then you can edit them in the /languages/english/faq.php language file.
Sorry...yes, I had already edited them in the FAQ, because I would have had to change them there anyway, for consistency. Furthermore, I didn't want the whole list of rules at the top of the new user signup page, and just wanted to have a link to the rules, anyway. So that's how I had already done the board rules.
So when I saw from your mod how you placed a new button in the footer, it occurred to me thatI could add the "Board Rules" button, and just use the link to the FAQ!
Josh, I have used this on my UBB.Threads v6.3 and I had no issues with this hack. I've also installed it on my v6.4 and no issues with it. Works great!
I don't know if others can vouch for this as well so you may be able to take it off the 'Beta' list and change it to 'Finished' for v6.2-v6.4.
all I get it this error message: []Warning: main(main.inc.php): failed to open stream: No such file or directory in /Library/Tenon/WebServer/WebSites/www.magle.dk/ubbthreads/showrules.php on line 20
Fatal error: main(): Failed opening required 'main.inc.php' (include_path='.:/Library/Tenon/PHP/lib/php') in /Library/Tenon/WebServer/WebSites/www.magle.dk/ubbthreads/showrules.php on line 20[/]
thanks
(I know I was probably a little over optimistic to install a 6.3 mod, but still... )
Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.
Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.