|
Joined: Jan 2000
Posts: 5,833 Likes: 20
UBBDev / UBBWiki Owner Time Lord
|
UBBDev / UBBWiki Owner Time Lord
Joined: Jan 2000
Posts: 5,833 Likes: 20 |
Well, I got bored and made up a small addon for my mainpage to search the UBB for whatever a user enters... I decided that I'd take and share this with anyone who wants to look at it. It's fairly basic... 6.5 and below: <!-- Start BBS Scan --> <p align="center"> <form action="http://www.undergroundnews.com/cgi-bin/ubbcgi/ultimatebb.cgi" method="post"> <input class="formbox" type="text" name="search_words" size="11" maxlength="35" /> <input type="hidden" name="ubb" value="search_tng" /> <input type="hidden" name="match_all" value="yes" /> <input type="hidden" name="search_forum" value="ALL" /> <input type="hidden" name="search_in" value="ALL" /> <input type="hidden" name="search_date" value="ALL" />
<input type="submit" value="Scan" class="buttons" /> </form>
<!-- End BBS Scan --> 6.6 and above: <!-- Start BBS Scan --> <p align="center"> <form action="http://www.undergroundnews.com/cgi-bin/ubbcgi/ultimatebb.cgi" method="post" /> <input type="hidden" name="ubb" value="search_tng" /> <input type="text" name="search_words" size="11" maxlength="35" /> <input type="hidden" name="match_all" value="no" /> <input type="hidden" name="search_forum" value="1" /> <input type="hidden" name="search_in" value="ALL" /> <input type="hidden" name="search_date" value="ALL" /> <input type="hidden" name="search_user" size="8" maxlength="8"/>
<input type="submit" name="submit" value="Search" /> </form>
<!-- End BBS Scan --> As you can see there, it uses all of the search fields from the search page, but their all hidden to process data to scan every page (yeh, I know you don't need all of 'em, but I figure better safe than sorry ya know)... Any questions, lay 'em on me...
|
|
|
|
Joined: Jan 2000
Posts: 5,833 Likes: 20
UBBDev / UBBWiki Owner Time Lord
|
UBBDev / UBBWiki Owner Time Lord
Joined: Jan 2000
Posts: 5,833 Likes: 20 |
and BTW, yes, it is CSSalized lol...
|
|
|
|
Joined: Mar 2000
Posts: 21,079 Likes: 3
I type Like navaho
|
I type Like navaho
Joined: Mar 2000
Posts: 21,079 Likes: 3 |
nice work gizzy, looks similar to our front page
|
|
|
|
Joined: Jan 2000
Posts: 5,833 Likes: 20
UBBDev / UBBWiki Owner Time Lord
|
UBBDev / UBBWiki Owner Time Lord
Joined: Jan 2000
Posts: 5,833 Likes: 20 |
thanks, tempted to help havoq with his problem when i get a moment lol...
|
|
|
|
Joined: Sep 2001
Posts: 672
Member
|
Member
Joined: Sep 2001
Posts: 672 |
ya well, i cant get mine to work <form action="http://www.domain.com/cgi-bin/ultimatebb.cgi" method="post">
<p class="search">Search Words:</b>
<input type="text" name="search_words" style="height: 22px; font-family: $vars_style{FontFace}; font-size: smaller;" value="Search for..." size="17" />
<input type="hidden" name="ubb" value="search_tng" /> <input type="hidden" name="match_all" value="yes" /> <input type="hidden" name="search_forum" value="ALL" /> <input type="hidden" name="search_in" value="ALL" /> <input type="hidden" name="search_date" value="ALL" />
<p align="center">
<p class="search">Search Forum:
<select name="search_forum">
<option value="1" selected="selected"> General </option>
<option value="2"> Classroom</option>
<option value="3"> Groups/Clubs</option>
<option value="4"> Events</option>
<option value="6"> Par-tay</option>
<option value="7"> Housing</option>
<option value="8"> Where Are You</option>
<option value="9"> ForSale Wanted</option>
<option value="12"> Sporting</option>
<option value="13"> Fitness/Nutri</option>
</select>
<p align="center">
<p class="search">Search In:
<select name="search_in">
<option value="ALL">Entire Message </option>
<option value="SUBJECT">Subject Only</option>
</select>
<input type="submit" name="submit" style="height: 23; font-family: $vars_style{FontFace}; width:32" value="Go" />
</form>
|
|
|
|
Joined: Jan 2000
Posts: 5,833 Likes: 20
UBBDev / UBBWiki Owner Time Lord
|
UBBDev / UBBWiki Owner Time Lord
Joined: Jan 2000
Posts: 5,833 Likes: 20 |
the one I made you worked perfectly, don't know what to tell you.
|
|
|
|
Joined: Jan 2000
Posts: 5,833 Likes: 20
UBBDev / UBBWiki Owner Time Lord
|
UBBDev / UBBWiki Owner Time Lord
Joined: Jan 2000
Posts: 5,833 Likes: 20 |
Also, you should follow the fields as they show in the script if you're goinna throw 'em all in ..
|
|
|
|
Joined: Sep 2001
Posts: 672
Member
|
Member
Joined: Sep 2001
Posts: 672 |
ur right, urs does work perfectly, i through it in a seperate file and ran it. Hmmm, now I have to see what im doing wrong.
Thanx gizzy
|
|
|
|
Joined: Sep 2001
Posts: 672
Member
|
Member
Joined: Sep 2001
Posts: 672 |
oh my god, lol <td height="185">
<form action="http://www.domain.com/cgi-bin/ultimatebb.cgi" method="post"> <input class="formbox" type="text" name="search_words" size="11" maxlength="35" /> <input type="hidden" name="ubb" value="search_tng" /> <input type="hidden" name="match_all" value="yes" /> <input type="hidden" name="search_forum" value="ALL" /> <input type="hidden" name="search_in" value="ALL" /> <input type="hidden" name="search_date" value="ALL" />
<input type="submit" value="Scan" class="buttons" /> </form>
</td> and it still doesnt work, how funny is that
|
|
|
|
Joined: Sep 2001
Posts: 672
Member
|
Member
Joined: Sep 2001
Posts: 672 |
im also getting that "You are attempting to reach a page that does not exist" on my login box also. So it cant be the code.
I dont get this.
It used to work on my old index.html page, but not on my new index.php page
|
|
|
|
Joined: Mar 2001
Posts: 7,394
Admin / Code Breaker
|
Admin / Code Breaker
Joined: Mar 2001
Posts: 7,394 |
uh, "www.domain.com/cgi-bin/ultimatebb.cgi", you replaced "www.domain.com" with your domain I hope
|
|
|
|
Joined: Jan 2000
Posts: 5,833 Likes: 20
UBBDev / UBBWiki Owner Time Lord
|
UBBDev / UBBWiki Owner Time Lord
Joined: Jan 2000
Posts: 5,833 Likes: 20 |
and i hoppe you have a table and not just the tags :x...
| |
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
Gizzy, this won't work for me http://www.alforadmin.com/ubb/index.php I typed in test and got an error
|
|
|
|
Joined: Jan 2000
Posts: 5,833 Likes: 20
UBBDev / UBBWiki Owner Time Lord
|
UBBDev / UBBWiki Owner Time Lord
Joined: Jan 2000
Posts: 5,833 Likes: 20 |
It appears the search for 6.6 is differant, i'll get it working here in a few minutes...
|
|
|
|
Joined: Jan 2000
Posts: 5,833 Likes: 20
UBBDev / UBBWiki Owner Time Lord
|
UBBDev / UBBWiki Owner Time Lord
Joined: Jan 2000
Posts: 5,833 Likes: 20 |
For 6.6 it'd be: <!-- Start BBS Scan --> <p align="center"> <form action="http://www.alforadmin.com/cgi-bin/ultimatebb.cgi" method="post" /> <input type="hidden" name="ubb" value="search_tng" /> <input type="text" name="search_words" size="11" maxlength="35" /> <input type="hidden" name="match_all" value="no" /> <input type="hidden" name="search_forum" value="ALL" /> <input type="hidden" name="search_in" value="ALL" /> <input type="hidden" name="search_date" value="ALL" /> <input type="hidden" name="search_user" size="8" maxlength="8"/>
<input type="submit" name="submit" value="Search" /> </form>
<!-- End BBS Scan --> Note that if you don't have search all forums on you'll need to change: <input type="hidden" name="search_forum" value="ALL" /> to indicate the forum you want to use as Note also that if you want it to be a dropdown you'll need to set the dropdown code instead of the hidden input... Gimme a holler if you can't figure it out...
|
|
|
|
Joined: Jan 2000
Posts: 5,833 Likes: 20
UBBDev / UBBWiki Owner Time Lord
|
UBBDev / UBBWiki Owner Time Lord
Joined: Jan 2000
Posts: 5,833 Likes: 20 |
Ok I updated the original post with new coding for 6.6... at least what i tested against al's board...
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
it doesn't seem to want to work for me. I copied the code word for word
|
|
|
|
Joined: Jan 2000
Posts: 5,833 Likes: 20
UBBDev / UBBWiki Owner Time Lord
|
UBBDev / UBBWiki Owner Time Lord
Joined: Jan 2000
Posts: 5,833 Likes: 20 |
|
|
|
|
Joined: Jan 2000
Posts: 5,833 Likes: 20
UBBDev / UBBWiki Owner Time Lord
|
UBBDev / UBBWiki Owner Time Lord
Joined: Jan 2000
Posts: 5,833 Likes: 20 |
Turnes out that Al didn't read the instructions... If you don't have search all forums allowed you need to specify the forum to search in...
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
I did too I just figured that would be on by default
|
|
|
|
Joined: Jan 2000
Posts: 5,833 Likes: 20
UBBDev / UBBWiki Owner Time Lord
|
UBBDev / UBBWiki Owner Time Lord
Joined: Jan 2000
Posts: 5,833 Likes: 20 |
Hehe its okie, it's why I'm here! becides, I help you test you help me ...
|
|
|
|
Joined: Mar 2000
Posts: 21,079 Likes: 3
I type Like navaho
|
I type Like navaho
Joined: Mar 2000
Posts: 21,079 Likes: 3 |
nice one, thanks
|
|
|
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.
|
|
Posts: 21,079
Joined: March 2000
|
|
Forums63
Topics37,573
Posts293,925
Members13,849
|
Most Online5,166 Sep 15th, 2019
|
|
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
|
|
|
|