Automaitcally put submissions on the front page

Register an Account
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 09-21-2006, 12:28 PM
bergs's Avatar
Casual Pligger
 
Join Date: Sep 2006
Posts: 43
I have seen in this forum mentions of modifications you can make to automaitcally put submissions on the front page. I can't seem to find the code to do this though!

I would really like to know how I can bypass the shakeit.php page and send a submission to the front page with 0 votes by modifying pligg 7.

Thanks!
bergs
Reply With Quote
  #2 (permalink)  
Old 09-21-2006, 01:24 PM
Pligg Developer/Admin
Pligg Version: 0
Pligg Template: none
 
Join Date: Jun 2006
Location: Muncie, Indiana
Posts: 3,215
In the latest Pligg nightly you can do this. It does the same thing but in a different way. In the latest code there's an option to automatically vote for the story when you submit it. If you set your pligg settings to publish stories after they have 1 vote then you're good because when you submitted the story it added a vote.
Reply With Quote
  #3 (permalink)  
Old 09-21-2006, 01:37 PM
bergs's Avatar
Casual Pligger
 
Join Date: Sep 2006
Posts: 43
Thanks kbeeveer46!

I saw that posting - is it possible to add the code changes to Beta 7.2?
Reply With Quote
  #4 (permalink)  
Old 09-21-2006, 03:00 PM
savant's Avatar
Constant Pligger
 
Join Date: Apr 2006
Location: UK
Posts: 1,181
have a look at submit_step_3

Just before

59 $linkres->store();

Add this

$linkres->status="published";

This will set the status of the story to published. and stories should be on the front page.
Reply With Quote
  #5 (permalink)  
Old 09-21-2006, 03:02 PM
bergs's Avatar
Casual Pligger
 
Join Date: Sep 2006
Posts: 43
Thanks Savant! - Will give it a try.
Reply With Quote
  #6 (permalink)  
Old 09-21-2006, 03:33 PM
bergs's Avatar
Casual Pligger
 
Join Date: Sep 2006
Posts: 43
Savant,

I tried what you said and still my submissions are going to the shakeit.php page

I'm running Pligg Beta 7.2 and using the Skidoo_too template.
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Page Variables Yankidank Wiki Articles 3 05-19-2011 09:21 AM
How Do I make my front page story summaries bigger? musicalmissionary Questions and Comments 5 07-19-2009 01:38 AM
RSS front page shows empty pligg 1.0 RC4 argh2xxx Questions and Comments 2 04-18-2009 03:17 PM
Submissions are gone off front page. NEED HELLLPPPP!!! xplicit Questions and Comments 4 06-18-2008 10:53 AM
[Request] Expandable submissions on front page Xenos Questions and Comments 0 02-01-2007 10:27 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