View Single Post
  #5 (permalink)  
Old 10-29-2006, 01:41 AM
athle's Avatar
athle athle is offline
Casual Pligger
 
Join Date: Oct 2006
Posts: 55
Thanks: 5
Thanked 26 Times in 6 Posts
Smile

there is the method
1. replace this code in file libs/link.php
Code:
		global $URLMethod;
		//if ($URLMethod == 1)
		//{$catvar = $this->category;}
		//if ($URLMethod == 2)
		{$catvar = $this->category_safe_name();}
with this code
Code:
		global $URLMethod;
		//if ($URLMethod == 1)
		{$catvar = $this->category;}
		//if ($URLMethod == 2)
		//{$catvar = $this->category_safe_name();}
2. find the sidebar_modules/categories.tpl in your template folder
search the code
Code:
<a href='{$cat_url}{$categorylist[nr].category_safe_name}'>
replace it with
Code:
<a href='{$cat_url}{$categorylist[nr].category_id}'>
3. open the index.php and shakeit.php in line 24
replace this
Code:
if(isset($_REQUEST['category'])){$thecat = $db->get_var("SELECT category_name FROM categories WHERE `category_safe_name` = '".$_REQUEST['category']."';");}
with
Code:
if(isset($_REQUEST['category'])){$thecat = $db->get_var("SELECT category_name FROM categories WHERE `category_id` = '".$_REQUEST['category']."';");}
there still maybe have some bug. but i thought it's the better method for us who use the utf-8 as the charset.

at the end, i upload the files i have already modified. you can use this files to replace you files.

my email is athlechina@gmail.com ,if you find other bugs of it please tell me.

this code i have used in www.athle.cn, but it's a chinese website.
Attached Files
File Type: zip pligg.zip (15.2 KB, 22 views)

Last edited by athle; 10-29-2006 at 01:45 AM..
Reply With Quote
The Following 2 Users Say Thank You to athle For This Useful Post: