Pretty URLs

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

Previous topic - Next topic

wildcat180

I just installed this mod, the only one besides two smilies packages on a new install of 1.1.7 and now every single page of my forum, including the admin panel, is throwing 404 file not found errors.  I used my back button to uninstall it, but I'm not sure it worked because the errors are still coming.  The bright side?  The URLs are pretty...just useless on a page that's not found. :( 

I downloaded this package, then installed through the packages manager...what did I do wrong?  Why didn't it work?

L'AltroWeb

Hi Danii!
How (if is possible) i can modify pretty urls to work with smf in e107bridge?
The real forum's path is: http://darkwolf.altervista.org/smf107/forum/index.php
In bridged mode: http://darkwolf.altervista.org/smf107/plugins/smf/smf.php
-
Thanks in advance, DarkWolf :)

indonesia

WarnetForum.com using SMF since 2007

indonesia

many error after upgrade to 0.9

Apply Filter: Only show the error messages of this URL  http://www.warnetforum.com/index.php?pretty;board=ngobrolin-apa-aja-disini-tempatnya;topic=my-diary-and-true-story-on-my-reaserch.0&PHPSESSID=e73fc0642613d398bc04c4f172da7365
Apply Filter: Only show the errors with the same message
8: Undefined index: b348
File: /............. Themes/default/Display.template.php (main_below sub template - eval?)
Line: 373
WarnetForum.com using SMF since 2007

JmZ

I have a problem with single quotes.
Any URL containing a single quote will not load and will just reopen the current forum being viewed.

I tried changing the strange chr() to a blank ('') but the URLs remain the same even if i edit them in the sql table.

McCaine

Is it possible to make beter user urls? Like http://website.com/forum/username ?

Thanks

indonesia

Quote from: JmZ on November 18, 2008, 12:15:22 PM
I have a problem with single quotes.
Any URL containing a single quote will not load and will just reopen the current forum being viewed.

I tried changing the strange chr() to a blank ('') but the URLs remain the same even if i edit them in the sql table.

Source/QueryString.php


$_REQUEST['board'] = str_replace(array(''', '\\'), array("\x12", ''), $_REQUEST['board']);



replace with this


$_REQUEST['board'] = str_replace(array('\'', '\\'), array("\x12", ''), $_REQUEST['board']);

WarnetForum.com using SMF since 2007

indonesia

Quote from: McCaine on November 18, 2008, 04:55:58 PM
Is it possible to make beter user urls? Like http://website.com/forum/username ?

Thanks

i don't think so..

Try to edit some files..

install.php

'rule' => 'RewriteRule ^profile/([^/]+)/?$ ./index.php?pretty;action=profile;user=$1 [L,QSA]',



replace with


'rule' => 'RewriteRule ^([^/]+)/?$ ./index.php?pretty;action=profile;user=$1 [L,QSA]',



Sources/PrettyUrls-Filters.php


$urls[$url_id]['replacement'] = $boardurl . '/profile/' . $url['match1'] . 'user=' . $memberNames[$url['profile_id']] . $url['match3'];
else
$urls[$url_id]['replacement'] = $boardurl . '/profile/' . $memberNames[$url['profile_id']] . '/' . $url['match1'] . $url['match3'];


Replace with


$urls[$url_id]['replacement'] = $boardurl . '/' . $url['match1'] . 'user=' . $memberNames[$url['profile_id']] . $url['match3'];
else
$urls[$url_id]['replacement'] = $boardurl . '/' . $memberNames[$url['profile_id']] . '/' . $url['match1'] . $url['match3'];


You need to edit this before you install the mods,
otherwise you will need to edit htaccess too


RewriteRule ^([^/]+)/?$ ./index.php?pretty;action=profile;user=$1 [L,QSA]


replace with

RewriteRule ^([^/]+)/?$ ./index.php?pretty;action=profile;user=$1 [L,QSA]


try it yourself, i have no time to do :D
WarnetForum.com using SMF since 2007

indonesia

I'm sorry, that was not work,

need a distinguishing in the url to tell that is profile page...

so the url would be something like domain.com/username.htm

:D

WarnetForum.com using SMF since 2007

hartiberlin

Does the latest Pretty URL run with

SMF 2.0 Beta 4  and PortaMx v0.951  ?

Many thanks.

Sakae

OMG!!

I was TIRED of smf_pretty_urls_cache table with those 300 mb (or more) and so, in the top of my "newbieness", I dropped the table. The result? I KILLED MY FORUM!!

http://www.tigrelog.com.br

I tried to recreate the smf_pretty_urls_cache manually re-uploading the file install.php of Pretty URL mod to server, it recorded some things on the DB, but now I got error 500 on my server.

Anyone can help me???
http://www.tigrelog.com.br
l: simple p: machines

Sakae

More incredible, it's that something is wrong in the DB now. I'm trying to use repair_settings.php, but I can't.

OMG!!!
http://www.tigrelog.com.br
l: simple p: machines

Sakae

Ok, I will stop spamming here, but now I managed to get my forum back online.

The install.php rewrited my .htaccess, that was the problem.
http://www.tigrelog.com.br
l: simple p: machines

Özgür

Quote from: dkillers on November 18, 2008, 04:58:16 AM
Quote from: Dannii on November 13, 2008, 12:15:12 AM
Use the extras pacakge.

what do you mean extras package?


http://code.google.com/p/prettyurls/downloads/list extras packages in there.

Quote from: hartiberlin on November 20, 2008, 11:54:10 AM
Does the latest Pretty URL run with

SMF 2.0 Beta 4  and PortaMx v0.951  ?

Many thanks.


in smf 2b4 working great. but i dont know pragmamx.
So Long

L'AltroWeb

#2754
Quote from: hartiberlin on November 20, 2008, 11:54:10 AM
Does the latest Pretty URL run with

SMF 2.0 Beta 4  and PortaMx v0.951  ?

Many thanks.

I have test in local with easyphp.
All seems to work fine
-
Edit!
Now is online :)
http://darkwolf.altervista.org/smf2/index.php
-
I have installed custom action to integrate a guestbook.
How i can insert ?action=guestbook to standard filter?
(i can insert manually but after any maintenance my htaccess will be overwrite)

glennk

Hi Danii,

Since upgrade to 2b4 I am now noticing a lot of google listing coming through with session ids on the end.

Is this meant to be ? It appears to have changed since 1.1.6 smf

magarto

I have installed last version, but urls are the same, it does not work for me.
I cannot find any settings in administration to change urls also.
mod_rewrite works perfect because i have created a blog and i have changed permalinks.
Can anyone help me??? I am using 2.0 beta 4.

forum: http://salsamadrid.org
blog: http://blog.salsamadrid.org

It is in spanish

Thanks in advance

lobo777

#2757
Alrighty - installed the mod through Admin and added the code to the Modifications(english and english-utf8).  I'm seeing absolutely no change in the urls of posts, topics, anything at all that i can tell.  I'm using 1.1.7

Please help - I would love to have this mod working.  Is it helpful with SEO or google/search engine indexing and all that?

Oh and I'm getting this error in my log:
Undefined index: pretty_enable_filters
File: /home/thegl12/public_html/community/Sources/QueryString.php
Line: 517

lobo777

Hmmm... well I must officially be an idiot because it all works now that I went into the Admin/pretty url panel and ENABLED it! lol - I guess I just missed that part somewhere in the 139 pages of this mod discussion!  Thanks for the mod - muy bueno!

magarto

Well, i think that my problem is that i have the admin into spanish... i will change it to english to check.

Advertisement: