To use this website completely, it is necessary to store cookies on your computer.
 

* Navigator

Expand - Collapse

* Statistic

  • *Total Posts: 16405
  • *Total Topics: 2519
  • *Online Today: 6
  • *Most Online: 292
(12. Nov 2016, 09:37:31)
  • *Users: 0
  • *Guests: 0
  • *Spiders: 1
  • *Total: 1

  • *Google

Pretty URLs or SimpleSEF

Started by digiscrap, 13. Mar 2010, 23:31:41

previous topic - next topic

0 Members and 0 Guests are viewing this topic.

Go Down

digiscrap

#15
21. Mar 2010, 10:07:50
Hmmzzzz... I tried SimpleSEF on my test forum and all is working fine but...

It is not working correct with SMFGallery, SMFStore and SMFDownloads.

Vincent
Digiscrap Digitaal scrappen | Digiscrap Fotoservice

SMF2.0.5 + PortaMx v1.45
Dutch translation PortaMx1.45

feline

#16
21. Mar 2010, 13:56:30
You have add the actions names to SSEF?

Fel
Many are stubborn in relation to the path, a few in relation to the target.

feline

#17
21. Mar 2010, 14:15:50
Quote from: digiscrap on 21. Mar 2010, 10:07:50
It is not working correct with SMFGallery, SMFStore and SMFDownloads.

I see your post on SMF .. get me a account, so I can look at this ..

Fel
Many are stubborn in relation to the path, a few in relation to the target.

digiscrap

#18
21. Mar 2010, 16:58:13
Quote from: feline on 21. Mar 2010, 13:56:30
You have add the actions names to SSEF?

Fel


Hi,

No I didn't do this by myself. SSEF did this already automatically (if I understand what you mean.. hehe).

V.
Digiscrap Digitaal scrappen | Digiscrap Fotoservice

SMF2.0.5 + PortaMx v1.45
Dutch translation PortaMx1.45

digiscrap

#19
21. Mar 2010, 16:59:00
Quote from: feline on 21. Mar 2010, 14:15:50
I see your post on SMF .. get me a account, so I can look at this ..

Fel


okay, see PM and thanks for looking at it.

Vincent
Digiscrap Digitaal scrappen | Digiscrap Fotoservice

SMF2.0.5 + PortaMx v1.45
Dutch translation PortaMx1.45

digiscrap

#20
06. Apr 2010, 12:17:12
Hi Feline,

I updated the forum to RC3 and now I have a small issue with SimpleSEF. When SSEF is enabled I see the English names in the tabs. When I disable SSEF I see the (correct) Dutch names. Maybe this has something to do with your SMFGallery, SMFStore and SMFDownloads fix?

Would you please look into it?
You have my FTP login and ww. I send a PM with the new WW for Digiscrap.nl

Thanks again.
Vincent
Digiscrap Digitaal scrappen | Digiscrap Fotoservice

SMF2.0.5 + PortaMx v1.45
Dutch translation PortaMx1.45

digiscrap

#21
06. Apr 2010, 12:22:40
Hmmmmm I enabled caching and all is working fine....  :o

strange strange.... but I'm happy!!

Vincent
Digiscrap Digitaal scrappen | Digiscrap Fotoservice

SMF2.0.5 + PortaMx v1.45
Dutch translation PortaMx1.45

feline

#22
06. Apr 2010, 13:21:38
Hmm .. I think you have to translate the SSEF string to dutch !?
these (english) you find in /Themes/default/languages/Modifications.english.php
also you can copy and paste the text strings in the Modifications.dutch.php ...

Fel
Many are stubborn in relation to the path, a few in relation to the target.

digiscrap

#23
06. Apr 2010, 14:16:40
That was the strange part.... I translated it and it was already present in the Modifications.dutch.php.....

What I did was install all mods (incl. SimpleSEF) before installing PortaMx. On my test website I'd installed first PortaMx and afterwards all other mods. Don't know if that causes the issue. I think it has something to do with caching? We had some problems with caching at our webserver so maybe this was part of it? Now chaching is looking fine too....

So, don't ask why, just enjoy.....  :D

Vincent
Digiscrap Digitaal scrappen | Digiscrap Fotoservice

SMF2.0.5 + PortaMx v1.45
Dutch translation PortaMx1.45

feline

#24
06. Apr 2010, 14:49:53
It's always a good point, to clear the file cache after change mod settings or install new mods ..  ;)

Fel
Many are stubborn in relation to the path, a few in relation to the target.

TweakerL

#25
20. Apr 2010, 09:36:26
Honestly, when I tried using SimpleSEF with the other 31 mods i have installed on my SMF 2.0 RC3, the whole thing failed miserably... On the other hand, using PrettyURLs, the only thing that failed was the buttons I added to the top for the single pages I created with PortaMX, which was easily fixed by adding

Code Select
Options +FollowSymLinks
RewriteEngine on

RewriteRule ^(nameofsinglepage1|nameofsinglepage2|nameofsinglepage3|...|...)/?$ ./index.php?spage=$1


Then using the following to create the buttons on Subs.php:

Code Select
'nameofsinglepage1' => array(
'title' => 'Title of Page 1',
'href' => 'nameofsinglepage1',
'show' => true,
'sub_buttons' => array(
),
),


I'm very happy with PortaMX + PrettyURLs since I've been able to heavily mod my site with stuff like Custom Forms, SMFBlog, Article System, Post Ratings, Thank You Posts, Treasury, Referrals, Ultimate Profiles to name a few...

Feel free to check my site (click on the signature image) to see how well PortaMX works with PrettyURLs
*
| GAMES | MUSIC | MOVIES | TV SHOWS | E-BOOKS

digiscrap

#26
20. Apr 2010, 11:33:01
I also have to admit that I'm using PrettyURLs now instead of SimpleSEF. A lot of mods are giving problems/errors when SSEF was installed. Sadly...... a lot of mods are not compatible with SSEF (or SSEF is not compatible with the other mods). But also PrettyURLs isn't perfect. But it works for me.

PortaMx is working perfect together with PrettyURLs and I'll keep it that way.

Vincent
Digiscrap Digitaal scrappen | Digiscrap Fotoservice

SMF2.0.5 + PortaMx v1.45
Dutch translation PortaMx1.45

feline

#27
20. Apr 2010, 13:14:04
Can you post your PrettyUrls settings / .htaccess here? That helps other member  ;)

Fel
Many are stubborn in relation to the path, a few in relation to the target.

TweakerL

#28
20. Apr 2010, 15:34:25
Sure... The trick though, is that you gotta put the custom stuff for .htaccess before the PrettyURLs stuff... or else all goes haywire, though considering the fact that I've heard plenty of people say to put it after must mean that there is a reason for that as well; however, adding it before hasn't given me any problems as of now, but rather only solutions. Anyways, here's what my .htaccess looks like now:

Code Select
Options +FollowSymLinks
RewriteEngine on
RewriteBase /

RewriteRule ^blog/([-_!~*'()$a-zA-Z0-9]+)/?$ ./index.php?action=blog;sa=view_blog;name=$1
RewriteRule ^blog/([-_!~*'()$a-zA-Z0-9]+)/([0-9]*)/?$ ./index.php?action=blog;?sa=view_post&id=$2;blog_name=$1
RewriteRule ^blog/([-_!~*'()$a-zA-Z0-9]+)/([0-9]*).html/?$ ./index.php?action=blog;?sa=view_blog;name=$1;start=$2

RewriteRule ^(newstuff|linkseeker)/?$ ./index.php?spage=$1

# PRETTYURLS MOD BEGINS
# Pretty URLs mod
# http://code.google.com/p/prettyurls/
# .htaccess file generated automatically on: April 20, 2010, 0:39

RewriteEngine on
RewriteBase /

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

# Rules for: actions
RewriteRule ^(activate|admin|articles|enotify|announce|attachapprove|buddy|blog)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(buddies|calendar|clock|collapse|coppa|credits|deletemsg|display)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(dlattach|editpoll|editpoll2|emailuser|findmember|forum|groups|help)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(helpadmin|im|jseditor|jsmodify|jsoption|lock|lockvoting|login)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(login2|logout|markasread|mergetopics|mlist|moderate|modifycat|modifykarma)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(movetopic|movetopic2|notify|notifyboard|openidreturn|pm|post|post2)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(postratings|printpage|profile|quotefast|quickmod|quickmod2|recent|register)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(register2|reminder|removepoll|removetopic2|reporttm|requestmembers|restoretopic|search)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(search2|sendtopic|smstats|suggest|spellcheck|splittopics|stats|sticky)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(thankyou|thankyouajax|thankyoupostlock|thankyoupostlist|thankyoupostdelete|thankyoupostdm|thankyoupostcloseall|thankyoupostunlockall)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(theme|trackip|treasury|treasuryadmin|about:mozilla|about:unknown|unread|unreadreplies)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(verificationcode|viewprofile|vote|viewquery|viewsmfile|who|\.xml|xmlhttp)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(form)/?$ ./index.php?pretty;action=$1 [L,QSA]

# Rules for: boards
RewriteRule ^([-_!~*'()$a-zA-Z0-9]+)/?$ ./index.php?pretty;board=$1.0 [L,QSA]
RewriteRule ^([-_!~*'()$a-zA-Z0-9]+)/([0-9]*)/?$ ./index.php?pretty;board=$1.$2 [L,QSA]

# Rules for: topics
RewriteRule ^([-_!~*'()$a-zA-Z0-9]+)/([-_!~*'()$a-zA-Z0-9]+)/?$ ./index.php?pretty;board=$1;topic=$2.0 [L,QSA]
RewriteRule ^([-_!~*'()$a-zA-Z0-9]+)/([-_!~*'()$a-zA-Z0-9]+)/([0-9]*|msg[0-9]*|new)/?$ ./index.php?pretty;board=$1;topic=$2.$3 [L,QSA]

# PRETTYURLS MOD ENDS


As you can see, all i had to add was:
Code Select
RewriteRule ^blog/([-_!~*'()$a-zA-Z0-9]+)/?$ ./index.php?action=blog;sa=view_blog;name=$1
RewriteRule ^blog/([-_!~*'()$a-zA-Z0-9]+)/([0-9]*)/?$ ./index.php?action=blog;?sa=view_post&id=$2;blog_name=$1
RewriteRule ^blog/([-_!~*'()$a-zA-Z0-9]+)/([0-9]*).html/?$ ./index.php?action=blog;?sa=view_blog;name=$1;start=$2

For the SMFBlog addon

And:
Code Select
RewriteRule ^(newstuff|linkseeker)/?$ ./index.php?spage=$1
For the PortaMX single pages

The only tiny little problem i have lol... is that the single pages are being displayed as forum/singlepagename whereas the other actions are forum/actionname/
that is, the single pages don't have the slash at the end. other than that, from checking stuff out throughout the site, i see no problems related to url rewriting at all and everything is being displayed perfectly :)

One important thing though if anyone wants to use this as the base for their .htaccess, you might've noticed that my Rewritebase is only /; that's because I use SMF as the whole website (don't really see the point of doing it otherwise with all the great mods for it such as PortaMX itself that allow me to add any extra content I want) and therefore I don't have the usual /forum/ base. So, if you do have your forum as a folder inside the root of your site, make sure you change that Rewritebase to something like /foldername/ where foldername is the folder your SMF is in
*
| GAMES | MUSIC | MOVIES | TV SHOWS | E-BOOKS

hartiberlin

#29
21. Apr 2010, 20:50:28
As I said already,
it would be much better,
if Feline woud program her own Simple SEF directly into PortaMX,
cause the Simple SEF programmer SlammedDime has no time to update it
and he is too busy with other things...

Regards, Stefan.

Go Up