Navigation

Pligg Support

5
Question: Redirect to story page after submit
Answer: provided by nichoski 276 days ago
- 2 + Just replace example.com from the following example with your site's address.

In your submit.php file find:

header("Location: " . getmyurl('new'))

and replace it with the following two lines:

$thecat = get_cached_category_data('category_id', $linkres->category);

header("Location: http://example.com/$thecat->category_name/$linkres->title_url");
5
Question: Redirect to story page after submit
Answer: provided by nichoski 259 days ago
- 1 + What url method are you using?
5
Question: Redirect to story page after submit
Answer: provided by nichoski 259 days ago
- 1 + Oh, I've wrote it wrong in the link.

It's category_safe_name, not category_name.

So it should be:

header("Location: http://example.com/$thecat->category_safe_name/$linkres->title_url");
6
Question: [Not working] Negative votes to remove submission
Answer: provided by nichoski 275 days ago
- 2 + In version 2.0.1

When set to anything other than 0 posts get automatically discarded upon posting.

When set to 0, the post gets automatically discarded if the first vote the story gets is negative and made from the owner of the post. If anyone else votes before the owner, or if the owner doesn't give a negative vote, the story stays non discarded (as it should).
3
Question: Sort "search results" by number of votes
Answer: provided by nichoski 271 days ago
- 2 + Yes, in index.php find the line that has

orderBy = "link_published_date DESC, link_date DESC"

and replace that part with

orderBy = "link_votes DESC, link_date DESC"

That's for the posts on the index page. You can do the same in other search resutls by adding the orderBy variable and edit its arguments to your liking.