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

Quote from: bjraines on January 22, 2010, 11:49:40 AM
Is there an advantage to using this over Pretty URL
I'm a bit biased here, but I'll say yes for a number reasons...
Dannii is no longer a member here at SM.org, so it will hard to get support for Pretty Urls
This mod makes no edits to the core of SMF to actually work, only edits to the admin source files to display settings
Full UTF-8 compatibility regardless of iconv or mbstring support on your host
Supports multiple web servers due to the simplistic nature of the rewrite file

Quote from: Dismal Shadow on January 22, 2010, 01:24:29 PM
I can't get it to enable SimpleSEF, I spoken with my host, this what they said:
"We do support mod_rewrite support  on our shared serves and it is already enabled, We do not support Rewrite/web.config (IIS7)  as we have Linux OS installed on our shared servers."

So SimpleSEF should work, but can't enable it everytime I check the box and save...it returned uncheck.
Click the [Help] link in your admin panel settings for SimpleSEF and make sure that you have a .htaccess file in your root SMF directory that contains what is described in the help section.
SlammedDime
Former Lead Customizer
BitBucket Projects
GeekStorage.com Hosting
                      My Mods
SimpleSEF
Ajax Quick Reply
Sitemap
more...
                     

bjraines


Afro

Quote from: Arantor on January 22, 2010, 10:58:34 AM
jhaagmans: So... what version of SMF, what server configuration?

Afro: Take a look at the URLs that parts of the forum generate, especially such as the admin area. The URL contains action=admin to state it's the admin section, then has area=something in the URL for the different parts of the admin panel. You're looking for anything that uses area=send in the URL.

is there a way to change the http://www.afrowall.com/pm/send/     to another thing ? something like http://www.afrowall.com/pm/newpm

or maybe disallow the simpleSEF to modify the pm area at all ?

~DS~

QuoteClick the [Help] link in your admin panel settings for SimpleSEF and make sure that you have a .htaccess file in your root SMF directory that contains what is described in the help section.

I searched for .htaccess file using the 'search function'...it's there in package folder but it's hidden somehow because it's not there.  :-\
"There is no god, and that's the simple truth. If every trace of any single religion were wiped out and nothing were passed on, it would never be created exactly that way again. There might be some other nonsense in its place, but not that exact nonsense. If all of science were wiped out, it would still be true and someone would find a way to figure it all out again."
~Penn Jillette – God, NO! – 2011

Afro

I need to take a decission about this mod slamm... its a very beautiful mod i like a lot.
just that it wont let members edit their profiles or send messages.
its driving me crazy and i have to disable it now and then to allow people edit profiles.
all this works as soon as i disable the mod.
i dont know if its conflicting with another mod or not.
the only thing i m sure about now is that i m tired.

see if there is a way to bypass somethings i the area or subaction field.

Arantor

Yo, Dime, found another bug.

