News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

SimpleSEF 2.0 (SMF 1.1.x and SMF 2.0)

Started by SlammedDime, December 05, 2009, 10:08:40 PM

Previous topic - Next topic

SlammedDime

Can you define 'nothing'?  Exactly what happens?  Any 404's?  Does it just load the main forum page?
SlammedDime
Former Lead Customizer
BitBucket Projects
GeekStorage.com Hosting
                      My Mods
SimpleSEF
Ajax Quick Reply
Sitemap
more...
                     

mrday

Exactly nothing, when i check "enable simplesef" it redirect me and if I back to the simplesef tab "enable simplesef" is unchecked. When i check the enable option it's like I do nothing: I can use the forum like before, with no error and with no simplesef mod...
Thanks

SlammedDime

Do you have your forum in a separate directory, like /forum or anything like that?  Do you have a link to your actual site?
SlammedDime
Former Lead Customizer
BitBucket Projects
GeekStorage.com Hosting
                      My Mods
SimpleSEF
Ajax Quick Reply
Sitemap
more...
                     

mrday

Links are on my sign and, here, back the world icon on the left(like your).
And no, index.php is exactly where htaccess is.
Thanks


SlammedDime

What is the problem with the first one?
For the the second one, Chrome shows me that it's trying to redirect to http://www.wikieasy.it/articles/?pretty;action=articles... which means you still have some reminents of Pretty URLs installed.  At this point, I don't know there is anything I can do to help you until you have completely removed Pretty URLs from your forum, as they operate in two totally different manners.
For the third one - I just get a HTTP 500 error when trying to even access anything on your page, however if you're board url has a 'www' in it and you navigate to the site without the 'www' in the URL, SMF will redirect you.
SlammedDime
Former Lead Customizer
BitBucket Projects
GeekStorage.com Hosting
                      My Mods
SimpleSEF
Ajax Quick Reply
Sitemap
more...
                     

mrday

If the first it's a normal way to rewrite the url ok, i thought that the number of the post shouldn't be displayed.
I just removed all, I think, the pretty url mod manually (except the values in the db). If you think the problem is surely due to that mod I will recheck if some code of prettyurl is left on some page and i will try to delete tables and values in the db but actually the real url of the articles page is: http://www.wikieasy.it/index.php?action=articles  and the result is the same:access denied.
Recently(around 2 hours ago) I got some problem cause of deleting prettyurl manually, now you should reach every pages.
Thanks

SlammedDime

If you have an articles system, and there is a folder named 'articles', you won't be able to browse to the ?action=articles, as real files and directories take precendence over SMF urls.  You'll need to rename your 'articles' folder and anything that points to that folder appropriately.  SimpleSEF for SMF 2.0 allows the renaming of actions which makes this much easier, but that functionality won't be back-ported to the SMF 1.1.x line.
SlammedDime
Former Lead Customizer
BitBucket Projects
GeekStorage.com Hosting
                      My Mods
SimpleSEF
Ajax Quick Reply
Sitemap
more...
                     

mrday

I can access to this url http://www.wikieasy.it/index.php?action=articles;cat=1 or this http://www.wikieasy.it/index.php?action=articles;sa=view;article=181 .
I have the articles mod, if I edit that name folder I really don't know what files modify to make articles mod working.
There are a way, instead of renaming action, to exlude the renaming of an action? Beause, anyway , the url is similar and don't show the name of the article. Thanks

SlammedDime

There isn't anyway to exclude renaming of actions for the SMF 1.1.x version; that too is only available in the SMF 2.0 version.
SlammedDime
Former Lead Customizer
BitBucket Projects
GeekStorage.com Hosting
                      My Mods
SimpleSEF
Ajax Quick Reply
Sitemap
more...
                     

mrday

So what do you think I can do to make it works?
Thanks

SlammedDime

You'd have to go to the author of the articles module and see how you could either rename the folder or rename the action.
SlammedDime
Former Lead Customizer
BitBucket Projects
GeekStorage.com Hosting
                      My Mods
SimpleSEF
Ajax Quick Reply
Sitemap
more...
                     

mrday

#1132
Ah, I already tryed to post there once and they have avoided me like if I had never posted. Thanks for your help, I will solve it myself, again  ;)


Edit:
Solved by changing the names of the action in the array in index.template.php(function template menu), in the link button(same file) and in the actionarray of index.php. I can access articles section with the simplesef. For what I think, this simple edit I did to change an action, shoud be not asked in a mod section.


Another thing, if I set the "home.php" like default page and  I try access index.php the mod redirect me to home.php, how can I avoid this? I would like to left home.php like default page. Thanks

SlammedDime

Like I said earlier, because of the way you have home.php set to work, SimpleSEF might not work properly, because it gets rid of the index.php file, which relys on the default document in apache to be index.php.  You've overrode that.
SlammedDime
Former Lead Customizer
BitBucket Projects
GeekStorage.com Hosting
                      My Mods
SimpleSEF
Ajax Quick Reply
Sitemap
more...
                     


SlammedDime

For the first: it's *possible*, but not natively.  I have coded in provisions to allow other mod authors to hook into SimpleSEF and create custom URL's for their mods/actions: http://www.mattzuba.com/2010/10/custom-action-handling-with-smf-and-simplesef/

I don't personally have the time right now to code up something for the articles mod, but feel free to point it's author at that link and see if they'd be willing to code up an extension for it.

For the second: Absolutely not.  This is just part of how the mod works and why it is able to keep the number of database queries to a minimum.  Keeping the ID's in the topics and user names is required for the mod to work properly.
SlammedDime
Former Lead Customizer
BitBucket Projects
GeekStorage.com Hosting
                      My Mods
SimpleSEF
Ajax Quick Reply
Sitemap
more...
                     

mrday

This(http://www.mattzuba.com/2010/10/custom-action-handling-with-smf-and-simplesef/) is a complete version? If not can i see a real example of a plugin already realized? Because I can't understand well from that example. Thanks

SlammedDime

That is a working example, albeit a simplistic one.
SlammedDime
Former Lead Customizer
BitBucket Projects
GeekStorage.com Hosting
                      My Mods
SimpleSEF
Ajax Quick Reply
Sitemap
more...
                     

mrday

Should I add an array like this:

$url_param array(
                 'sa' => ('all', 'the', action')
                 'cat' => ('all','the','category','name'),
                 'article' => ('all','the','articles','name'),
             );

?

SlammedDime

No, the array that is passed to the 'create' function contains the parts of the URL... it is your job to interpret those parts and make sense of them.  I don't know of your PHP skills, but if you're not familiar with it all that much, this will likely be pretty complicated for you to do.  If you are pretty familiar with PHP, use some var_dumps to see what is coming into the functions to see how to transform them as needed.
SlammedDime
Former Lead Customizer
BitBucket Projects
GeekStorage.com Hosting
                      My Mods
SimpleSEF
Ajax Quick Reply
Sitemap
more...
                     

Advertisement: