Not signed in (Sign In)

Categories

Vanilla 1.1.4 is a product of Lussumo. More Information: Documentation, Community Support.

Help keep Vanilla free:
Welcome Guest!
Want to take part in these discussions? If you have an account, sign in now.
If you don't have an account, apply for one now.
    • CommentAuthorVanillaHost
    • CommentTimeJul 11th 2006 edited
     # 1
    I've been trying to figure out why the AJAX doesn't work in the Extension manager to enable/disable extensions. The page being loaded is /settings/?PostBackAction=Extensions. I noticed it's loading (or trying to load) js/ajax.js, etc. however /settings/js doesn't exist. /settings.php?PostBackAction=Extensions works fine.

    Can anyone confirm that this is happening to them too?
    •  
      CommentAuthorDinoboff
    • CommentTimeJul 11th 2006 edited
     # 2
    oops...

    In .htaccess replace:
    # Prevent some little bad effects of Friendly Urls on relative links 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]

    by:
    # Prevent some little bad effects of Friendly Urls on relative links in some
    # extensions
    RewriteRule ^(discussions|categories|search|post|settings|people|[0-9]+)/(extensions|themes|images|ajax|js)/(.*) $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|js)/(.*) $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|js)/(.*) $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]
  1.  # 3
    Excellent. Thanks.
    • CommentAuthorVanillaHost
    • CommentTimeJul 11th 2006 edited
     # 4
    Another problem - it doesn't seem to work here: http://support.vanillahost.com/discussion/1/testing/ javascript url: http://support.vanillahost.com/discussion/1/testing/js/ajax.js (the "big input" doesn't work, just refreshes).

    Though it's working on this forum? Hmm...
    •  
      CommentAuthorDinoboff
    • CommentTimeJul 11th 2006 edited
     # 5
    I replaced (extensions|themes|images|ajax) by (extensions|themes|images|ajax|js) on line 3 and 7 but forgot on line 5. You need to add "|js" (I just edited my previous post, it should work fine now).

    On this forum, the link might be "/community/js/ajax.js" and not "js/ajax.js"
  2.  # 6
    I'm still having problems with your new rules. Here's my entire .htaccess, copied to htaccess.txt:
    www.vanillahost.com/vanilla/htaccess.txt
    •  
      CommentAuthorDinoboff
    • CommentTimeJul 11th 2006
     # 7
    It must be a problem with the rules line 16.

    Changing the order of the rules should solve this problem. Put RewriteRule ^discussion/([0-9]+/){1,2}[^/]*/(extensions|themes|images|ajax|js)/(.*) $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]
    before the line 16.
  3.  # 8
    Thanks, that works ... Another problem, when signing up it links to the terms (from /people/?PostBackAction=ApplyForm) but it gives a 404 (/people/termsofservice.php).
    •  
      CommentAuthorDinoboff
    • CommentTimeJul 12th 2006
     # 9
    There three rules with "(account.php|categories.php|comments.php|extension.php|index.php|people.php|post.php|search.php|settings.php)" you can add "|termsofservice.php"
    •  
      CommentAuthorDinoboff
    • CommentTimeJul 12th 2006 edited
     # 10
    .htaccess should look like that:
    RewriteEngine On
    Options +FollowSymLinks -Multiviews

    #Discussions
    RewriteRule ^discussions$ index.php [QSA,L]
    RewriteRule ^discussions/$ index.php [QSA,L]
    RewriteRule ^discussions/([0-9]+)$ index.php?page=$1 [QSA,L]
    RewriteRule ^discussions/([0-9]+)/$ index.php?page=$1 [QSA,L]
    RewriteRule ^([0-9]+)$ index.php?CategoryID=$1 [QSA,L]
    RewriteRule ^([0-9]+)/$ index.php?CategoryID=$1 [QSA,L]
    RewriteRule ^([0-9]+)/([0-9]+)$ index.php?CategoryID=$1&page=$2 [QSA,L]
    RewriteRule ^([0-9]+)/([0-9]+)/$ index.php?CategoryID=$1&page=$2 [QSA,L]

    #Comments
    RewriteRule ^discussion/([0-9]+/){1,2}[^/]*/(extensions|themes|images|ajax|js)/(.*) $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|termsofservice.php) $2 [QSA,L]

    RewriteRule ^discussion/([0-9]+)/([0-9]+)/(.+)$ comments.php?DiscussionID=$1&page=$2 [QSA,L]
    RewriteRule ^discussion/([0-9]+)/([0-9]+)/(.+)/$ comments.php?DiscussionID=$1&page=$2 [QSA,L]
    RewriteRule ^discussion/([0-9]+)/(.*)$ comments.php?DiscussionID=$1 [QSA,L]
    RewriteRule ^discussion/([0-9]+)/(.*)/$ comments.php?DiscussionID=$1 [QSA,L]
    RewriteRule ^discussion/([0-9]+)/([0-9]+)$ comments.php?DiscussionID=$1&page=$2 [QSA,L]
    RewriteRule ^discussion/([0-9]+)/([0-9]+)/$ comments.php?DiscussionID=$1&page=$2 [QSA,L]
    RewriteRule ^discussion/([0-9]+)$ comments.php?DiscussionID=$1 [QSA,L]
    RewriteRule ^discussion/([0-9]+)/$ comments.php?DiscussionID=$1 [QSA,L]

    #Categories
    RewriteRule ^categories/$ categories.php [QSA,L]

    #Account
    RewriteRule ^account/$ account.php [QSA,L]
    RewriteRule ^account/([0-9]+)$ account.php?u=$1 [QSA,L]
    RewriteRule ^account/([0-9]+)/$ account.php?u=$1 [QSA,L]

    #Search
    RewriteRule ^search/$ search.php [QSA,L]
    RewriteRule ^search/([0-9]+)$ search.php?page=$1 [QSA,L]
    RewriteRule ^search/([0-9]+)/$ search.php?page=$1 [QSA,L]
    RewriteRule ^search/saved/([0-9]+)$ search.php?SearchID=$1 [QSA,L]
    RewriteRule ^search/saved/([0-9]+)/$ search.php?SearchID=$1 [QSA,L]
    RewriteRule ^search/saved/([0-9]+)/([0-9]+)$ search.php?SearchID=$1&page=$2 [QSA,L]
    RewriteRule ^search/saved/([0-9]+)/([0-9]+)/$ search.php?SearchID=$1&page=$2 [QSA,L]

    #Post
    RewriteRule ^post/$ post.php [QSA,L]
    RewriteRule ^post/([0-9]+)$ post.php?CommentID=$1 [QSA,L]
    RewriteRule ^post/([0-9]+)/$ post.php?CommentID=$1 [QSA,L]
    RewriteRule ^post/category/([0-9]+)$ post.php?CategoryID=$1 [QSA,L]
    RewriteRule ^post/category/([0-9]+)/$ post.php?CategoryID=$1 [QSA,L]

    #Settings
    RewriteRule ^settings/$ settings.php [QSA,L]

    #People
    RewriteRule ^people/$ people.php [QSA,L]

    #extension
    RewriteRule ^extension/$ extension.php [QSA,L]

    #Poll extension
    RewriteRule ^extension/([0-9]+)/$ extension.php?DiscussionID=$1 [QSA,L]
    RewriteRule ^discussion/$ comments.php [QSA,L]


    # Prevent some little bad effects of Friendly Urls on relative links in some
    # extensions
    RewriteRule ^(discussions|categories|search|post|settings|people|extension|page|[0-9]+)/(extensions|themes|images|ajax|js)/(.*) $2/$3 [QSA,L]
    RewriteRule ^(discussions|categories|search|post|settings|people|extension|page|[0-9]+)/(account.php|categories.php|comments.php|extension.php|index.php|people.php|post.php|search.php|settings.php|termsofservice.php) $2 [QSA,L]
    RewriteRule ^(discussions|account|search|post|page|[0-9]+)/.+/(extensions|themes|images|ajax|js)/(.*) $2/$3 [QSA,L]
    RewriteRule ^(discussions|account|search|post|page|[0-9]+)/.+/(account.php|categories.php|comments.php|extension.php|index.php|people.php|post.php|search.php|settings.php|termsofservice.php) $2 [QSA,L]

    #Pages
    RewriteRule ^page/(.*)$ index.php?Page=$1 [QSA,L]


    Edited: should fix problems with the poll extension.
    Edited: fix problems with number as a title.
  4.  # 11
    Thanks. :)
    •  
      CommentAuthorphaded
    • CommentTimeJul 26th 2006
     # 12
    It seems to be working again...Dinoboff, you are again my head.
    •  
      CommentAuthorspode
    • CommentTimeJan 16th 2008
     # 13
    Are these posted rules newer than the ones in the Friendly URLs add-on? I'm struggling to get Polls to work.
    •  
      CommentAuthorscubaguy
    • CommentTimeMar 2nd 2008 edited
     # 14
    it fixes one problem with Polls, but you still can't edit a Poll. Spode came up with a solution here http://lussumo.com/community/?CommentID=81287
    • CommentAuthorPlayGod
    • CommentTimeMay 14th 2008
     # 15
    Would anyone care to offer a fix for the blog extension?

    http://domain.com/extension/category/1/?PostBackAction=Blog
    is the URL, but it throws a 404 error with friendly URLs turned on

    Is anybody still active on this forum? I know I'm not, but I am creating some new forums and hope to use Vanilla as it's the easiest to set up, the most secure (or maybe that's due to it being OBscure), and the friendliest to learn.

    I've just started trying to use friendly URLs as the latest forum is intended for mass public audience, so it needs to be SEF.
    •  
      CommentAuthorspode
    • CommentTimeMay 15th 2008
     # 16
    PlayGod - not the answer you're looking for, but BlogThis works with Friendly URLs fine. I vaguely recall I adjusted the rewrite rules to work - the same rules may well work with Blog.
    •  
      CommentAuthorWallPhone
    • CommentTimeMay 15th 2008
     # 17
    There appears to be extra stuff in the URL--

    Just a guess, but what happens when you take it out, like this: http://domain.com/extension/?PostBackAction=Blog
Add your comments
    Username Password
  • Format comments as