Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Upgrade 1.1.1 & Forum Preferences not sticking
I just upgraded to the latest version (1.1.1) and am now experiencing some issues with setting Forum Preferences within the Account page. Basically, all my checkboxes are set and I cannot change them. If I check or uncheck any preference, it looks like the action has taken place, but when I refresh the page, the checkbox reset to what is was before. Has anyone experienced this issue? Can this be related to a permissions setting? I'm not getting any errors.
0
This discussion has been closed.
Comments
And the AccesKey option make the page to refresh.GET http://lussumo.com/community/ajax/switch.php?Type=ShowBookmarks&Switch=true
There was a problem authenticating your post information.
replace lines
90 to 10384 to 99 of /js/global.js withfunction SwitchPreference(AjaxUrl, PreferenceName, RefreshPageWhenComplete, PostBackKey) { var Container = document.getElementById(PreferenceName); var CheckBox = document.getElementById(PreferenceName+'ID'); if (CheckBox && Container) { Container.className = 'PreferenceProgress'; var dm = new DataManager(); dm.Param = PreferenceName; dm.RequestFailedEvent = HandleFailure; if (RefreshPageWhenComplete == 1) { dm.RequestCompleteEvent = RefreshPageWhenAjaxComplete; } else { dm.RequestCompleteEvent = PreferenceSet; } dm.LoadData(AjaxUrl+"?Type="+PreferenceName+"&PostBackKey="+PostBackKey+"&Switch="+CheckBox.checked); } }
and in /themes/account_preferences_form.php replace line 27 by:<span id="'.$Preference['Name'].'">'.GetDynamicCheckBox($Preference['Name'], $PreferenceDefault, $PrefVal, "SwitchPreference('".$this->Context->Configuration['WEB_ROOT']."ajax/switch.php', '".$Preference['Name']."', ".ForceBool($Preference['RefreshPageAfterSetting'], 0).", '". $this->Context->Session->GetVariable('SessionPostBackKey', 'string')."');", $this->Context->GetDefinition($Preference['LanguageCode'])).'</span>
Error: c50d0cbc6f5c4095f302341765df76ca is not defined
dinoboffs fix also doesn't work - it just makes the "saving animation" disappear.
i don't think it's a cache problem. i tried reloading the page with ctrl-shift-r in firefox, which should do the trick.
In case someone edited the wrong lines, start other from http://lussumo.com/svn/vanilla/trunk/js/global.js
and patch it again like described there
In /themes/account_preferences_form.php replace line 27 by:
<span id="'.$Preference['Name'].'">'.GetDynamicCheckBox($Preference['Name'], $PreferenceDefault, $PrefVal, "SwitchPreference('".$this->Context->Configuration['WEB_ROOT']."ajax/switch.php', '".$Preference['Name']."', ".ForceBool($Preference['RefreshPageAfterSetting'], 0).", '". $this->Context->Session->GetVariable('SessionPostBackKey', 'string')."');", $this->Context->GetDefinition($Preference['LanguageCode'])).'</span>
Firebug spits out the same error as posted by skube:
d24267180fa7b6b0dbcfb1126ceb174e is not defined onclick(click clientX=0, clientY=0)
anything else i should try?
edit: it took me one minute too long to post...
it's working fine now. thanks a lot!
I don't think there is a known bug with the extension page in vanilla 1.1.1.
You can try to check your cached js/global.js. download http://yourdomain/path/to/vanilla/js/global.js and check that SwitchExtension look like that:
function SwitchExtension(AjaxUrl, ExtensionKey, PostBackKey) { var Item = document.getElementById(ExtensionKey); if (Item) Item.className = "Processing"; var Parameters = "ExtensionKey="+ExtensionKey+"&PostBackKey="+PostBackKey; var dm = new DataManager(); dm.Param = ExtensionKey; dm.RequestFailedEvent = SwitchExtensionResult; dm.RequestCompleteEvent = SwitchExtensionResult; // document.location = AjaxUrl+"?"+Parameters; dm.LoadData(AjaxUrl+"?"+Parameters); }
If you give us the url, at least one of us will apply for membership and you can put us in an admin role for testing.