php forum
php mysql forum
php mysql smarty
 
Topic Options
#276905 - 07/18/04 01:43 PM Any way to create a forum and not have it show up in the index?
coloradok5 Offline
Enthusiast

Registered: 07/11/01
Posts: 462
Loc: Colorado
Any way to create a forum and not have it show up in the index?<br />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?<br />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.

Top
#276906 - 07/18/04 04:17 PM Re: Any way to create a forum and not have it show up in the index? [Re: bisbell]
id242_dup1 Offline
Member

Registered: 05/23/03
Posts: 159
Loc: Los Angeles
I'm all for this implementation as well... I can think of so many uses for this mod!<br /><br />thanks for any input into getting this suggestion into production (if it isn't already there) <img src="http://www.ubbdev.com/forum/images/graemlins/laugh.gif" alt="" />

Top
#276907 - 07/18/04 09:25 PM Re: Any way to create a forum and not have it show up in the index? [Re: VickiSmith]
shortbus Offline
Code Monkey

Registered: 04/19/02
Posts: 631
Loc: Enid, Oklahoma
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...

Top
#276908 - 07/18/04 11:00 PM Re: Any way to create a forum and not have it show up in the index? [Re: wilstephens]
scroungr Offline
Old Hand

Registered: 10/17/03
Posts: 2409
Loc: Richmond, VA
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 <br /><br />AND showboard = 0 <br /><br />then it won't show the forum you set to 1. <br /><br />then add a link such as http://www.yourdomain.com/ubbthreads/postlist.php/Cat/0/Board/keywordnameofboard<br /><br />and it will call the hidden board..
_________________________
Couchtomatoe - www.couch-tomatoe.cc
My abilities are for hire for installs, upgrades, custom themes and custom modifications.

Top
#276909 - 07/25/04 12:36 AM Re: Any way to create a forum and not have it show up in the index? [Re: 234234]
id242_dup1 Offline
Member

Registered: 05/23/03
Posts: 159
Loc: Los Angeles
scroungr, thanks for your advice... worked like a charm!!!

Top
#276910 - 07/25/04 04:32 AM Re: Any way to create a forum and not have it show up in the index? [Re: VickiSmith]
scroungr Offline
Old Hand

Registered: 10/17/03
Posts: 2409
Loc: Richmond, VA
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.
_________________________
Couchtomatoe - www.couch-tomatoe.cc
My abilities are for hire for installs, upgrades, custom themes and custom modifications.

Top
#276911 - 07/25/04 09:35 PM Re: Any way to create a forum and not have it show up in the index? [Re: 234234]
id242_dup1 Offline
Member

Registered: 05/23/03
Posts: 159
Loc: Los Angeles
done that already (that was written in your origonal sugestion <img src="http://www.ubbdev.com/forum/images/graemlins/cool.gif" alt="" />)


Attachments
117299-screen.jpg (41 downloads)


Top
#276912 - 07/26/04 09:09 AM Re: Any way to create a forum and not have it show up in the index? [Re: VickiSmith]
scroungr Offline
Old Hand

Registered: 10/17/03
Posts: 2409
Loc: Richmond, VA
cool now write up the mod and post it in the modification section <img src="http://www.ubbdev.com/forum/images/graemlins/smile.gif" alt="" />
_________________________
Couchtomatoe - www.couch-tomatoe.cc
My abilities are for hire for installs, upgrades, custom themes and custom modifications.

Top
#276913 - 07/26/04 08:00 PM Re: Any way to create a forum and not have it show up in the index? [Re: 234234]
id242_dup1 Offline
Member

Registered: 05/23/03
Posts: 159
Loc: Los Angeles
^^^ 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 <img src="http://www.ubbdev.com/forum/images/graemlins/threadvolution_blink.gif" alt="" /><br /><br />only three files needed to be hacked though:<br />ubbthreads.php, /admin/viewboard.php, /admin/doeditboard.php<br /><br />plus an extra column added to wt3_Boards database<br /><br />.....<br /><br />here are the basics though<br /><br />Edit your DATABASE by adding a new column, wt3_Boards<br />ALTER TABLE `wt3_Boards` CHANGE `Bo_Hidden` `Bo_Hidden` CHAR( 3 ) DEFAULT 'Off' NOT NULL <br /><br /><br />^^^ i think this is the correct query command - if not, atleast you get the idea of what needs to be added <img src="http://www.ubbdev.com/forum/images/graemlins/smile.gif" alt="" /><br /><br /><br />in ubbthreas.php<br /><br />***find<br /> $useroffset = "";<br /> $userstatus = "";<br /><br />*** add under it<br /> $Hidden = "";<br /><br />...<br /><br />***find<br /> $groupquery .= " OR ";<br /> }<br /> $groupquery .= "t1.Bo_Read_Perm LIKE '%-$Grouparray[$i]-%'"; <br /><br />*** add under it<br /> $groupquery .= " AND ";<br /> $groupquery .= "t1.Bo_Hidden = 'Off'"; <br /><br />...<br />***find (or something like it)<br /> 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<br /><br />*** add to the end of that line, ",t1.Bo_Hidden" so that it looks like this<br /><br /> 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<br /><br />...<br /><br />***find (or something like it)<br /> list($Title,$Description,$Keyword,$Total,$Last,$Number,$Moderated,$ReadPerm,$WritePerm,$Threads,$Sorter,$Posterid,$lastmain,$lastnumber,$Poster,$Subject,$Icon,$Reged,$AnonName,$forumimage) = $boardrows;<br /><br />*** add to the end of that line, ",$Hidden" so that it looks like this<br /><br /> list($Title,$Description,$Keyword,$Total,$Last,$Number,$Moderated,$ReadPerm,$WritePerm,$Threads,$Sorter,$Posterid,$lastmain,$lastnumber,$Poster,$Subject,$Icon,$Reged,$AnonName,$forumimage,$Hidden) = $boardrows;<br /><br />*** find<br /><br /> $forum[$x][$y]['time'] = $time;<br /> $forum[$x][$y]['lastpost'] = $lastpost;<br /> $forum[$x][$y]['lastposter'] = "$lastposter";<br /> $forum[$x][$y]['lastposturl'] = $lastposturl;<br /><br />***add under it<br /> $forum[$x][$y]['Hidden'] = $Hidden;<br /><br /><br />...<br />in /admin/viewboard.php<br /><br />*** find<br /> echo "<form method=post action = \"{$config['phpurl']}/admin/deleteboard.php\">\n";<br /> echo "<input type=hidden name=Number value=$Number>\n";<br /><br />*** change to<br /> echo "<form method=post action = \"{$config['phpurl']}/admin/deleteboard.php\">\n";<br /> echo "<input type=hidden name=Cat value=\"$Cat\">";<br /> echo "<input type=hidden name=Number value=$Number>\n";<br /><br />*** find (or something like it<br /> 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<br /><br />***add to the end, ",Bo_Hidden" / change to<br /> 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<br /><br />***find<br /> list($Title,$Keyword,$Description,$HTML,$Expires,$Markup,$Moderated,$Cattemp,$Catnum,$Groups,$WGroups,$ThreadAge,$RGroups,$header,$stylesheet,$forumimage,$bonum) = $dbh -> fetch_array($sth);<br /><br />***add to the end, ",$HIDDEN" / change to<br /> list($Title,$Keyword,$Description,$HTML,$HIDDEN,$Expires,$Markup,$Moderated,$Cattemp,$Catnum,$Groups,$WGroups,$ThreadAge,$RGroups,$header,$stylesheet,$forumimage,$bonum) = $dbh -> fetch_array($sth);<br /><br />***find<br /><br /> if ($HTML == "On") {<br /> $HTMLOn = "checked";<br /> $HTMLOff = "";<br /> }<br /><br />***add ABOVE it<br /><br /> if ($HIDDEN == "On") {<br /> $HIDDENOn = "checked";<br /> $HIDDENOff = "";<br /> }<br /> else {<br /> $HIDDENOff = "checked";<br /> $HIDDENOn = "";<br /> }<br /><br />***find<br /> {$ubbt_lang['F_DESC']}<br><br /> <textarea name=Description cols=60 rows=5 wrap=soft class=\"formboxes\">$Description</textarea><br /> <br><br><br /><br />***add BELOW IT<br /> <input type=radio name=HIDDEN value=On $HIDDENOn class=\"formboxes\"> {$ubbt_lang['YES']}<br /> <input type=radio name=HIDDEN value=Off $HIDDENOff class=\"formboxes\"> {$ubbt_lang['NO']}<br /> <br><br><br /><br /><br />...<br />in /admin/doeditboard.php<br /><br />***find<br /> $Description = get_input("Description","post");<br /> $HTML = get_input("HTML","post");<br /><br />***add BELOW it<br /> $HIDDEN = get_input("HIDDEN","post");<br /><br />***find<br /> $Description_q = addslashes($Description);<br /> $HTML_q = addslashes($HTML);<br /><br />***add BELOW it<br /> $HIDDEN_q = addslashes($HIDDEN);<br /><br />***find<br /> 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<br /><br />***change to<br /> 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

Top
#276914 - 07/26/04 08:04 PM Re: Any way to create a forum and not have it show up in the index? [Re: VickiSmith]
id242_dup1 Offline
Member

Registered: 05/23/03
Posts: 159
Loc: Los Angeles
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. <br /> <br />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. <br /> <br />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 <br /> <br />Your mileage may very <img src="http://www.ubbdev.com/forum/images/graemlins/laugh.gif" alt="" />

Top
#276915 - 07/26/04 08:07 PM Re: Any way to create a forum and not have it show up in the index? [Re: VickiSmith]
id242_dup1 Offline
Member

Registered: 05/23/03
Posts: 159
Loc: Los Angeles
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... <img src="http://www.ubbdev.com/forum/images/graemlins/smile.gif" alt="" /><br /><br />im not big on wanting to be in the 'spotlight'

Top
#276916 - 07/26/04 10:48 PM Re: Any way to create a forum and not have it show up in the index? [Re: VickiSmith]
scroungr Offline
Old Hand

Registered: 10/17/03
Posts: 2409
Loc: Richmond, VA
okay wrote it up for 6.5 and put it here<br /><br />http://www.ubbdev.com/forum/showflat.php...;vc=#Post117381<br /><br />making you the author <img src="http://www.ubbdev.com/forum/images/graemlins/smile.gif" alt="" />
_________________________
Couchtomatoe - www.couch-tomatoe.cc
My abilities are for hire for installs, upgrades, custom themes and custom modifications.

Top
#276917 - 07/27/04 03:58 AM Re: Any way to create a forum and not have it show up in the index? [Re: 234234]
id242_dup1 Offline
Member

Registered: 05/23/03
Posts: 159
Loc: Los Angeles
excellent work... thanks <img src="http://www.ubbdev.com/forum/images/graemlins/wink.gif" alt="" />

Top



Latest Posts
[7.2.1] - Naked shoutbox
by bellaonline
05/05/12 05:00 PM
[7.x] Stop Forum Spam Integration v0.4
by bellaonline
05/05/12 03:53 PM
Shout Box

(Views)Popular Topics
Known public proxy servers 1689885
Integrated Index Page (IIP) 5.3.1 555705
Finished-[6.5.2] Games Arcade Deluxe v1.9 501236
Integrated Index Page (IIP) 5.1.1 415112
TLD Bv2.1 Released - Threads Links Directory 396822
[6.0x] Who's Online 4.0.0 [Finished] 389412
Finished-[6.5.1] Integrated Index Page (IIP) 6.5 330423
Q & A 298663
Slash UBB 266936
[6.3.x] [beta] Hit Hack 2.0 227970
Forum Stats
13621 Members
59 Forums
37191 Topics
295716 Posts

Max Online: 686 @ 06/28/07 07:04 AM

 

 

 
fusionbb message board php hacks