Go Back   Pligg CMS Forum > Pligg Help > General Help

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-09-2007, 12:57 PM
Pligg Donor
 
Join Date: Feb 2007
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
[Fixed] Click "read more" the category links screw up

I looked in the forum and could not find an answer so don't beat me up if it is in here. I finally got me MOD RE WRITE working great but found a small error. When I click 'READ MORE" in any of my posts the category links listed in the side bar change change from example:

mysite.com/music

to

mysite.com/music/The-story-I-am-reading/tech

So basically the begining of the link is fine "mysite.com/music/The-story-I-am-reading"

Notice the correct category "MUSIC" starts the url then the story title "The-story-I-am-reading" followed by the category I hover over while on the READ MORE page is appended to the url, in this case TECH

So it looks like mysite.com/The-story-I-am-reading/tech ..it should be simply mysite.com/tech. This only happend when I click read more on any post.

Similarly if I were to hover over the Gadgets category while I am on a read more page the url would show "mysite.com/music/The-story-I-am-reading/gadgets.

when it should be mysite.com/gadgets. My category links work on all other pages

Any ideas?

Thanks in advance
Reply With Quote
  #2 (permalink)  
Old 02-09-2007, 01:18 PM
kbeeveer46's Avatar
Pligg Developer/Admin
Pligg Version: 0
Pligg Template: none
 
Join Date: Jun 2006
Location: Muncie, Indiana
Posts: 3,547
Thanks: 254
Thanked 649 Times in 513 Posts
Try this bug fix http://pligg.svn.sourceforge.net/vie...v&revision=526

It may say to change a file in another template but it should work the same for all template.
__________________
I accept donations for my time helping users like you on the forum and IRC.
Reply With Quote
  #3 (permalink)  
Old 02-09-2007, 03:48 PM
Casual Pligger
 
Join Date: Jan 2007
Posts: 50
Thanks: 4
Thanked 32 Times in 7 Posts
Viewing friends that added you too

whooops this was in the wrong spot

Last edited by eH9116; 02-09-2007 at 04:56 PM..
Reply With Quote
  #4 (permalink)  
Old 02-09-2007, 05:58 PM
Pligg Donor
 
Join Date: Feb 2007
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
I tried it out on digitalnature and got this:


Warning: filemtime(): Stat failed for templates/digitalnature/sidebar_modules/categories.tpl (errno=2 - No such file or directory) in /home/iblotsx/public_html/class.template.php on line 615
Reply With Quote
  #5 (permalink)  
Old 02-09-2007, 07:08 PM
kbeeveer46's Avatar
Pligg Developer/Admin
Pligg Version: 0
Pligg Template: none
 
Join Date: Jun 2006
Location: Muncie, Indiana
Posts: 3,547
Thanks: 254
Thanked 649 Times in 513 Posts
hmm.. did you copy the entire file over? You should click on "text changed" to see what code was changed and only change that. If that's what you did then you really messed something up because that error doesn't have anything to do with that fix.
__________________
I accept donations for my time helping users like you on the forum and IRC.
Reply With Quote
  #6 (permalink)  
Old 02-09-2007, 11:00 PM
Pligg Donor
 
Join Date: Feb 2007
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Thanks kbeeveer46, That fixed it in digitalnature, I am using someone's DIGG template and the categories are in the header. Not bad for me since I will only have a few categories. If you have time this is my header.tpl with categories in it. I dont know what to edit or paste from the tpl file you had me load into my sidebar_modules folder. If you have time and can help what do I need to edit in this TPL file in order to fix the category bug:


{config_load file="/libs/lang.conf"}
<div id="head">
<div id="site-name"><b><font color="#FFFFFF" size="+2">{#PLIGG_Visual_Name#}</font></b></div>
<div id="search">


<form action="{$my_base_url}{$my_pligg_base}/search.php" method="get" name="thisform" id="thisform">
<li><a href="register.php" class="slink">{#PLIGG_Visual_Register_Register#}</a> </li>
<li><a href="login.php" class="slink">{#PLIGG_Visual_Login_Login#}</a> </li>
{if $templatelite.get.search neq ""}
{assign var=searchboxtext value=$templatelite.get.search|sanitize:2}
{else}
{assign var=searchboxtext value=#PLIGG_Visual_Search_SearchDefaultText#}
{/if}
<li><input type="text" size="20" name="search" id="searchsite" value="{$searchboxtext}" onfocus="if(this.value == '{$searchboxtext}') {ldelim}this.value = '';{rdelim}" onblur="if (this.value == '') {ldelim}this.value = '{$searchboxtext}';{rdelim}"/>
<input type="image" src="templates/digg/images/search.gif" class="submit" >
</li></form>
</div>
</div>
<div id="cab"><div id="headsubmit"><a href="submit.php"><img src="/templates/digg/images/submit2.png"></a></div>
<ul>
{section name=thecat loop=$cat_array}
{if $cat_array[thecat].name eq $request_category}
<li id="huidig">
{else}
<li>
{/if}
<a href="{$cat_url}{$cat_array[thecat].auto_id}">
{$cat_array[thecat].name}
</a>
</li>

{assign var=lastspacer value=$cat_array[thecat].spacercount}
{/section}
</ul>
<div id="hcrumb">
<a href = "{$my_base_url}{$my_pligg_base}">{#PLIGG_Visual_Br eadcrumb_SiteName#}{#PLIGG_Visual_Breadcrumb_Home# }</a>
{if $navbar_where.link1 neq ""} » <a href="{$navbar_where.link1}">{$navbar_where.text1} </a>{elseif $navbar_where.text1 neq ""} » {$navbar_where.text1}{/if}
{if $navbar_where.link2 neq ""} » <a href="{$navbar_where.link2}">{$navbar_where.text2} </a>{elseif $navbar_where.text2 neq ""} » {$navbar_where.text2}{/if}
{if $navbar_where.link3 neq ""} » <a href="{$navbar_where.link3}">{$navbar_where.text3} </a>{elseif $navbar_where.text3 neq ""} » {$navbar_where.text3}{/if}
{if $navbar_where.link4 neq ""} » <a href="{$navbar_where.link4}">{$navbar_where.text4} </a>{elseif $navbar_where.text4 neq ""} » {$navbar_where.text4}{/if}
</div>
</div></div></div>

</div>
Reply With Quote
  #7 (permalink)  
Old 02-09-2007, 11:19 PM
kbeeveer46's Avatar
Pligg Developer/Admin
Pligg Version: 0
Pligg Template: none
 
Join Date: Jun 2006
Location: Muncie, Indiana
Posts: 3,547
Thanks: 254
Thanked 649 Times in 513 Posts
this should fix it

Quote:
Originally Posted by mlbier View Post
{config_load file="/libs/lang.conf"}
<div id="head">
<div id="site-name"><b><font color="#FFFFFF" size="+2">{#PLIGG_Visual_Name#}</font></b></div>
<div id="search">


<form action="{$my_base_url}{$my_pligg_base}/search.php" method="get" name="thisform" id="thisform">
<li><a href="register.php" class="slink">{#PLIGG_Visual_Register_Register#}</a> </li>
<li><a href="login.php" class="slink">{#PLIGG_Visual_Login_Login#}</a> </li>
{if $templatelite.get.search neq ""}
{assign var=searchboxtext value=$templatelite.get.search|sanitize:2}
{else}
{assign var=searchboxtext value=#PLIGG_Visual_Search_SearchDefaultText#}
{/if}
<li><input type="text" size="20" name="search" id="searchsite" value="{$searchboxtext}" onfocus="if(this.value == '{$searchboxtext}') {ldelim}this.value = '';{rdelim}" onblur="if (this.value == '') {ldelim}this.value = '{$searchboxtext}';{rdelim}"/>
<input type="image" src="templates/digg/images/search.gif" class="submit" >
</li></form>
</div>
</div>
<div id="cab"><div id="headsubmit"><a href="submit.php"><img src="/templates/digg/images/submit2.png"></a></div>
<ul>
{section name=thecat loop=$cat_array}
{if $cat_array[thecat].name eq $request_category}
<li id="huidig">
{else}
<li>
{/if}
<a href="{$category_url}{$cat_array[thecat].safename}">
{$cat_array[thecat].name}
</a>
</li>

{assign var=lastspacer value=$cat_array[thecat].spacercount}
{/section}
</ul>
<div id="hcrumb">
<a href = "{$my_base_url}{$my_pligg_base}">{#PLIGG_Visual_Br eadcrumb_SiteName#}{#PLIGG_Visual_Breadcrumb_Home# }</a>
{if $navbar_where.link1 neq ""} » <a href="{$navbar_where.link1}">{$navbar_where.text1} </a>{elseif $navbar_where.text1 neq ""} » {$navbar_where.text1}{/if}
{if $navbar_where.link2 neq ""} » <a href="{$navbar_where.link2}">{$navbar_where.text2} </a>{elseif $navbar_where.text2 neq ""} » {$navbar_where.text2}{/if}
{if $navbar_where.link3 neq ""} » <a href="{$navbar_where.link3}">{$navbar_where.text3} </a>{elseif $navbar_where.text3 neq ""} » {$navbar_where.text3}{/if}
{if $navbar_where.link4 neq ""} » <a href="{$navbar_where.link4}">{$navbar_where.text4} </a>{elseif $navbar_where.text4 neq ""} » {$navbar_where.text4}{/if}
</div>
</div></div></div>

</div>
__________________
I accept donations for my time helping users like you on the forum and IRC.
Reply With Quote
  #8 (permalink)  
Old 02-10-2007, 01:33 PM
Pligg Donor
 
Join Date: Feb 2007
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Perfect!

Thanks kbeeveer46, hat did it. I will look over the code to find the changes but the categories work now.

Thanks again for your help
Reply With Quote
  #9 (permalink)  
Old 02-11-2007, 09:25 PM
Pligg Donor
 
Join Date: Feb 2007
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
OK found another error:

I added the fix above and now all my sidebar categories look great when I click READ MORE on a story.

New error. If I click on a category in my sidebar such as GADGETS it will take me to mysite.com/gadgets

But when I look at my top tool bar and click on any of the hyperlinks connected to these words:
Upcoming (0)
This Month
This Week
Yesterday
Top Today
Recently Popular

I am sent to a 404 error page.

Example:

Upcoming is linked to : http://mysite/category/shakeit.php?p...coming&order=1
This month is linked to
http://mysite/category/index.php?part=month

All links go to error page - Sorry I am a noob but quickly getting my way around Pligg.

Thanks in advance
Reply With Quote
  #10 (permalink)  
Old 02-12-2007, 01:34 PM
kbeeveer46's Avatar
Pligg Developer/Admin
Pligg Version: 0
Pligg Template: none
 
Join Date: Jun 2006
Location: Muncie, Indiana
Posts: 3,547
Thanks: 254
Thanked 649 Times in 513 Posts
We can solve your problem much faster if we have a link to your site
__________________
I accept donations for my time helping users like you on the forum and IRC.
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

BB 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
Control of meta description - categories Divisive Cotton Suggestions 64 11-23-2008 07:37 PM
Category Links to Upcoming vs Index spartacus General Help 6 04-02-2008 01:10 PM
"Read more" links wont work Nekoendy Bug Report 1 08-27-2007 12:20 PM
Category links and modify language RyanH General Help 5 07-26-2007 05:56 AM
[Fixed] Ampersand (&) in Category name shows All Biomech Bug Report 5 03-16-2007 07:02 PM


Search Engine Friendly URLs by vBSEO 3.2.0