Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Jul 2001
Posts: 1,153
Likes: 83
coffee and code
coffee and code
Joined: Jul 2001
Posts: 1,153
Likes: 83
^^^ my UBBT is so hacked that my write-up may need some advanced editing... Im currently working off a custom 6.2.3 based 6.5b4 hybrid

only three files needed to be hacked though:
ubbthreads.php, /admin/viewboard.php, /admin/doeditboard.php

plus an extra column added to wt3_Boards database

.....

here are the basics though

Edit your DATABASE by adding a new column, wt3_Boards
ALTER TABLE `wt3_Boards` CHANGE `Bo_Hidden` `Bo_Hidden` CHAR( 3 ) DEFAULT 'Off' NOT NULL


^^^ i think this is the correct query command - if not, atleast you get the idea of what needs to be added


in ubbthreas.php

***find
$useroffset = "";
$userstatus = "";

*** add under it
$Hidden = "";

...

***find
$groupquery .= " OR ";
}
$groupquery .= "t1.Bo_Read_Perm LIKE '%-$Grouparray[$i]-%'";

*** add under it
$groupquery .= " AND ";
$groupquery .= "t1.Bo_Hidden = 'Off'";

...
***find (or something like it)
SELECT t1.Bo_Title,t1.Bo_Description,t1.Bo_Keyword,t1.Bo_Total,t1.Bo_Last,t1.Bo_Number,t1.Bo_Moderated,t1.Bo_Read_Perm,t1.Bo_Write_Perm,t1.Bo_Threads,t1.Bo_Sorter,t1.Bo_Posterid,t1.Bo_LastMain,t1.Bo_LastNumber,t2.U_Username,t3.B_Subject,t3.B_Icon,t3.B_Reged,t3.B_AnonName,t1.Bo_Image,t1.Bo_Hidden

*** add to the end of that line, ",t1.Bo_Hidden" so that it looks like this

SELECT t1.Bo_Title,t1.Bo_Description,t1.Bo_Keyword,t1.Bo_Total,t1.Bo_Last,t1.Bo_Number,t1.Bo_Moderated,t1.Bo_Read_Perm,t1.Bo_Write_Perm,t1.Bo_Threads,t1.Bo_Sorter,t1.Bo_Posterid,t1.Bo_LastMain,t1.Bo_LastNumber,t2.U_Username,t3.B_Subject,t3.B_Icon,t3.B_Reged,t3.B_AnonName,t1.Bo_Image,t1.Bo_Hidden

...

***find (or something like it)
list($Title,$Description,$Keyword,$Total,$Last,$Number,$Moderated,$ReadPerm,$WritePerm,$Threads,$Sorter,$Posterid,$lastmain,$lastnumber,$Poster,$Subject,$Icon,$Reged,$AnonName,$forumimage) = $boardrows;

*** add to the end of that line, ",$Hidden" so that it looks like this

list($Title,$Description,$Keyword,$Total,$Last,$Number,$Moderated,$ReadPerm,$WritePerm,$Threads,$Sorter,$Posterid,$lastmain,$lastnumber,$Poster,$Subject,$Icon,$Reged,$AnonName,$forumimage,$Hidden) = $boardrows;

*** find

$forum[$x][$y]['time'] = $time;
$forum[$x][$y]['lastpost'] = $lastpost;
$forum[$x][$y]['lastposter'] = "$lastposter";
$forum[$x][$y]['lastposturl'] = $lastposturl;

***add under it
$forum[$x][$y]['Hidden'] = $Hidden;


...
in /admin/viewboard.php

*** find
echo "<form method=post action = "{$config['phpurl']}/admin/deleteboard.php">\n";
echo "<input type=hidden name=Number value=$Number>\n";

*** change to
echo "<form method=post action = "{$config['phpurl']}/admin/deleteboard.php">\n";
echo "<input type=hidden name=Cat value="$Cat">";
echo "<input type=hidden name=Number value=$Number>\n";

