phpBB SEO
Boards
Directory  
SEO  
Downloads
  phpBB SEO : Search Engine Optimization, Directory, Forums  
Index
Forums
Annuaire
Référencement
Télécharger
 
  Search Rechercher
    Register
Username :  Password :  Log me on automatically each visit  
S'enregistrer  
 
   
Croatian characters

 
Post new topic   Reply to topic    phpBB SEO » SEO Forum  » phpBB mod Rewrite
::  
Author Message
MasterYoda



Joined: 21 Feb 2008
Posts: 19

Croatian charactersPosted: Sat Mar 08, 2008 2:57 am    Post subject: Croatian characters

Hi, i installed mod yesterday by placing a new .htaccess file in my forum directory (mysite/forum) and it works so far. I use Joomla site with joomlas htaccess code and i separetad htaccess file so mine in forum directory looks like this:

Code:
# You could need to un-comment the following line
# Options +FollowSymlinks
RewriteEngine On
RewriteEngine On
RewriteBase /

#########################################################
# PHPBB SEO REWRITE RULES            #
#########################################################
# AUTHOR : dcz http://www.phpbb-seo.com/
# STARTED : 01/2006
#####################################################
# FORUMS PAGES
########################
# FORUM INDEX (un-comment if used)
# RewriteRule ^index\.html$ /index.php [QSA,L,NC]
# FORUM PROTECTION RULE
# RewriteRule ^[a-z0-9_-]+/([^/]+\.html)$ /index.php [R=301,L,NC]
# CATEGORIES
RewriteRule ^[a-z0-9_-]*-c([0-9]+)\.html$ /index.php?c=$1 [QSA,L,NC]
# PAGINATED FORUM
RewriteRule ^[a-z0-9_-]*-f([0-9]+)-([0-9]+)\.html$ /viewforum.php?f=$1&start=$2 [QSA,L,NC]
# FORUM
RewriteRule ^[a-z0-9_-]*-f([0-9]+)\.html$ /viewforum.php?f=$1 [QSA,L,NC]
# PAGINATED TOPIC
RewriteRule ^[a-z0-9_-]*-t([0-9]+)-([0-9]+)\.html$ /viewtopic.php?t=$1&start=$2 [QSA,L,NC]
# TOPIC
RewriteRule ^[a-z0-9_-]*-t([0-9]+)\.html$ /viewtopic.php?t=$1 [QSA,L,NC]
# POST
RewriteRule ^post([0-9]+)\.html$ /viewtopic.php?p=$1 [QSA,L,NC]
#PROFILES
RewriteRule ^member([0-9]+)\.html$ /profile.php?mode=viewprofile&u=$1 [QSA,L,NC]
# END PHPBB PAGES
#####################################################


Is it good?

So i have another problem now.

Problem with Croatian Characters.

I tried following instructions on Slovakian but i couldnt manage to solve it.

I use iso-8859-2 encoding on my forum

In phpbb-seo-class.php it is set to iso-8859-1

var $encoding = "iso-8859-1"; HERE
$this->encoding = "iso-8859-1"; AND HERE

I need to replace this characters

š - s
ž - z
č - c
ć - c
đ - d


could you help me please?
Back to top
MasterYoda



Joined: 21 Feb 2008
Posts: 19

Croatian charactersPosted: Sun Mar 09, 2008 3:01 pm    Post subject: Re: Croatian characters

anyone please.

i tried today method mentiond for slovakian but i couldnt manage to make it work.

it always said that i have error on line ...

tnx
Back to top
MasterYoda



Joined: 21 Feb 2008
Posts: 19

Croatian charactersPosted: Sun Mar 09, 2008 3:08 pm    Post subject: Re: Croatian characters

i just realized that mod caused problem in Cilipi.net section. Try to go http://www.forum.cilipi.net and section Cilipi.net, enter some topic and see user signatures... they are somehow coded?
Back to top
MasterYoda



Joined: 21 Feb 2008
Posts: 19

Croatian charactersPosted: Sun Mar 09, 2008 3:08 pm    Post subject: Re: Croatian characters

Last issue resolved!

Now only characters
Back to top
MasterYoda



Joined: 21 Feb 2008
Posts: 19

Croatian charactersPosted: Mon Mar 10, 2008 4:16 am    Post subject: Re: Croatian characters

any ideas on how to solve this
Back to top
MasterYoda



Joined: 21 Feb 2008
Posts: 19

Croatian charactersPosted: Mon Mar 10, 2008 4:19 pm    Post subject: Re: Croatian characters

i tried some other things too but still couldnt manage to sort it out.

hope someone sees this
Back to top
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 15242

Croatian charactersPosted: Wed Mar 12, 2008 3:31 pm    Post subject: Re: Croatian characters

Sorry for delay.

The topic is very similar to the one found in the related topic below :
problem with polish characters for phpBB2 and
problem with Slovak characters "č"



Tell me if you need more help Wink

++

_________________
Useful links :
SEO Forum || SEO Directory || SEO phpBB || SEO phpBB3 || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Référencement phpBB3 || Recherche
Back to top
Visit poster's website
MasterYoda



Joined: 21 Feb 2008
Posts: 19

Croatian charactersPosted: Mon Mar 17, 2008 4:46 pm    Post subject: Re: Croatian characters

aha. thank you. i am going to try that solution and post my results. thanks a lot people.
Back to top
MasterYoda



