Webmastersite.net
Register Log In

Top Categories and mod_rewrite categorie
doesnt' replace spaces with underscore

Comments on Top Categories and mod_rewrite categorie

arn
Beginner

Usergroup: Customer
Joined: Mar 28, 2005

Total Topics: 4
Total Comments: 8
arn
Posted Apr 08, 2005 - 6:13 PM:

When generating a Top Categories list with mod_rewrite/htaccess enabled. it doesn't appear to correctly swap out the spaces with underscores so the redirects work.

It works when generating categories in the usual way... but this is specifically the toplists categories.

arn
arn
Beginner

Usergroup: Customer
Joined: Mar 28, 2005

Total Topics: 4
Total Comments: 8
arn
Posted Apr 09, 2005 - 5:13 PM:

hmm... could really use a quick fix for this.

arn
arn
Beginner

Usergroup: Customer
Joined: Mar 28, 2005

Total Topics: 4
Total Comments: 8
arn
Posted Apr 09, 2005 - 5:43 PM:

er.... nevermind... here's the fix

<? print ereg_replace(" ","_","{CATNAME}"); ?>

in place of CatName in your categories in top list
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Apr 09, 2005 - 6:37 PM:

All I can say is that as you've described it this problem does not exist. Made a quick toplist:

<!-- BEGIN TOPLIST 5 -->
<CONFIG>categories,id,5,ascending,,,,0,0,0,0</CONFIG>
<a href="index.php?action=displaycat&catid={CATID}">{CATNAME}</a>
<!-- END TOPLIST 5 -->

Turned on cat name rewriting. Works perfectly, a category name with a space in shows an underscore as you can see in the status bar on the attached screenshot.

Attached Files:
Search thread for
Download thread as
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5



This thread is closed, so you cannot post a reply.