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

D Ogi

I've installed that mod without any problems, but links are still the same as previous.

Mod works, because if I type manually url like this:
hxxp:forum.mortal-clan.eu/smieszne [nonactive]
anything is ok.

But why there are links in board index like this:
hxxp:forum.mortal-clan.eu/index.php?board=2.0 [nonactive]
?????

Mod is not changing links ;/

D Ogi

Quote from: D Ogi on May 11, 2008, 11:01:35 AM
I've installed that mod without any problems, but links are still the same as previous.

Mod works, because if I type manually url like this:
hxxp:forum.mortal-clan.eu/smieszne [nonactive]
anything is ok.

But why there are links in board index like this:
hxxp:forum.mortal-clan.eu/index.php?board=2.0 [nonactive]
?????

Mod is not changing links ;/
After serveral tries it works ;)

Dannii

#1642
QuoteOne other thing: I think this mod kinda killed one topic on my forum lol. It sounds stupid know, but I posted a link into a topic and now it always gives a blank page. I checked the error log, and it relates to Pretty URLS?
Hmm I've actually had that error on my forum too, I don't know why or how. Does it still happen if you empty the pretty_urls_cache table? You're running SMF2... I think the bug only happens in SMF2. Weird.

QuoteAfter serveral tries it works ;)
Okay good to hear you got it working :)
"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."

Dannii

LGS, okay this one's easy. In QueryString.php:
Code (find) Select
$smcFunc['db_insert']('',
'{db_prefix}pretty_urls_cache',

Code (replace) Select
$smcFunc['db_insert']('replace',
'{db_prefix}pretty_urls_cache',
"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."

L.G.S

Thanks. What was the problem?
FREE and LIVE World Cup + Premier League football streams:

www.gamesandgoals.com


Dannii

The problem was that it wasn't replacing like the 1.1 version does. Why it needs to replace at all I'm not sure...
"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."

Dannii

Actually LGS, replace that whole query with this:
// Cache these URLs in the database
if (count($cache_data) != 0)
$smcFunc['db_insert']('replace',
'{db_prefix}pretty_urls_cache',
array('url_id' => 'string', 'replacement' => 'string'),
$cache_data,
array('url_id'));
"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."

Dannii

#1647
I've (finally!) added an interface to edit board URLs. You simply go to the manage boards page, and click on the links. If you have any problems or suggestions, please do post here.

Get it in the latest snapshot on the downloads page.

(LGS, you may want to try 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."

Dorian

humm sweet, works like charm :)
I'm your creativity creator:)

GliG

#1649
Thanks for modification. But it has a error. Profile links must convert from private characters. This problem solved on topic links. It most solve profile links ;)
Only Develop

L.G.S

I got a lot of install errors for the new update!

*     1.     Execute Modification     ./index.php     Test failed
      1.    Replace    ./index.php    Test failed
*    2.    Execute Modification    ./SSI.php    Test successful
      1.    Replace    ./SSI.php    Test successful
*    3.    Execute Modification    ./Sources/Admin.php    Test successful
      1.    Add After    ./Sources/Admin.php    Test successful
*    4.    Execute Modification    ./Sources/ManageErrors.php    Test successful
      1.    Replace    ./Sources/ManageErrors.php    Test successful
*    5.    Execute Modification    ./Sources/ManageSettings.php    Test failed
      1.    Replace    ./Sources/ManageSettings.php    Test failed
*    6.    Execute Modification    ./Sources/News.php    Test successful
      1.    Replace    ./Sources/News.php    Test successful
*    7.    Execute Modification    ./Sources/QueryString.php    Test failed
      1.    Replace    ./Sources/QueryString.php    Test failed
      2.    Replace    ./Sources/QueryString.php    Test failed
*    8.    Execute Modification    ./Sources/Subs.php    Test failed
      1.    Replace    ./Sources/Subs.php    Test failed
      2.    Replace    ./Sources/Subs.php    Test failed
*    9.    Execute Modification    ./Sources/Display.php    Test successful
      1.    Replace    ./Sources/Display.php    Test successful
*    10.    Execute Modification    ./Sources/ManageBoards.php    Test successful
      1.    Add After    ./Sources/ManageBoards.php    Test successful
      2.    Add Before    ./Sources/ManageBoards.php    Test successful
*    11.    Execute Modification    ./Sources/MessageIndex.php    Test successful
      1.    Replace    ./Sources/MessageIndex.php    Test successful
*    12.    Execute Modification    ./Sources/QueryString.php    Test failed
      1.    Replace    ./Sources/QueryString.php    Test failed
      2.    Replace    ./Sources/QueryString.php    Test failed
      3.    Replace    ./Sources/QueryString.php    Test failed
*    13.    Execute Modification    ./Sources/Subs-Boards.php    Test failed
      1.    Replace    ./Sources/Subs-Boards.php    Test failed
      2.    Replace    ./Sources/Subs-Boards.php    Test successful
      3.    Replace    ./Sources/Subs-Boards.php    Test successful
*    14.    Execute Modification    ./Themes/default/ManageBoards.template.php    Test successful
      1.    Replace    ./Themes/default/ManageBoards.template.php    Test successful
      2.    Replace    ./Themes/default/ManageBoards.template.php    Test successful
      3.    Replace    ./Themes/default/ManageBoards.template.php    Test successful
      4.    Replace    ./Themes/default/ManageBoards.template.php    Test successful
      5.    Replace    ./Themes/default/ManageBoards.template.php    Test successful
      6.    Add Before    ./Themes/default/ManageBoards.template.php    Test successful
*    15.    Execute Modification    ./Themes/default/languages/Modifications.english.php    Test successful
      1.    Add Before    ./Themes/default/languages/Modifications.english.php    Test successful
   16.    Execute Modification    ./Themes/default/languages/Modifications.english-utf8.php    Skipping file
   17.    Execute Modification    ./Themes/default/languages/Modifications.french.php    Skipping file
   18.    Extract File    ./Sources/PrettyUrls.php    
   19.    Extract File    ./Sources/PrettyUrls-Filters.php    
   20.    Extract File    ./Sources/Subs-PrettyUrls.php    
   21.    Extract File    ./Themes/default/PrettyUrls.template.php    
   22.    Extract Tree    ./Themes/default/pretty    
   23.    Extract File    ./Themes/default/languages/PrettyUrls.english.php    
   24.    Extract File    ./Themes/default/languages/PrettyUrls.french.php    
   25.    Adapt Database    SMF2-0/install.php
FREE and LIVE World Cup + Premier League football streams:

www.gamesandgoals.com


spiros

Hi Dannii,

Is there a changelog and update procedure for new version?

Dannii

Quote from: GliG on May 12, 2008, 03:10:52 PMThanks for modification. But it has a error. Profile links must convert from private characters. This problem solved on topic links. It most solve profile links ;)
Sorry, but I don't know what you mean.

Quote from: L.G.S on May 12, 2008, 03:15:30 PMI got a lot of install errors for the new update!
You had uninstalled the old version first, hadn't you?

Quote from: spiros on May 12, 2008, 03:27:26 PMIs there a changelog and update procedure for new version?
http://prettyurls.googlecode.com/svn/trunk/CHANGES
Update procedure: uninstall any old versions, install new version.
"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."

spiros

QuoteIs there a changelog and update procedure for new version?
http://prettyurls.googlecode.com/svn/trunk/CHANGES

Ok thanks! Although I only see version 0.8.1 and not 0.8.3.

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

BTDSoft

Hi, just downloaded and installed this mod with package manager on smf 1.1.5.

Re-writes the urls fine I guess as it wont let me do anything. cant log in, cant view topic, no nada.

care to look
hxxp:www.schizoaffectivelife.com [nonactive]

everything gets re-written to
hxxp:www.schizoaffectivelife.com/forum/ [nonactive]

Please tell me what I might need to fix it or delete it?
No not smart enought to backup files, looked like this mod was well used and tested, just now note BETA.

sorry if I didnt search enough, tried a few terms I felt relevant with no results.
Thanks

hxxp:www.btdsoft.com [nonactive]|hxxp:www.cometomissouri.com [nonactive]|hxxp:www.btdsoft.com/forum/ [nonactive]

Dannii

It looks fine to me... which pages exactly are broken?
"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."

L.G.S

Quote from: Dannii on May 12, 2008, 07:27:26 PM
Quote from: GliG on May 12, 2008, 03:10:52 PMThanks for modification. But it has a error. Profile links must convert from private characters. This problem solved on topic links. It most solve profile links ;)
Sorry, but I don't know what you mean.

Quote from: L.G.S on May 12, 2008, 03:15:30 PMI got a lot of install errors for the new update!
You had uninstalled the old version first, hadn't you?

Quote from: spiros on May 12, 2008, 03:27:26 PMIs there a changelog and update procedure for new version?
http://prettyurls.googlecode.com/svn/trunk/CHANGES
Update procedure: uninstall any old versions, install new version.

Damn, I thought it was an update haha.
FREE and LIVE World Cup + Premier League football streams:

www.gamesandgoals.com


Dannii

We're getting close to the stage where I will start offering update packages! :)
"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."

BTDSoft

#1659
Quote from: Dannii on May 13, 2008, 12:17:05 PM
It looks fine to me... which pages exactly are broken?
Dope! I just got home, read your reply and checked myself, yes, it does now apear to be working for me also with no changes. Before I even ctrl f5 and everything and couldnt get anyting to work for me, everything I clicked on , admin, boards etc all went to domain/forum/

I guess that proves it, I am  nutz!
hxxp:www.btdsoft.com [nonactive]|hxxp:www.cometomissouri.com [nonactive]|hxxp:www.btdsoft.com/forum/ [nonactive]

Advertisement: