Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Nov 2001
Posts: 126
Junior Member
Junior Member
Offline
Joined: Nov 2001
Posts: 126
Yep, on my board and this one.. the search by display name feature doesnt work.. says "no matches"

Sponsored Links
nonomen #231980 01/05/2003 5:04 PM
Joined: Nov 2001
Posts: 126
Junior Member
Junior Member
Offline
Joined: Nov 2001
Posts: 126
Also, just noticed..

When you click directly on the last post link .. it doesnt remove the "new messages" count in the threads and posts category.. even if that was the only new message in the forum.. you have to actually enter the forum to make it reset.

Joined: Jun 2001
Posts: 3,273
That 70's Guy
That 70's Guy
Offline
Joined: Jun 2001
Posts: 3,273
It's always been like that. The script postlist.php does the actual setting of read posts. It is better now with 6.2 but it may not always work by going to the post directly.

Joined: Apr 2002
Posts: 1,768
Addict
Addict
Offline
Joined: Apr 2002
Posts: 1,768

joeuser #231983 01/05/2003 5:39 PM
Joined: Nov 2001
Posts: 126
Junior Member
Junior Member
Offline
Joined: Nov 2001
Posts: 126
Thanks all

-Bry

Sponsored Links
Joined: Jun 2001
Posts: 3,273
That 70's Guy
That 70's Guy
Offline
Joined: Jun 2001
Posts: 3,273
To fix this edit your dosearch.php script and change this:
Code
<br />	if ($Match == "Username") {<br />		$query = "<br />			SELECT U_Username<br />			FROM	 {$config['tbprefix']}Users<br />			WHERE  U_Number = '$Words'<br />		";<br />		$sth = $dbh -> do_query($query);<br />		list($printwords) = $dbh -> fetch_array($sth);<br />	}<br />


to this:

Code
<br />	if ($Match == "Username") {<br />		$query = "<br />			SELECT U_Number,U_Username<br />			FROM	 {$config['tbprefix']}Users<br />			WHERE  U_Username = '$Words'<br />		";<br />		$sth = $dbh -> do_query($query);<br />		list($searchunum,$printwords) = $dbh -> fetch_array($sth);<br />	}<br />


Change this:

Code
<br />   elseif ($Match == "Username") {<br />      $Words_q = addslashes($Words);<br />      $query = $query."AND B_Posterid = '$Words_q'";<br />      $query = $query."\nAND B_Reged = 'y'\n";<br />   }<br />


to this:

Code
<br />   elseif ($Match == "Username") {<br />      $Words_q = addslashes($searchunum);<br />      $query = $query."AND B_Posterid = '$Words_q'";<br />      $query = $query."\nAND B_Reged = 'y'\n";<br />   }<br />


and that should do the trick.

sjsaunders #231985 01/06/2003 2:45 PM
Joined: Nov 2001
Posts: 126
Junior Member
Junior Member
Offline
Joined: Nov 2001
Posts: 126
Thanks!

Works Great! :-)

Joined: Oct 2002
Posts: 165
Member
Member
Offline
Joined: Oct 2002
Posts: 165
This is the only change I made to dosearch and it appears to be fine. This mod works fine... but now when in a user's profile and you choose Show all user's posts.. I get No Matches

Anyone else have this experience?

Here is the URL that bring that No Match result
http://www.esportbike.com/wwwthread...archpage=0&Limit=25&Old=allposts

Since the dosearch is in the URL.. I thought this would be where to look.
edit

Yes, this is it. I reverted back and the show all works and the search doesn't and re hacked the cut and paste and the search works, but the show all does not. Any feedback as to if we can get both working?

Last edited by sportbikes; 01/07/2003 6:14 PM.
Joined: Jun 2001
Posts: 3,273
That 70's Guy
That 70's Guy
Offline
Joined: Jun 2001
Posts: 3,273
Yes I fixed this here as well.

To fix this you need to edit showprofile.tmpl and change this:


<a href="{$config['phpurl']}/dosearch.php?Cat=$Cat&Forum=All_Forums&Words=$User&Match=Username&Searchpage=0&Limit=25&Old=allposts">


to this:


<a href="{$config['phpurl']}/dosearch.php?Cat=$Cat&Forum=All_Forums&Words=$CheckUser&Match=Username&Searchpage=0&Limit=25&Old=allposts">


And that should do the trick.

Joined: Nov 2001
Posts: 126
Junior Member
Junior Member
Offline
Joined: Nov 2001
Posts: 126
[]Yes I fixed this here as well.

To fix this you need to edit showprofile.tmpl and change this:


<a href="{$config['phpurl']}/dosearch.php?Cat=$Cat&Forum=All_Forums&Words=$User&Match=Username&Searchpage=0&Limit=25&Old=allposts">


to this:


<a href="{$config['phpurl']}/dosearch.php?Cat=$Cat&Forum=All_Forums&Words=$CheckUser&Match=Username&Searchpage=0&Limit=25&Old=allposts">


And that should do the trick. [/]


Why am I not finding that in showprofile.tmpl?

Sponsored Links
Joined: Oct 2002
Posts: 165
Member
Member
Offline
Joined: Oct 2002
Posts: 165
BryanDS,

Be sure you are looking at ./templates/default/showprofile.tmpl and not the .php file

alsalmicom #231990 01/08/2003 1:18 PM
Joined: Nov 2001
Posts: 126
Junior Member
Junior Member
Offline
Joined: Nov 2001
Posts: 126
hmm, Im at work so I was doing it through the "Edit templates" in the admin section.. still didnt find it.

Could be that Im blind.. 8)

nonomen #231991 01/08/2003 1:27 PM
Joined: Oct 2002
Posts: 165
Member
Member
Offline
Joined: Oct 2002
Posts: 165
Go to the bottom and work your way up give or take 20 lines up including spaces.

You can also click inside the template section once loaded and use the "Find" under edit in IE. I searched for dosearch and it dound it that way, too.

alsalmicom #231992 01/08/2003 1:49 PM
Joined: Nov 2001
Posts: 126
Junior Member
Junior Member
Offline
Joined: Nov 2001
Posts: 126
Its official, I was blind.

Found it!

Thanks Sportsbikes, and Dave L / justdave for the fix(s).

Last edited by BryanDS; 01/08/2003 1:52 PM.

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
isaac
isaac
California
Posts: 1,157
Joined: July 2001
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 20240430)