News:

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

Adish - (F.L.A.M.E.R)

i get these two errors in the error log after installing the mod..

8: Undefined index: pretty_enable_filters
File: /home/actionen/public_html/goldysun/Sources/QueryString.php
Line: 517

8: Undefined index: pretty_enable_filters
File: /home/actionen/public_html/goldysun/Sources/Subs.php
Line: 2604

Please let me know what is the solution for this. Thank you.

vetola

Sorry if this is a stupid question.

I would like to use SMF for couple of things.

1. I have hxxp:domain.com [nonactive] that I use with SimplePortal mod.
2. Normal SMF forum is at the hxxp:forums.domain.com [nonactive]
3*. Blog: Community modification is used in hxxp:usernamex.domain.com [nonactive]

Is this possible with Pretty URLS modification?

*) Every created blog has subdomain, hxxp:username.domain.com [nonactive]


Thanks for help and information.

Dannii

Quote from: mark7144 on August 15, 2008, 12:16:59 PMWhy are PHP sessions used for your mod? I've never had it on my forum before. Just curious :)
My mod doesn't change anything, if SMF would use them then so would the mod.

Quote from: F.L.A.M.E.R on August 15, 2008, 01:47:01 PM
i get these two errors in the error log after installing the mod..

8: Undefined index: pretty_enable_filters
File: /home/actionen/public_html/goldysun/Sources/QueryString.php
Line: 517

8: Undefined index: pretty_enable_filters
File: /home/actionen/public_html/goldysun/Sources/Subs.php
Line: 2604

Please let me know what is the solution for this. Thank you.
It looks like one of the settings didn't get installed properly. Don't worry about it. Once you've saved the settings in the admin panel it will be right.

Quote from: vetola on August 15, 2008, 02:11:54 PM
Sorry if this is a stupid question.

I would like to use SMF for couple of things.

1. I have domain.com that I use with SimplePortal mod.
2. Normal SMF forum is at the forums.domain.com
3*. Blog: Community modification is used in usernameX.domain.com

Is this possible with Pretty URLS modification?

*) Every created blog has subdomain, username.domain.com

Thanks for help and information.
Not easily, though talk to Nao cause he's done something like that. .htaccess doesn't have control over subdomains, so you'll need to set something else up to intercept all the subdomains.
"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

Can I just say a big thanks for this mod, I've now changed from SEO4SMF to the 0.9 snapshot and the patch worked perfectly with that.

However, I notice this mod uses more queries, I'm seeing an extra 4 queries consistently per page, is there any way I can reduce that?

Adish - (F.L.A.M.E.R)

Quote from: Dannii on August 15, 2008, 09:36:23 PM
Quote from: F.L.A.M.E.R on August 15, 2008, 01:47:01 PM
i get these two errors in the error log after installing the mod..

8: Undefined index: pretty_enable_filters
File: /home/actionen/public_html/goldysun/Sources/QueryString.php
Line: 517

8: Undefined index: pretty_enable_filters
File: /home/actionen/public_html/goldysun/Sources/Subs.php
Line: 2604

Please let me know what is the solution for this. Thank you.
It looks like one of the settings didn't get installed properly. Don't worry about it. Once you've saved the settings in the admin panel it will be right.

I am first of all confused what this mod does.. just saw that so many people are interested so just tried it.. can you explain a bit about this mod please...

and what sort of settings do i save in there ? I dont know about this mod much... Please explain a bit more..

Thank you.

osmaga

Hi Danii In the post you told me that:
QuoteThe .htaccess file should be created automatically, if PHP has write permissions. If you're in Windows hopefully this won't be a problem. Are you actually running Apache though? You may need to manually enable .htaccess and mod_rewrite.

I´m running Apache and when I have applied the mod the  .htaccess file was created but the forum give me the 500 internal server error.

How can I enable the .htaccess and mod_rewrite in order to continue seeing the forum?

In the httpd.conf maybe??

Thanx for your help.


Dannii

Quote from: mark7144 on August 16, 2008, 06:54:17 AM
Can I just say a big thanks for this mod, I've now changed from SEO4SMF to the 0.9 snapshot and the patch worked perfectly with that.

However, I notice this mod uses more queries, I'm seeing an extra 4 queries consistently per page, is there any way I can reduce that?
If the cache is working then there shouldn't be 4 per page, only for new topics.

Quote from: F.L.A.M.E.R on August 16, 2008, 07:07:10 AM
I am first of all confused what this mod does.. just saw that so many people are interested so just tried it.. can you explain a bit about this mod please...

and what sort of settings do i save in there ? I dont know about this mod much... Please explain a bit more..

Thank you.
If you save any of the pretty url settings it should work, though the enable/disable one definitely will.

Quote from: osmaga on August 16, 2008, 07:26:05 AM
Hi Danii In the post you told me that:
QuoteThe .htaccess file should be created automatically, if PHP has write permissions. If you're in Windows hopefully this won't be a problem. Are you actually running Apache though? You may need to manually enable .htaccess and mod_rewrite.

I´m running Apache and when I have applied the mod the  .htaccess file was created but the forum give me the 500 internal server error.

How can I enable the .htaccess and mod_rewrite in order to continue seeing the forum?

In the httpd.conf maybe??

Thanx for your help.
Probably, though there could be other things you need to do too. Check with Easyphp.
"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

Danni: It's happening for old topics as well. If I refresh the topic several times then it goes from 4q to 2q but never have I seen a thread only add 1q extra.

I use APC with Cache level 1. I've tried it with cache level 2 and 3 and there is no improvement. Do I need to configure APC or something?

Dannii

It has nothing to do with APC. The mod has its own cache table and every page will require one query to get the pretty URLs from it. Topics will require another query to get the topic ID. These are both very simple queries and the tables use indices so they should be fast. New topics (whether fresh topics or just topics that haven't been viewed yet with the mod) require 2 more queries to add entries to the cache.

So most forum actions should get by with only 1 extra query, though topics will take 2.
"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

#2189
Ah so it's because I'm going into topics that have not been viewed since I installed the mod and therefore the most active topics in my forum will always have less queries while the old ones will take longer because they are pushed out of the cache by the newer ones.

Is the cache table large enough? I have a lot of topics which are viewed with robots all the time so I would assume that even the most active topics are sometimes pushed out?

Sorry if I have no idea about how it works.

Adish - (F.L.A.M.E.R)

can you explain this mod a bit.. i exactly dont get this mod..

Dannii

Quote from: mark7144 on August 16, 2008, 04:50:22 PM
Ah so it's because I'm going into topics that have not been viewed since I installed the mod and therefore the most active topics in my forum will always have less queries while the old ones will take longer because they are pushed out of the cache by the newer ones.

Is the cache table large enough? I have a lot of topics which are viewed with robots all the time so I would assume that even the most active topics are sometimes pushed out?

Sorry if I have no idea about how it works.
The table won't get emptied until the next time you run maintenance/enable a filter so URLs won't get pushed out of it. It can grow very big very quickly though, so large forums will need a lot more database space.

Quote from: F.L.A.M.E.R on August 16, 2008, 06:27:05 PM
can you explain this mod a bit.. i exactly dont get this mod..
It turns URLs like http://www.simplemachines.org/community/index.php?topic=146969 into ones like http://www.simplemachines.org/community/modifications-and-packages/pretty-urls-0-8-4/
"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

Hi everyone,

I've made a new snapshot, though there are really only very minor changes from the last.
However of more interest to some of you, I've made snapshots of the extras and reverter packages. The extras package includes a filter for the arcade, so if those who have had problems with the arcade want to try it, I'd be very interested to hear if it works.

The reverter package is for those who want to uninstall the mod without breaking their links (they'll be 301 redirected back to the normal SMF 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."

_Anthony_

If it gives me a 404 error does that mean my host doesn't support url re-writing?

Dannii

Probably, you should ask them if they support mod_rewrite and .htaccess.
To disable it follow these instructions: http://code.google.com/p/prettyurls/wiki/TroubleShooting
"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."

_Anthony_

Quote from: Dannii on August 17, 2008, 07:12:29 AM
Probably, you should ask them if they support mod_rewrite and .htaccess.
To disable it follow these instructions: http://code.google.com/p/prettyurls/wiki/TroubleShooting
\
They do
With my host you have to add RewriteBase /
I forgot about that.
Anyone who gets a 404 error try adding RewriteBase /

Dannii

Ahh, good to hear you were able to fix it.

I'll have to see if I can write some code to automatically determine whether to use RewriteBase or not.
"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

Quote from: Dannii on August 16, 2008, 09:56:54 PM
The table won't get emptied until the next time you run maintenance/enable a filter so URLs won't get pushed out of it. It can grow very big very quickly though, so large forums will need a lot more database space.
Do you plan to remove the need to keep the cache table manually maintained in a future version?

Dannii

It doesn't need to be manually maintained...
"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

If it keeps getting larger without any limit or a form of pruning, then surely for most people, it needs to be maintained otherwise it will eventually use up all their disk space or database size limit?

Advertisement: