Previous Thread
Next Thread
Print Thread
Rating: 5
#268864 02/08/2004 6:01 AM
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
Mod Name / Version: Hide Post 1.0

Description: This allows moderators and admins to edit a single post and "hide" it from general view. It will still appear to regular users with a note saying that the post is hidden for further review. It's a great way for moderators to hide something questionable until the admins can get to it.

Admins see the note that the post is hidden + the body of the post below it. Everyone else just sees the text that the post is hidden.

Admins/moderators can hide/unhide posts simply by clicking edit next to the post.

Once a post is hidden, the original poster cannot edit (to prevent them from changing their words before the admin can see it.)

Working Under: UBB.Threads 6.4

Mod Status: Beta

Any pre-requisites: UBB.Threads 6.4 and higher

Author(s): JoshPet

Date: 02/08/04

Credits: Commissioned by dman of www.doording.com

Files Altered: showflat.php, showthreaded.php, editpost.php, modifypost.php, editpost.tmpl and /languages/*/generic.php

New Files: none

Database Altered: New field (B_Hidden) added to w3t_Posts table.

Info/Instructions:

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
107359-HidePost1.0.txt (0 Bytes, 50 downloads)

Sponsored Links
Joined: Aug 2000
Posts: 1,609
Addict
Addict
Offline
Joined: Aug 2000
Posts: 1,609

Joined: Jan 2003
Posts: 141
Journeyman
Journeyman
Offline
Joined: Jan 2003
Posts: 141
I love this mod, we have used it a few times already. There's just one thing, what needs to be changed so the moderators can see the post also when it is hidden? I'd like for them to be able to see it to get their opinions about it too.

Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
This line in showflat.php and showthreaded.php

if (($hidden) && ($user['U_Status'] == "Administrator")) {

Should be this to be seen by mods:

if (($hidden) && (($user['U_Status'] == "Administrator") || ($user['U_Status'] == "Moderator"))) {

Should allow the mods to see.

Joined: Jan 2003
Posts: 141
Journeyman
Journeyman
Offline
Joined: Jan 2003
Posts: 141
Thanks dude!

Sponsored Links

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
Gizmo
Gizmo
Portland, OR, USA
Posts: 5,833
Joined: January 2000
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
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-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)