Pretty URLs

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

Previous topic - Next topic

janilxx

Sorry but I did not find an answer to this so I am asking here.

I have Pretty URLs 0.7.

If I will update my Pretty URLs (to 0.8.4 or even to 1.0) what do I need to do? First uninstall the older version and then install newer version?

If I uninstall older version, will it leave my old pretty URLs alone?
Or what happens to the old URLs after update?

I am thinking this because my URLs are used in many pages at internet so I would like to keep old pretty URLs working after update.

Dannii

Yes that's correct, just uninstall 0.7 then install 0.8.4. All your old URLs will still work.
"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

Quote from: joomlamz on September 28, 2008, 04:06:46 AM
when update next time dont forget portuguese and brazilian

Please, Joomlaz, don't translate languages you don't know. I'm brazilian, and I didn't understand a thing of what you've (tried to) translate to portuguese (Brazil).

QuoteUm fragmento URL usado para Quadro e tópicos.

That means, in it's own terms, that "A URL piece used for Painting and topics".

"Note: este será processado como apenas um conjunto limitado de caracteres são permitidos - outros caracteres serão convertidos. Deixe em branco para usar o nome bordo."

This one I can't even imagine what means. The last phrase means "Leave it blank to use the name that is onboard (like on board of a ship)".

"Uma panóplia de filtrar dados serializada."

I search all my dictionaries to find out what "panóplia" means. I'm still curious.

"Uma chamada de função array serializada nomes, ordenadas por prioridade. Não edite manualmente este, editar o <tt>pretty_filters</tt> setting instead."

This phrase, at least, you leave some words in english. Others, you scrambled english with portuguese. Others just don't exist.

Please, keep translating all SMF mods here. It's VERY FUNNY.
http://www.tigrelog.com.br
l: simple p: machines

Paolo Bitta

Hi, i got the 404 error for every page in my forum after enabling pretty urls 0.84.
My host DOES support mod_rewrite and .htaccess, just checked it.

The forum is quite modded, but not deeply.
It is the 1.1.6 version, and it has been running for almost 1 year up to now.

I noticed that the table smf_pretty_topics_urls is filled with just few rows for topics, I have about 550 topics.
Could this be the issue?

thanks!

Dannii

http://code.google.com/p/prettyurls/wiki/TroubleShooting
Follow those instructions to disable the mod...

Now you're completely sure it does? Is it possible you might need to add a RewriteBase rule before the RewriteRule lines. Ask your host.
"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."

Paolo Bitta

#2465
Quote from: Dannii on September 30, 2008, 09:39:28 AM
http://code.google.com/p/prettyurls/wiki/TroubleShooting [nofollow]
Follow those instructions to disable the mod...

Now you're completely sure it does? Is it possible you might need to add a RewriteBase rule before the RewriteRule lines. Ask your host.

thanks for the link, i already used it to fix the problem! :)

could you please be clearer about the RewriteBase rule??



EDIT.
mmmm, i'm getting documentation about this... maybe you are rigth, but i'm completely dumb about how to do it!


EDIT 2:
ok, i've fixed it!
thanks for the tip!!

i need to add an instruction like this:
RewriteBase /

Dannii

Ok, 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."

londonhogfan

First - Thanks for the great mod.  I know there is a lot of debate on using dynamic vs static (looking) urls.  If nothing else I prefer the way Pretty URLs looks and because of the setup of my site it makes it much easier on the user.  The only thing I'm looking for is a way to generate a sitemap with these urls.  Do you know of a mod that will work with this plugin?  If there isn't one have you thought about adding a sitemap option in a later version?

Thanks again on this great working mod.

Dannii

The sitemap mod should be compatible already.
"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: londonhogfan on September 30, 2008, 12:13:53 PM
I know there is a lot of debate on using dynamic vs static (looking) urls. 
There is? I've never heard of an argument for dynamic URLs when there is the ability to disguise them as static.

londonhogfan

Quote from: Dannii on September 30, 2008, 12:21:11 PM
The sitemap mod should be compatible already.

well easy enough.  I guess I assumed too much when they didn't say it was compatible with pretty urls.

Quote from: mark7144 on September 30, 2008, 12:32:07 PM
Quote from: londonhogfan on September 30, 2008, 12:13:53 PM
I know there is a lot of debate on using dynamic vs static (looking) urls.  
There is? I've never heard of an argument for dynamic URLs when there is the ability to disguise them as static.

I have seen the opposite result myself, but google is pushing using dynamic urls.  My pages are indexed much quicker and higher with static urls.  Maybe I'm doing something wrong.

Frozt

Hi, Thanks for this cool mod   :)

I installed Pretty URLs but now some links in the admin ("Packages" and "Smileys and Message Icons") send me to the main page of the forum instead the "Package Manager" and "Smileys and Message Icons", but the urls have the same format as the others ..com/packages/ and ...com/smileys/

For enter the Package Manager I have to set off "Rewrite Action URLs" in the Pretty URLs Administration, but that set off the Pretty URLs for all actions urls, I really dont know if is better have it with Pretty URLs.


I went to the "Forum Error Log" page but not appear any error, and one thing odd is that after I click in in admin in "Forum Error Log" if I click the link "Packages" I can access the Package Manager, and the url appear without prettyurls: index.php?action=packages,
but then if I click in any tab of the package manager it redirect me to the main page of the forum again


I searched in the forum and in Google for see if someone had this problem but I cant find that this happen to others, so I have not idea how fix this.


Im building my site and forum in local with easyphp, I use the SMF v 1.1.6 and Pretty URLs - Base 0.8.4



And other question, if possible that the urls of tags links that generate the "Tagging System For Topics" mod appear with the name of the tag instead this:
...com/tags/?tagid=4
something like:
...com/tags/name/




I did a translation of the menus to spanish if this can help to someone:

file:
Themes/default/languages/PrettyUrls.spanish_es-utf8.php

<?php
// Version: 0.9; PrettyUrls

// Admin chrome
$txt['pretty_chrome_title'] = 'Administraci&oacute;n de Pretty URLs';
$txt['pretty_chrome_menu_settings'] = 'Configuraci&oacute;n';
$txt['pretty_chrome_menu_maintenance'] = 'Mantenimiento';

// Settings page
$txt['pretty_chrome_caption_settings'] = 'Panel de Configuraci&oacute;n';
$txt['pretty_chrome_page_title_settings'] = 'Configuraci&oacute;n de Pretty URLs';
$txt['pretty_core_settings'] = 'Centro de configuraci&oacute;n';
$txt['pretty_enable'] = 'Activar reescritura de direcciones';
$txt['pretty_filters'] = 'Filtros de reescritura de direcciones';
$txt['pretty_save'] = 'Guardar cambios';

// Maintenance page
$txt['pretty_chrome_caption_maintenance'] = 'Ejecuci&oacute;n de tareas de mantenimiento';
$txt['pretty_chrome_page_title_maintenance'] = 'Mantenimiento Pretty URLs';
$txt['pretty_run_maintenance'] = 'Ejecutar tareas de mantenimiento';

// Edit filters page
$txt['pretty_chrome_caption_filters'] = 'Una herramienta para editar la lista de filtros. La lista array esta formateada aqui en el formato <a href="http://www.json.org/">JSON</a>. Tenga cuidado, la sintaxis de JSON es bastante rigurosa.';
$txt['pretty_chrome_page_title_filters'] = 'Herramienta de Filtros de Pretty URLs';
$txt['pretty_chrome_title_filters'] = 'Herramienta de Filtros';
$txt['pretty_no_json'] = 'La extensi&oacute;n PHP JSON se requiere para esta herramienta. Considere actualizar a PHP 5.2.';

?>


and for others words that appear in the code but not in language files:


Boards
Foros

Topics
Temas

Actions
Acciones
but this could be "Actions"

Profiles
Perfiles

-

Updating the array of actions
Actualizar la lista de acciones
or
Actualizar la lista de actions


Fix old boards which have broken quotes
Correguir foros antiguos que tengan comillas rotas

Update board URLs
Actualizar direcciones de foros


Update the filters
Actualizar los filtros




Thanks in advance

brianjw

Hi Dannii,

I want to change this blank page. If I go to http://www.gamerzgarage.com/folder it will show a blank page using my forums theme, because I didn't type index.php for an existing URL or it simply doesn't exist. What I want to do with this blank page is add a redirect to the ./folder/index.php (or whatever the url was typed as) so that if it does exist it will take them there. But if it doesn't exist, then it will simply show my main site 404 page which can be viewed at http://www.gamerzgarage.com/folder/index.php

How could I do this? I would want to use a redirect as:
header("Location: ', $requested_url, '/index.php");
And the requested url would be whatever the user entered.

Let me know if you can help me do this, Dannii! Thanks. :)

Dannii

QuoteI installed Pretty URLs but now some links in the admin ("Packages" and "Smileys and Message Icons") send me to the main page of the forum instead the "Package Manager" and "Smileys and Message Icons", but the urls have the same format as the others ..com/packages/ and ...com/smileys/

For enter the Package Manager I have to set off "Rewrite Action URLs" in the Pretty URLs Administration, but that set off the Pretty URLs for all actions urls, I really dont know if is better have it with Pretty URLs.
Does running maintenance help?

QuoteAnd other question, if possible that the urls of tags links that generate the "Tagging System For Topics" mod appear with the name of the tag instead this:
...com/tags/?tagid=4
something like:
...com/tags/name/
It would be possibly to make another filter for that yes. I don't have the time to do so currently though.

QuoteI did a translation of the menus to spanish if this can help to someone:
Ok cool.

brianjw, Add a rule before the others of something like this:
RewriteRule ^folder/?$ ./folder/index.php [L,QSA]
"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."

brianjw

Dannii, I know that. And you told me that before.

I just want to create a check so I don't have to add codes like that to .htaccess

If /folders/ is entered on my website and it isn't a board I want it to automatically redirect to /folders/index.php and then let my site handle it from there. ;)

Dannii

Well you can't do that sorry, at least not very easily. You could try editing MessageIndex.php you might be able to do something there if the board doesn't exist.
"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."

brianjw

Well, I noticed that if the board doesn't exist and you type in say http://www.gamerzgarage.com/doesnotexist then it goes to a blank page.

How can I edit the blank page to a different page? What makes the blank page happen?

Dannii

It shouldn't go to a blank page, it should go to the front page... It's just the normal SMF behaviour, if you try to access a board 0 go to the front page.

Actually there's something you could try... it will check in MessageIndex.php if the board is number 0, and when it does, change it to do the redirection.
"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."

Frozt

Yes I tried run a maintenance but happen the same, I think I go to wait until upload the forum to the hosting for see is this continue redirect to the main page.

And for the tags of the Tagging System I will see more about how to do it with the filters
I will post it here when I finish for see if it correct
thanks



brianjw

Quote from: Dannii on October 01, 2008, 11:26:44 PM
It shouldn't go to a blank page, it should go to the front page... It's just the normal SMF behaviour, if you try to access a board 0 go to the front page.

Actually there's something you could try... it will check in MessageIndex.php if the board is number 0, and when it does, change it to do the redirection.
I will have a look, thanks. :)

Advertisement: