Go Back   Pligg CMS Forum > Pligg Help > Customization Assistance

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 08-12-2008, 06:25 PM
New Pligger
Pligg Version: 9.9.0
 
Join Date: Aug 2008
Posts: 14
Thanks: 2
Thanked 0 Times in 0 Posts
turns to homepage instead of upcoming after sumbition?

hi
how can i modify the programm that the page turns to homepage instead of upcoming after submition?

in submit.php i found

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

but i dont know how to modify it,hope that someone can help me.

thx!!
Reply With Quote
  #2 (permalink)  
Old 08-12-2008, 09:37 PM
chuckroast's Avatar
Coder/Designer
Pligg Version: 1.0
Pligg Template: ExpertVision
 
Join Date: Jun 2006
Location: PA
Posts: 2,399
Thanks: 171
Thanked 440 Times in 279 Posts
Quote:
Originally Posted by jackpu View Post
hi
how can i modify the programm that the page turns to homepage instead of upcoming after submition?

in submit.php i found

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

but i dont know how to modify it,hope that someone can help me.

thx!!
Have you tried this?
Code:
header("Location: " . getmyurl('published'));
    die;
__________________
Visit PliggPro the official Pligg Mods & Template Shop!

Reply With Quote
  #3 (permalink)  
Old 08-12-2008, 09:49 PM
Yankidank's Avatar
Coder/Designer
Pligg Version: SVN
Pligg Template: Wistie
 
Join Date: Dec 2005
Location: Ocala, FL
Posts: 1,832
Thanks: 110
Thanked 183 Times in 129 Posts
Send a message via AIM to Yankidank Send a message via Skype™ to Yankidank
Nope chuck, that doesn't work.
__________________
Need a Pligg Host?
Get 3 free months
when you buy a year of hosting.
Use the coupon PLIGG at either...
MidPhase hosting starting at $7.95/month.
ANhosting hosting starting as low as $4.95/month.
Reply With Quote
  #4 (permalink)  
Old 08-12-2008, 10:35 PM
redwine's Avatar
Pligg Donor
Pligg Version: 9.8
Pligg Template: custom templat
 
Join Date: Jul 2007
Location: Canada
Posts: 216
Thanks: 20
Thanked 102 Times in 65 Posts
Published instead of upcoming

This is the correct one:

Code:
header("Location: " . getmyurl('root'));
It will take you to the published page after submitting a story. However, the story won't show in the published unless you have modified the "Voting" under "Configure yoursite" in the admin section admin:

Click on "Voting" and change this (in red) to the number of votes you want. If you have set auto voting, than change the value to 1 otherwise, change it to 0:
Votes to publish
description: Number of votes before story is sent to the front page.
value: 5
default value: 5
expected values: number
Reply With Quote
The Following 3 Users Say Thank You to redwine For This Useful Post:
  #5 (permalink)  
Old 08-12-2008, 10:53 PM
New Pligger
Pligg Version: 9.9.0
 
Join Date: Aug 2008
Posts: 14
Thanks: 2
Thanked 0 Times in 0 Posts
it works great,thank you!
Reply With Quote
  #6 (permalink)  
Old 08-12-2008, 11:41 PM
Yankidank's Avatar
Coder/Designer
Pligg Version: SVN
Pligg Template: Wistie
 
Join Date: Dec 2005
Location: Ocala, FL
Posts: 1,832
Thanks: 110
Thanked 183 Times in 129 Posts
Send a message via AIM to Yankidank Send a message via Skype™ to Yankidank
Wow, root. I would have never thought of that. Thanks redwine.
__________________
Need a Pligg Host?
Get 3 free months
when you buy a year of hosting.
Use the coupon PLIGG at either...
MidPhase hosting starting at $7.95/month.
ANhosting hosting starting as low as $4.95/month.
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 Off
[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
[SOLVED] Upcoming Specific Category RSS Feeds blaze General Help 2 09-23-2008 09:10 AM
Show Upcoming News in homepage kamash2006 General Help 2 01-16-2008 10:01 PM
[MOD] Showing # of Upcoming Stories in v9.6 abcdefgary Modification Tutorials 10 08-01-2007 05:13 AM
Removing old submissions from the upcoming queue fsdave General Help 1 06-06-2007 10:39 PM
Revamp pligg homepage srikat Suggestions 2 06-20-2006 11:24 PM


Search Engine Friendly URLs by vBSEO 3.2.0