Previous Thread
Next Thread
Print Thread
Rate Thread
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:
Code
<!-- 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:

Code
<!-- 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...


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, My UBB Scripts
Sponsored Links
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...


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, My UBB Scripts
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 smile


- Allen wavey
- What Drives 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
thanks, tempted to help havoq with his problem when i get a moment lol...


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, My UBB Scripts
Joined: Sep 2001
Posts: 672
Member
Member
Offline
Joined: Sep 2001
Posts: 672
ya well, i cant get mine to work

Code
<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>

Sponsored Links
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.


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, My UBB Scripts
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 smirk..


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, My UBB Scripts
Joined: Sep 2001
Posts: 672
Member
Member
Offline
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
Offline
Joined: Sep 2001
Posts: 672
oh my god, lol

Code
<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
Offline
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

Sponsored Links
Joined: Mar 2001
Posts: 7,394
LK Offline
Admin / Code Breaker
Admin / Code Breaker
Offline
Joined: Mar 2001
Posts: 7,394
uh, "www.domain.com/cgi-bin/ultimatebb.cgi", you replaced "www.domain.com" with your domain I hope tipsy

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...

UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, My UBB Scripts
Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
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...


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, My UBB Scripts
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:

Code
<!-- 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:

Code
    <input type="hidden" name="search_forum" value="ALL" />
to indicate the forum you want to use as
Code
value="#"
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...


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, My UBB Scripts
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...


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, My UBB Scripts
Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
Joined: Jan 2003
Posts: 3,456
Likes: 2
frown 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
I tested it against AFA!


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, My UBB Scripts
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...


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, My UBB Scripts
Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
Joined: Jan 2003
Posts: 3,456
Likes: 2
I did too frown 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 wink ...


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, My UBB Scripts
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 thumbsup


- Allen wavey
- What Drives You?

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
AllenAyres
AllenAyres
Texas
Posts: 21,079
Joined: March 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)