News:

Want to get involved in developing SMF? Why not lend a hand on our GitHub!

Main Menu

Pretty URLs

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

Previous topic - Next topic

chadon

Quote from: Dannii on June 09, 2008, 10:19:32 PM
chadon, you must still be using 0.7. Upgrade to 0.8.3.


No, I am using the version 0.8.3. The error only happens when a new topic is created not when we reply to them.

Dannii

If you've upgraded to 0.8.3 those lines should not be there. Subs-Post.php isn't modified anymore.
"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."

chadon

 There must be something wrong with my SMF. I deleted the lines manually and it works fine now. I also noticed lines from other mods that were deleted a while ago in that file. Any idea why this happened?
Thanks Dannii

Dannii

Maybe your host restored a backup? I don't know why else they'd be there.
"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."

ruckstande

I'm sorry if I'm dumb but this didn't seem to work the way I'm thinking. How does this actually work? I'm using a custom theme and everything appears in the admin panel but how do I get the pretty url's to appear?

Dannii

Have you enabled URL rewriting in the new admin 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."

SNBlog

Hi!
I have e feature request:
Can you put in "Run Maintenance" possibility to flush "pretty_topic_urls" table?
IMHO is really important for all strange topic title.

ruckstande

Quote from: Dannii on June 10, 2008, 01:18:46 PM
Have you enabled URL rewriting in the new admin page?
Yes I have. Should there be some options or buttons showing up letting me choose how a URL appears? If I paste a long url what is supposed to happen?

ruckstande

I just uninstalled it. My error log was filled with errors. Oh well.

Dannii

QuoteI have e feature request:
Can you put in "Run Maintenance" possibility to flush "pretty_topic_urls" table?
IMHO is really important for all strange topic title.
No. Topic URLs should be permanent. Eventually I'll add a mod action to change them. You can add query to flush the table for your forum though.

QuoteI just uninstalled it. My error log was filled with errors. Oh well.
What were the errors?
"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."

SNBlog

Ok, please can you write me a valid query to flush this table?

Dannii

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

SNBlog


Dannii

Just add this below the other truncate query in Subs-PrettyUrls.php
db_query("
TRUNCATE TABLE {$db_prefix}pretty_topic_urls", __FILE__, __LINE__);
"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."

SNBlog

Thanks!
Now after any maintenance all url are updated :)

ruckstande

Quote from: Dannii on June 10, 2008, 01:58:11 PM
QuoteI have e feature request:
Can you put in "Run Maintenance" possibility to flush "pretty_topic_urls" table?
IMHO is really important for all strange topic title.
No. Topic URLs should be permanent. Eventually I'll add a mod action to change them. You can add query to flush the table for your forum though.

QuoteI just uninstalled it. My error log was filled with errors. Oh well.
What were the errors?
I just reinstalled it. I don't have any errors now however I still think I'm confused as to what this does. I thought this gave me the option of changing the text of a link while still maintaining its original URL.

deathgame3

hi i need help i installed pretty url on my 1.14 smf forum, which has a plus gray theme, but something is messed up, at the top of every page theres some kinda of codes ->
Quote// Pretty URLs mod // Interface texts $txt['pretty_admin_menu'] = 'Pretty URLs'; $txt['pretty'] = array( 'url' => 'Pretty URL', 'url_desc' => 'A URL fragment used for boards and topics.
Note: this will be processed as only a limited set of characters are allowed - other characters will be converted. Leave blank to use the board name.
', ); // Settings descriptions $txt['pretty_board_lookup'] = 'A serialized array of URL => ID_BOARD pairs, used for processing $_GET[\'board\']. There can be more than one URL for each board.'; $txt['pretty_board_urls'] = 'A serialized array of ID_BOARD => URL pairs, used for generating pretty replacement URLs.'; $txt['pretty_enable_filters'] = 'Sets whether to prettify anything at all. 0 for no, 1 for yes.'; $txt['pretty_filters'] = 'A serialized array of filter data.'; $txt['pretty_filter_callbacks'] = 'A serialized array of callback function names, sorted by priority. Don\'t manually edit this, edit the pretty_filters setting instead.'; $txt['pretty_root_url'] = 'The base URL used by the board and topic filters, which by default is the same as $boardurl.';

and it doesnt change the url, it still like ---> "index.php?board=19.0"

can you please help me, i really need this to work, thnx

partners

Hi Danni,

We installed pretty URL's and everything went fine.

When we enable the mod our sitemap gives this error:

XML Parsing Error: no element found
Location: http://www.freeadzforum.com/sitemap/?xml
Line Number 1, Column 1:

Any ideas why this would happen?

Thanks for all your support.

Dannii

Quote from: ruckstande on June 10, 2008, 03:23:32 PMI just reinstalled it. I don't have any errors now however I still think I'm confused as to what this does. I thought this gave me the option of changing the text of a link while still maintaining its original URL.
No it changes the URLs automatically (though you can specify board URLs manually). The old topic and board URLs will be 301 redirected to the new ones.

Quote from: deathgame3 on June 10, 2008, 09:18:23 PMhi i need help i installed pretty url on my 1.14 smf forum, which has a plus gray theme, but something is messed up, at the top of every page theres some kinda of codes ->
Quote// Pretty URLs mod // Interface texts $txt['pretty_admin_menu'] = 'Pretty URLs'; $txt['pretty'] = array( 'url' => 'Pretty URL', 'url_desc' => 'A URL fragment used for boards and topics.
Note: this will be processed as only a limited set of characters are allowed - other characters will be converted. Leave blank to use the board name.
', ); // Settings descriptions $txt['pretty_board_lookup'] = 'A serialized array of URL => ID_BOARD pairs, used for processing $_GET[\'board\']. There can be more than one URL for each board.'; $txt['pretty_board_urls'] = 'A serialized array of ID_BOARD => URL pairs, used for generating pretty replacement URLs.'; $txt['pretty_enable_filters'] = 'Sets whether to prettify anything at all. 0 for no, 1 for yes.'; $txt['pretty_filters'] = 'A serialized array of filter data.'; $txt['pretty_filter_callbacks'] = 'A serialized array of callback function names, sorted by priority. Don\'t manually edit this, edit the pretty_filters setting instead.'; $txt['pretty_root_url'] = 'The base URL used by the board and topic filters, which by default is the same as $boardurl.';

and it doesnt change the url, it still like ---> "index.php?board=19.0"

can you please help me, i really need this to work, thnx
Looks like the language entries were added incorrectly to modifications.english.php. Make sure that there's only one ?> and that it's the very last thing in the file.

Quote from: partners on June 10, 2008, 09:18:56 PMHi Danni,

We installed pretty URL's and everything went fine.

When we enable the mod our sitemap gives this error:

XML Parsing Error: no element found
Location: http://www.freeadzforum.com/sitemap/?xml
Line Number 1, Column 1:

Any ideas why this would happen?

Thanks for all your support.
Is the mod still installed? The sitemap looks fine to me. I notice that it's using SMF's friendly URLs, you should disable that before installing this mod.
"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."

Chadrew

How do I re-make (update) board URL? Emptying the smf_pretty_urls_cache table has no effect.

Advertisement: