News:

Want to get involved in developing SMF, then 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

L'AltroWeb

#1760
Quote from: Dannii on June 01, 2008, 11:02:42 AM
Can you explain the problem with the thanks mod more please?

The problem with the top 10 mod is that it's using relative rather than absolute URLs.
I have maked a test account can i send you username and password via pm?
-
Edit: ok now topX is perfect  :D
-
Riedit: i have see now that don't work SMF Ajax Registration Feedback  :(
-
Ok Ajax Registration Feedback fixed  :P
-
Last edit now all is ok  8)

mark7144

I have a few questions...

1) How do you have it so only the topic title is used rather than have a unique ID at the end of the title? Does this cause problems if a user created a topic with the same name?

2) Will the URLs on my SSI news page be good as well?

3) Is there any conversation tool to help with moving from SMF4SEO to this mod?

Dannii

Dark-Wolf, good to hear it's all fix now, even though I don't know what you were fixing! :P
You're still having problems with the thanks mod?

mark, it stores the URLs for each topic in the database. If there is a duplication the topic ID is added to the end. Anything using SSI.php should be fine. You can get a conversion package at http://prettyurls.googlecode.com/svn/trunk/extras/
"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'AltroWeb

#1763
Quote from: Dannii on June 01, 2008, 11:02:42 AM
The problem with the top 10 mod is that it's using relative rather than absolute URLs.
After this i have fix all relative url with absolute.
For ajax registation (AjaxRegFed.js), topX and ThanksMod.
After this all is perfect ;)
Quote from: Dannii on June 01, 2008, 12:08:58 PM
Dark-Wolf, good to hear it's all fix now, even though I don't know what you were fixing! :P
You're still having problems with the thanks mod?
No, no problem now :)

mark7144

Thanks Dannii, sorry for these additional questions.

Please can you tell me what to do as I didn't find the readme very helpful.

1) In which order do I do the process? Remove SMF4SEO first or install your patch then remove? That sort of thing I'm not sure about.

2) Also, am I meant to download each file in /extras/ and then zip it and upload like a separate mod?

3) What does the patch actually do?

Dannii

Dark-Wolf, awesome, that makes it easy for me!
Perhaps you could recommend to the mod authors that they change to absolute URLs.

mark:
1. Uninstall SMF4SEO, install the base Pretty URLs (you'll need to get the latest snapshot) and then the extras package.
2. Yes, make your own .zip from all the files. I'll make packages for it myself once I'm ready to release 0.9.
3. It permanently redirects board and topic URLs from the SMF4SEO style to the pretty URLs style.
"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


L'AltroWeb

#1767
Ok good :)
PS thank you very much for this great mod  8)
NB: I had to insert RewriteBase /forum in my htaccess to work
(maybe you can insert this advice in your first post)
-
Edit:
I have found another problem, now with arcade.
Test: http://darkwolf.altervista.org/forum/arcade/?sa=play;game=8
(click on "Send Score" and see url in the bottom bar of your browser)
i have test to fix but i don't have found any relative url (all absolute?)
how i can fix?

Dannii

Hmm, it's possible the relative URL is internal to the flash. Do other games work?
"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."

SomaliDoc

Hey guys, I am usig SMF 1.1.5 & I downloaded pretty urls' mod ver 0.8.3.

Every thing is fine but one board is missing, it just displays a blank page, but the topics inside are readable if you know their link.

I need your help

Dannii

Anything in the error log?
"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."

SomaliDoc

Quote from: Dannii on June 01, 2008, 08:43:01 AM
In PrettyUrls-Filters.php
Code (find) Select
$add_new[] = '(' . $row['ID_TOPIC'] . ', "' . addslashes($pretty_text) . '")';
Code (replace) Select
$add_new[] = '(' . $row['ID_TOPIC'] . ', \'' . addslashes($pretty_text) . '\')';

Thanks Dannii, this fixed it

L'AltroWeb

Quote from: Dannii on June 01, 2008, 11:14:50 PM
Hmm, it's possible the relative URL is internal to the flash. Do other games work?
Yes Maybe.
Can i fix via htaccess?
Or can i disable pretty url for arcade?

Dannii

You probably could fix it, but it would take effort. Talk to the arcade's creator about using absolute URLs.
"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'AltroWeb


Dannii

You can disable pretty URLs for the arcade by making this change to PrettyUrls-Filters.php:
Code (find) Select
if (in_array($matches[2], $context['pretty']['action_array']))
Code (replace) Select
if (in_array($matches[2], $context['pretty']['action_array']) && $matches[2] != '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."

L'AltroWeb

Quote from: Dannii on June 02, 2008, 07:10:34 AM
You can disable pretty URLs for the arcade by making this change to PrettyUrls-Filters.php:
Code (find) Select
if (in_array($matches[2], $context['pretty']['action_array']))
Code (replace) Select
if (in_array($matches[2], $context['pretty']['action_array']) && $matches[2] != 'arcade')
Sorry but not work.
I have make your change, ctrl+f5 for cache but all remain the same.

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

L'AltroWeb


Harvest

Dannii could You share with us how is the pretty_action_array addressed, I mean how to add some custom actions to the rewrite module ?
Regards

Advertisement: