News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Pretty URLs

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

Previous topic - Next topic

runebergen

#2100
Quote from: Dannii on August 01, 2008, 09:16:03 PM
runebergen, the simplest solution is to disable the actions filter. I'll come up with a better solution in the near future.
Or make this change: http://www.simplemachines.org/community/index.php?topic=146969.msg1564990#msg1564990



Awesome Dannii, you're gold! ;)
That works. I used your link, and disabled Pretty URLs for Arcade


If there comes a Pretty URL solution in the future thats cool, but this fix makes the Arcade work with Pretty URLs enabled  :)

Thank you so much


MarioH

#2101
hi, very thxs for the mod

is really good, but
how to implement to other url for example simple portal in the panel of administration?


very thxs




QuoteHola, Muchas gracias por el mod.

E realmente bueno y me ha servido bastante, pero ¿es posible implementar para url especificas, por ejemplo Simple Portal en el panel de administración?

Muchas Gracias por la ayuda.





My URL is /index.php?action=spadmin;sa=statechange;id=12;type=block;sesc=e5ee3934c428ac3ccc807d285b1d189f <--- (error 406)

i need

/index.php/action=spadmin/sa=statechange/id=12/type=block/sesc=e5ee3934c428ac3ccc807d285b1d189f <--- (hel plz)

Is this possible?

THXS


PD: Is it when the release of Url pretty 0.9 ?

PD2: Sorry for my inglish

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

runebergen

#2102
Hey Danni ( or others)

Is it also possible to change the filters so that the FIRST url of forum only shows

/forum/

instead of /forum/index.php    .... just /forum/ looks a lot prettier :)


And also, when enabling Simple Portal (to give first page some special content), is it possible to make the Forum part, not show /forum/forum, but rather disable it for that (like the arcade fix), where the forum part would be index?action=forum ?
Or some thing pretty ;)  Might be hard.. not sure


Thanks for all the help




zapiy

I have this mod installed and was told to ask this question here.

A member asked me to change there username which i did. Now they can not access there profile. We get this error "The user whose profile you are trying to view does not exist." I noticed the link is tying to take us to /profile/Gaming%20Soldier/?sa=account instead of /profile/MAD%20DOG%20OF%20WARS/. Also i tried this link and it works so how do i make his link point to the correct path?

cheers
www.maturevideogamer.co.uk
www.consoleplanet.co.uk
www.retrovideogamer.co.uk


Dannii

Quote from: MarioH on August 02, 2008, 09:46:29 AMMy URL is /index.php?action=spadmin;sa=statechange;id=12;type=block;sesc=e5ee3934c428ac3ccc807d285b1d189f <--- (error 406)
I can't help you if the original URL is a 406 error!

Quote from: runebergen on August 02, 2008, 11:01:58 AM
Hey Danni ( or others)

Is it also possible to change the filters so that the FIRST url of forum only shows

/forum/

instead of /forum/index.php    .... just /forum/ looks a lot prettier :)
You can try editing $scripturl in Querystring.php where it's defined, but it might give you unexpected results. In the future I'll do this automatically.

QuoteAnd also, when enabling Simple Portal (to give first page some special content), is it possible to make the Forum part, not show /forum/forum, but rather disable it for that (like the arcade fix), where the forum part would be index?action=forum ?
Or some thing pretty ;)  Might be hard.. not sure
I don't know what you're asking... If you're using a portal shouldn't you just install SMF in the root folder?

Quote from: zapiy on August 02, 2008, 12:59:08 PMI have this mod installed and was told to ask this question here.

A member asked me to change there username which i did. Now they can not access there profile. We get this error "The user whose profile you are trying to view does not exist." I noticed the link is tying to take us to /profile/Gaming%20Soldier/?sa=account instead of /profile/MAD%20DOG%20OF%20WARS/. Also i tried this link and it works so how do i make his link point to the correct path?
Can you show me both full links please.

Quote from: NIBOGO on August 02, 2008, 07:18:54 PMThanks and now i have the articles in this format:

http://www.mundo-se.com/page/25/

How i can have something like:

http://www.mundo-se.com/CDA_w880

* CDA w880 is the title of the article
TP should already support that.
"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."

jankariwo

Hi;
I installed prettyurls and right after I enabled  URL rewriting , it crashed my site and all I get is Error 404 on all links . I deleted the module from the packages folder , but the error 404 persists. How do I recover my site back . Help

axlarry

@Dannii

I think shaitanfr is having the same problem as I am. I still can't find any particular links that will cause the problem and I don't know how exactly the url filter work. But the problem occurs at least :

1. When there are too many links on the page (though I've seen it also happen with only one or two links).
2. When someone try to make a long post and/or qoute.

This is an example of the server logfiles :
[Sat Jun 28 02:42:33 2008] [error] [client 74.6.22.172] mod_security: Access denied with code 503. Pattern match "!^[0-9a-z]*$" at ARG("PHPSESSID") [severity "EMERGENCY"] [hostname "www.forumsains.com"] [uri "/fisika/pemanasan-global-akan-menghancurkan-dunia/msg1825/?PHPSESSID=jr5r1i4bjpf4ov28c9i33jf7c0;topicseen"] [unique_id "2IkYNdBxvgUAACE-c8YAAAAM"]
Note : that page is not showing error now, I already removed all the links.

And one more thing, I have disabled mod_security, so I guess that wasn't causing the problem.


Dannii

jankariwo, follow these instructions: http://code.google.com/p/prettyurls/wiki/TroubleShooting

axlarry, hmm, that seems to be saying that the PHPSESSID isn't in hexadecimal. I can't see how this mod would change that though!

NIBOGO, TP 1.0.5 supports text in the URLs. I think it's called a short name or something.
"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."

jankariwo

Quote from: Dannii on August 03, 2008, 07:38:10 PM
jankariwo, follow these instructions: http://code.google.com/p/prettyurls/wiki/TroubleShooting

axlarry, hmm, that seems to be saying that the PHPSESSID isn't in hexadecimal. I can't see how this mod would change that though!

NIBOGO, TP 1.0.5 supports text in the URLs. I think it's called a short name or something.

Thanks I already scrapped the site and reinstalled

Dannii

runebergen, are you sure it's act=Arcade and not action=arcade?
"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."

runebergen

#2112
Yes, but it seems to be both maybe... 

Not an expert on this arcade mod, but the games have Action Script in the flash, that sends the code to a URL that is either "act=arcade" or "action=arcade"

BUT, your fix for leaving Arcade out of the Pretty URL filters works, so maybe its seen by SMF as action regardless... I think, havent seen errors since your filter fix..

I picked up some PHP code for you  to look at, just to see... Seems like game versions 1 send action, and game versions 2 send act

As for game versions 3, I dont think they work with my Arcade mod, but maybe its something comming.
Not sure :)

Sorry, hope its of some sort of assistance... 


//all default arcade actions   
   if (isset($_REQUEST['action']) && $_REQUEST['action'] == 'arcade') {
      $SMF_ARCADE_PATH .= "&action=".$_REQUEST['action'];
            if (isset($_REQUEST['sa'])) {
               $SMF_ARCADE_PATH .= "&sa=".$_REQUEST['sa'];
            }
      $do_arcade = true;
   }
   //For IBPArcade v2
   if (isset($_REQUEST['act']) && strtolower($_REQUEST['act']) == 'arcade') {
      $SMF_ARCADE_PATH .= "&act=".$_REQUEST['act'];
            if (isset($_REQUEST['do'])) {
               $SMF_ARCADE_PATH .= "&do=".$_REQUEST['do'];
            }
      $do_arcade = true;
   }
   //For IBPArcade v3
   if (isset($_REQUEST['autocom']) && $_REQUEST['autocom'] == 'arcade') {
      $SMF_ARCADE_PATH .= "&autocom=".$_REQUEST['autocom'];
            if (isset($_REQUEST['do'])) {
               $SMF_ARCADE_PATH .= "&do=".$_REQUEST['do'];
            }
      $do_arcade = true;
   }
}



runebergen



By the way, I fixed the Simple Portal part...

You are right, that it could be in the root of my site, and that this would give /forum/ for index?action=forum..
But that would make for example Board Hover mod, and relative paths broken I think.
At least Board Hover mod doent work... AS it will be /forum/index.php?xxx  for the URL that mod gives.

I fixed it by making a similar exception in the Pretty URL filters, as Arcade. Index.php?action=forum is ignored by Pretty URL at my site, and then Simple Portal works (a simple welcome page at "home" button or root of forum)


Reason I dont but it in root of site,  is that the forum is just a community part of site, and the main site is not built around SMF :)


Hope that makes sense :)

axlarry

Quote from: Dannii on August 03, 2008, 07:38:10 PM
axlarry, hmm, that seems to be saying that the PHPSESSID isn't in hexadecimal. I can't see how this mod would change that though!

You're saying that this is not hexadecimal :
PHPSESSID=jr5r1i4bjpf4ov28c9i33jf7c0
What doesn't it mean? Is it suppose to be in hexadecimal? So this could be the cause of the problem?
Pls excuse my stupid questions, I really have no clue what you're talking about :-X

zapiy

When you click his name it goes here http://maturevideogamer.co.uk/profile/Gaming%20Soldier/ . gaming soldier was his old username its now mad dog of wars.

http://maturevideogamer.co.uk/profile/MAD%20DOG%20OF%20WARS/ this link works.


Cheers m8
www.maturevideogamer.co.uk
www.consoleplanet.co.uk
www.retrovideogamer.co.uk

runebergen

Quote from: zapiy on August 04, 2008, 05:39:12 PM
When you click his name it goes here http://maturevideogamer.co.uk/profile/Gaming%20Soldier/ . gaming soldier was his old username its now mad dog of wars.

http://maturevideogamer.co.uk/profile/MAD%20DOG%20OF%20WARS/ this link works.


Cheers m8

Go to Pretty URL control panel, disable Pretty URL profiles...  save
Then enable, and save

Then go to the maintenance part, and press run maintenance

This way will force update the urls to be correct for new profile names :)


But maybe you already did, if you are saying its working :)

Kylezz

Not the best mod I ever saw before  ::)
Why do i post alot? I am not a leecher.

zapiy

Quote from: runebergen on August 04, 2008, 07:53:55 PM
Quote from: zapiy on August 04, 2008, 05:39:12 PM
When you click his name it goes here http://maturevideogamer.co.uk/profile/Gaming%20Soldier/ . gaming soldier was his old username its now mad dog of wars.

http://maturevideogamer.co.uk/profile/MAD%20DOG%20OF%20WARS/ this link works.


Cheers m8

Go to Pretty URL control panel, disable Pretty URL profiles...  save
Then enable, and save

Then go to the maintenance part, and press run maintenance

This way will force update the urls to be correct for new profile names :)


But maybe you already did, if you are saying its working :)


Worked a treat nice one fella.
www.maturevideogamer.co.uk
www.consoleplanet.co.uk
www.retrovideogamer.co.uk

Dannii

Quote from: runebergen on August 04, 2008, 01:03:52 PMYes, but it seems to be both maybe... 

Not an expert on this arcade mod, but the games have Action Script in the flash, that sends the code to a URL that is either "act=arcade" or "action=arcade"

BUT, your fix for leaving Arcade out of the Pretty URL filters works, so maybe its seen by SMF as action regardless... I think, havent seen errors since your filter fix..

I picked up some PHP code for you  to look at, just to see... Seems like game versions 1 send action, and game versions 2 send act

As for game versions 3, I dont think they work with my Arcade mod, but maybe its something comming.
Not sure :)

Sorry, hope its of some sort of assistance... 
Okay, I'll have a look into it.

Quote from: runebergen on August 04, 2008, 01:10:11 PM


By the way, I fixed the Simple Portal part...

You are right, that it could be in the root of my site, and that this would give /forum/ for index?action=forum..
But that would make for example Board Hover mod, and relative paths broken I think.
At least Board Hover mod doent work... AS it will be /forum/index.php?xxx  for the URL that mod gives.
How would it be broken?

QuoteI fixed it by making a similar exception in the Pretty URL filters, as Arcade. Index.php?action=forum is ignored by Pretty URL at my site, and then Simple Portal works (a simple welcome page at "home" button or root of forum)


Reason I dont but it in root of site,  is that the forum is just a community part of site, and the main site is not built around SMF :)
So you have more of the site that isn't the portal? Usually a portal is used to make up the bulk of a site... but I'm sure there are other arrangements too.

Quote from: axlarry on August 04, 2008, 01:53:57 PM
You're saying that this is not hexadecimal :
PHPSESSID=jr5r1i4bjpf4ov28c9i33jf7c0
What doesn't it mean? Is it suppose to be in hexadecimal? So this could be the cause of the problem?
Pls excuse my stupid questions, I really have no clue what you're talking about :-X
The letters following PHPSSESSID should only be from 0-9 and a-f. I don't know why it has j's and r's and p's etc.

Quote from: zapiy on August 04, 2008, 05:39:12 PM
When you click his name it goes here http://maturevideogamer.co.uk/profile/Gaming%20Soldier/ . gaming soldier was his old username its now mad dog of wars.

http://maturevideogamer.co.uk/profile/MAD%20DOG%20OF%20WARS/ this link works.
So you changed the username and not just the display name? Hmm, I should add something to empty the cache when you do that.

Quote from: Kylezz on August 04, 2008, 11:49:12 PM
Not the best mod I ever saw before  ::)
Well I wouldn't expect so, but what could make it 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."

Advertisement: