I was hoping jquery extension will be killed off and jquery based extensions can directly link to the js file hosted on amazon. since now Vanilla 1.1.3 doesn't allow duplicate js files in the header, it won't be a problem if all jquery based extensions included jquery in its code, and they can decide which pages jquery can run
Can someone explain the minified/packed thing? I installed the extension and it defaults to: /extensions/JQuery/jquery-1.2.1.min.js But I can error saying that it can't find the jQuery code. I also tried changing the line in default.php to point to the packed version $Head->AddScript('extensions/JQuery/jquery-1.2.1.pack.js'); But I still get an error. What am I doing wrong?
Well the files are there, I don't know how to verify if they were uploaded correctly though. You can see the JS error by going to http://skube.com/vanilladev/ If you login (u/p : test/test) you should see the errors if you try to create a new discussion. Or try to vote.
I cannot get iFramed content to work. Everything goes fine except when trying to use this. The "loading" bar goes forever and I get the following JavaScript error in the browser: "tb_showIframe is not defined". However, the function exists and the files are correctly loaded... I've struggled myself to the limit and cannot make this work.
I just determined it has something to do with your extension. I installed ThickBox 3.1 "manually" (that is, downloading from the official page and including it by hand in init_people.php and init_vanilla.php) and it works ok.
I've created a new beta of this extension that has been updated with the 1.2.3 library. If a few people would be kind enough to test it out and give me some feedback here I'll release it if there are no problems.
Cool, not a single response! I guess it works then. Anyway, as I have bugger all PHP knowledge, and because I was thinking it would be nice to try and learn something while hopefully make life easier for people, would someone with PHP knowledge please explain the following?
This seems to work, and changing $JQdev from 0 to 1 has the desired effectif ($JQdev = '0') {
$Head->AddScript('extensions/JQuery/jquery-1.2.6.js');
} else {
$Head->AddScript('extensions/JQuery/jquery-1.2.6.min.js');
} I would have thought I could then add something at the top of the file like $JQdev = '0'; which could be changed from 0 to 1 to effect the other file being used. However this doesn't work, so what am I doing wrong?
Comments
if (defined('JQUERY_EXTENSION')) {
This time I tested it and it work with php5 and fail in php4. It should be fixed in 1.1.3 (it's not in the rc1).
An idea to fix this.
Thanks.
Is there anyway to come back to JQuery v13-1.2.1 during the fix time ?
I've just discovered that the old versions are all archived in there - thank you to whoever had the foresight to do that.
/extensions/JQuery/jquery-1.2.1.min.js
But I can error saying that it can't find the jQuery code. I also tried changing the line in default.php to point to the packed version
$Head->AddScript('extensions/JQuery/jquery-1.2.1.pack.js');
But I still get an error. What am I doing wrong?
If you login (u/p : test/test) you should see the errors if you try to create a new discussion. Or try to vote.
I have a test site setup and you can grab the beta for testing. Please let me know how you get on and we can get this released.
This seems to work, and changing $JQdev from 0 to 1 has the desired effect
if ($JQdev = '0') { $Head->AddScript('extensions/JQuery/jquery-1.2.6.js'); } else { $Head->AddScript('extensions/JQuery/jquery-1.2.6.min.js'); }
I would have thought I could then add something at the top of the file like
$JQdev = '0';
which could be changed from 0 to 1 to effect the other file being used. However this doesn't work, so what am I doing wrong?