php forum
php mysql forum
php mysql smarty
 
Topic Options
#272465 - 04/15/04 07:48 PM Added a colum postlist.php can't get sorter to work
oceanwest Offline
Enthusiast

Registered: 04/25/02
Posts: 490
Loc: Escondido, CA

   Added a colum postlist.php can Add to del.icio.us
  Digg Added a colum postlist.php can Digg it
Ok I added a column to my postlist.php called Version and I did what I thought looked like ti would work. But for some reason the sorters don't work The sort for the Version column dosen't work and the rating sort sorts the version column?!<br /><br />I have starred at postlist.php and the tmpl for over an hour and can't figure out why?
_________________________
FM Forums
Largest Online FileMaker Community
http://www.fmforums.com

Top
#272466 - 04/15/04 10:42 PM Re: Added a colum postlist.php can't get sorter to work [Re: sdf123]
scroungr Offline
Old Hand

Registered: 10/17/03
Posts: 2409
Loc: Richmond, VA
would help to see em <img src="http://www.ubbdev.com/forum/images/graemlins/smile.gif" alt="" />
_________________________
Couchtomatoe - www.couch-tomatoe.cc
My abilities are for hire for installs, upgrades, custom themes and custom modifications.

Top
#272467 - 04/15/04 10:45 PM Re: Added a colum postlist.php can't get sorter to work [Re: sdf123]
scroungr Offline
Old Hand

Registered: 10/17/03
Posts: 2409
Loc: Richmond, VA
wowsa your board took some time to load <img src="http://www.ubbdev.com/forum/images/graemlins/smile.gif" alt="" /> heres the link to the postlist.php<br /><br />http://www.fmforums.com/threads/postlist.php/Cat/0/Board/upgrade
_________________________
Couchtomatoe - www.couch-tomatoe.cc
My abilities are for hire for installs, upgrades, custom themes and custom modifications.

Top
#272468 - 04/15/04 11:30 PM Re: Added a colum postlist.php can't get sorter to work [Re: 234234]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
That's a bit involved. Not too difficult but more than I can summarize verbally. Best clue is to look at the array where the sort is handled.<br /><br />Under this:<br />// -------------------------<br />// Set up some sorting stuff<br />if ($sb == 1) {<br /><br /><br />You'll need to setup two new $sb numbers for each field. Ascending/decending.<br /><br />Under this:<br /><br />// ---------------------<br />// Set some sorting opts<br /><br />give each sort option a variable name - use the odd number that you added above.<br /><br />Under this:<br /><br />// -----------------------------------------------<br />// Make sure we are giving the proper sort options<br />if ($sb == 1) {<br /> $sortsubject = 2;<br />} else {<br /> $sortsubject = 1;<br /><br /><br />Add whatever variable you used int he previous section so the option properly gets "switched" when clicked.<br /><br /><br />Then there are 2 parts like this:<br />$sort_opt = array(<br /><br />Add your options and your query code there. Add 2 lines, one for Ascending and 2 for descending.<br /><br /><br />That should cover it. Make sure you've modified each of those areas and you should be fine.
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#272469 - 04/16/04 12:27 AM Re: Added a colum postlist.php can't get sorter to work [Re: Daine]
oceanwest Offline
Enthusiast

Registered: 04/25/02
Posts: 490
Loc: Escondido, CA
Ahhh. I got it.... I forgot to change a variable $sortversion.
_________________________
FM Forums
Largest Online FileMaker Community
http://www.fmforums.com

Top


Who's Online
0 Registered (), 38 Guests and 6 Spiders online.
Key: Admin, Global Mod, Mod
Shout Box

Latest Posts
Blogs, love em or hate em?
by AllenAyres
10/07/08 02:05 PM
What do you use to edit the files
by Ian_W
10/05/08 03:33 PM
BeyondCompare v3.00
by Ian_W
10/05/08 03:32 PM
Glossy Black Theme with Image Reflection
by Gizmo
10/05/08 02:17 PM
ShareThis
by Gizmo
09/28/08 05:06 AM
[7.3] Viewing MySQL logfiles made easier
by AllenAyres
09/27/08 09:57 PM
Looking for a simple upload script
by Murphdog
09/26/08 08:45 PM
New Mods
[7.3] Viewing MySQL logfiles made easier
by blaaskaak
09/24/08 05:39 PM
[7.3.1] add search to showmembers page
by blaaskaak
09/07/08 04:50 AM
Multiple Identity Detector
by
12/30/06 06:39 PM
Newest Members
pisa666, ghengis317, NitroX, Dogan, EliYah-
13345 Registered Users
Top Posters Last 30 Days
AllenAyres 12
blaaskaak 8
tackaberry 7
FREAK1 6
Mike L_dup1 4
Chris Bale 4
Ian_W 4

 

 

 
fusionbb message board php hacks