Home Private Messages Search
CPG Dragonfly™ CMS stopsoftwarepatents.eu petition banner
Toggle Content
 
Forums ⇒ DragonflyCMS ⇒ Add-Ons & Blocks :: Archives ⇒ FAQ insists on putting questions in alaphabetical order :: Archived


FAQ insists on putting questions in alaphabetical order :: Archived
Need help creating a block or add-on, or you have created or modified a block/add-on that works in Dragonfly CMS and it meets the CPG Security Requirements? Do you have feedback about a specific add-on? Here is the place to post. Read the announcements here first!.
Post new topic    Revive this topic    Printer Friendly Page     Forum Index ⇒  Add-Ons & Blocks

Topic Archived View previous topic :: View next topic  
Author Message
SangFori
Newbie
Newbie

Offline Offline
Joined: Nov 23, 2004
Posts: 27

PostPosted: Fri Dec 17, 2004 3:52 am
Post subject: FAQ insists on putting questions in alaphabetical order

How do I stop it, and keep them in the order I put the questions in? I searched the forums to no avail.


SangFori's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Fedora 4/Apache 2.0/Mysql 4.1.14/Php 5.0.4/Dragonfly 9.0.7
Back to top
View user's profile Visit poster's website
Trevor
Developer
Developer

Offline Offline
Joined: Apr 19, 2004
Posts: 2170
Location: New York
PostPosted: Fri Dec 17, 2004 3:54 am
Post subject: Re: FAQ insists on putting questions in alaphabetical order

Open modules/FAQ/index.php, find on line 29:
PHP:
$sql = "SELECT id, question, answer FROM ".$prefix."_faqanswer WHERE id_cat='$id_cat' ORDER BY question $order";

Replace with:
PHP:
$sql = "SELECT id, question, answer FROM ".$prefix."_faqanswer WHERE id_cat='$id_cat' ORDER BY id $order";


Trevor's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Linux / 1.3.34 / 4.1.18 / 4.4.2 / CVS
Back to top
View user's profile Photo Gallery
SangFori
Newbie
Newbie

Offline Offline
Joined: Nov 23, 2004
Posts: 27

PostPosted: Fri Dec 17, 2004 4:38 am
Post subject: Re: FAQ insists on putting questions in alaphabetical order

thank you Trevor


SangFori's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Fedora 4/Apache 2.0/Mysql 4.1.14/Php 5.0.4/Dragonfly 9.0.7
Back to top
View user's profile Visit poster's website
Display posts from previous:   
Post new topic    Revive this topic    Printer Friendly Page    Forum Index ⇒  Add-Ons & Blocks
Page 1 of 1
All times are GMT

Archive Revive
Username:
This is an archived topic - your reply will not be appended here.
Instead, a new topic will be generated in the active forum.
The new topic will provide a reference link to this archived topic.
 
   Toggle Content User Info

Welcome Anonymous

Nickname
Password
(Register)

   Toggle Content Last CVS commits
· Further security class improvements.
· 301 redirects on LEO changes
· Option to force 3xx http status codes
· Validate googlebot.com and google.com crawlers.
· CCBot
· Rss with etag and atom.
· Removed index.php depency.
· v9 fixed menu hoverings on touch screens.
· Fixed menu hoverings on touch screens.
· Fixed empty $Module object

Детальніше...

   Toggle Content Community

Support for DragonflyCMS in a other languages:

Deutsch
Español

   Toggle Content X-links
UltraEdit Browse Happy logo Firefox MySQL PostgreSQL Valid CSS! Valid XHTML 1.0! Unicode Encoded Badge NukeBiz Resources Raven DragonflyCMS Dedicated Now InsideSupport Lampe Berger

You are seeing squares or questionmarks on this page?

All content of this website is copyrighted by the Creative Commons NC-SA
The logos and trademarks used on this site are the property of their respective owners
We are not responsible for comments posted by our users, as they are the property of the poster.
Our server runs on a P3 1.2GHz with 512MB RAM with no accelerators
Support GoPHP5.org
Interactive software released under GNU GPL, Code Credits, Privacy Policy