Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
Mod Name / Version: Board Rules 1.2

Description:Allows you to add a link to display your Board Rules.

Working Under: UBB.Threads 6.2-6.3-6.4

Mod Status: Beta

Any pre-requisites: none

Author(s): JoshPet

Date: 08/02/03

Credits: Dalantech for Table Wrappers and Omegatron for Bug Fixes

Files Altered: ubbt_footer.tmpl, /languages/english/generic.php

New Files: showrules.php, showrules.tmpl

Database Altered: none

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.


Attachments
90622-BoardRules1.2.zip (0 Bytes, 312 downloads)

Last edited by JoshPet; 01/06/2004 1:41 AM.
Sponsored Links
Joined: Apr 2003
Posts: 359
Enthusiast
Enthusiast
Joined: Apr 2003
Posts: 359
Works great guys.....this really needs to be incorporated into the next update of UBB Threads.

Just installed this under v6.3.1

Joined: Jun 2003
Posts: 131
Journeyman
Journeyman
Offline
Joined: Jun 2003
Posts: 131
Great idea Josh!

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?

Tony

Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
I don't follow what you are asking?

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.

Joined: Jun 2003
Posts: 131
Journeyman
Journeyman
Offline
Joined: Jun 2003
Posts: 131
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!

Anyway, thanks for the idea...Tony

Sponsored Links
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
Ah cool.
Now I get it - glad it worked out for you.

Joined: Apr 2003
Posts: 359
Enthusiast
Enthusiast
Joined: Apr 2003
Posts: 359
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.

Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
Thanks.

Joined: Dec 2003
Posts: 107
Journeyman
Journeyman
Joined: Dec 2003
Posts: 107
hmmmm... how can I make this work under 6.5?

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... )

Joined: Feb 2002
Posts: 2,286
Veteran
Veteran
Joined: Feb 2002
Posts: 2,286
Check the path to main.inc.php - these are now in yourthreads/includes


Fans Focus - Focusing on Fans of Sport

(Okay - mainly football (the British variety wink at the moment - but expanding all the time....)
Sponsored Links
Joined: Dec 2003
Posts: 107
Journeyman
Journeyman
Joined: Dec 2003
Posts: 107
Ah...of course! Now it works, thanks Ian

Joined: Apr 2003
Posts: 359
Enthusiast
Enthusiast
Joined: Apr 2003
Posts: 359
Yup, working under 6.5. Josh, you can update which versions this works with. I am currently using it with my v6.5.1.1.


Link Copied to Clipboard
Donate Today!
Donate via PayPal

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.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
Nettomo
Nettomo
Germany, Bremen
Posts: 417
Joined: November 2001
Forum Statistics
Forums63
Topics37,575
Posts293,930
Members13,823
Most Online6,139
Sep 21st, 2024
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2025 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.1
(Snapshot build 20240918)