*** find (or something like it
SELECT Bo_Title,Bo_Keyword,Bo_Description,Bo_HTML,Bo_Expire,Bo_Markup,Bo_Moderated,Bo_CatName,Bo_Cat,Bo_Read_Perm,Bo_Write_Perm,Bo_ThreadAge,Bo_Reply_Perm,Bo_SpecialHeader,Bo_StyleSheet,Bo_Image,Bo_Number

***add to the end, ",Bo_Hidden" / change to
SELECT Bo_Title,Bo_Keyword,Bo_Description,Bo_HTML,Bo_Hidden,Bo_Expire,Bo_Markup,Bo_Moderated,Bo_CatName,Bo_Cat,Bo_Read_Perm,Bo_Write_Perm,Bo_ThreadAge,Bo_Reply_Perm,Bo_SpecialHeader,Bo_StyleSheet,Bo_Image,Bo_Number,Bo_Hidden

***find
list($Title,$Keyword,$Description,$HTML,$Expires,$Markup,$Moderated,$Cattemp,$Catnum,$Groups,$WGroups,$ThreadAge,$RGroups,$header,$stylesheet,$forumimage,$bonum) = $dbh -> fetch_array($sth);

***add to the end, ",$HIDDEN" / change to
list($Title,$Keyword,$Description,$HTML,$HIDDEN,$Expires,$Markup,$Moderated,$Cattemp,$Catnum,$Groups,$WGroups,$ThreadAge,$RGroups,$header,$stylesheet,$forumimage,$bonum) = $dbh -> fetch_array($sth);

***find

if ($HTML == "On") {
$HTMLOn = "checked";
$HTMLOff = "";
}

***add ABOVE it

if ($HIDDEN == "On") {
$HIDDENOn = "checked";
$HIDDENOff = "";
}
else {
$HIDDENOff = "checked";
$HIDDENOn = "";
}

***find
{$ubbt_lang['F_DESC']}<br>
<textarea name=Description cols=60 rows=5 wrap=soft class="formboxes">$Description</textarea>
<br><br>

***add BELOW IT
<input type=radio name=HIDDEN value=On $HIDDENOn class="formboxes"> {$ubbt_lang['YES']}
<input type=radio name=HIDDEN value=Off $HIDDENOff class="formboxes"> {$ubbt_lang['NO']}
<br><br>


...
in /admin/doeditboard.php

***find
$Description = get_input("Description","post");
$HTML = get_input("HTML","post");

***add BELOW it
$HIDDEN = get_input("HIDDEN","post");

***find
$Description_q = addslashes($Description);
$HTML_q = addslashes($HTML);

***add BELOW it
$HIDDEN_q = addslashes($HIDDEN);

***find
SET Bo_Title='$Title_q', Bo_Description='$Description_q', Bo_HTML='$HTML_q', Bo_Expire = '$Expires', Bo_Markup = '$Markup_q', Bo_Moderated = '$Moderated_q', Bo_Read_Perm = '$CanRead',Bo_Write_Perm='$CanWrite',Bo_Reply_Perm='$CanReply',Bo_ThreadAge='$ThreadAge',Bo_SpecialHeader='$header', Bo_StyleSheet='$stylesheet', Bo_Image='$avurl' $extra

***change to
SET Bo_Title='$Title_q', Bo_Description='$Description_q', Bo_HTML='$HTML_q', Bo_Hidden='$HIDDEN_q', Bo_Expire = '$Expires', Bo_Markup = '$Markup_q', Bo_Moderated = '$Moderated_q', Bo_Read_Perm = '$CanRead',Bo_Write_Perm='$CanWrite',Bo_Reply_Perm='$CanReply',Bo_ThreadAge='$ThreadAge',Bo_SpecialHeader='$header', Bo_StyleSheet='$stylesheet', Bo_Image='$avurl' $extra


current developer of UBB.threads php forum software
current release: UBB.threads 8.0.0 // wip: UBB.threads 8.0.1
isaac @ id242.com // my forum @ CelicaHobby.com
Sponsored Links
Entire Thread
Subject Posted By Posted
Any way to create a forum and not have it show up in the index? coloradok5 07/18/2004 8:43 PM
Re: Any way to create a forum and not have it show up in the index? isaac 07/18/2004 11:17 PM
Re: Any way to create a forum and not have it show up in the index? shortbus 07/19/2004 4:25 AM
Re: Any way to create a forum and not have it show up in the index? scroungr 07/19/2004 6:00 AM
Re: Any way to create a forum and not have it show up in the index? isaac 07/25/2004 7:36 AM
Re: Any way to create a forum and not have it show up in the index? scroungr 07/25/2004 11:32 AM
Re: Any way to create a forum and not have it show up in the index? isaac 07/26/2004 4:35 AM
Re: Any way to create a forum and not have it show up in the index? scroungr 07/26/2004 4:09 PM
Re: Any way to create a forum and not have it show up in the index? isaac 07/27/2004 3:00 AM
Re: Any way to create a forum and not have it show up in the index? isaac 07/27/2004 3:04 AM
Re: Any way to create a forum and not have it show up in the index? isaac 07/27/2004 3:07 AM
Re: Any way to create a forum and not have it show up in the index? scroungr 07/27/2004 5:48 AM
Re: Any way to create a forum and not have it show up in the index? isaac 07/27/2004 10:58 AM

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:
Shock Hosting
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
JAISP
JAISP
PA
Posts: 449
Joined: February 2008
Forum Statistics
Forums63
Topics37,583
Posts293,955
Members13,824
Most Online151,614
Nov 14th, 2025
Today's Statistics
Currently Online 1514
Topics Created 0
Posts Made 0
Users Online 0
Birthdays 28
Top Posters
AllenAyres 21,080
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,834
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2026 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.1.0
(Snapshot build 20260108)