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
![]() |
| | LinkBack | Thread Tools | Display Modes |
| |||
| [Fixed] Click "read more" the category links screw up |
| ||||
|
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. |
| |||
| Viewing friends that added you too
whooops this was in the wrong spot
Last edited by eH9116; 02-09-2007 at 04:56 PM.. |
| |||
|
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 |
| ||||
|
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. |
| |||
|
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> |
| ||||
|
this should fix it Quote:
__________________ I accept donations for my time helping users like you on the forum and IRC. |
| |||
|
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 |
| |||
|
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 |
| ||||
|
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. |
![]() |
« Previous Thread
|
Next Thread »
| Thread Tools | |
| Display Modes | |
| |
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 |





Linear Mode

