php forum
php mysql forum
php mysql smarty
 
Page 1 of 2 1 2 >
Topic Options
#115576 - 08/27/03 04:58 AM Add a Search for your UBB on your mainpage!
Gizmo Online   shocked

Wizard

Registered: 01/10/00
Posts: 5354
Loc: Portland, OR, USA
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 - Where you too can render your UBB install completely useless...
UGN Security, Elite Web Gamers & VNC Web Design & Development President
UBB.Threads: My UBBSkins, UBB.Sitemaps

Top
#115577 - 08/27/03 04:58 AM Re: Add a Search for your UBB on your mainpage!
Gizmo Online   shocked

Wizard

Registered: 01/10/00
Posts: 5354
Loc: Portland, OR, USA
and BTW, yes, it is CSSalized lol...
_________________________
UBB.Dev - Where you too can render your UBB install completely useless...
UGN Security, Elite Web Gamers & VNC Web Design & Development President
UBB.Threads: My UBBSkins, UBB.Sitemaps

Top
#115578 - 08/28/03 11:42 PM Re: Add a Search for your UBB on your mainpage!
AllenAyres Offline

I type Like navaho

Registered: 03/10/00
Posts: 25580
Loc: Texas
nice work gizzy, looks similar to our front page smile
_________________________
- Allen wavey
- What Drives You?

Top
#115579 - 08/29/03 12:46 AM Re: Add a Search for your UBB on your mainpage!
Gizmo Online   shocked

Wizard

Registered: 01/10/00
Posts: 5354
Loc: Portland, OR, USA
thanks, tempted to help havoq with his problem when i get a moment lol...
_________________________
UBB.Dev - Where you too can render your UBB install completely useless...
UGN Security, Elite Web Gamers & VNC Web Design & Development President
UBB.Threads: My UBBSkins, UBB.Sitemaps

Top
#115580 - 09/04/03 12:44 AM Re: Add a Search for your UBB on your mainpage!
havoq Offline
Member

Registered: 09/11/01
Posts: 667
Loc: MI
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&nbsp; </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&nbsp;&nbsp;</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>
_________________________
-Jon
I have a measly [img]http://www.ubbdev.com/ud/?u=chugger93&s=1[/img] points, it's weak, I know wink
Where I continue to hack, even though it's a state of mind

Top
#115581 - 09/04/03 12:49 AM Re: Add a Search for your UBB on your mainpage!
Gizmo Online   shocked

Wizard

Registered: 01/10/00
Posts: 5354
Loc: Portland, OR, USA
the one I made you worked perfectly, don't know what to tell you.
_________________________
UBB.Dev - Where you too can render your UBB install completely useless...
UGN Security, Elite Web Gamers & VNC Web Design & Development President
UBB.Threads: My UBBSkins, UBB.Sitemaps

Top
#115582 - 09/04/03 12:50 AM Re: Add a Search for your UBB on your mainpage!
Gizmo Online   shocked

Wizard

Registered: 01/10/00
Posts: 5354
Loc: Portland, OR, USA
Also, you should follow the fields as they show in the script if you're goinna throw 'em all in smirk..
_________________________
UBB.Dev - Where you too can render your UBB install completely useless...
UGN Security, Elite Web Gamers & VNC Web Design & Development President
UBB.Threads: My UBBSkins, UBB.Sitemaps

Top
#115583 - 09/05/03 08:35 AM Re: Add a Search for your UBB on your mainpage!
havoq Offline
Member

Registered: 09/11/01
Posts: 667
Loc: MI
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
_________________________
-Jon
I have a measly [img]http://www.ubbdev.com/ud/?u=chugger93&s=1[/img] points, it's weak, I know wink
Where I continue to hack, even though it's a state of mind

Top
#115584 - 09/05/03 08:44 AM Re: Add a Search for your UBB on your mainpage!
havoq Offline
Member

Registered: 09/11/01
Posts: 667
Loc: MI
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
_________________________
-Jon
I have a measly [img]http://www.ubbdev.com/ud/?u=chugger93&s=1[/img] points, it's weak, I know wink
Where I continue to hack, even though it's a state of mind

Top
#115585 - 09/05/03 09:21 AM Re: Add a Search for your UBB on your mainpage!
havoq Offline
Member

Registered: 09/11/01
Posts: 667
Loc: MI
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
_________________________
-Jon
I have a measly [img]http://www.ubbdev.com/ud/?u=chugger93&s=1[/img] points, it's weak, I know wink
Where I continue to hack, even though it's a state of mind

Top
#115586 - 09/05/03 02:34 PM Re: Add a Search for your UBB on your mainpage!
LK Offline
Admin / Code Breaker

Registered: 03/24/01
Posts: 7396
uh, "www.domain.com/cgi-bin/ultimatebb.cgi", you replaced "www.domain.com" with your domain I hope tipsy
_________________________

My Hacks Page (will be back with UBB 7!)
UBBDev - We put the class into UBB.classic!

Top
#115587 - 09/05/03 08:14 PM Re: Add a Search for your UBB on your mainpage!
Gizmo Online   shocked

Wizard

Registered: 01/10/00
Posts: 5354
Loc: Portland, OR, USA
and i hoppe you have a table and not just the <td> tags :x...
_________________________
UBB.Dev - Where you too can render your UBB install completely useless...
UGN Security, Elite Web Gamers & VNC Web Design & Development President
UBB.Threads: My UBBSkins, UBB.Sitemaps

Top
#115588 - 11/14/03 07:32 PM Re: Add a Search for your UBB on your mainpage!
Ian Spence Offline
Master Hacker

Registered: 01/25/03
Posts: 3765
Loc: Saint Johns, PA
Gizzy, this won't work for me

http://www.alforadmin.com/ubb/index.php

I typed in test and got an error

Top
#115589 - 11/15/03 03:28 AM Re: Add a Search for your UBB on your mainpage!
Gizmo Online   shocked

Wizard

Registered: 01/10/00
Posts: 5354
Loc: Portland, OR, USA
It appears the search for 6.6 is differant, i'll get it working here in a few minutes...
_________________________
UBB.Dev - Where you too can render your UBB install completely useless...
UGN Security, Elite Web Gamers & VNC Web Design & Development President
UBB.Threads: My UBBSkins, UBB.Sitemaps

Top
#115590 - 11/15/03 03:41 AM Re: Add a Search for your UBB on your mainpage!
Gizmo Online   shocked

Wizard

Registered: 01/10/00
Posts: 5354
Loc: Portland, OR, USA
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 - Where you too can render your UBB install completely useless...
UGN Security, Elite Web Gamers & VNC Web Design & Development President
UBB.Threads: My UBBSkins, UBB.Sitemaps

Top
#115591 - 11/15/03 03:46 AM Re: Add a Search for your UBB on your mainpage!
Gizmo Online   shocked

Wizard

Registered: 01/10/00
Posts: 5354
Loc: Portland, OR, USA
Ok I updated the original post with new coding for 6.6... at least what i tested against al's board...
_________________________
UBB.Dev - Where you too can render your UBB install completely useless...
UGN Security, Elite Web Gamers & VNC Web Design & Development President
UBB.Threads: My UBBSkins, UBB.Sitemaps

Top
#115592 - 11/15/03 10:19 AM Re: Add a Search for your UBB on your mainpage!
Ian Spence Offline
Master Hacker

Registered: 01/25/03
Posts: 3765
Loc: Saint Johns, PA
frown it doesn't seem to want to work for me. I copied the code word for word

Top
#115593 - 11/15/03 06:43 PM Re: Add a Search for your UBB on your mainpage!
Gizmo Online   shocked

Wizard

Registered: 01/10/00
Posts: 5354
Loc: Portland, OR, USA
I tested it against AFA!
_________________________
UBB.Dev - Where you too can render your UBB install completely useless...
UGN Security, Elite Web Gamers & VNC Web Design & Development President
UBB.Threads: My UBBSkins, UBB.Sitemaps

Top
#115594 - 11/15/03 07:17 PM Re: Add a Search for your UBB on your mainpage!
Gizmo Online   shocked

Wizard

Registered: 01/10/00
Posts: 5354
Loc: Portland, OR, USA
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 - Where you too can render your UBB install completely useless...
UGN Security, Elite Web Gamers & VNC Web Design & Development President
UBB.Threads: My UBBSkins, UBB.Sitemaps

Top
#115595 - 11/15/03 07:23 PM Re: Add a Search for your UBB on your mainpage!
Ian Spence Offline
Master Hacker

Registered: 01/25/03
Posts: 3765
Loc: Saint Johns, PA
I did too frown I just figured that would be on by default

Top
Page 1 of 2 1 2 >



Moderator:  Gizmo, tackaberry 
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