php forum
php mysql forum
php mysql smarty
 
Topic Options
#224297 - 09/08/02 03:32 PM [6.x] User List Sort By Location 1.1
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC

   [6.x] User List Sort By Location 1.1 to Del.icio.us Add to del.icio.us
  Digg [6.x] User List Sort By Location 1.1 Digg it
Mod Name / Version - User List Location 1.1<br /> ver 1.1 fixes some errors in my directions <img src="/forum/images/graemlins/wink.gif" alt="" /><br />Description - Adds the Location and Ability to sort by location to the User List<br />Working Under - 6.1 (code should be the same for 6.0.x)<br />Any pre-requisites - none<br />Author(s) - JoshPet<br />Credits - msula <br />Files Altered - showmembers.php, showmembers.tmpl<br />Database Altered - no <br />New Files - none<br />Notes - Haven't tested this... simply modified my profile status bar stuff to the userlist. Should work fine. Let me know. <img src="/threads/php/images/icons/smile.gif" alt="" /><br />Created on - September 8, 2002<br /><br />As always.... back up your files and database before installing any hacks. <img src="/threads/php/images/icons/wink.gif" alt="" /><br /><br />Again, I haven't tested this..... let us know how it works for you. <img src="/threads/php/images/icons/smile.gif" alt="" />


Attachments
56185-UserListLocation11.txt (86 downloads)



Edited by JoshPet (11/15/02 12:25 AM)
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#224298 - 09/11/02 10:14 AM Re: [6.x] User List Sort By Location 1.0 Beta [Re: Daine]
Wando Offline
Power User

Registered: 04/10/02
Posts: 64
Loc: UK
didn't work for me?
_________________________
www.planet-audi.net

Top
#224299 - 09/11/02 10:15 AM Re: [6.x] User List Sort By Location 1.0 Beta [Re: algorewon]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
Msula was going to try it.<br /><br />I'll have to set it up on a test site and verify.<br />
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#224300 - 11/13/02 11:01 PM Re: [6.x] User List Sort By Location 1.1 [Re: Daine]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
I had never used or tested this.<br /><br />Finally had the need to install this on a site, and found a few typos in my directions.<br /><br />I've updated the first post to version 1.1 which fixes my errors in the instructions.... <br />And I guess it's no longer "untested". Works for me! <img src="/forum/images/graemlins/laugh.gif" alt="" />
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#224301 - 11/14/02 10:41 PM Re: [6.x] User List Sort By Location 1.1 [Re: Daine]
coloradok5 Offline
Enthusiast

Registered: 07/11/01
Posts: 462
Loc: Colorado
Josh, what site has this working, I would like to check it out, sounds like what I was looking for.

Top
#224302 - 11/15/02 12:04 AM Re: [6.x] User List Sort By Location 1.1 [Re: Daine]
Gardener Offline
Addict

Registered: 05/11/99
Posts: 1956
Loc: Sweden, Uppsala
Small note, there is a missing </td> tag in the instructions for the template, it should look like this:<br /><br /><pre><font class="small">code:</font><hr><br />Change it to this:<br /><br /><td align="left" width="15%" nowrap="nowrap"><br /><a href="{$config['phpurl']}/showmembers.php?Cat=$Cat&amp;sb=$sortstatus&amp;page=$page"><br />{$ubbt_lang['USER_STATUS']} $StatusS<br /></a><br />[:"red"]</td>[/] <br /><td align="left" width="15%" nowrap="nowrap"><br /><a href="{$config['phpurl']}/showmembers.php?Cat=$Cat&amp;sb=$sortlocation&amp;page=$page"><br />Location $LocationS<br /></a><br /></pre><hr><br /><br />Also, further down in the script there is a colspan that needs to changed.<br /><br />Otherwise it seems to work fine.
_________________________
/Gardener | Complete list of my mods

Top
#224303 - 11/15/02 12:26 AM Re: [6.x] User List Sort By Location 1.1 [Re: c0bra]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
Thanks! <img src="/forum/images/graemlins/smile.gif" alt="" /><br /><br />Good eye.<br /><br />I've corrected the instructions attached to the first post. <img src="/forum/images/graemlins/smile.gif" alt="" />
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#224304 - 04/20/04 03:36 PM Re: [6.x] User List Sort By Location 1.1 [Re: Daine]
Pasqualist Offline
Member

Registered: 01/30/03
Posts: 285
Loc: Amsterdam, The Netherlands
Josh, I used this mod for 6.4 now and it works!! well... 95% <br /> <br />And I hope that someone here is able to help me sloving the missing 5% <img src="http://www.ubbdev.com/forum/images/graemlins/laugh.gif" alt="" /> <br /> <br />What's not working is the SORTING. When I click on 'location' in my User List, it sorts something, but I can't figure out what. <br /> <br />Can I send my showmembers.php to someone to check it out ? <br /> <br />Thanks! <br /> <br />Pasqual

Top
#224305 - 04/20/04 03:59 PM Re: [6.x] User List Sort By Location 1.1 [Re: 10k]
Pasqualist Offline
Member

Registered: 01/30/03
Posts: 285
Loc: Amsterdam, The Netherlands
Ok, I figured out that when clicking on 'Location' it does sort!! Only problem is that it shows the blanks first in stead of 'a' <img src="http://www.ubbdev.com/forum/images/graemlins/frown.gif" alt="" /><br /><br />I have no idea how I can correct this... anyone ?

Top
#224306 - 04/20/04 04:43 PM Re: [6.x] User List Sort By Location 1.1 [Re: 10k]
scroungr Offline
Old Hand

Registered: 10/17/03
Posts: 2409
Loc: Richmond, VA
I don't know this script that well but try to put in a ltrim() and why your at it a rtrim()
_________________________
Couchtomatoe - www.couch-tomatoe.cc
My abilities are for hire for installs, upgrades, custom themes and custom modifications.

Top
#224307 - 04/20/04 05:21 PM Re: [6.x] User List Sort By Location 1.1 [Re: 234234]
Pasqualist Offline
Member

Registered: 01/30/03
Posts: 285
Loc: Amsterdam, The Netherlands
Thanks for the suggestion scroungr, but I've got zero-point-one knowledge of php/sql <img src="http://www.ubbdev.com/forum/images/graemlins/wink.gif" alt="" /> <br /> <br />Applying the hack above was a piece of cake, but now I have no idea where I should put the ltrim() and rtrim(). <br />Can I send you my file ?

Top
#224308 - 04/20/04 06:07 PM Re: [6.x] User List Sort By Location 1.1 [Re: 10k]
scroungr Offline
Old Hand

Registered: 10/17/03
Posts: 2409
Loc: Richmond, VA
As I said not to sure of this mod.. hopes Josh speaks soon <img src="http://www.ubbdev.com/forum/images/graemlins/smile.gif" alt="" /> but I would try a ltrim here<br /><br />find list ($Username,$Reged,$ICQ,$Home,$Posts,$Status,$Location) = $dbh -> fetch_array($sth);<br />place under it<br /><br />$Username = ltrim(rtrim($Username));<br /><br />and see what the outcome is
_________________________
Couchtomatoe - www.couch-tomatoe.cc
My abilities are for hire for installs, upgrades, custom themes and custom modifications.

Top
#224309 - 04/21/04 12:09 AM Re: [6.x] User List Sort By Location 1.1 [Re: 234234]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
I'm not sure of a way around that - the sorting is being done in the MySQL query with an ORDER BY statement. This mod just adds an additional field to the existing user list functionality. The other user list fields all behave the same way... if you click on home page or ICQ number, all the ones without answers come first.
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top


Top Posters Last 30 Days
AllenAyres 13
Gizmo 10
sirdude 2
willing 2
S7ARBVCK 2
MattUK 1
Kevin H 1
Who's Online
0 Registered (), 26 Guests and 6 Spiders online.
Key: Admin, Global Mod, Mod
Shout Box

Latest Posts
Noob - need help, or a reality check!
by Gizmo
Today at 03:21 AM
Here I am! Rock me like a Hurricane!
by AllenAyres
09/02/08 03:05 PM
[7.x] Generic Page Outside of forum directory
by Gizmo
08/30/08 05:43 PM
Team UBBDev Rides Again!
by Gizmo
08/28/08 11:45 PM
Multiple Identity Detector
by MattUK
08/28/08 04:10 PM
[7.3.x] ubb.links
by AllenAyres
08/26/08 09:57 AM
Installing FlashChat with 7.3
by Gizmo
08/23/08 05:36 AM
New Mods
Installing FlashChat with 7.3
by Paug
08/23/08 12:14 AM
[7.3.x] ubb.links
by AllenAyres
06/20/08 11:50 PM
[7.2.1] - Naked shoutbox
by sirdude
08/17/07 10:36 PM
[7.x] Generic Page Outside of forum directory
by
01/14/07 10:58 PM
Multiple Identity Detector
by
12/30/06 06:39 PM
Newest Members
veedubb8, twentyseven, Claus1, welcomeback1, Paug
13327 Registered Users

 

 

 
fusionbb message board php hacks