HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Search
-
Re: Last Minute Development
-
Re: Last Minute Development
When you put this in a "fresh project" you run the script not in the scope of Vanilla. Vanilla first loads some scripts/libraries that need to exist in order that your script can be executed. Don't learn js by using Visual Studio! Get the basics with a simple html file that references a simple js file. If you create a… -
Re: Last Minute Development
-
Re: Last Minute Development
Yes that's it. To be slightly more precise, you have to do it like so: prefixes[CategoryID]=['prefix name', 'prefix name', 'prefix name']; Be aware of category order number is not the category id since you can order the categories however you like. You can see CategoryID either in the database table GDN_Category or when… -
Re: Last Minute Development
Are you sure, the JavaScript is loaded? You have to add a line to the original plugin: public function postController_beforeBodyInput_handler ($Sender) { // only show dropdown if permission is set if (!CheckPermission('Vanilla.PrefixDiscussion.Add')) { return; } // maybe someone wants to style that… -
Re: Last Minute Development
I don't know much about the best way to debug JavaScript or even a good way to do so. I can just tell you what I do. I use Firefox with Firebug extension, but I guess you can do it with nearly all current browsers: open the developer console (however it is called) of your browsers, take a look at the scripts section there… -
Re: Last Minute Development
Oh how I hate JavaScript... It took me some time but here are the things that have to be changed. $() != getEmentById() While getEmentById() would have returned one element, the jquery $() selector (var prefixSelect = $('#Form_Prefix');) returns a collection of a elements and you only need the first one. So you have to…
7 results