Page 1 of 1
Ascending
Posted: Tue Feb 22, 2005 9:45 pm
by TNTH
I've got a problem with the "Sort Ascending:" button. When put it on, it put's itselfes off when pressing the apply- or submitbutton. I've got the problem in FF and in IE and I'm using the 0.9-release.
Can someone help me out???
still...
Posted: Tue Mar 01, 2005 9:44 am
by TNTH
I still haven't got an answer and I still have the problem in version 0.9.2 en 0.8.2.
Anyone any idea???
Ascending
Posted: Tue Mar 01, 2005 10:31 am
by Ted
Sorry. Sometimes I miss some posts.
I'm not completely sure where the Sort Ascending button is...
Screenshot
Posted: Tue Mar 01, 2005 2:12 pm
by TNTH
No problem, it's getting busy here. Even I'm not able anymore to read all the posts
The Sort Ascending button is at Content Management >> News (if you'll have a newspage and at Content Type chose News)
Here is a screenshot (49 kb, 1024x660px, gif).
Hope you can help me, I currently am using 0.8.2 at the website.
Re: Ascending
Posted: Thu Mar 03, 2005 11:00 am
by TNTH
Jeah... i solved my problem....here's what i changed
Within the cmsmadesimple\modules\news\News.module.php file
CMS version: 0.9.2
old 274:
new 274:
old 1010:
Code: Select all
if (isset($params['sortasc']) && $params['sortasc'] == 1)
new 1010:
I looked at a similar option(Show Category)...at least i think it workes the same, i edited the above lines while thinking of the similar option.
and it worked for me.
I would like to have feedback on this code if anyone has problems.
In version 0.8.2 the following file has to be changed: cmsmadesimple\modules\news\modulefunctions.php
old 134:
new 134:
It should work now in 0.8.2 too.
good luck

Re: Ascending
Posted: Thu Mar 03, 2005 12:34 pm
by Ted
Thanks very much for the fix. I'll put it in later today.
Re: Ascending
Posted: Thu Mar 03, 2005 12:38 pm
by TNTH
You're welcome
I'll hope that the other users have profit of it.
Re: Ascending
Posted: Sun Mar 27, 2005 10:22 pm
by Sjors
I am using version 0.9.2 and I was able to find the code
if (isset($params["sortasc"]))
(although only once and not at the same line number), but not
if (isset($params['sortasc']) && $params['sortasc'] == 1)
. So I changed the first part, but this doesn't have any effect.
Sjors
Re: Ascending
Posted: Fri Oct 21, 2005 9:57 pm
by Nicke
The bug still hasnt been fixed!
I have the lates version and the code looks like this:
Code: Select all
if (isset($params["sortasc"]))
{
$query .= "asc";
}
else
{
$query .= "desc";
}
Could someone fix this soon?