Joined: 21 Feb 2008
Posts: 19

Croatian charactersPosted: Mon Mar 17, 2008 4:57 pm    Post subject: Re: Croatian characters

ok. i changed in lang_main.php encoding to UTF8 and i changed also encoding in phpbb seo class encoding to utf8 and added siggested lines but its not working.

i need to replace this characters

š - s
đ - d
dž - dz
ž - z
ć - c

Could you be so kind and give me a hand on thid ty
Back to top
MasterYoda



Joined: 21 Feb 2008
Posts: 19

Croatian charactersPosted: Tue Mar 18, 2008 3:52 pm    Post subject: Re: Croatian characters

i tried few times today also but its not working tough, but your mod is cool.

i would really like to complete this but it seems like i dont understand what and where to change, i need directions like a horse Laughing go and to that and that Laughing
Back to top
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 15242

Croatian charactersPosted: Sun Mar 23, 2008 4:57 pm    Post subject: Re: Croatian characters

With phpBB2, you do not need to change char-set as long as it is supported by htmlentities().
With your char-set, yous should be able to directly past your characters into your php files.

So it should work to use the straight characters :
Code:

      $this->seo_opt['url_find'] = array (
  0 => 'Č',
  1 => 'č',
  2 => 'Ť',
  3 => 'ť',
  4 => 'Ď',
  5 => 'ď',
  6 => 'Ľ',
  7 => 'ľ',
  8 => 'Ň',
  9 => 'ň',
  10 => 'Ž',
  11 => 'ž',
  12 => 'Ě',
  13 => 'ě',
  14 => 'Ř',
  15 => 'ř',
  16 => 'Ū',
  17 => 'ū',
);
      $this->seo_opt['url_replace'] = array('c', 'c', 't', 't', 'd', 'd', 'l', 'l','n', 'n', 'z', 'z', 'e', 'e', 'r', 'r', 'u', 'u');

after :

Code:
      // Stop vars
      $this->seo_stop_vars = array("view=", "mark=");


and then add :

Code:
      $url = str_replace( $this->seo_opt['url_find'], $this->seo_opt['url_replace'], $url );


after :

Code:
    $url = preg_replace('`\[.*\]`U','',$url);


All this in phpbb_seo_class.php.

++

_________________
Useful links :
SEO Forum || SEO Directory || SEO phpBB || SEO phpBB3 || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Référencement phpBB3 || Recherche
Back to top
Visit poster's website
MasterYoda



Joined: 21 Feb 2008
Posts: 19

Croatian charactersPosted: Sun Apr 06, 2008 7:08 pm    Post subject: Re: Croatian characters

Hi,

I did exactly as u said but still no results.

I checked my files 3 times and everything looks as u said.

I am wondering where is the problem.

Thany once again
Back to top
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 15242

Croatian charactersPosted: Wed Apr 16, 2008 11:45 am    Post subject: Re: Croatian characters

Make sure it's not only an encoding issue, because the code posted here indeed uses htmlentites, for example :

Code:
  0 => 'Č',


is coded :

Code:
  0 => '&# 268;',


Without the space character.

Quote my post and preview it, you'll see what I mean.

So, could be this, and could be solved if you use the proper encoding, or, you could keep the htmlentities chars, but then add :

$url = str_replace( $this->seo_opt['url_find'], $this->seo_opt['url_replace'], $url );

after :
Code:
      $url= htmlentities($url, ENT_COMPAT);


Instead of where first suggested.

You may need to specify your char-set for htmlentities to work properly :
Code:
      $url= htmlentities($url, ENT_COMPAT, 'iso-8859-2');


++

_________________
Useful links :
SEO Forum || SEO Directory || SEO phpBB || SEO phpBB3 || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Référencement phpBB3 || Recherche
Back to top
Visit poster's website
MasterYoda



Joined: 21 Feb 2008
Posts: 19

Croatian charactersPosted: Sun Apr 20, 2008 5:26 pm    Post subject: Re: Croatian characters

Uh. This was a busy afternoon with no results Crying or Very sad Crying or Very sad Crying or Very sad

I tried a lot of combinations but it looks like its not working.

Here is uploaded php_seo_class.php so if u could take a look inside pls.

http://rapidshare.com/files/109034521/phpbb_seo_class.rar.html

Pls help me Sad
Back to top
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 15242

Croatian charactersPosted: Mon Apr 21, 2008 8:24 am    Post subject: Re: Croatian characters

Try moving :
Code:
      $url = str_replace( $this->seo_opt['url_find'], $this->seo_opt['url_replace'], $url );


after :

Code:
      $url = htmlentities($url, ENT_COMPAT, $this->encoding);


and deleteing :
Code:
      $url = str_replace( array('c', 'C'),'c', $url );
      $url = str_replace( array('š', 'Š'),'s', $url );

To see if it gets better.

And make sure you use the htmlentities for chars as mentioned :
Code:
  0 => 'Č',


becomes :
Code:
  0 => '&# 268;',


without the space.

Again to grab the htmlentities escaped version of all chars, just quote my post and preview it, you'll have all them in your message Wink

_________________
Useful links :
SEO Forum || SEO Directory || SEO phpBB || SEO phpBB3 || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Référencement phpBB3 || Recherche
Back to top
Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    phpBB SEO » SEO Forum  » phpBB mod Rewrite
Page 1 of 1

Navigation Similar Topics

Jump to: