Results 1 to 7 of 7
  1. #1
    Casual Pligger spartacus's Avatar
    Joined
    Mar 2007
    Posts
    37
    Thanks
    Received:0
    Given: 0

    Category Links to Upcoming vs Index

    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

  2. #2
    Pligg Donor dollars5's Avatar
    Joined
    Dec 2006
    Posts
    1,960
    Thanks
    Received:0
    Given: 0
    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)

  3. #3
    Casual Pligger spartacus's Avatar
    Joined
    Mar 2007
    Posts
    37
    Thanks
    Received:0
    Given: 0

    Removing Upcoming

    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)

  4. #4
    Pligg Donor dollars5's Avatar
    Joined
    Dec 2006
    Posts
    1,960
    Thanks
    Received:0
    Given: 0
    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.

  5. #5
    Casual Pligger spartacus's Avatar
    Joined
    Mar 2007
    Posts
    37
    Thanks
    Received:0
    Given: 0

    Removing Upcoming

    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

  6. #6
    New Pligger The Edifier's Avatar
    Joined
    Dec 2006
    Posts
    16
    Thanks
    Received:0
    Given: 0

    Smile See if this works

    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.

  7. #7
    New Pligger autodafe's Avatar
    Joined
    Mar 2008
    Posts
    14
    Thanks
    Received:0
    Given: 0
    i solved setting


    header("Location: index.php");

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

Similar Threads

  1. Why always upcoming links ?
    By meannn in forum Questions & Comments
    Replies: 3
    Last Post: 05-04-2010, 08:35 AM
  2. Endless index and upcoming page - no pages
    By wachaz in forum Questions & Comments
    Replies: 1
    Last Post: 01-19-2010, 07:48 AM
  3. Upcoming News Page - Item Links 404
    By insidedesign in forum Questions & Comments
    Replies: 3
    Last Post: 12-05-2008, 11:17 AM
  4. [SOLVED] category links point back to Upcoming News
    By ortho in forum Questions & Comments
    Replies: 1
    Last Post: 09-21-2008, 12:07 PM
  5. Adding outbound links to index.php
    By mrplough in forum Questions & Comments
    Replies: 3
    Last Post: 11-04-2006, 12:34 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Pligg Modules and Pligg Templates from Pligg Pro Web Hosting Services by Midphase Dreamhost Web Hosting Donate to Pligg