News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Search results for: pretty url

Search order
#1
Modifications and Packages / Sitemap
May 12, 2007, 05:43:04 PM by SlammedDime
Link to Mod

This file adds an extra action to your SMF installation '?action=sitemap' that will show a sitemap to your visitors and bots.  It will not show boards to a user that its not supposed to.  So a guest will not see hidden boards.  It also has added support for SMF queryless urls and Pretty Urls mod.  Admin options for 1.1.x can be found under Features and Options and for 2.0 under Configuration > Modifications > Sitemap.

If you have Joomla!/Mambo and are running this with Orstio's Bridge, the sitemap will see that and format your links accordingly, and if you are using Joomla SEF, it will convert them as well.

Also included is the option to display an XML sitemap for use with Google Sitemaps.  On any of the sitemap pages, simply click the 'XML' link at the bottom for the XML version.  If you wish to submit your site to Google Sitemaps, you will need to use this link.  Google does not like SEF formatted URLs for the sitemap because it won't show the sitemap in the root directory.  Using the link as provided will.

A working version can be seen at http://www.airridetalk.com/forum/sitemap

Change Log:
2.0.0: Complete rewrite of the mod
1.2.2/1.3.0: Added support for Pretty Urls mod, changed username on topic display to Display name, rather than username.  1.2.2 is the last update for the 1.1.x series of SMF.  All future development will continue on 1.3.0 in support of SMF 2.0.
1.2.1: With lots of new things comes bugs.  Some error checking wasn't done, which caused an incorrect number of pages to be displayed, and thus causing sql errors.
1.2.0: Lots of new things... a few options in the admin panel under Features and Options.  Limit the number of topics on the sitemap, disallow non-admin access to the XML sitemap link, and collapse the child boards to reduce the size of the sitemap display.  A few bug fixes as well, primarily with the queryless_urls setting.
1.1.3: Fixed file a tad more, and fixed uninstaller to remove files added
1.1.2: Updated files to follow SMF coding guidelines more closely
1.1.1: Added Link Tree information and Who information
1.1: Added XML support
1.0: Initial Release


If you have Tiny Portal installed with 1.1.8, you may need to manually edit index.template.php.

Replace                                         ', theme_copyright(), ' <br />', tportal_version() , '
                                </td>
<td width="28%" valign="middle" align="', !$context['right_to_left'] ? 'left' : 'right', '">

with
                                        ', theme_copyright(), ' <br />', tportal_version() , '
<span class="smalltext" style="display: inline; visibility: visible; font-family: Verdana, Arial, sans-serif;"> | <a href="'.$scripturl.'?action=sitemap">Sitemap</a></span>
                                </td>
<td width="28%" valign="middle" align="', !$context['right_to_left'] ? 'left' : 'right', '">

#2
Modifications and Packages / Re: Sitemap
August 23, 2012, 11:21:17 AM by bearstreet
this mod works with pretty urls, as it is stated in the mod notes

also edited .htaccess and removed pretty url rewrite actions

#3
Modifications and Packages / Re: Sitemap
January 04, 2012, 05:02:28 PM by rocknroller
i have problem with pretty url

links look like this

http://www.logooff.net/themes-support/index.php

and should be look like this

http://www.logooff.net/themes-support/

can you me help to reslove this?

#4
Modifications and Packages / Re: Sitemap
May 16, 2011, 04:11:19 PM by SlammedDime
I have almost no experience with pretty urls first hand.  I wasn't fond of how it operated so I never used it (thus why I created SimpleSEF).  Also, Pretty URLs, Sitemap and SMF 1.1.x don't seem to along too well.  There are some hints in this topic a couple many pages back that may help out.  Basically none of your sitemap urls are rewritten, so Google tries to visit them and gets a redirect to the rewritten url.

#5
Modifications and Packages / Re: Sitemap
May 16, 2011, 02:44:08 PM by reefforum
yes I do have pretty url.  should i remove it?
here is the site:  http://reefcollege.com

now i disabled pretty url once and the indexed google results began leading to blank pages

#6
Modifications and Packages / Re: Sitemap
February 20, 2011, 10:32:10 AM by SlammedDime
alpheus - I've checked your sitemap in multiple browsers with multiple user agents and it displays fine each and every time... I don't know why google won't accept it...

comedorsamus - While this mod can support Pretty Urls, like Arantor said, a fair number of people seem to have issues with it.  Sometimes it's hit and miss, it will work fine for one, but not for another.  If you really want a 'Pretty URL' structure, you can try SimpleSEF, which is a mod of mine that does the same thing that Pretty URLs does, but in a very different fashion, and it of course works with this Mod.

#7
Modifications and Packages / Re: Sitemap
February 20, 2011, 09:56:14 AM by comedorsamus
Would you guys recommend the use of Pretty URLs? I'm looking for an URL stucture that is SEO friendly.

#8
Modifications and Packages / Re: Sitemap
January 31, 2011, 05:48:25 PM by ambre222
Hello  :D
Thanks for a great mod.
I just installed it, but pretty url is not working with the xml sitemap: http://www.attrape-songes.com/forum/sitemap/?xml [nofollow]
I spent quite some time reading this topic and the solution found did not apply (I do not have the on vs 1 issue).
I got the version 1.2.2  of the sitemap, SMF 1.1.12 and pretty url 1.0RC2a.
Do you have any idea ?
Thanks

#9
Modifications and Packages / Re: Sitemap
December 15, 2010, 07:19:07 AM by alpheus
Ok Slammed. I didn't give my link cause of it is an adult site. HERE is my link. My xml links not fit to pretty.

#10
Modifications and Packages / Re: Sitemap
December 14, 2010, 07:48:58 PM by SlammedDime
For starters, I don't use Pretty URLs on my personal site.

Secondly, there are lots of posts in this topic for folks that have had issues with Pretty URLs and the version of this sitemap for SMF 1.1.x.

Third, I need an actual URL to your site... posting 'mysite.com' links doesn't help...

Fourth, please don't PM me unless I invite you to, and give me more than a couple of hours to reply to the topic.  I do have a full time life outside of SM.org that comes first.

#11
Modifications and Packages / Re: Sitemap
September 08, 2010, 03:38:32 PM by jimmyv
My sitemap URLs do not contain a "WWW" and google tells me my sitemap URL begins WWW so there is a conflict and my URLS are not being indexed.

I have pretty URL installed on 2.0rc3 version.

Whats strange is in my effort to solve I used an htaccess file to make all URLS www and when viewing my forum hxxp:www.salonbabble.com [nonactive] all the URLS have a www in them from the htaccess force. But in sitemap it doesn't convert to those URLs in its output.

Does anyone know how to force the WWW into the URLs of sitemap output or fix problem some other way?

#12
Modifications and Packages / Re: Sitemap
August 19, 2010, 02:16:03 AM by SlammedDime
Changes overtime to PrettyUrls have somehow caused the 1.1.x version of the mod not to work with it anymore out of the box.  There are posts in the past few pages where people have gotten it to work by modifying some code.

Quote from: codr3sh on August 17, 2010, 03:36:40 PM
Hi and thanks for this great mod.

I'm using the last version on smf 1.1.11 but I have some "problems"/ questions.
1. How can I list more urls in sitemap.xml ? I have changed tha value for "sitemap_topic_count" to 20000000 but the page export only 2592 links

2. How can I export the links in url rewrite mod.
Now the export looks like forum.com/index.php?board=16.0 etc
But I want all the links to be in this format forum.com/topic-name/ , I'm using pretty urls mod.

3. There is a address in admin panel where I can access the settings for this plugin?


Thank you.
1) The sitemap will display what the viewing user can see, regardless of what number you try and set it to (this was changed in the 2.0 version which always only shows what a guest can see).

2) See above

3)Yes, it has a few options under the 'Features and Options' area.


Dzonny, try decreasing the number of topics shown in the XML sitemap (or start at 1000 and go up from there)

#13
Modifications and Packages / Re: Sitemap
August 18, 2010, 10:40:32 AM by codr3sh
It's working for me...here's a print screen


How did you made it to export links in pretty url mode?


Thank you.

#14
Modifications and Packages / Re: Sitemap
August 17, 2010, 03:36:40 PM by codr3sh
Hi and thanks for this great mod.

I'm using the last version on smf 1.1.11 but I have some "problems"/ questions.
1. How can I list more urls in sitemap.xml ? I have changed tha value for "sitemap_topic_count" to 20000000 but the page export only 2592 links

2. How can I export the links in url rewrite mod.
Now the export looks like forum.com/index.php?board=16.0 [nofollow] etc
But I want all the links to be in this format forum.com/topic-name/ [nofollow] , I'm using pretty urls mod.

3. There is a address in admin panel where I can access the settings for this plugin?


Thank you.

#15
Modifications and Packages / Re: Sitemap
May 17, 2010, 04:40:31 PM by bjraines
OK i have been reading threads now for nearly an hour, i cannot get my 1.1.11 (latest) to work with pretty url and site map

I must be missing a trick or manual edit , can someone please help

#16
Modifications and Packages / Re: Sitemap
May 17, 2010, 03:09:57 PM by Vincent Volmer
Quote from: Vincent Volmer on May 08, 2010, 04:56:33 AM
Hello SlammedDime,

Hereby my question:

URL http://digiscrap.nl/index.php?pretty;action=sitemap&amp;xml
8: memcache_set() [<a href='function.memcache-set'>function.memcache-set</a>]: send of 32768 bytes failed with errno=11 Resource temporarily unavailable
File: /shared/usr/wzen1234567/DOMAIN/www.digiscrap.nl/HTML/Sources/Load.php
Line: 2532


Don't know if this has something to do with the sitemap mod or memcache.....

Thanks for your support.

