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

Register an Account
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 06-25-2006, 01:11 PM
Pligg Developer/Admin
Pligg Version: 0
Pligg Template: none
 
Join Date: Jun 2006
Location: Muncie, Indiana
Posts: 3,215
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 01:56 PM.
Reply With Quote
  #2 (permalink)  
Old 06-25-2006, 02:05 PM
Pligg Developer/Admin
Pligg Version: 0
Pligg Template: none
 
Join Date: Jun 2006
Location: Muncie, Indiana
Posts: 3,215
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, 11: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
Pligg Groups Yankidank Wiki Articles 6 02-13-2011 08:41 PM
[SOLVED] Complete solution to approve the story after being submitted redwine Questions and Comments 39 06-18-2009 03:39 PM
Submit story to a group feature needs enhancement for clearer and better usage argh2xxx Questions and Comments 0 02-25-2009 02:11 PM
How to direct story title in summary page to the original story? chris79 Questions and Comments 4 02-03-2008 08:28 PM
Idea for scalable story promotion jvallery Questions and Comments 6 04-18-2006 10:41 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