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
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 (81 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: 1954
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 83
Gizmo 29
sirdude 24
Zarzal 22
blaaskaak 13
willing 7
swebs 6
Who's Online
2 Registered (blaaskaak, sirdude), 39 Guests and 7 Spiders online.
Key: Admin, Global Mod, Mod
Shout Box

Latest Posts
Nice Ajax Chat
by sirdude
07/05/08 04:29 PM
[7.x] UBB.Post Templates v0.1
by sirdude
07/05/08 12:48 PM
Team UBBDev Rides Again!
by AllenAyres
07/04/08 10:56 PM
[7.3.x] ubb.links
by AllenAyres
07/03/08 06:15 PM
Changing currency for subscriptions?
by AllenAyres
07/03/08 01:15 PM
Protect users emails
by AllenAyres
07/03/08 11:36 AM
VPS and Newbies
by Gizmo
07/02/08 09:08 PM
New Mods
Protect users emails
by Basil Fawlty
06/29/08 08:44 AM
[7.3.x] Scheduled board close for backup
by blaaskaak
06/26/08 04:01 AM
[7.3+] CustomTag - Audo Embedding
by Gizmo
06/24/08 07:52 PM
[7.3.x] ubb.links
by AllenAyres
06/20/08 11:50 PM
[7.3] Dissallow quotes more then 3 levels deep
by blaaskaak
06/09/08 09:01 AM
Newest Members
ryzilla, M4D, Jer, Kanigo2, Bubba
13302 Registered Users

 

 

 
fusionbb message board php hacks