Vanilla 1.1.4 is a product of Lussumo. More Information: Documentation, Community Support.
Help keep Vanilla free:Posted: Tuesday, 27 March 2007 at 12:36PM
Posted: Tuesday, 27 March 2007 at 4:32PM
#Extensions
RewriteRule ^extension/$ extension.php [QSA,L] Ah. I did a search, see this comment and the ones after it. Quote: MarkNope - just downloaded it to check and there's nothing (as it should be)...
AFAIK this add-on is up to date and fully functional.
Posted: Wednesday, 28 March 2007 at 8:09AM
Posted: Friday, 30 March 2007 at 12:18PM
Quote: sujangThe result was same with or without .htaccess. It seems that vanilla can not read .htaccess.
Posted: Thursday, 5 April 2007 at 8:48AM
$this->Get_PostBackForm('frmVote')function Get_PostBackForm($FormID = '', $PostBackMethod = 'post', $TargetUrl = '', $EncType = '', $TargetFrame = '') {
$TargetUrl = ForceString($TargetUrl, $this->Context->SelfUrl);
if ($FormID != '') $FormID = ' id="'.$FormID.'"';
return '<form'.$FormID.' method="'.$PostBackMethod.'" action="'.GetUrl($this->Context->Configuration, $TargetUrl).'"'.($EncType != '' ? ' enctype="'.$EncType.'"' : '').($TargetFrame != '' ? ' target="'.$TargetFrame.'"' : '').'>'
.$this->PostBackParams->GetHiddenInputs();
}$TargetUrl = ForceString($TargetUrl, $this->Context->SelfUrl);Friendly Urlsis activated, /discussion/ (slashes added to show it's a
directory, that's not contained in the exact value if I remember correctly). So the form will read:
<form id="frmVote" action="http://vanilla.art-fx.org/discussion/" method="post">/discussion/isn't accepted: this delivers a 404 error. What's missing? The discussion's ID and the url-slug of the discussion's title:
/discussion/31/some-title.
Friendly Urlsand
Poll.
RewriteRule ^extension/([0-9]+)/?(.*)$ extension.php?DiscussionID=$1&$2 [QSA,L]Add Poll to Discussionworking. I think the way it's redirected ($2 for optional parameters) is generic enough, but probably rules like the following are needed as well:
RewriteRule ^extension/([0-9]+)/$ extension.php?DiscussionID=$1 [QSA,L]
RewriteRule ^extension/([0-9]+)$ extension.php?DiscussionID=$1 [QSA,L]
'.$this->Get_PostBackForm('frmVote', 'post', 'voteform.php').'$Context->Configuration['REWRITE_voteform.php'] = 'comments.php';Nevermind. I was able to fix the problem by rewriting a line in the Who's Online extension.
$Panel->AddListItem($ListName, $Context->GetDefinition($name["Name"]), "account.php?u=" . $name["UserID"],NULL,"title=\"$TimePast\""); $Url = GetUrl($Context->Configuration, 'account.php', '', 'u=', $name['UserID']);
$Panel->AddListItem($ListName, $Context->GetDefinition($name["Name"]), $Url, NULL, 'title="$TimePast"');#Extensions
RewriteRule ^extension/(.+)/(.+)/$ extension.php?PostBackAction=$1&page=$2 [QSA,L]
RewriteRule ^extension/(.+)/(.+)$ extension.php?PostBackAction=$1&page=$2 [QSA,L]
RewriteRule ^extension/(.+)/$ extension.php?PostBackAction=$1 [QSA,L]
RewriteRule ^extension/(.+)$ extension.php?PostBackAction=$1 [QSA,L]#Settings
RewriteRule ^settings/$ settings.php [QSA,L]
RewriteRule ^settings/(.+)/$ settings.php?PostBackAction=$1 [QSA,L]
RewriteRule ^settings/(.+)$ settings.php?PostBackAction=$1 [QSA,L]
http://vanilladirectory.com/account/1/http://vanilladirectory.com/account/resilient/
$arguments = explode('/', $HTTP_SERVER_VARS['ORIG_PATH_INFO']);/account/username request?
vanilla dir
|
category
|
discussion
/vanilla/category-name//vanilla/category-name/discussion-name/vanilla/discussion/discussion-name/vanilla/discussion/stupid-number/discussion-name/#item_another-stupid-number