SimplePortal
Customization => Custom Coding => Topic started by: amopro on June 12, 2010, 01:19:45 AM
-
How do I stick the article that i want on top of first page because of after i add new article the new one will replace it. thanks
-
Moved to the Custom Coding board.
The edit below will mean that any topics that are stickied within their boards (and are also articles of course), will be shown at the topic of the articles list.
ORDER BY a.id_message DESC' . (empty($modSettings['articleperpage']) ? '' : '
ORDER BY t.is_sticky DESC, a.id_message DESC' . (empty($modSettings['articleperpage']) ? '' : '
-
Thanks very much but will it have a problem when I update new version of simpleportal?
-
You will need to make the edit again when you next update SimplePortal. If the edit doesn't work for a new version. you can always ask for an updated edit.
-
doesnt work on 2.3.4 with 2.0.2
Unknown column 't.is_sticky' in 'order clause'
File: /home/vrforum/public_html/Sources/PortalArticles.php
Line: 97