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
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



Latest Posts
[7.2.1] - Naked shoutbox
by bellaonline
05/05/12 05:00 PM
[7.x] Stop Forum Spam Integration v0.4
by bellaonline
05/05/12 03:53 PM
Shout Box

(Views)Popular Topics
Known public proxy servers 1689885
Integrated Index Page (IIP) 5.3.1 555705
Finished-[6.5.2] Games Arcade Deluxe v1.9 501236
Integrated Index Page (IIP) 5.1.1 415112
TLD Bv2.1 Released - Threads Links Directory 396822
[6.0x] Who's Online 4.0.0 [Finished] 389412
Finished-[6.5.1] Integrated Index Page (IIP) 6.5 330423
Q & A 298663
Slash UBB 266936
[6.3.x] [beta] Hit Hack 2.0 227970
Forum Stats
13621 Members
59 Forums
37191 Topics
295716 Posts

Max Online: 686 @ 06/28/07 07:04 AM

 

 

 
fusionbb message board php hacks