News:

SMF 2.1.6 has been released! Take it for a spin! Read more.

Main Menu

Pretty URLs

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

Previous topic - Next topic

Dannii

Quote from: dangerboy on October 29, 2008, 03:26:19 PMhelp got an loop error redirection. cant open threads.
Can you give me more details then please? Links? Checked your error logs?

Quote from: MacX on October 29, 2008, 05:33:30 PMDifficult to search in 133 pages...

I have installed the mod for version 1.1.6.
My problem? i use a non default theme and i cant see the botton to access to the settings in my admin panel.

Finaly i have changed my forum language to english insted of spanish and i could do it.
I think it would be nice to say it in some place....

And well, my question.
In spanish we use this to accentuate characteres: ( á é í ó ú ).
where must i put some code to:
- first, delete the accents (á é í ó ú = a e i o u)
-and then to pass the title string to the code.

Thank you.
Thank you.

PD: great job dani ;)
Can you just convert to UTF-8?
"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."

MacX

#2641
Quote from: Dannii link=topic=146969.msg1774537#msg1774537
Can you just convert to UTF-8?
Downloading my spanish language in UTF 8 and installing it?

I have done it, but if i apply the utf8 language accents doesnt appear...

I only need to know where to apply my funcion to the code. In what file.

Thank you.

Dannii

The language pack is irrelevant. The database tables need to be in UTF-8. You can find that option in the maintenance section.
"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."

MacX

#2643
Quote from: Dannii on October 30, 2008, 12:13:12 PM
The language pack is irrelevant. The database tables need to be in UTF-8. You can find that option in the maintenance section.
I have them in UTF8_unicode_ci.

Must i put it in UTF8_spanish_ci or UTF8_spanish_ci2 ?



Anyway, i have all my forum data there, will it cause any problem that conversion?
Or i must do a backup and import it after changing the codification.

MacX

Well, i have changed tables tu UTF8_spanish_ci but the forum is as it was before.
No changes.

Must i do a backup and import again to apply the utf8 to tables, or it has been applied to the actual data in tables.

Anyway, i think with a function in the code wont be any problems...

Dannii

All of the tables need to be too, check if they are. If they aren't, convert from the SMF Admin Maintenance section, nor phpmyadmin.
Also, try upgrading to 0.9 if you haven't.
"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."

MacX

#2646
Quote from: Dannii on October 30, 2008, 12:54:23 PM
All of the tables need to be too, check if they are. If they aren't, convert from the SMF Admin Maintenance section, nor phpmyadmin.
Also, try upgrading to 0.9 if you haven't.

I am using 0.8.5 in 1.1.6 forum.

Anyway, i have done it from the admin panel too and nothing, all still in the same way.

And... another thing:
Do exist a way for not to saw the board title while watching a topic and make it a number for example?
I think the board is not a relevant information and replacing it with a number makes searches paying more attention to the topic title.

O, and other question:
How you look for the topic? With the topic id? Because it isnt in the URL...

Dannii

Can you upgrade to the 0.9 version of this mod, from the google code site?

And no you can't easily change the URL structures like that, nor that it would matter.

Why do you want an ID? You can look in the pretty_topic_urls table though.
"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."

Sakae

(I've searched in this topic, but couldn't found)

Even running maintenance tasks, my smf_pretty_urls_cache table still gets 20, 30 MBs of content. It is more than my smf_messages, for example, that has 17 mb.

When I go to phpMyAdmin, I manually empty the smf_pretty_url table, and nothing changes on my SMF.

It is supposed to be this or something is wrong with my Pretty URL?
http://www.tigrelog.com.br
l: simple p: machines

Dannii

I'm surprised that it's quite that much bigger, but I don't think anything is wrong. It takes a lot of space! How do the row numbers compare? I have about five times as many cached URLs as messages. Is yours similar?
"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."

jukesoft

Hello! I'm having a very big problem with my site: today i've installed Pretty URLs mod into my site and i've checked all the options in the mod control panel. Now, my site is broken: the URLs aren't working, i can't even login. What shoul I do?

MacX

Quote from: Dannii on October 30, 2008, 11:07:24 PM
Can you upgrade to the 0.9 version of this mod, from the google code site?
Ok, i done it. Nothing changes.
Characteres with accents are not show in URL with mod rewrite...

If the board is "moderación" insted of:

forum/moderacion/message/

it shows:
forum/moderacin/message/

Quote from: Dannii on October 30, 2008, 11:07:24 PM
And no you can't easily change the URL structures like that, nor that it would matter.
ok

Quote from: Dannii on October 30, 2008, 11:07:24 PM
Why do you want an ID? You can look in the pretty_topic_urls table though.
What pretty_topic_urls table??

O, and... i think i would solve this problem faster if i use a simple function to conver characters with accents to characters without them in the code you modified for the mod... ( i think...)

jukesoft

I solved. But now i have "ugly urls". What should i do to have pretty urls? If i check Enable URL rewriting again the urls won't work.

Frozt

Quote from: MacX on October 31, 2008, 01:21:26 PM
Quote from: Dannii on October 30, 2008, 11:07:24 PM
Can you upgrade to the 0.9 version of this mod, from the google code site?
Ok, i done it. Nothing changes.
Characteres with accents are not show in URL with mod rewrite...

If the board is "moderación" insted of:

forum/moderacion/message/

it shows:
forum/moderacin/message/

Quote from: Dannii on October 30, 2008, 11:07:24 PM
And no you can't easily change the URL structures like that, nor that it would matter.
ok

Quote from: Dannii on October 30, 2008, 11:07:24 PM
Why do you want an ID? You can look in the pretty_topic_urls table though.
What pretty_topic_urls table??

O, and... i think i would solve this problem faster if i use a simple function to conver characters with accents to characters without them in the code you modified for the mod... ( i think...)


that happen to me too

you have to solve it manually in phpmyadmin or install the 0.9 version for do in admin part of smf

http://www.simplemachines.org/community/index.php?topic=146969.msg1763005#msg1763005

first do a backup of the database

then in phpmyadmin find this table:

smf_settings

(or do a search in phpmyadmin of moderacin, will display the results in all tables and you can find the next variables more easy)

find this variable: pretty_board_urls

you will see something like this:

a:45:{i:1;s:25:"discusiandoacuten-general";i:20;s:19:".....

in this example the problem is when use the title board Discusión General

instead that appear discusiandoacuten-general in the url

in your case you have to find moderacin

and change it by: moderacion


but take a lot of care with this change in the database, after that will appear an header error in the forum

after that you have to run a maintanance task in the pretty urls configuration for solve the error in the forum header:

go to admin > configuration > Pretty URLs
and click in "Run maintanace task"
that solve the forum header error

Frozt

if you have the 0.9 version you can change it in :

admin > Forum > Boards > Modify boards

then click in the modify of the board and you will see a new field for change the title of the url

Frozt

Quote from: jukesoft on October 31, 2008, 01:46:18 PM
I solved. But now i have "ugly urls". What should i do to have pretty urls? If i check Enable URL rewriting again the urls won't work.

you have the forum in a directory?

in that case you have to edit the .htaccess file and search:

RewriteEngine on

after that add this:

RewriteBase /

and add the forum directory name after RewriteBase/

example if you have your forum in www.domain.com/forum/:

RewriteBase /forum

MacX

Lot of thanks Frozt, but i dont want to do it only in boards but also in topic titles writen by users with some accents in some characters...

Thats why i ask where to use a function to delete accents.

Frozt

you could try this, first click the link of:

Admin > Maintenance > Convert HTML-entities to UTF-8 characters


and then in phpmyadmin

select this tables:

smf_pretty_topic_urls
smf_pretty_urls_cache


and empty it

that delete all urls



after that go to admin > Configuration > Pretty URLs

click in Maintance button
and then in Run maintenance tasks link


Dannii

#2658
Quote from: jukesoft on October 31, 2008, 01:46:18 PMI solved. But now i have "ugly urls". What should i do to have pretty urls? If i check Enable URL rewriting again the urls won't work.
Does your server support mod_rewrite and .htaccess?

And thanks for the help with answering questions Frotz!
"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."

anakmacan

After installing this error shows up (on every page), im using smf 1.1.6.

Parse error: syntax error, unexpected '*' in /home/forumad/public_html/forum/Sources/QueryString.php on line 616

Advertisement: