Go Back   Pligg Forum > Pligg Help > General Help
Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-08-2007, 05:25 AM
zoom zoom is offline
New Pligger
 
Join Date: Jan 2007
Posts: 8
Downloads: 31
Uploads: 0
Thanks: 0
Thanked 0 Times in 0 Posts
Duplicate story urls

Hi,
Currently when you go to the story page, there are two versions of the url which will cause problems with google.
I wanted to know if there was a way to solve this.

On the breadcrumb url: it is: /story/[STORYNAME]/
but from all other places in the site the url is: /[category]/[STORYNAME]/


Is there a way to change the url in the navbar breadcrumb to have the category instead of "story"

Thanks
Reply With Quote
Sponsored Links
Check out the New Templates at the Pligg Pro Shop.
  #2 (permalink)  
Old 01-08-2007, 03:35 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
in libs/story.php change this line:
Code:
$navwhere['link2'] = getmyurl('storytitle', urlencode($link->title_url));
to this:

Code:
$navwhere['link2'] = getmyurl('storycattitle', $globals['category_name'], urlencode($link->title_url));
__________________
I accept donations for my time helping users like you on the forum and IRC.

FREE and premium Pligg Web Hosting (NO ads, Includes MySQL, PHP, PHPMyAdmin, and Control Panel) - PM me for discounts on premium packages or if you would like a custom-made package. Paypal accepted.
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
What if I don't care about duplicate URLs? nickaster Pligg Mods 4 02-17-2008 09:02 AM
The clean story URLs do not work on my website kelp General Help 3 12-29-2006 12:52 PM
Simplified Friendly Urls idea revolver Suggestions 0 11-07-2006 12:20 PM
Duplicate link URLs not prevented in 7.2 FatPitchFinancials Bug Report 3 05-27-2006 07:56 AM
Idea for scalable story promotion jvallery Core Development 6 04-18-2006 08:41 PM


LinkBacks Enabled by vBSEO 3.0.0