Kind regards,
Digiscrap.nl
Vincent Volmer


I asked my host and they came with the following:

It is probably a PECL bug: http://pecl.php.net/bugs/bug.php?id=14044

This bug is patched, but my host doesn't want to update from version 3.0.1 to 3.0.2 and I don't know why. So I have to deal with it.

Vincent.

#17
Modifications and Packages / Re: Sitemap
May 08, 2010, 04:56:33 AM by Vincent Volmer
Hello SlammedDime,

I can enter this page again.... thanks.

Hereby my question:

URL http://digiscrap.nl/index.php?pretty;action=sitemap&amp;xml
8: memcache_set() [<a href='function.memcache-set'>function.memcache-set</a>]: send of 32768 bytes failed with errno=11 Resource temporarily unavailable
File: /shared/usr/wzen1234567/DOMAIN/www.digiscrap.nl/HTML/Sources/Load.php
Line: 2532


Don't know if this has something to do with the sitemap mod or memcache.....

Thanks for your support.

Kind regards,
Digiscrap.nl
Vincent Volmer

#18
Modifications and Packages / Re: Sitemap
May 06, 2010, 10:09:07 PM by coolfx350
Quote from: mu271828 on May 04, 2010, 03:30:12 AM
I was about to ask why the XML sitemap does not contain pretty URLs, though the mod of the same name is installed..

But then I discovered that line 189 of Sitemap.php checks for $modSettings['pretty_enable_filters'] == 'on', where it is really set to '1' when they're enabled.  Works great now.  Just in case anyone has the same problem.

Thanks for the mod!

On one of my forums, if I set

$modSettings['pretty_enable_filters'] == 'on'

to

$modSettings['pretty_enable_filters'] == '1'

I get this message

XML Parsing Error: no element found
Location: http://www.myforums.com/index.php?action=sitemap;xml
Line Number 1, Column 1:
^

but with "on" it works just fine, just not pretty url, please advise.

#19
Sir, I Try to Install but Error on admin.php :
Find[Select]
// Note the comma!! The setting with automatically appear with the first mod to be added.
Add After[Select]
'sitemap' => array($txt['sitemap']),


Like That sir, Can You Fixed....

Req. :
- SMF 2 RC 3
- SIMPLEPORTAL 2.3.1
- Facebook n twitter publisher
- Pretty URL
- ETC

thx sir

#20
Modifications and Packages / Re: Sitemap
April 19, 2010, 05:56:57 PM by SlammedDime
Quote from: FireDitto on April 14, 2010, 09:48:47 PM
Ahh, I have an issue.

...snip...

But I can no longer access the following in Administration, or their sub menus:
- Core Features
- Features and Options
- Security and Moderation
- Modification Settings
You'd have to manually check the ManageSettings.php file... chances are that the code for this mod got installed into the wrong spot in the file because another mod improperly added code.

Quote from: Clickout on April 17, 2010, 12:20:58 AM
The XML sitemap generated by the sitemap mod is not accepted by google and yahoo :( [REASON: NOT VALID!]

Quote
GOOGLE SAYS...
   
Error on line    824    
Parsing error
We were unable to read your Sitemap. It may contain an entry we are unable to recognize. Please validate your Sitemap before resubmitting.    
Problem detected on: Apr 16, 2010


Sitemap: http://ipool.uni.cc/index.php?action=sitemap;xml

Im using  SMF 2.0 RC3 and also using pretty url

But the validator tool by validator.w3.org tells that the sitemap is valid!

pl. help me to solve this.
This is an issue you'll have to take up with your host.  Whenever googlebot visits your site, they automatically add the follow code to the bottom of every page:
<!-- www.000webhost.com Analytics Code -->
<script type="text/javascript" src="http://analytics.hosting24.com/count.php"></script>
<noscript><a href="http://www.hosting24.com/"><img src="http://analytics.hosting24.com/count.php" alt="web hosting" /></a></noscript>
<!-- End Of Analytics Code -->


I'd personally find a new host.

Quote from: hartiberlin on April 18, 2010, 06:30:33 PM
SD,
any news on a new version of the sitemap
with AEVA picture galleries pages and PortaMX pages added ?

Please please why can´t you do this ?
As Arantor said, this is at the bottom of my priority list.  I don't have time right now to simply go adding features to a mod that works very well for it's purpose out of the box.

Quote from: hartiberlin on April 19, 2010, 11:19:24 AM
Do does anybody have an idea how then to best merge
another sitemap file with this Sitemap mod ?
I could let run an external Program like Gsite crawler and generate
a sitemap XMP file, but how could I then merge both into one file
or is it just better to just only use then the external program only and
remove the Sitemap mod ?

If I have a site, where the contens does not change too often,
maybe I can live without this Mod ?
What is your opinion about this ?
Many thanks.
Why the need to merge?  Google allows you to submit multiple sitemaps.  You can also make a sitemap list file that contains multiple links to sitemaps and just submit that one to google.

Advertisement: