Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
rss_suparchive_bycat amendment for (messy)-linking
Okay, so I downloaded the ‘rss_suparchive_bycat’ plugin…yep and it’s looks fantastic, everything seems to have worked…except for one thing – it links to an address which is in the format of:
http://www.urlofsite.com/archive/?c=categoryX
But my site is forced (by web hosts) to use the ‘Messy’ way of linking and my categories are all found by using this format instead:
http://www.urlofsite.com/index.php?c=categoryX
How can this format be amended in the ‘suparchive’ plugin so that it will work correctly?
…..(I’ve taken a peek at the code but haven’t changed anything yet as I can’t see how to do this).
I hope you can help me with this as it would be a shame to abandon it – many thanks,
Matt
— — — — — — — — —
www.mattrobin.com
Offline
Re: rss_suparchive_bycat amendment for (messy)-linking
Find this line:
<code>
$out[] = ($showcats) ? ‘<li><a href=”’.hu.$linktosection.’?c=’.urlencode($catname).’” title=“View all articles filed under ‘.$catname.’”>’.$catname.’</a>’.$catcnt.’</li>’.n : ‘’;
</code>
and try changing it to:
<code>
$out[] = ($showcats) ? ‘<li><a href=”’.hu.‘index.php?c=’.urlencode($catname).’” title=“View all articles filed under ‘.$catname.’”>’.$catname.’</a>’.$catcnt.’</li>’.n : ‘’;
</code>
That should do the trick.
Last edited by wilshire (2006-01-04 03:33:23)
Offline
Re: rss_suparchive_bycat amendment for (messy)-linking
Hey that worked!!!
Thanks so much for that.. :)
— — — — — — — — —
www.mattrobin.com
Offline
Re: rss_suparchive_bycat amendment for (messy)-linking
I have a similar problem and the above amendment worked great! I also want to modify the By Date archive list in the same way.
Can you point out the specific line for the same mod in the By Date section so that the link points to http://www.urlofsite.com/index.php?c=categoryX
Many thanks
Offline
Re: rss_suparchive_bycat amendment for (messy)-linking
Ok, I think I got it
Change this line (and similar for $cat2)
$cat1link = ($url_mode) ? $sectionlink.’/?c=’.urlencode($cat1) : $sectionlink.’&c=’.urlencode($cat1);
to
$cat1link = ($url_mode) ? ‘index.php’.’?c=’.urlencode($cat1) : $sectionlink.’&c=’.urlencode($cat1);
All seems to be working
Offline