In this board you can talk about general questions about phpMyFAQ
Moderator: Thorsten
veggierebel
Posts: 5 Joined: Fri Apr 09, 2004 3:44 am
Location: San Francisco Bay Area, CA
Post
by veggierebel » Fri Apr 09, 2004 3:50 am
Hi
Sorry for writing this in English, but my German is really bad and I dont think you'd appreciate a Google Tools translation
I've been playing with phpMyFAQ for a few days now and think it's great.
One feature I can't find is a way to sort or re-order the questions once they've been entered.
I can see that you can re-order the catagories.
Do you think it would be very difficult to implement such a feature for the questions themselves if the feature doesn't already exist?
Many thanks
Chris
veggierebel
Posts: 5 Joined: Fri Apr 09, 2004 3:44 am
Location: San Francisco Bay Area, CA
Post
by veggierebel » Fri Apr 09, 2004 4:24 am
I've done some digging in the code and I see how the re-order works for the categories.
I can also see that the when questions are viewed they're sorted by rubrik/category then id.
So, we'd have to add another field to sort on.
Thorsten
Posts: 15739 Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:
Post
by Thorsten » Fri Apr 09, 2004 7:17 am
Hi,
these features will be added to phpMyFAQ 1.4.
bye
Thorsten
veggierebel
Posts: 5 Joined: Fri Apr 09, 2004 3:44 am
Location: San Francisco Bay Area, CA
Post
by veggierebel » Fri Apr 09, 2004 8:04 am
Thanks.
I've made some progress myself tonite, but the code is not very eligant.
Any idea when this feature will be added to the current release of 1.4?
Thanks again
Chris
Thorsten
Posts: 15739 Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:
Post
by Thorsten » Fri Apr 09, 2004 8:06 am
Hi Chris,
it will be added in the next weeks or months...
bye
Thorsten
veggierebel
Posts: 5 Joined: Fri Apr 09, 2004 3:44 am
Location: San Francisco Bay Area, CA
Post
by veggierebel » Fri Apr 09, 2004 8:15 am
Thanks for the prompt response.
Sounds like I may just go ahead and make a quick hack to my setup then to tide me over until the new release
veggierebel
Posts: 5 Joined: Fri Apr 09, 2004 3:44 am
Location: San Francisco Bay Area, CA
Post
by veggierebel » Fri Apr 09, 2004 10:06 am
hack done.
i added a sort column and some new code in record.show.php to add links pointing at a new function which is similar to the swap code for the categories (category.php). i also added the new sort column to the ORDER BY on some SELECT's.
when new questions are first added i set the sort field to be the same as the new record id.
one reason i didnt just swap record id's to sort instead of adding a new sort field is that i want to keep the id's static so i can use them in links throught my site.
i'm happy how this tool has worked out and i know it's going to be very helpful on my website.
thanks again
chris