Pligg CMS Forums


Go Back   Pligg CMS Forum > Pligg Help > General Help



URL for every story is www.mysite.com/1


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-25-2006, 12:11 PM
kbeeveer46's Avatar
Pligg Developer/Admin
Pligg Version: 0
Pligg Template: none
 
Join Date: Jun 2006
Location: Muncie, Indiana
Posts: 3,547
URL for every story is www.mysite.com/1

At first I thought It was my hosting company because other people were having problems but I'm on my third one (each of them were free) and it's still doing it.

my site is http://kyle.getmypage.com/

I wanted the links to go straight to the articles so I changed this

<a href="{$story_url}" >

with:

<a href="{$url}">

Hover over the headlines and you will see that every link says http://kyle.getmypage.com/1

I wish I knew some PHP so I could solve this on my own but there are so many files. Any suggestions? Thank you.

Last edited by kbeeveer46; 06-25-2006 at 12:56 PM.
Reply With Quote
Sponsor
  #2 (permalink)  
Old 06-25-2006, 01:05 PM
kbeeveer46's Avatar
Pligg Developer/Admin
Pligg Version: 0
Pligg Template: none
 
Join Date: Jun 2006
Location: Muncie, Indiana
Posts: 3,547
I fixed my problem using this thread

http://www.pligg.com/forum/showthrea...et%28%24url%29

Quote:
A couple of lines down I notice the following test:

Code:

if(!($this->html = $xxx)) { return; }


Shouldn't that read

Code:

if(!($this->html === $xxx))
Reply With Quote
  #3 (permalink)  
Old 03-02-2008, 10:45 PM
New Pligger
Pligg Version: Pligg 9.8
Pligg Template: Default
 
Join Date: Nov 2007
Posts: 17
That dint fix my problem with mysite.com/1 bug. I am using pligg as an article manager rather than a digg like website. So, I have disabled url fields from the submit area.
Somehow the title links were being redirected to mysite.com/1 for every entry. After researching a lot, I finally managed to fix it using a little trick. But I am not sure if this is the right way of going about..
This is what I did:
In out.php, comment the code -
Header( "HTTP/1.1 301 Moved Permanently" );
header('Location: '. $link->url);

and in above it add -
$url = getmyurl("storyURL", $link->category_safe_name($link->category), urlencode($link->title_url), $link->id);
Header( "HTTP/1.1 301 Moved Permanently" );
Header( "Location: " . $url );

This did work for me but I am just not sure if this is the right fix. Any help is highly appreciated.
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Complete solution to approve the story after being submitted redwine Modification Tutorials 39 06-18-2009 02:39 PM
how to completely REMOVE links from the title in the full story page? VictorML Customization Assistance 5 09-18-2008 09:26 AM
How to direct story title in summary page to the original story? chris79 General Help 4 02-03-2008 07:28 PM
Display story id in the story aaronpais General Help 1 06-03-2007 09:02 PM
Idea for scalable story promotion jvallery Suggestions 6 04-18-2006 09:41 PM

Pligg Modules and Pligg Templates from Pligg Pro Find support on the Pligg CMS Forum - 24 hours a day! Use the coupon code PLIGG at Dreamhost.com to receive a discount of up to $84.00 Make a donation to support Pligg CMS development