Buf Fix to story.php

Register an Account
Pligg Chat Room
Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 10-09-2006, 10:16 PM
New Pligger
 
Join Date: Jan 2006
Posts: 18
users who upgrade from old versions can no longer access old posts if they switch to friendly urls since the new version tries to use the title as a url and old posts do not have the title_url field filled in.

The Fix:

in story.php after line 32 put the redirection in an if statement

Code:
if ($url != my_pligg_base."/story.php?title=")
	{
		Header( "HTTP/1.1 301 Moved Permanently" );
		Header( "Location: " . $url );
	
		die();
	}
This way if you don't have a title field filled in you'll still be able to access posts via the id parameter
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to pass link id to story.php? ivytony Questions and Comments 0 03-05-2008 01:05 PM
[SOLVED] Bug in story.php with category URL ablaye Questions and Comments 1 01-18-2008 07:11 PM
adding traffic stats to story.php bbrian017 Questions and Comments 2 11-26-2007 09:48 AM
Set the story.php page title spuds Questions and Comments 0 11-10-2007 02:02 PM
story.php forum like feature noyp Questions and Comments 2 12-06-2006 02:58 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