Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Jul 2001
Posts: 442
Enthusiast
Enthusiast
Offline
Joined: Jul 2001
Posts: 442
Any way to create a forum and not have it show up in the index?
I want to create a member feedback forum and have a link to it in the header of my classified forum, but I do not want it to show up anywhere else, is this possiable?
I have seen it done with VB as a sub forum but Infopop does not want to do sub's for some reason, but that is another story I'm sure.

Sponsored Links
Joined: Jul 2001
Posts: 1,157
Likes: 82
coffee and code
coffee and code
Joined: Jul 2001
Posts: 1,157
Likes: 82
I'm all for this implementation as well... I can think of so many uses for this mod!

thanks for any input into getting this suggestion into production (if it isn't already there)


Current developer of UBB.threads PHP Forum Software
Current Release: UBBT 7.7.5 // Preview: UBBT 8.0.0
isaac @ id242.com // my forum @ CelicaHobby.com
Joined: Apr 2002
Posts: 610
Code Monkey
Code Monkey
Joined: Apr 2002
Posts: 610
I'd love to see this as well, and asked about it several times awhile back. I want it so I can have a news section without having a bunch of news forums showing up...

Joined: Oct 2003
Posts: 2,305
Old Hand
Old Hand
Joined: Oct 2003
Posts: 2,305
simple.. add another field to the w3t_Boards table called showboard and set it to default to 0 and fopr the board you want to show set it to 1 and then in the categories.php and ubbthreads.php where it calls the board array do a

AND showboard = 0

then it won't show the forum you set to 1.

then add a link such as http://www.yourdomain.com/ubbthreads/postlist.php/Cat/0/Board/keywordnameofboard

and it will call the hidden board..

Joined: Jul 2001
Posts: 1,157
Likes: 82
coffee and code
coffee and code
Joined: Jul 2001
Posts: 1,157
Likes: 82
scroungr, thanks for your advice... worked like a charm!!!


Current developer of UBB.threads PHP Forum Software
Current Release: UBBT 7.7.5 // Preview: UBBT 8.0.0
isaac @ id242.com // my forum @ CelicaHobby.com
Sponsored Links
Joined: Oct 2003
Posts: 2,305
Old Hand
Old Hand
Joined: Oct 2003
Posts: 2,305
now you can get fancier also and in your admin panel where you edit or create the forums add an area for setting it to hidden or not hidden.

Joined: Jul 2001
Posts: 1,157
Likes: 82
coffee and code
coffee and code
Joined: Jul 2001
Posts: 1,157
Likes: 82
done that already (that was written in your origonal sugestion )
Attachments
117299-screen.jpg (0 Bytes, 57 downloads)


Current developer of UBB.threads PHP Forum Software
Current Release: UBBT 7.7.5 // Preview: UBBT 8.0.0
isaac @ id242.com // my forum @ CelicaHobby.com
Joined: Oct 2003
Posts: 2,305
Old Hand
Old Hand
Joined: Oct 2003
Posts: 2,305
cool now write up the mod and post it in the modification section

Joined: Jul 2001
Posts: 1,157
Likes: 82
coffee and code
coffee and code
Joined: Jul 2001
Posts: 1,157
Likes: 82
^^^ 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: UBBT 7.7.5 // Preview: UBBT 8.0.0
isaac @ id242.com // my forum @ CelicaHobby.com
Joined: Jul 2001
Posts: 1,157
Likes: 82
coffee and code
coffee and code
Joined: Jul 2001
Posts: 1,157
Likes: 82
PLEASE USE THE ABOVE CODE AT YOUR OWN RISK - MY SETUP IS QUITE MODIFIED AND MAY BE ENTIRELY DIFFERENT THAN STOCK UBBTHREADS - I POSTED THE ABOVE CODE/GUIDE AS WALK-THROUGH FOR HOW THIS MOD MAY BE ACCOMPLISHED, NOT AS A HOW-TO GUIDE.

MAKE A BACKUP OF ALL THE FILES YOU PLAN ON MODIFYING, SO YOU CAN REVERT BACK IF YOUR INSTALL DOESN'T WORK OUT AS PLANNED.

I'M RUNNING UBBT A 6.2.3 / 6.5b4 HYBRID - BUT THIS MOD IS SO SIMPLE THAT IT SHOULD WORK JUST FINE ON UBBT 6.2.3 THROUGH 6.4x

Your mileage may very


Current developer of UBB.threads PHP Forum Software
Current Release: UBBT 7.7.5 // Preview: UBBT 8.0.0
isaac @ id242.com // my forum @ CelicaHobby.com
Sponsored Links
Joined: Jul 2001
Posts: 1,157
Likes: 82
coffee and code
coffee and code
Joined: Jul 2001
Posts: 1,157
Likes: 82
scroungr, if you want to try this code in stock UBBT and release it as your own UBBT mod - please feel free to do it...

im not big on wanting to be in the 'spotlight'


Current developer of UBB.threads PHP Forum Software
Current Release: UBBT 7.7.5 // Preview: UBBT 8.0.0
isaac @ id242.com // my forum @ CelicaHobby.com
Joined: Oct 2003
Posts: 2,305
Old Hand
Old Hand
Joined: Oct 2003
Posts: 2,305
okay wrote it up for 6.5 and put it here

https://www.ubbdev.com/forum/showflat.php?Cat=0&Number=117381&page=0&vc=#Post117381

making you the author

Joined: Jul 2001
Posts: 1,157
Likes: 82
coffee and code
coffee and code
Joined: Jul 2001
Posts: 1,157
Likes: 82
excellent work... thanks


Current developer of UBB.threads PHP Forum Software
Current Release: UBBT 7.7.5 // Preview: UBBT 8.0.0
isaac @ id242.com // my forum @ CelicaHobby.com

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
isaac
isaac
California
Posts: 1,157
Joined: July 2001
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)