Home SePortal
Welcome Guest · Registration
Resources
Download Seportal
Demo Site
SePortal Sites

Users
Username:

Password:

Log me on automatically next visit?


» Forgot password
» Registration

Topics
Home
Seportal (5)
News (3)

Who is Online
Currently active users: 4
There are currently 0 registered user(s) (0 among them invisible) and 4 guest(s) online.

Random Image
Görüntüleme İzinleri/Permissions

Görüntüleme İzinleri/Permissions
Comments: 0
zebaniz

Powered By
Powered by SePortal

Rate SePortal at
Listed at Hot Scripts in PHP

Scripts.com


ScriptSearch.com



Add Reply New Topic

> Article Sorting
 
 
Warrior
Posted: 28.11.2008 - 21:15
Quote


Member
*

Group: Üyeler
Total posts: 4
User No: 186
Join Date: 28.11.2008 20:58



 
I noticed when editing an article that the date can be changed. After changing a date, however, it does NOT change the listing order.

How can I change the article listings by the dates I put in after modification?

Also, when making the Articles categories, is there a way to NOT have the sub-cats show up in the left/right boxes, but DO have them show up when the main Articles page is shown?
Offline Warrior
Top
 
zebaniz
Posted: 30.11.2008 - 15:12
Quote


Administrator
Group Icon

Group: Admin
Total posts: 306
User No: 1
Join Date: 01.01.2007 00:00



 
open index.php find (line 229)
PHP

$paging
->query("SELECT * FROM ".ARTICLE_TABLE." WHERE $where cat_id NOT IN ($cat_id_sql) AND article_active = 1 AND sticky = 0 ORDER BY article_id DESC");

and replace
PHP

$paging
->query("SELECT * FROM ".ARTICLE_TABLE." WHERE $where cat_id NOT IN ($cat_id_sql) AND article_active = 1 AND sticky = 0 ORDER BY article_date DESC");

You can just show main categories, if you want you cant show sub-cats
open includes/functions.php
find (line 1516)
PHP

if ($depth 1) {
        
$category_list .= str_repeat("-"$depth 1)." ".$cat_url."<br>";
      }
      else {
        
$category_list .= $cat_url."<br>";
      }

replace
PHP

$category_list 
.= $cat_url."<br>";

Offline zebaniz
Top
 
Warrior
Posted: 04.12.2008 - 04:39
Quote


Member
*

Group: Üyeler
Total posts: 4
User No: 186
Join Date: 28.11.2008 20:58



 
Thanks!
Offline Warrior
Top

Add Reply New Topic



Contribute | Forums | Gallery | Calendar | Links | Downloads | Members | Search | Guestbook | Article Directory

Powered by SePortal 2.5
Copyright © 2007-2012 SePortal.org