News:

Wondering if this will always be free?  See why free is better.

Main Menu

Pretty URLs

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

Previous topic - Next topic

SNBlog

Quote from: Dannii on February 05, 2009, 08:49:59 AM
Yeah well they're fine. All the URL standards say so. And if you don't want them you can always remove them from Subs-PrettyUrls.php.
Ok thanks but i prefer to maintain simple for indicization of some old topic :)

SergeantAsh

This link within a topic updated email...

Quotehttp://www.**********.co.uk/shipwrecked-island-chat/do-you-know-a-shipwrecked-2009-contestant/new/?PHPSESSID=j75en78e0pos13jfb9ovqoln05;topicseen

...causes a 503 error - I know I've reported this already matey but is there any way that I can tweak thsi mod to disable PrettyURLs from converting a URL upon first entry to the site? but PrettyURLs kicks in after that point?
Quote"Moderation has been called a virtue to limit the ambition of great men, and to console undistinguished people for their want of fortune and their lack of merit."

louislouis

Quote from: Dannii on February 05, 2009, 07:52:41 AM
You can change board URLs when you go to edit a board.

I've tried to edit the board and renaming it to something completely different, but for some reason, the old url remains? I even tried running maintenance after...  So strange... Where in the DB could this old url be lingering?


SergeantAsh

Quote from: louislouis on February 05, 2009, 02:16:42 PM
Quote from: Dannii on February 05, 2009, 07:52:41 AM
You can change board URLs when you go to edit a board.

I've tried to edit the board and renaming it to something completely different, but for some reason, the old url remains? I even tried running maintenance after...  So strange... Where in the DB could this old url be lingering?



Go into Admin, then BOARDS, then click PRETTY URL next to the board in question - delete the one listed and add a new one, then run maintenance.

Think that sorts it!
Quote"Moderation has been called a virtue to limit the ambition of great men, and to console undistinguished people for their want of fortune and their lack of merit."

louislouis

Quote from: @sh on February 05, 2009, 02:42:40 PM
Quote from: louislouis on February 05, 2009, 02:16:42 PM
Quote from: Dannii on February 05, 2009, 07:52:41 AM
You can change board URLs when you go to edit a board.

I've tried to edit the board and renaming it to something completely different, but for some reason, the old url remains? I even tried running maintenance after...  So strange... Where in the DB could this old url be lingering?



Go into Admin, then BOARDS, then click PRETTY URL next to the board in question - delete the one listed and add a new one, then run maintenance.

Think that sorts it!

Hey, I don't see a PRETTY URL section in BOARDS area. My mod is a bit f*cked already because I can only access the pretty settings by manual url http://www._________.com/forums/admin/?area=pretty


Whats the manual URL to access the BOARDS>Pretty URL section?

SergeantAsh

Perhaps don't do this until someone confirms dude, but might be worth emptying the PrettyURLs cache table in your database? Don't do this until someone else confirms but I've done it and its solved issues with PrettyURLs before for me.
Quote"Moderation has been called a virtue to limit the ambition of great men, and to console undistinguished people for their want of fortune and their lack of merit."

Dannii

Quote from: @sh on February 05, 2009, 01:52:07 PM
This link within a topic updated email...

Quotehttp://www.**********.co.uk/shipwrecked-island-chat/do-you-know-a-shipwrecked-2009-contestant/new/?PHPSESSID=j75en78e0pos13jfb9ovqoln05;topicseen

...causes a 503 error - I know I've reported this already matey but is there any way that I can tweak thsi mod to disable PrettyURLs from converting a URL upon first entry to the site? but PrettyURLs kicks in after that point?
I'll try and have a look at it soon, but I'm very busy sorry.

Quote from: louislouis on February 05, 2009, 03:25:22 PM
Hey, I don't see a PRETTY URL section in BOARDS area. My mod is a bit f*cked already because I can only access the pretty settings by manual url http://www._________.com/forums/admin/?area=pretty


Whats the manual URL to access the BOARDS>Pretty URL section?
You mustn't have edited the managerboards template 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."

Dark-Master

Apply Mod button disappeared after upgraded to 2.0rc1 >:(, does it mean prettyurl current version does not support for SMF 2.0rc1?

Dannii

I don't know. You can try emulating a beta in the package manager...
"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."

Dark-Master

Quote from: Dannii on February 06, 2009, 12:57:26 AM
I don't know. You can try emulating a beta in the package manager...

Thx, now it works with 2.0 beta 4 emulating but some modifications are needed. I have to input a prefix "smf_" in "prettyurls-0-9\SMF2-0\install.php" for both mysql tables which are "smf_pretty_topic_urls" and "smf_pretty_urls_cache".

navjotjsingh

Strangely, it worked for me without any modification...Only Emulation was needed.

SergeantAsh

Quote from: Dannii on February 05, 2009, 08:11:57 PM
I'll try and have a look at it soon, but I'm very busy sorry.

Thanks Dannii, appreciate it.
Quote"Moderation has been called a virtue to limit the ambition of great men, and to console undistinguished people for their want of fortune and their lack of merit."

bigboss2

same problem dark-master.

even after emulation, error coming.

Table 'dbprefix_fm.pretty_topic_urls' doesn't exist
File: /home/cpanelaccount/public_html/Packages/temp/SMF2-0/install.php
Line: 36

Reply is appreciateion.

glennk

Hi Dannii,

Further to recent conversations. I am now using the reverter.

Is there any way at all that this could impact on google adsense page impressions ??

I really dont think this can be the case but am examining all possible reasons.

Many thanks - Glenn

Dannii

They say that changing a lot of URLs, even with redirects, may not be good. But I don't really know nor care.
"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:
Today i've see all log and google statistic (webmaster tools).
I've see more 404 cause by url with special chars like ( ! ).
Eg: this topic: Call of Duty(R) 4 - Modern Warfare(TM)
will be indicized by google like this: .../forum/call-of-Duty r 4-modern-warfare tm (with space instead of special chars)
and this: Presentatevi qui!! will be indicized like this:
.../forum/presentatevi-qui     (without !! and without final slash /)
For this reason now i've edit this: /*
'!' => array ('!'),
'~' => array ('~'),
'*' => array ('*'),
"\x12" => array ("'", '"'),
'(' => array ('(', '{', '['),
')' => array (')', '}', ']'),
'$' => array ('$'),
*/
and i've flush topic url.
I think that google not agree special chars in url:

Kind regards, DarkWolf  :)

Dannii

What is more likely the problem is that people are linking to your topics incorrectly... or relying on SMF to autolink URLs perhaps? SMF stops before some punctuation unfortunately.
"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

I understand, but after the previous mod should not have more problems for the future :)

SlammedDime

#3058
Hey Dannii, your mod isn't parsing News RSS feeds properly in 2.0....

From a previous poster, see his site: http://www.cricket-highlights.com/index.php

Pretty urls is enabled: http://www.cricket-highlights.com/news-announcement/

But if you look at the rss feeds: http://www.cricket-highlights.com/.xml/?type=rss
The urls for topics are not prettied: http://www.cricket-highlights.com/index.php/topic,136.msg423.html#msg423

Check the fix_possible_url function in News.php to see why.  I figured this out when recoding my Sitemap mod and realized that I shouldn't have to make a special case for Pretty Urls and figured out why I was having to.
SlammedDime
Former Lead Customizer
BitBucket Projects
GeekStorage.com Hosting
                      My Mods
SimpleSEF
Ajax Quick Reply
Sitemap
more...
                     

SNBlog


Advertisement: