News:

SMF 2.1.4 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

Özgür

So Long

ferlo

Quote from: pastramirye on March 29, 2009, 07:47:14 AM
Any other mods installed ?
No other mods. Before to try to reinstall I also dropped the tables.
No way to succeed.

Mihac™

My error

QuoteType of error: Undefined
http://www.zagreb-forum.com/index.php?pretty;action=login2&sa=check
8: Undefined index: member

File: .........../Sources/LogInOut.php
Line: 123

find LogInOut.php

if ($_GET['member'] != $ID_MEMBER)

and replace

if ($_GET['member'] != $user_info['id'])

now does not work error  :D


"kad budala postavi neko glupo pitanje ni deset mudraca ne može na njega odgovoriti "

lovearat

Could someone please help me?  My site is completely inaccessable such adding pretty urls.  I have no clue what to do. And I am a rookie when it comes to this stuff.
<span style="font-size: 12px; color: red;">Do Not Pm Me For Support. Please use the appropriate board</span>

ferlo

Quote from: Dannii on March 29, 2009, 09:17:59 AM
Quote from: ferlo on March 29, 2009, 07:26:03 AM
Quote from: pastramirye on March 28, 2009, 07:47:30 AM
Try this - http://download.simplemachines.org/index.php?thanks;filename=repair_settings.php
paths are ok.
reapair_settings.php unuseful.
the whole site is www.sitename.com [nofollow] but boards and topics are just sitename.com [nofollow]
Then did you follow the second section of the trouble shooting page?

yes of course.
all the url are mentioned as www
forum is installd in subdir of a wp installation.
note, the .htaccess in wp root use www in front of domain name too.
smf has been setup with www too in domain name.

situation as follow.
all url ARE setup as www.domainname

after activating pretty url for ALL the sections I get:

menu rewriting with www
section rewriting with www
board rewriting without www
topic rewriting without www

BTW, url for the whole site should be http://www.domain.com/page.html [nofollow] not just http://www.domain.com/page/ [nofollow] it's more seo afaik. :)

thanks for now.

Dannii

Quote from: lovearat on March 29, 2009, 08:03:44 PM
Could someone please help me?  My site is completely inaccessable such adding pretty urls.  I have no clue what to do. And I am a rookie when it comes to this stuff.
Follow the first section of the trouble shooting page.

Quote from: ferlo on March 30, 2009, 01:59:16 AM
yes of course.
all the url are mentioned as www
forum is installd in subdir of a wp installation.
note, the .htaccess in wp root use www in front of domain name too.
smf has been setup with www too in domain name.

situation as follow.
all url ARE setup as www.domainname

after activating pretty url for ALL the sections I get:

menu rewriting with www
section rewriting with www
board rewriting without www
topic rewriting without www

BTW, url for the whole site should be http://www.domain.com/page.html not just http://www.domain.com/page/ it's more seo afaik. :)

thanks for now.
Then your $boardurl must be http://domain.com not http://www.domain.com

And .html are no more SEOed. Cool URIs don't have extensions!
"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."

gigglemal

Yikes. Just installed this and got some bad juju  :'(

The forum 'seems' the be working okay, insofar as I can navigate around the boards, and it loads up okay.

However, at the top of the page, I get all this mumbojumbo.....

"// Pretty URLs mod $txt['pretty_admin_menu'] = 'Pretty URLs'; // Board URLs interface $txt['pretty_add_url'] = 'Add'; $txt['pretty_add_url_description'] = 'Add a URL. Note that what you enter here will be processed as only certain characters are allowed.'; $txt['pretty_board_url_title'] = 'Pretty URLs for: '; $txt['pretty_deleted_board'] = 'Deleted board #'; $txt['pretty_duplicate_link'] = 'delete it first.'; $txt['pretty_duplicate_warning'] = 'That URL is already in use by another board. It will be available if you '; $txt['pretty_make_primary'] = 'Make primary'; $txt['pretty_modify_board_url'] = 'Pretty URL'; $txt['pretty_no_primary_warning'] = 'Warning, no primary URL!'; $txt['pretty_numerical'] = 'Sorry, but as that URL is either a number or the same as a forum action the board ID had to be added as a suffix.'; $txt['pretty_primary_url'] = 'Primary'; // Settings descriptions $txt['pretty_action_array'] = 'An array of forum actions, extracted from index.php.'; $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.'; "

Here's what I did.

1. backed up the Forum.
2. Converted to UTF8 ( (using link at top of packages page)
3. converted HTML entries to UTF8 (using link at top of packages page)
4. Browsed, uploaded & installed the mod.
n.b. I'm not sure if this is relevant, but after clicking apply the mod, and the list of steps comes up, most (apart from the last few) said 'test succesful'. The last few however, just listed what it should be doing on left, but with no 'test succesful' or other text on the right-hand side like the other steps?

Any ideas please folks? Is it just not properly installed or something, or is it deeper stuff?

Oh, one other possible clue - on the left hand side menu, under 'Configuration' there is an empty space (i.e. a line with no text/link on it) between 'Themes and Layout' and 'Ad Management'

ferlo

Quote from: Dannii on March 30, 2009, 02:57:56 AM
Then your $boardurl must be http://domain.com [nofollow] not http://www.domain.com [nofollow]

ok done. now everything is without the www and seems working.
this means that prettyurl does not work with www in front of domain name?
Thanks alot!

lovearat

Quote from: Dannii on March 30, 2009, 02:57:56 AM
Quote from: lovearat on March 29, 2009, 08:03:44 PM
Could someone please help me?  My site is completely inaccessable such adding pretty urls.  I have no clue what to do. And I am a rookie when it comes to this stuff.
Follow the first section of the trouble shooting page.

Quote from: ferlo on March 30, 2009, 01:59:16 AM
yes of course.
all the url are mentioned as www
forum is installd in subdir of a wp installation.
note, the .htaccess in wp root use www in front of domain name too.
smf has been setup with www too in domain name.

situation as follow.
all url ARE setup as www.domainname

after activating pretty url for ALL the sections I get:

menu rewriting with www
section rewriting with www
board rewriting without www
topic rewriting without www

BTW, url for the whole site should be http://www.domain.com/page.html not just http://www.domain.com/page/ it's more seo afaik. :)

thanks for now.
Then your $boardurl must be http://domain.com not http://www.domain.com

And .html are no more SEOed. Cool URIs don't have extensions!

Problem solved and my site is back online.
<span style="font-size: 12px; color: red;">Do Not Pm Me For Support. Please use the appropriate board</span>

Dannii

Quote
Any ideas please folks? Is it just not properly installed or something, or is it deeper stuff?
Your language file wasn't modified correctly.

Quote from: ferlo on March 30, 2009, 06:59:20 AM
ok done. now everything is without the www and seems working.
this means that prettyurl does not work with www in front of domain name?
Thanks alot!
It should work completely fine. If you have problems then your DNS must be messed up.
"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."

gigglemal

Hi Danni, thanks for the reply.

What's the best way to resolve this please? Uninstall, delete then reinstall? Or to manually edit the code/pages? Or to restore backup and then try reinstall?

Could it be linked to me doing the change to utf8 thing before?

Sorry, I'm a newbie to all this, and learning slowly - very slowly  :-X

Dannii

Edit modifications.english.php and check that there's only one ?> and that it's the very last thing in the file.
"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."

gigglemal

Quote from: Dannii on March 30, 2009, 08:43:38 AM
Edit modifications.english.php and check that there's only one ?> and that it's the very last thing in the file.

Cheers Danni, you're a star! For some reason, the mod text was placed after the ?> as you suggested. Simple cut and paste, and it's all sorted  :D

Thanks again for such a great mod, and your advice & support!

Jiveturkey

I found that Pretty URL's was keeping my new Ajax Chat mod from working properly.  When I disable Pretty URL all is fine in the world.

If there a way to make an exception for the Chat mod?  I think that I had to do something similar for my Arcade.

Dannii

Quote from: Jiveturkey on March 31, 2009, 02:55:24 PM
I found that Pretty URL's was keeping my new Ajax Chat mod from working properly.  When I disable Pretty URL all is fine in the world.

If there a way to make an exception for the Chat mod?  I think that I had to do something similar for my Arcade.
The mod is probably using relative URLs. Ask the author to fix it so it uses full absolute URLs. For the arcade you can use the extras 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."

Jiveturkey

Actually this bit of code fixed it.

RewriteRule ^chat/?$ ./chat/index.php [L,QSA]

pastramirye

Hello,

It appears that I'm getting id_topic appended to some of the sitemap urls's.
http://www.thebestsandwichintheworld.com/sitemap.xml
Any ideas ?

Regards.

L'AltroWeb

#3337
Hi!
I've used a code like this:# Remove WWW from url
RewriteCond %{HTTP_HOST} ^www,miosito.altervista.org [NC]
RewriteRule ^(.*)$ hxxp://miosito.altervista.org/$1 [R=301,L]
to redirect all www requests to the same without www but this work fine for demo and other link except for forum (i think for querystring).
Is there any way to fix?
Thanks in advance, DarkWolf :)

Dannii

Quote from: pastramirye on April 01, 2009, 06:55:21 PM
Hello,

It appears that I'm getting id_topic appended to some of the sitemap urls's.
http://www.thebestsandwichintheworld.com/sitemap.xml
Any ideas ?

Regards.
Looks like you have multiple topics with the same title so it's adding the ID to keep them unique.

Quote from: Dark-Wolf on April 01, 2009, 09:53:18 PM
Hi!
I've used a code like this:# Remove WWW from url
RewriteCond %{HTTP_HOST} ^www,miosito.altervista.org [NC]
RewriteRule ^(.*)$ hxxp://miosito.altervista.org/$1 [R=301,L]
to redirect all www requests to the same without www but this work fine for demo and other link except for forum (i think for querystring).
Is there any way to fix?
Thanks in advance, DarkWolf :)
No idea.
"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."

pastramirye

#3339
Quote from: Dannii on April 02, 2009, 01:13:32 AMLooks like you have multiple topics with the same title so it's adding the ID to keep them unique.

Okay - I'm with you.
Multiple topics (2) with same first word in the title.
Needs to be looked at on my part.  ;)

When I change the topic name(s) the particular url's which are appended with ID do not update in the sitemap ?

I ran maintenance - no change.

Regards.


Advertisement: