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

my evil twin

nevermind.
i found it out while frickeling with the mentioned file.

MarioH

hi, first that quite thank you for this fantastic MOD, nowadays I use 0.9 and I still have a doubt.

It is possible that them ";" one changes them for "/"?

I explain, for example

/?sa=statechange;id=15;type=block;sesc=d6056560bbb9188af1706cd9ec0b0a57

for

/?sa=statechange/id=15/type=block/sesc=d6056560bbb9188af1706cd9ec0b0a57


Thnks for you help.

Sorry for my english

MarioH (By google traducctor)

AimBox Comunidad online, Jugos, Anime, Warez.
[Aportes]: Ordenar SubForos || Smiles Tipo IPB || Agreement.txt ||

Dannii

Quote from: brianjw on August 12, 2008, 11:34:12 AM
How do I exclude one action from the pretty urls? I want to remove arcade.

I tried removing it from the .htaccess but it converted the links to /arcade/ and it went to a 404 because there was no arcade in .htaccess.

Any ideas?
Thanks,
Brian
Make this change: http://www.simplemachines.org/community/index.php?topic=146969.msg1564990#msg1564990

Quote from: MarioH on August 12, 2008, 06:17:57 PM
hi, first that quite thank you for this fantastic MOD, nowadays I use 0.9 and I still have a doubt.

It is possible that them ";" one changes them for "/"?

I explain, for example

/?sa=statechange;id=15;type=block;sesc=d6056560bbb9188af1706cd9ec0b0a57

for

/?sa=statechange/id=15/type=block/sesc=d6056560bbb9188af1706cd9ec0b0a57


Thnks for you help.

Sorry for my english

MarioH (By google traducctor)
No. Not that it would be any better.
"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

This solved everything thanks. :)

Also, by looking at the filter file thing...

Could I manually add actions from the custom action mod to make them work? If So, How?

Dannii

You can add them to the pretty_action_array setting, but whenever maintenance is run they'll be removed again.
"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, tell me this:

1.) How EXACTLY to add them to the pretty_action_array setting? (in find & replace instructions would be best: tell me how to do it with multiple actions)

2.) How to manually run the maintenance without the link but just by editing files?

Dannii

It's a serialized array. You can use the PHP functions serialize() and unserialize() to turn it from a string to an array and back again. Make up a little PHP file to do that.

Maintenance is just a function. You can call it from any page if you've included Subs-PrettyUrls.php.
"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

Can I manually change the URL set-up for a forum board so that it is different to that of what the board has been named?

For example:

Britney Talk would usually be /britney-talk/ but what if I wanted so it would be /britney-spears-forum/ but the board would still be called Britney Talk.


saneone

I've got a problem with this mod...

My forum's (SMF 2.0 Beta 3.1p) address used to be: http://aaz.nazwa.pl/acl
and pretty urls 0.8.4 worked flawlessly...

Then I bought a domain, so now it's www.motone.pl
Normally my adresses look like this: http://www.motone.pl/index.php?...

I want them to look like: http://www.motone.pl/category/topic

So I installed Pretty urls again, but the mod doesn't convert the adresses correctly...
Pretty urls for functions don't work and I get 404 errors...
It works for categories/topics, but it gives my old adress http://aaz.nazwa.pl/acl/category/topic instead of
http://www.motone.pl/category/topic...

I'm clueless... Can someone help me?

Dannii

Quote from: mark7144 on August 13, 2008, 04:53:49 PMCan I manually change the URL set-up for a forum board so that it is different to that of what the board has been named?

For example:

Britney Talk would usually be /britney-talk/ but what if I wanted so it would be /britney-spears-forum/ but the board would still be called Britney Talk.
In 0.9 you can change a board's URL in the manage boards page.

Quote from: saneone on August 13, 2008, 05:05:31 PMI've got a problem with this mod...

My forum's (SMF 2.0 Beta 3.1p) address used to be: http://aaz.nazwa.pl/acl
and pretty urls 0.8.4 worked flawlessly...

Then I bought a domain, so now it's www.motone.pl
Normally my adresses look like this: http://www.motone.pl/index.php?...

I want them to look like: http://www.motone.pl/category/topic

So I installed Pretty urls again, but the mod doesn't convert the adresses correctly...
Pretty urls for functions don't work and I get 404 errors...
It works for categories/topics, but it gives my old adress http://aaz.nazwa.pl/acl/category/topic instead of
http://www.motone.pl/category/topic...

I'm clueless... Can someone help me?
Check that the pretty_root_url setting (in smf_settings) is correct.
"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."

Low

Hi, first of all I'd like to say thanks for an amazing mod that all serious forum owners need.

Second, I'm about to install this (auto via my admin) and have a few questions..

1- Will this work with 1.1.5 without any further coding needed?

2- What happends to the former (DUPLICATE CONTENT) URL's, are they 302 directed to the new URL?

3- What happens if you have 2 forums on Index.php with the same name, same URL right?

4- Please PM me your paypal email addy so I can send you a beer after install :)

Louis

brianjw

I think I can answer some of these for you, roulettered56.

1- It works on SMF 1.1.5. If you have other mods installed it is POSSIBLE that errors may occur during the installation, but I have over 50 mods installed on my site and this mod installed with no errors.

2- I -think- that the old URL's still work but they do not redirect. But all the links in SMF automatically change to the ones pretty urls provides.

3- I don't understand what you are asking...

goldenboy48

Hello awesome Dannii,

Is it possible to eliminate () brackets from my URLs?

mark7144


Dannii

Quote from: roulettered56 on August 13, 2008, 10:25:09 PM
Hi, first of all I'd like to say thanks for an amazing mod that all serious forum owners need.

Second, I'm about to install this (auto via my admin) and have a few questions..

1- Will this work with 1.1.5 without any further coding needed?

2- What happends to the former (DUPLICATE CONTENT) URL's, are they 302 directed to the new URL?

3- What happens if you have 2 forums on Index.php with the same name, same URL right?

4- Please PM me your paypal email addy so I can send you a beer after install :)

Louis
It should work fine in 1.1.5, and the old URLs are 301 redirected, not 302.
I'm not sure what you mean by having two forums...

PanesarV, you can remove those lines from Subs-PrettyUrls.php though that will only change it for new topics.

mark7144, I'm not sure.. I don't have a lot of time. 1.0 is pretty much complete now though, I just want to finish the design of the admin panel. Functionally it is complete. You can get a 0.9 snapshot from the download page.
"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."

osmaga

Hi there.

I have just installed this mod and when I've came back to the site I couldn't see the site.
Instead I get this message:

"Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, admin@localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

--------------------------------------------------------------------------------

Apache/1.3.33 Server at localhost Port 80

500 Internal Server Error"


The thing is I have checked all the posts looking for a case like me and no threat can solve my problem.

I have the Smf installed in localhost with Easyphp so I don't have the problem of the Chmod and the permissions( all the folders are writable).  I also checked my .htaccess file but I don't have it and maybe is this the problem but I don't know how to create a good .htaccess file.

Could anybody guide me trhought the solutions?

Thanx in advance.

Osmaga

brianjw

Osmaga,

Sometimes it is possible that Internal Server Errors are created because of Duplicate of the code. I recommend using the Package Parser. Upload the pretty urls mod, select your version of SMF, choose uninstall, and then all edits. Uninstall the entire mod manually. Once you've uninstalled the mod manually, then look through the files again and follow the uninstall instructions again to just check for any duplicates. Then save the files and upload the files over again and try installing again. (Internal Error Should be gone after full uninstall manually)

mark7144

Is there anyway to disable the use of PHP session IDS? I hate that Google will index my forum with those,

Dannii

Quote from: osmaga on August 14, 2008, 02:07:55 PM
Hi there.

I have just installed this mod and when I've came back to the site I couldn't see the site.
Instead I get this message:

"Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, admin@localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

--------------------------------------------------------------------------------

Apache/1.3.33 Server at localhost Port 80

500 Internal Server Error"


The thing is I have checked all the posts looking for a case like me and no threat can solve my problem.

I have the Smf installed in localhost with Easyphp so I don't have the problem of the Chmod and the permissions( all the folders are writable).  I also checked my .htaccess file but I don't have it and maybe is this the problem but I don't know how to create a good .htaccess file.

Could anybody guide me trhought the solutions?

Thanx in advance.

Osmaga
The .htaccess file should be created automatically, if PHP has write permissions. If you're in Windows hopefully this won't be a problem. Are you actually running Apache though? You may need to manually enable .htaccess and mod_rewrite.

Quote from: mark7144 on August 14, 2008, 03:19:43 PM
Is there anyway to disable the use of PHP session IDS? I hate that Google will index my forum with those,
SMF already does that. If the user agent matches Google it won't use the session parameters.
"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 August 14, 2008, 10:17:20 PM
SMF already does that. If the user agent matches Google it won't use the session parameters.
Why are PHP sessions used for your mod? I've never had it on my forum before. Just curious :)

Advertisement: