Category Links to Upcoming vs Index

Register an Account
Pligg Chat Room
Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-05-2007, 02:10 PM
spartacus's Avatar
Casual Pligger
 
Join Date: Mar 2007
Posts: 37
Folks

My application of Pligg has no real need for upcoming stories. On pages outside of index.php all of the category links in the sidebar take you to the "upcoming" results versus those in "published". Does anyone know how to ensure that the category links in the sidebar always go to "published" stories?

Thanks
Reply With Quote
  #2 (permalink)  
Old 11-05-2007, 09:47 PM
dollars5's Avatar
Pligg Donor
 
Join Date: Dec 2006
Location: India
Posts: 1,961
Just remove the link to upcoming in header.tpl
Next from admin -> configure site ->Votes -> set votes to published to 1
Edit submit.php do_submit_3() to redirect to site mail page.

You are done with totally excluding the upcoming pages (if you prefer you can even delete that file upcoming.php)
Reply With Quote
  #3 (permalink)  
Old 11-06-2007, 08:51 AM
spartacus's Avatar
Casual Pligger
 
Join Date: Mar 2007
Posts: 37
dollars5

Thanks for this...I've pretty much removed visual instances of Upcoming including the header. etc. I found the reference to upcoming in the categories.tpl file and removed it so that all of my category links point to published stories.

I'd already changed my "votes to published to 1" but I lost you with the reference to submit.php. Can you give me that again?

Thx

Quote:
Originally Posted by dollars5 View Post
Just remove the link to upcoming in header.tpl
Next from admin -> configure site ->Votes -> set votes to published to 1
Edit submit.php do_submit_3() to redirect to site mail page.

You are done with totally excluding the upcoming pages (if you prefer you can even delete that file upcoming.php)
Reply With Quote
  #4 (permalink)  
Old 11-06-2007, 09:33 PM
dollars5's Avatar
Pligg Donor
 
Join Date: Dec 2006
Location: India
Posts: 1,961
when you submit a new story - by default in submit.php do_submit_3() function you will be having a header("Location:".xxxx); - pointing to upcoming pages - if you update it to point to main page - it would work fine - else now on submitting a new story it will still redirect to upcoming page.
Reply With Quote
  #5 (permalink)  
Old 11-07-2007, 02:01 PM
spartacus's Avatar
Casual Pligger
 
Join Date: Mar 2007
Posts: 37
right on...so that's what i thought you mean and found the following in submit.php:

header("Location: " . getmyurl('upcoming'));

i tried changing 'upcoming' to 'published and after submitting a story you end up at 'live_published' versus the main page. when i change 'upcoming' to 'index' the page just goes blank after submitting a story.

any ideas?

thx
Reply With Quote
  #6 (permalink)  
Old 11-29-2007, 12:00 PM
The Edifier's Avatar
New Pligger
 
Join Date: Dec 2006
Location: Tenali, India
Posts: 16
Quote:
Originally Posted by spartacus View Post
right on...so that's what i thought you mean and found the following in submit.php:

header("Location: " . getmyurl('upcoming'));

i tried changing 'upcoming' to 'published and after submitting a story you end up at 'live_published' versus the main page. when i change 'upcoming' to 'index' the page just goes blank after submitting a story.

any ideas?

thx
header("Location:/news/");

Where pligg was installed on FACT News / Published News

This did take me to the home page of the application.
Reply With Quote
  #7 (permalink)  
Old 04-02-2008, 01:10 PM
New Pligger
Pligg Version: 9.9
Pligg Template: Mr. Techie
 
Join Date: Mar 2008
Location: Italy
Posts: 14
i solved setting


header("Location: index.php");

in submit.php ..after submitting it goes to the front page and the story is auto approved
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Control of meta description - categories Divisive Cotton Questions and Comments 65 11-06-2009 07:10 PM
Pligg Categories Yankidank Wiki Articles 1 12-17-2008 10:10 AM
[SOLVED] Upcoming Specific Category RSS Feeds blaze Questions and Comments 2 09-23-2008 09:10 AM
[SOLVED] category links point back to Upcoming News ortho Questions and Comments 1 09-21-2008 03:07 PM
/var/log/httpd/error_log messages gr8rcake Questions and Comments 3 01-28-2006 09:28 PM


Pligg Modules and Pligg Templates from Pligg Pro Find support on the Pligg CMS Forum - 24 hours a day! Make a donation to support Pligg CMS development