Pretty URLs

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

Previous topic - Next topic

Dannii

It's not a full error... but from what I can see it looks like the table was locked. I'm guessing because too many people were trying to view pages at once. If your website is that busy and your server can't handle it you will probably have to disable the mod (or change servers.) If you remove the mod you should install the reverter package.
"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."

tdot

Quote from: Dannii on January 30, 2009, 08:56:20 PM

Quote from: tdot on January 29, 2009, 09:36:42 AM
no, nothing either place :(
http://www.simplemachines.org/community/index.php?topic=146969.msg1896493#msg1896493 follow my instructions in this post to JoshieDaMan, except changing the actions you want of course.


hmm that didn't seem to help :(

I have tried making it change the actions address, and not changing the actions address but with the same results.  All pages work like they should EXCEPT the private message page.

Dannii

I don't understand what you just said. Can you show me the code changes you made?
"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."

tdot

#3003
Quote from: Dannii on February 02, 2009, 05:26:53 AM
I don't understand what you just said. Can you show me the code changes you made?

I did this in PrettyUrls-Filters.php:

I found this
            if (in_array($matches[2], $context['pretty']['action_array']))

Replaced with this
            if (in_array($matches[2], $context['pretty']['action_array']) && $matches[2] != 'pm')

Imago

Any chance to introduce custom replacements? For instance

б|b, в|v, г|g, д|d, ж|zh, з|z, и|i, й|j

Thank you

Dannii

tdot, have you then run maintenance?

Imago, no, though you can easily add them yourself to 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."

Imago


tdot

Quote from: Dannii on February 02, 2009, 06:12:37 AM
tdot, have you then run maintenance?


Yes, I ran maintenance always afterwards.

Dannii

Can you give me a link to your forum?
"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."

tdot

http://www.microstockgroup.com [nofollow]

the prettyurls isn't running right now (it is installed, but turned off) because of the PM problem.  I can turn it on though if it helps..


tdot

ok, a little more info for you.. perhaps it has something to do with servers caches and such.

A new user account with one message works fine
my main account with 319 message returns the blank page

ffingers

Quote from: ffingers on January 29, 2009, 10:45:19 AM
@Dannii

no see i did not have pretty urls installed before i switched over the forum....

the thing is....the directory structure is the same...only the domain directs straight to the /forum folder.....

that troubleshooting doesn't seem like it will help

<?php
require_once(dirname(__FILE__) . '/SSI.php');
updateSettings(array('pretty_root_url' => $boardurl));
?>


as my boardurl i believe would still be forum/index.php....rather...i need pretty urls to see it as just index.php without the forum....

where in  pretty urls does it create the link or from what variables
Did you try it? It sets it to $boardurl, the same URL you access your forum from.

yes i did try it....

it's not that the pretty urls does create the create link....it formats http://cbrjunkie.com/index.php?board=40.0 to http://cbrjunkie.com/announcements/ like it should....the issue is that instead of linking to http://cbrjunkie.com/index.php?board=40.0, it links to http://cbrjunkie.com/forum/index.php?board=40.0

does that make more sense??

Toadmund

Quote from: Dannii on October 20, 2008, 08:46:41 PM

QuoteUnable to load the 'PrettyUrls.english-utf8' language file
Try copying the PrettyUrls.english.php file to PrettyUrls.english-utf8.php
I copied 'PrettyUrls.english.php' to another file, then renamed it 'PrettyUrls.english-utf8.php'
Is that what you suggested I do?
I did not find a 'PrettyUrls.english-utf8.php' so I assumed you meant for me to do as I did above. So far I see no new error messages due to pretty urls, at least not yet, I will let you know.

Dannii

tdot, can you clear all the caches?

ffingers, check Settings.php... what is $boardurl actually set to?
"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."

ffingers

it reads...(in the settings.php file)

$boardurl = 'http://cbrjunkie.com';

tdot

My forum doesn't use caching.  I emptied caches out on my browser and there was no improvement :(

L'AltroWeb

#3016
Hi!
I have a topic with this name: Google è Impazzito!
because with pretty urls is /google-232-impazzito!/  ???
Instead another url like Richieste Novità Sul Sito
with pretty urls is /richieste-novita-sul-sito/
-
Edit: i've removed the fix /*db_query("
TRUNCATE TABLE {$db_prefix}pretty_topic_urls", __FILE__, __LINE__);*/

After of this i've fix url in database and finally i've run maintenance.
Now is ok (and i've disabled TRUNCATE topic_urls) ;)

louislouis

Hey, some threads cannot be opened with this mod due to special chars, for example :

http://www.______.com/forums/problemssuggestions/tyler's-curl-video/

I think titles with ' and " won't open.  Any ideas how I can fix this?

L'AltroWeb

#3018
Quote from: louislouis on February 03, 2009, 10:27:05 AM
Hey, some threads cannot be opened with this mod due to special chars, for example :

http://www.______.com/forums/problemssuggestions/tyler's-curl-video/

I think titles with ' and " won't open.  Any ideas how I can fix this?

I have fix in my forum with this:
Oper Subs-PrettyUrls.php
and change this:
"\x12" => array ("'", '"'),
to this:
/*"\x12" => array ("'", '"'),*/
remember to run maintenance!
-
Now your url will be: tylers-curl-video/
eg: http://darkwolf.altervista.org/forum/modemrouter/guida-alluso-di-ciclamab/

louislouis

Quote from: Dark-Wolf on February 03, 2009, 10:33:05 AM
I have fix in my forum with this:
Oper Subs-PrettyUrls.php
and change this:
"\x12" => array ("'", '"'),
to this:
/*"\x12" => array ("'", '"'),*/
remember to run maintenance!
-
Now your url will be: tylers-curl-video/
eg: http://darkwolf.altervista.org/forum/modemrouter/guida-alluso-di-ciclamab/ [nofollow]


Is there any more changes? I followed those steps, ran the maintenance and it's still showing URLS with ' ?

Advertisement: