Pretty URLs

Started by SMFHacks.com Team, January 31, 2007, 10:56:43 AM

Previous topic - Next topic

Dannii

Yes as Özgür´said, make this change:
Code (find) Select
         $_REQUEST['board'] = str_replace(array(''', '\\'), array("\x12", ''), $_REQUEST['board']);
Code (replace) Select
         $_REQUEST['board'] = str_replace(array(''', '\\'), array("\x12", ''), $_REQUEST['board']);
"Never imagine yourself not to be otherwise than what it might appear to others that what you were or might have been was not otherwise than what you had been would have appeared to them to be otherwise."

ibforum

Done that - than you.
I now get this error:

Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' in /home/pitra/public_html/forum/Sources/QueryString.php on line 253

Do you think I maybe should go over everything again?
Should I be uploading the XML docs somewhere?
Thanks

Dannii

Yes maybe you should check everything again. Did you manually install it?
"Never imagine yourself not to be otherwise than what it might appear to others that what you were or might have been was not otherwise than what you had been would have appeared to them to be otherwise."

ibforum

Yes I have done it all manually. I thought that was to only way to do it?
Do I have to do anything with the XML files that are in the mod?
I will start again, and see if I can do it!
I am not expert on these things, but I don't mind trying!
Thanks for your help.
I will let you know if I get it done!  :)

MazdaClubTR

Hi Dannii,

I have installed PrettyUrl to my test site and seen a problem as follows ( I am using Turkish-utf8)

For boards that have turkish characters as ü,ş,ö,ç , conversion is done according to its UTF-8 notations not actual characters

For example, Dünyası is represented in UTF-8 as  Dünyası and board link is converted as danyasa where it would be dunyasi

but that is not the case in topics . Only board conversions are effected..

Özgür

Quote from: MazdaClubTR on May 22, 2009, 03:51:24 PM
Hi Dannii,

I have installed PrettyUrl to my test site and seen a problem as follows ( I am using Turkish-utf8)

For boards that have turkish characters as ü,ş,ö,ç , conversion is done according to its UTF-8 notations not actual characters

For example, Dünyası is represented in UTF-8 as  Dünyası and board link is converted as danyasa where it would be dunyasi

but that is not the case in topics . Only board conversions are effected..

What your smf and pretty version?
And can you try maintenance for pretty admin panel?
So Long

MazdaClubTR

SMF 2.0 RC1-1 , PrettyUrl 0.9.3 I tried maintenance but it didnt make any difference

Özgür

Hmm. Try these..
1 - Can you open Subs-PrettyUrls.php on notepad2 or notepad++ and save file encoding to utf8. Upload again and try maintenance. Any difference ?
2 - And have you $db_charset (or like this) in Settings.php ?
3 - Go to phpmyadmin and enter Your {db_prefix}_pretty_cache or _pretty_topic_urls. What is the charset?
So Long

ibforum

I just want to say thanks for your help.
Foolishly I tried to do a manual install, and failed.
Maybe I should have taken the time to learn about the packages manager!!
This mod now works a treat. Thanks.

Dannii

Quote from: MazdaClubTR on May 22, 2009, 03:51:24 PM
Hi Dannii,

I have installed PrettyUrl to my test site and seen a problem as follows ( I am using Turkish-utf8)

For boards that have turkish characters as ü,ş,ö,ç , conversion is done according to its UTF-8 notations not actual characters

For example, Dünyası is represented in UTF-8 as  Dünyası and board link is converted as danyasa where it would be dunyasi

but that is not the case in topics . Only board conversions are effected..
What language files you have is completely irrelevant. What matters is what collation the database tables are. Can you confirm they are UTF-8 too?

Quote from: ibforum on May 22, 2009, 04:59:29 PM
I just want to say thanks for your help.
Foolishly I tried to do a manual install, and failed.
Maybe I should have taken the time to learn about the packages manager!!
This mod now works a treat. Thanks.
Good to hear it's working now! :)
"Never imagine yourself not to be otherwise than what it might appear to others that what you were or might have been was not otherwise than what you had been would have appeared to them to be otherwise."

ellion

is PrettyURL working on 1.1.9 yet?

Dannii

Yes of course. It should work on all the future 1.1 updates too!
"Never imagine yourself not to be otherwise than what it might appear to others that what you were or might have been was not otherwise than what you had been would have appeared to them to be otherwise."

Hoochie Coochie Man

Hi Dannii

I have a problem, I think it's about pretty url.
I have pretty url 0.8.4

My forum's page titles suddenly changed, for example

İstanbul change into �stanbul

I didn't do anything with codes before..

I hope you help me about this, thanks..
Hoochie Coochie Man
İnadına SMF 1.1.X

Dannii

Ahh, looks like you have something wrong with your encodings. Unless the URLs themselves have changed I don't think it has anything to do with this mod. Have you checked with the mod disabled?
"Never imagine yourself not to be otherwise than what it might appear to others that what you were or might have been was not otherwise than what you had been would have appeared to them to be otherwise."

Hoochie Coochie Man

Quote from: Dannii on May 23, 2009, 06:36:40 AM
Have you checked with the mod disabled?

Upss. Sorry.
It's not about Pretty Urls. :)
Thanks anyway
Take care yourself..
İnadına SMF 1.1.X

mark7144

Dannii:

1) I'm running 0.9 and want to upgrade to 0.9.3 but I get two errors in my package uninstallation. I'm running a custom theme.

14.     Execute Modification     ./Themes/default/ManageBoards.template.php     Test failed (*Note: This file is not within my custom theme*)
15.    Execute Modification    ./Themes/default/languages/Modifications.english.php    Test failed (*Note: This is within my custom theme*)

Is it safe to ignore these errors?

2) Is there a change log between these versions because I have not experienced any significant bugs with your mod.

Dannii

Hmm, that's strange, they should install fine. Custom themes don't matter...
Yes you can probably ignore those errors.

http://code.google.com/p/prettyurls/source/browse/branches/0.9/CHANGES Mostly nonessential fixes... though I'd still recommend upgrading.
"Never imagine yourself not to be otherwise than what it might appear to others that what you were or might have been was not otherwise than what you had been would have appeared to them to be otherwise."

mark7144

Quote from: Dannii on May 23, 2009, 08:46:23 AM
Hmm, that's strange, they should install fine. Custom themes don't matter...
Yes you can probably ignore those errors.

http://code.google.com/p/prettyurls/source/browse/branches/0.9/CHANGES Mostly nonessential fixes... though I'd still recommend upgrading.
Looked at the code of ManageBoards.template.php and found that when I installed 0.9, it made no changes to that file and yet I've not had any problems with your mod. Clearly the changes your mod is supposed to make to that file are very unimportant?

Anyway, upgrade went fine, thanks for the help.

Dannii

Yeah, it only modifies the file to add the interface for changing board URLs.
"Never imagine yourself not to be otherwise than what it might appear to others that what you were or might have been was not otherwise than what you had been would have appeared to them to be otherwise."

MazdaClubTR

Quote from: Dannii on May 22, 2009, 11:22:24 PM
What language files you have is completely irrelevant. What matters is what collation the database tables are. Can you confirm they are UTF-8 too?

On phpmyadmin, settings for the database is as follows ;

#  MySQL charset:  UTF-8 Unicode (utf8)
#  MySQL connection collation: utf_unicode_ci

As I said the problem is only for board links. not message links.

you can see the test site ;

www.mazda3clubtr.com

Advertisement: