Go Back   Pligg CMS Forum > Other > Suggestions

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-04-2007, 04:26 AM
dollars5's Avatar
Pligg is my love :)
 
Join Date: Dec 2006
Location: India
Posts: 2,154
Thanks: 290
Thanked 266 Times in 177 Posts
category / upcoming

I was just wondering - the current upcoming is for all categories together - is it possible to have a category wise upcoming stories as Digg has?

Just my thoughts.
Reply With Quote
  #2 (permalink)  
Old 05-04-2007, 04:55 AM
beatniak's Avatar
Pligg Donor
 
Join Date: Apr 2006
Location: NL - 52.100863;5.108356
Posts: 310
Thanks: 14
Thanked 77 Times in 48 Posts
Hi Dollars5, you have the link to www.mysite.com/upcoming.php?category=cat123 , right?

- digg has http://www.digg.com/view/technology/upcoming/ as main upcoming
- and links to other upcoming categories like http://www.digg.com/view/science/upcoming/

You already have this rule in your htaccess (or add it):
Code:
RewriteRule ^upcoming/category/([a-zA-Z0-9]+)/?$ upcoming.php?category=$1 [L]
so you already have something like www.mysite.com/upcoming/category/cat123

open up /templates/mytemplate/sidebar_modules/categories.tpl
And just hardcode the links to your categories (like this):
www.mysite.com/upcoming/category/cat1
www.mysite.com/upcoming/category/cat2
www.mysite.com/upcoming/category/cat3
www.mysite.com/upcoming/category/cat...

BTW... Always hardcode the links to your categories when your done adding all the categories, because that will be one database call less for ALL of you pages (w00t).

Then add this rule to your htaccess:
Code:
Redirect /upcoming/category/cat1 http://www.mysite.com/upcoming/ [L]
Redirect /upcoming/category/cat1 http://www.mysite.com/upcoming.php [L]
So the main "upcoming" pages goes to your main category page.

Does that solve your question?

EDIT:
if you don't like the link www.mysite.com/upcoming/category/cat123 but want to have a cleaner link like www.mysite.com/upcoming/cat123 , just change the htaccess line to:
Code:
RewriteRule ^upcoming/([a-zA-Z0-9]+)/?$ upcoming.php?category=$1 [L]
and you're done
__________________
Like my work? Donations are welcome if you would like to support my work!
Finger pliggin' good sites of mine: receptencocktail.nl / numarketing.nl / goboz.com

Last edited by beatniak; 05-04-2007 at 04:59 AM..
Reply With Quote
  #3 (permalink)  
Old 05-04-2007, 05:36 AM
dollars5's Avatar
Pligg is my love :)
 
Join Date: Dec 2006
Location: India
Posts: 2,154
Thanks: 290
Thanked 266 Times in 177 Posts
Thanks. Will play with this today.
Reply With Quote
Reply

Thread Tools
Display Modes
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Similar Threads
Thread Thread Starter Forum Replies Last Post
Control of meta description - categories Divisive Cotton Suggestions 63 10-16-2008 01:02 AM
[SOLVED] Upcoming Specific Category RSS Feeds blaze General Help 2 09-23-2008 09:10 AM
Category Listing for Published and Upcoming aviator General Help 0 06-11-2008 05:46 PM
Category Links to Upcoming vs Index spartacus General Help 6 04-02-2008 01:10 PM
Upcoming for each category peppolone General Help 2 06-22-2007 05:31 AM


Search Engine Friendly URLs by vBSEO 3.2.0