I installed this extension without any errors, but I think it has a problem with the Friendly Url's extension being used as well. When you have both installed and click on either Discussions, Categories etc... on the menu and then try to click a users profile in the Who's Online list the URL is wrong. Also, I don't know for sure but I don't think the guest count is working.
I use these rules for a problem like that with spell checker and Attachement: #Prevent some little bad effect of these
#rules on some extensions
RewriteRule ^(discussions|categories|search|post|settings|people)/(extensions|themes|images)/(.*) $2/$3 [QSA,L]
#If a discusion has "extensions" for title.
RewriteRule ^discussion/.+/extensions/(extensions)/(.*) $1/$2 [QSA,L]
RewriteRule ^(discussions|discussion|account|search|post)/.+/(extensions|themes|images)/(.*) $2/$3 [QSA,L] They work for me. But I Havn't tried this extension
Should be better (Friendly Urls is off just now, Havn't tried this new set yet): #Prevent some little bad effects of these
#rules on relative link in some extensions
RewriteRule ^(discussions|categories|search|post|settings|people)/(extensions|themes|images)/(.*) $2/$3 [QSA,L]
RewriteRule ^discussion/([0-9]+/){1,2}[^/]*/(extensions|themes|images)/(.*) $2/$3 [QSA,L]
RewriteRule ^(discussions|discussion|account|search|post)/.+/(extensions|themes|images)/(.*) $2/$3 [QSA,L]
I just installed WhosOnline. It should work with these rules: #Prevent some little bad effects of these
#rules on relative link in some extensions
RewriteRule ^(discussions|categories|search|post|settings|people|[0-9]+)/(extensions|themes|images|ajax)/(.*) $2/$3 [QSA,L]
RewriteRule ^(discussions|categories|search|post|settings|people|[0-9]+)/(account.php|categories.php|comments.php|extension.php|index.php|people.php|post.php|search.php|settings.php) $2 [QSA,L]
RewriteRule ^discussion/([0-9]+/){1,2}[^/]*/(extensions|themes|images|ajax)/(.*) $2/$3 [QSA,L]
RewriteRule ^discussion/([0-9]+/){1,2}[^/]*/(account.php|categories.php|comments.php|extension.php|index.php|people.php|post.php|search.php|settings.php) $2 [QSA,L]
RewriteRule ^(discussions|account|search|post|[0-9]+)/.+/(extensions|themes|images|ajax)/(.*) $2/$3 [QSA,L]
RewriteRule ^(discussions|account|search|post|[0-9]+)/.+/(account.php|categories.php|comments.php|extension.php|index.php|people.php|post.php|search.php|settings.php) $2 [QSA,L]
Is it worth building these rewrite rules into the friendly url extension? Or are they specific for certain jobs? I tried understanding what they did but it went over my head a bit :(
These rules should prevent any bad links like that, From any Friendly Urls location : (discussions|categories|search|post|settings|people|[0-9]+)/ or ^discussion/([0-9]+/){1,2}[^/]*/ or (discussions|account|search|post|[0-9]+)/.+/
To any files in the vanilla root directory: (account.php|categories.php|comments.php|extension.php|index.php|people.php|post.php|search.php|settings.php)
or To any directlies (just the one that could be present in a relative link on a page): (extensions|themes|images|ajax)
Comments
It's entirely possible that your version of vanilla is too new, and the extension has to be updated to match.
I've also commented in the HTML Formatter Exploit discussion to see if that is still a problem.
If I have time tomorrow night, I'm going to start working on a version that will work with Vanilla 1.0. I'll let you know when it's working.
You can now find the extension here:
http://www.thirty5.net/code/vanilla/whosonline/vanilla1.0/WhosOnline.zip
or here:
http://lussumo.com/addons/?PostBackAction=AddOn&AddOnID=29
"A fatal, non-recoverable error has occurred
Technical information (for support personel):
Error Message
An error occurred while updating your account.
Affected Elements
WhosOnline.UpdateDateLastActive();
The error occurred on or near: You have an error in your SQL syntax near 'u set DateLastActive=now() where u.UserID = '1' ' at line 1
For additional support documentation, visit the Lussumo Documentation website at: lussumo.com/docs"
Has anyone seen this or know what is happening? Any help would be great. Thanks.
Anyone have a quick fix for this?
Installed on the latest svn version btw.
If it helps, I hadn't gotten to installing the friendly URLs extension.
#Prevent some little bad effect of these #rules on some extensions RewriteRule ^(discussions|categories|search|post|settings|people)/(extensions|themes|images)/(.*) $2/$3 [QSA,L] #If a discusion has "extensions" for title. RewriteRule ^discussion/.+/extensions/(extensions)/(.*) $1/$2 [QSA,L] RewriteRule ^(discussions|discussion|account|search|post)/.+/(extensions|themes|images)/(.*) $2/$3 [QSA,L]
They work for me. But I Havn't tried this extension
#Prevent some little bad effects of these #rules on relative link in some extensions RewriteRule ^(discussions|categories|search|post|settings|people)/(extensions|themes|images)/(.*) $2/$3 [QSA,L] RewriteRule ^discussion/([0-9]+/){1,2}[^/]*/(extensions|themes|images)/(.*) $2/$3 [QSA,L] RewriteRule ^(discussions|discussion|account|search|post)/.+/(extensions|themes|images)/(.*) $2/$3 [QSA,L]
#Prevent some little bad effects of these #rules on relative link in some extensions RewriteRule ^(discussions|categories|search|post|settings|people|[0-9]+)/(extensions|themes|images|ajax)/(.*) $2/$3 [QSA,L] RewriteRule ^(discussions|categories|search|post|settings|people|[0-9]+)/(account.php|categories.php|comments.php|extension.php|index.php|people.php|post.php|search.php|settings.php) $2 [QSA,L] RewriteRule ^discussion/([0-9]+/){1,2}[^/]*/(extensions|themes|images|ajax)/(.*) $2/$3 [QSA,L] RewriteRule ^discussion/([0-9]+/){1,2}[^/]*/(account.php|categories.php|comments.php|extension.php|index.php|people.php|post.php|search.php|settings.php) $2 [QSA,L] RewriteRule ^(discussions|account|search|post|[0-9]+)/.+/(extensions|themes|images|ajax)/(.*) $2/$3 [QSA,L] RewriteRule ^(discussions|account|search|post|[0-9]+)/.+/(account.php|categories.php|comments.php|extension.php|index.php|people.php|post.php|search.php|settings.php) $2 [QSA,L]
<h2>Who's Online</h2> <ul><li> <a href="account.php?u=1" title="0 seconds ago">Damien</a></li></ul>
From http://lussumo.com/community/comments.php?DiscussionID=617&page=3 (this page with Friendly Urls off), the link send you to http://lussumo.com/community/account.php?u=1.
From http://lussumo.com/community/discussion/617/3/whos-online/#Comment_31408 this page with Friendly Urls on), the link send you to http://lussumo.com/community/discussion/617/3/whos-online/account.php?u=1, nowhere.
These rules should prevent any bad links like that,
From any Friendly Urls location :
(discussions|categories|search|post|settings|people|[0-9]+)/ or
^discussion/([0-9]+/){1,2}[^/]*/ or
(discussions|account|search|post|[0-9]+)/.+/
To any files in the vanilla root directory:
(account.php|categories.php|comments.php|extension.php|index.php|people.php|post.php|search.php|settings.php)
or To any directlies (just the one that could be present in a relative link on a page):
(extensions|themes|images|ajax)