Trying to send a PM no work - just ignores the URL and goes back to /pm/send/ (there's area=send, methinks!!) if going to 'new message' or /pm/send/{username}-{user_id}/f,inbox/pmsg,{pm_id}/ if replying.
Holder of controversial views, all of which my own.


feline

I have tested all function and have corrected some keyword in actions, areas, subsctions and useractions.
These params I use:

Actions:
activate,admin,announce,attachapprove,buddy,calendar,clock,collapse,coppa,credits,deletemsg,display,dlattach,editpoll,editpoll2,emailuser,findmember,groups,help,helpadmin,im,jseditor,jsmodify,jsoption,lock,lockvoting,login,login2,logout,markasread,mergetopics,mlist,moderate,modifycat,modifykarma,movetopic,movetopic2,notify,notifyboard,openidreturn,pm,post,post2,printpage,profile,quotefast,quickmod,quickmod2,recent,register,register2,reminder,removepoll,removetopic2,reporttm,requestmembers,restoretopic,search,search2,sendtopic,smstats,suggest,spellcheck,splittopics,stats,sticky,trackip,about:mozilla,about:unknown,unread,unreadreplies,verificationcode,viewprofile,vote,viewquery,viewsmfile,who,.xml,xmlhttp

Areas:
account,attachmod,authentication,corefeatures,featuresettings,forumprofile,groupmembership,groups,index,issuewarnings,lists,logs,mailqueue,manageattachments,manageboards,managecalendar,managesearch,modlog,modsettings,news,notice,notification,paidsubscribe,permissions,postmod,postsettings,regcenter,reports,securitysettings,sengines,serversettings,showposts,smileys,subscriptions,summary,tracking,userwatch,viewgroups,viewwarning,warnings,introduction,main_menu,board_index,message_view,topic_view,registration_screen,logging_in,password_reminders,modify_profile,posting_topics,bbcode,messages,searching,profile_summary,sending_pms,statistics,pmprefs,ignoreboards,deleteaccount,modifying_profiles,message_index

Subactions:
add,admin,agreement,all,approve,attach,attachements,attachments,attachpaths,avatars,banlog,basic,bbc,board,browse,buddies,byAge,bySize,cache,cat,censor,check,clear,closed,cookie,copy,createmsgindex,database,delete,done,download,downloadlang,edit,editholiday,editicon,editicons,editlang,edits,editsets,editsmileys,editspiders,edittrigger,errorlog,examine,execute,folder,general,hide,holidays,ignore,index,install,installed,ip,karma,killall,layout,list,loads,log,mailingcompose,mailingmembers,mailingsend,maintain,maintenance,manlabels,manrules,members,messages,method,moderation,modify,modifyset,modifysmiley,modifyuser,modlog,move,moveAvatars,options,packageget,perms,pick,pmactions,post,postmod,posts,profile,profileedit,prune,pruning,query,register,remove,removeall,repair,requests,resend,reservednames,reset,routine,search,selectgroup,selectTopics,send,sendtopic,setpassword,sig,simplesef,spam,spiderlog,spiders,splitSelection,stats,taskedit,tasklog,templateedit,templates,topics,user,view,viewsub,weights,collapse,on,topic,email,unread,tracked,picktype,setpassword2,expand,manager,setpassword,activity,unreadreplies,member,open,report,send2,settings,search2

Useractions:
profile,pm,activate,buddy,reminder


Fel

SlammedDime

Quote from: feline on January 22, 2010, 06:39:57 PM
I have tested all function and have corrected some keyword in actions, areas, subsctions and useractions.
These params I use:

Actions:
activate,admin,announce,attachapprove,buddy,calendar,clock,collapse,coppa,credits,deletemsg,display,dlattach,editpoll,editpoll2,emailuser,findmember,groups,help,helpadmin,im,jseditor,jsmodify,jsoption,lock,lockvoting,login,login2,logout,markasread,mergetopics,mlist,moderate,modifycat,modifykarma,movetopic,movetopic2,notify,notifyboard,openidreturn,pm,post,post2,printpage,profile,quotefast,quickmod,quickmod2,recent,register,register2,reminder,removepoll,removetopic2,reporttm,requestmembers,restoretopic,search,search2,sendtopic,smstats,suggest,spellcheck,splittopics,stats,sticky,trackip,about:mozilla,about:unknown,unread,unreadreplies,verificationcode,viewprofile,vote,viewquery,viewsmfile,who,.xml,xmlhttp

Areas:
account,attachmod,authentication,corefeatures,featuresettings,forumprofile,groupmembership,groups,index,issuewarnings,lists,logs,mailqueue,manageattachments,manageboards,managecalendar,managesearch,modlog,modsettings,news,notice,notification,paidsubscribe,permissions,postmod,postsettings,regcenter,reports,securitysettings,sengines,serversettings,showposts,smileys,subscriptions,summary,tracking,userwatch,viewgroups,viewwarning,warnings,introduction,main_menu,board_index,message_view,topic_view,registration_screen,logging_in,password_reminders,modify_profile,posting_topics,bbcode,messages,searching,profile_summary,sending_pms,statistics,pmprefs,ignoreboards,deleteaccount,modifying_profiles,message_index

Subactions:
add,admin,agreement,all,approve,attach,attachements,attachments,attachpaths,avatars,banlog,basic,bbc,board,browse,buddies,byAge,bySize,cache,cat,censor,check,clear,closed,cookie,copy,createmsgindex,database,delete,done,download,downloadlang,edit,editholiday,editicon,editicons,editlang,edits,editsets,editsmileys,editspiders,edittrigger,errorlog,examine,execute,folder,general,hide,holidays,ignore,index,install,installed,ip,karma,killall,layout,list,loads,log,mailingcompose,mailingmembers,mailingsend,maintain,maintenance,manlabels,manrules,members,messages,method,moderation,modify,modifyset,modifysmiley,modifyuser,modlog,move,moveAvatars,options,packageget,perms,pick,pmactions,post,postmod,posts,profile,profileedit,prune,pruning,query,register,remove,removeall,repair,requests,resend,reservednames,reset,routine,search,selectgroup,selectTopics,send,sendtopic,setpassword,sig,simplesef,spam,spiderlog,spiders,splitSelection,stats,taskedit,tasklog,templateedit,templates,topics,user,view,viewsub,weights,collapse,on,topic,email,unread,tracked,picktype,setpassword2,expand,manager,setpassword,activity,unreadreplies,member,open,report,send2,settings,search2

Useractions:
profile,pm,activate,buddy,reminder


Fel
The problem with that Fel is that the mod Automatically adds to those as it finds them in URLs.

Aranter, there's gotta be a mod somewhere conflicting with it... I'm able to send PM's okay on my test site.  In any case, the next version will have some more admin config options to address this.
SlammedDime
Former Lead Customizer
BitBucket Projects
GeekStorage.com Hosting
                      My Mods
SimpleSEF
Ajax Quick Reply
Sitemap
more...
                     

Afro

Quote from: Arantor on January 22, 2010, 06:15:58 PM
Yo, Dime, found another bug.

Trying to send a PM no work - just ignores the URL and goes back to /pm/send/ (there's area=send, methinks!!) if going to 'new message' or /pm/send/{username}-{user_id}/f,inbox/pmsg,{pm_id}/ if replying.

Arantor...also check about editing your profile. it doesnt work also.
I have uninstalled for the moment until everything is fine

Arantor

No, I'm able to edit my profile just fine.
Holder of controversial views, all of which my own.


Afro

then the fb connect mod is conflicting with mine

jhaagmans

Quote from: Arantor on January 22, 2010, 10:58:34 AM
jhaagmans: So... what version of SMF, what server configuration?
SMF 1.1.11 on Apache. I'm working on a client's server, so not entirely sure about the full setup, but the "SimpleSEF adds" suggests that the problem lies somewhere in the added PHP code. Of course, disabling SEF (so not uninstalling it) makes the problem go away, but I have to do that directly in the database. It -could- be a problem with another mod interfering.

Unfortunately the Pretty URL mod won't work for us as well as it has a problem with single quotes in board names.

jhaagmans

Never mind, I got Pretty URLs working by adding a sub for single quotes.

feline

on more problems ...
a url like myurl/index.php?anystring;parm=value is formed to myurl/parm,value/anystring/.

I have fixed that temporary as

foreach ($params as $key => $value)
{
if ($value == '')
{
if(empty($sefstring2))
$sefstring2 .= $key . '/';
else
$sefstring3 .= $key . '/';
}
else


Now tell me, that the url is't conform with php or rfc  8)

Fel

Arantor

No, that URL is fine. SMF also does it itself on more than one occasion.

Simple fact is the minute you start being clever rewriting URLs, it's going to go wrong somewhere :(
Holder of controversial views, all of which my own.


feline

I thinks, it's a normal process .. the mod is good, but have a lot of problems.
All user they use that mod extensive can help to find all bugs  ;)

For the above problems I have found a good fix:

      if ($value == '')
      {
         if(empty($query_parts) && empty($sefstring2))
            $sefstring2 .= $key . '/';
         else
            $sefstring3 .= $key . '/';

That will order the params correct ...

Fel

Afro

Quote from: Arantor on January 23, 2010, 09:32:13 AM
No, that URL is fine. SMF also does it itself on more than one occasion.

Simple fact is the minute you start being clever rewriting URLs, it's going to go wrong somewhere :(

you make a lot of sense here araton. lol. i totally agree

SlammedDime

The parameters can be in any order Fel, it doesn't really make a difference as far as PHP is concerned, as long as I read them back properly on a request.

So here's what I'm thinking.... I'm thinking of removing the 'rewriting' of the area/sa part... only because with SMF 2.0 and so many people using sa and areas for their mods that it will cause conflicts.... so what does this mean?

instead of http://www.myforum.com/profile/settings/ it would look like http://www.myforum.com/profile/area,settings/

This will make it indistinguishable as to what is an area call and what is a subaction call.

Fel - I do appreciate your input, but it's hardly fair to say this mod has a lot of bugs... it really does not.  As Pete said, when you try to get fancy rewriting urls, things crop up on non standard SMF installs.  I do appreciate all of the testing though.  With Dannii being unable to support Pretty Urls here, I think this mod may become more popular, so I welcome feedback.
SlammedDime
Former Lead Customizer
BitBucket Projects
GeekStorage.com Hosting
                      My Mods
SimpleSEF
Ajax Quick Reply
Sitemap
more...
                     

~DS~

Quote from: Dismal Shadow on January 22, 2010, 03:04:38 PM
QuoteClick the [Help] link in your admin panel settings for SimpleSEF and make sure that you have a .htaccess file in your root SMF directory that contains what is described in the help section.

I searched for .htaccess file using the 'search function'...it's there in package folder but it's hidden somehow because it's not there.  :-\
I guess I had to uninstall it since it's no use to me with a hidden .htaccess file which I had no way to edit. Me think it's the host.
"There is no god, and that's the simple truth. If every trace of any single religion were wiped out and nothing were passed on, it would never be created exactly that way again. There might be some other nonsense in its place, but not that exact nonsense. If all of science were wiped out, it would still be true and someone would find a way to figure it all out again."
~Penn Jillette – God, NO! – 2011

SlammedDime

The .htaccess file you need to look at is the on in the main SMF directory, the same place as index.php and SSI.php.  You need to use an FTP client that does not hide 'hidden' files.  On Unix systems, files that begin with a '.' are considered hidden files.
SlammedDime
Former Lead Customizer
BitBucket Projects
GeekStorage.com Hosting
                      My Mods
SimpleSEF
Ajax Quick Reply
Sitemap
more...
                     

Advertisement: