This will allow the user to specify searching the subject or body only or both. It also allows specifying the username in addition to the search criteria and not as an either/or option.
This also provides the fix so that showflat.php and showthreaded.php display your multiple word search results all words are highlighted.
There seemed to be an error for me in dosearch.php where the line
if ($Searchpage 0) {
is used.
I had to change this to
if ($Searchpage) {
to make it work for me.
Give me some feedback on how this goes. It may need some adjusting.
I just looked again at my last download from the members area of ubbthreads-6-0-2.tar.gz and it does look like what I showed. Is your file from an earlier version?
posted by MTO: My ubbthreads-6-0-2.tar.gz says the same as AllenAyres: [:"#666666"] if ($Searchpage < 0) { $html -> not_right($ubbt_lang['NO_MORE'],$Cat); } [/]
I just downloaded it again and know what? Mine doesn't say that... LoL
Perhaps winzip is removing things? LoL I hope not.
Hi Dave, Just installed this one, works great! Thanks. A typo: you mention that in dosearch.php, you need to replace if ($Searchpage 0) { with if ($Searchpage) {
But it looks like in the latest version, the problem was fixed in the base code... and it looks like it should really be
LoL this has been gone over in this thread. When I look at a fresh dosearch.php script right out of the .tar.gz file from the latest version release I have that error.
Oddly enough, someone sent me a dosearch.php script that they could not make work with the hack and I noticed they had the same error.
I have no idea why some have it (mostly me) and some dont.
So if your dosearch.php doesn't match the line that needs changing you probably shouldn't change it.
Got it... but I was trying to say that if someone does need to change it, they should change it to " < 0 " as opposed to removing the 0 as your latest attached instructions state.
posted by JustDave: Yeah I thought of that after I uploaded it. I forgot that Allen had showed me what it should look like. LoL wish there was a way to edit attachments.
Check out scream's latest changes to 6.1, that's coming
I think I may have found a buglet with this or in the base code. I was looking for a php editor and typed that in the search box and got this: click me
Seems it inserts a bold tag around every instance of php, even when it's a link to a smiley here, since /php/ is in the url Someway to fix this? I thought rick had fixed it in the base code.
I've added the possibility for users to search through their sent and received PM:s to this hack. Instead of selecting a forum to search for, an PM-option can be selected instead. There is also a quick search box added to the PM box on My Home.
At the moment the code is a bit ugly, it works, but since the search is somewhat different for PM:s there is a lot of if statements. I don't really like that everything inside the loop that iterates through the search results is within an if statement and it does different things based on if the user searches the PM:s or the posts. I've also done an extra template for the PM:s search results. But I've used the normal search script because I didn't want to have two search pages and much of the code that builds the query is the same.
If anyone is interested in this hack I'll try to clean it up a bit and make instructions for it.
*show all messages of other user (profile): ok *show all messages of myself (profile): ok *Seach for all posts of other username: ok *Seach for all posts of myself: does not work (That means if I click: show next page 3 times here: ERROR)
UPDATE: I was too quick, for some reason now ALL seems to work. No idea what I did wrong, when testing!!!!
It's coming, it is finished, I just need to write the install instructions. I got sidetracked on fixing some bugs in threads and writing the BypassModeration mod. It will probably take a couple of days until it's ready though.
New to this version I've added the possibility to search the Private Messages. I hope I've got all the instructions correct, but I'm not sure. Please let me know if it works. =]
Mod Name / Version Searchpage Upgrade 3.0beta Description This will add the option to search subject or body or both. Also, it allows for a seperate username field so searches can be done with specific criteria along with the username. It also allows for users to search through their sent and received Private Messages. Working under UBB.threads 6.0.3 Any pre-requisites None Author(s) Dave Lozier, Gardener Credits Gardener for adding the PM-search. Demo Not at the moment Files Altered dosearch.tmpl, dosearch.php, myhome.tmpl, languages/dosearch.php Database Altered No New Files dosearch_PM.tmpl Any other info This hack is heavily based on the Searchpage Upgrade 2.0 hack by Dave Lozier.
I haven't seen the new code Gardener has added but from what I can remember there shouldn't be a problem with what I had added. Has anyone else got this running with 6.1 BR1 ?
Yes you are correct. I believe I forgot to add that in here too. I had mentioned this change somewhere around here before but had forgotten about it. 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.