Previous Thread
Next Thread
Print Thread
Rate Thread
#279906 09/24/2004 12:32 AM
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
Mod Name / Version: Teaser Forums 6.5

Description: This forces hidden forums to display on the main index. This way users will know that they exist.

Working Under: UBB.Threads 6.5

Mod Status: Beta

Any pre-requisites: none

Author(s): JoshPet

Date: 09/23/04

Credits: magle.dk for commissioning it

Files Altered: ubbthreads.php, /admin/viewboard.php, /admin/doeditboard.php, /templates/default/admin/viewboard.tmpl, /languages/english/admin/viewboard.php

New Files: none

Database Altered: Bo_Teaser added to the w3t_Boards table

Info/Instructions: If a forum is tagged as a teaser forum, everyone will see it on the main index. Users won't be able to view inside unless they have "read" permissions.

You may wish to customize the "Access Denied" message (language files) to explain why they
can't view the forum. (Must login, must subscribe etc.....)


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
120316-TeaserForums6.5.txt (0 Bytes, 92 downloads)

Sponsored Links
Joined: Feb 2002
Posts: 295
Member
Member
Offline
Joined: Feb 2002
Posts: 295
Hi,

Does is show all hidden forums? Or only those selected?
Can imagine wanting to keep some hidden (Moderators forum for instance)

Sanuk!

Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
You activate it on a forum by forum basis.

Joined: Feb 2002
Posts: 2,286
Veteran
Veteran
Joined: Feb 2002
Posts: 2,286
Thanks for updating Josh


Fans Focus - Focusing on Fans of Sport

(Okay - mainly football (the British variety wink at the moment - but expanding all the time....)
Joined: Feb 2002
Posts: 295
Member
Member
Offline
Joined: Feb 2002
Posts: 295
Hi,

"You activate it on a forum by forum basis."

Excellent

Sanuk!

Sponsored Links
Joined: Dec 2003
Posts: 123
Junior Member
Junior Member
Offline
Joined: Dec 2003
Posts: 123
I'm good with making the .php modifications, but I don't know how to properly create a new table using myphpadmin. Is there a simple set of instructions available that anyone knows of?

"ALTER TABLE w3t_Boards ADD Bo_Teaser TINYINT(1) NOT NULL" is greek to me.

Thanks!

Jason

Joined: Oct 2003
Posts: 2,305
Old Hand
Old Hand
Joined: Oct 2003
Posts: 2,305
with phpMyAdmin after you select the threads database there is a tab that says SQL just enter that command in the whitspace and click "GO".. its as simple as that

Joined: Dec 2003
Posts: 123
Junior Member
Junior Member
Offline
Joined: Dec 2003
Posts: 123
Thanks scroungr, will do the rest tomorrow.

Jason

Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
You can do this from the admin area of UBB.Threads - just go under database, and under the SQL Query tab.

Enter this in the box and push the button.

ALTER TABLE w3t_Boards ADD Bo_Teaser TINYINT(1) NOT NULL

That's it.

In phpMyAdmin you could click "execute SQL' and paste the query in the box as well.

Joined: Dec 2003
Posts: 123
Junior Member
Junior Member
Offline
Joined: Dec 2003
Posts: 123
Hi Josh et al,

Thanks, great help! I've successfully modified the BB and it's working great, but I don't know which .php language file to open in order to customise the "Access Denied" message. I've tried languages/english/generic.php and a few other to no avail.

Thanks!

Jason

Sponsored Links
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
Look in the showflat and showthreaded language file:
$ubbt_lang['BAD_GROUP'] = "Access Denied.";

Joined: Dec 2003
Posts: 123
Junior Member
Junior Member
Offline
Joined: Dec 2003
Posts: 123
Thanks, Josh.

Joined: Nov 2001
Posts: 134
Journeyman
Journeyman
Offline
Joined: Nov 2001
Posts: 134
Also postlist.php

Joined: Aug 2004
Posts: 82
Power User
Power User
Offline
Joined: Aug 2004
Posts: 82
wow this baby works a very well.. cheers guys for your hard work

Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
cool, thanks


- Allen wavey
- What Drives You?

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
Ruben Rocha
Ruben Rocha
Lutz,FL,USA
Posts: 254
Joined: January 2000
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)