Go Back   Pligg Forum > Pligg Help > General Help
Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-25-2006, 11:11 AM
kbeeveer46's Avatar
kbeeveer46 kbeeveer46 is offline
Pligg Developer/Admin
Pligg Version: 0
Pligg Template: none
 
Join Date: Jun 2006
Location: Muncie, Indiana
Posts: 3,579
Downloads: 62
Uploads: 6
Thanks: 255
Thanked 651 Times in 515 Posts
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 11:56 AM.
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 06-25-2006, 12:05 PM
kbeeveer46's Avatar
kbeeveer46 kbeeveer46 is offline
Pligg Developer/Admin
Pligg Version: 0
Pligg Template: none
 
Join Date: Jun 2006
Location: Muncie, Indiana
Posts: 3,579
Downloads: 62
Uploads: 6
Thanks: 255
Thanked 651 Times in 515 Posts
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, 09:45 PM
xoail xoail is offline
New Pligger
Pligg Version: Pligg 9.8
Pligg Template: Default
 
Join Date: Nov 2007
Posts: 17
Downloads: 7
Uploads: 0
Thanks: 1
Thanked 0 Times in 0 Posts
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
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB 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
Technorati Tags in Each Story? Is it Possible? bitchabouttech General Help 2 01-03-2007 07:27 AM
Idea for scalable story promotion jvallery Core Development 6 04-18-2006 08:41 PM
Second URL in the same story. Infin8jest Pligg Mods 0 04-11-2006 06:28 PM
SEO: Story title in URL aetjansen Suggestions 10 02-08-2006 01:26 AM
streamline story submission workflow cryptkeeper Suggestions 0 01-12-2006 02:28 PM


LinkBacks Enabled by vBSEO 3.0.0