Osclass forums

Support forums => Themes => Twitter => Topic started by: sirjones on March 19, 2017, 12:00:33 pm

Title: Twitter bootstrap goes strange with js register script
Post by: sirjones on March 19, 2017, 12:00:33 pm
normally twitter 1.2.5 has js script at head.php as following
Code: [Select]
<script type="text/javascript" src="<?php echo osc_current_web_theme_js_url('jquery/1.6.2/jquery.min.js') ; ?>"></script>and also in oc-load.php has
Code: [Select]
osc_register_script('jquery', osc_assets_url('js/jquery.min.js'));let say that all jquery.min.js files as the same version, then we need one jquery.min.js only, so i commented it at oc-load.php then i got error as
Quote
ERROR: Some dependencies could not be loaded (jquery)
let see pic number 1
but the AUTO COMPLETE TEXT on Categories/countries dropdowns look work fine

if i removed
Code: [Select]
<script type="text/javascript" src="<?php echo osc_current_web_theme_js_url('jquery/1.6.2/jquery.min.js') ; ?>"></script> at the head.php and uncommented
Code: [Select]
osc_register_script('jquery', osc_assets_url('js/jquery.min.js')); at oc-load.php no error appear but AUTO COMPLETE TEXT on Categories/countries dropdowns gone.. (see picture 2)

so how to resolve it?
(AUTO COMPLETE TEXT on Categories/countries dropdowns appear with no Error)
have one of you found this problem? let me know how to fix it, thanks
Using oc 3.7.1
Title: Re: Twitter bootstrap goes strange with js register script
Post by: dev101 on March 19, 2017, 02:37:50 pm
Twitter theme latest version is 1.3.3 1.3.4 @ Market (github repo is apparently older), and it is using enqueue function for scripts, so try to upgrade it (at least head.php) and see if it resolves the issue.

Regards
Title: Re: Twitter bootstrap goes strange with js register script
Post by: sirjones on March 19, 2017, 08:50:13 pm
Done, thankyou mate..

but i got twitter theme v 3.1.1, maybe other have the newest
Title: Re: Twitter bootstrap goes strange with js register script
Post by: dev101 on March 19, 2017, 08:56:19 pm
Not sure about that 3.1.1 version and from where did you get it (above you mentioned 1.2.5), but this is the official one:
https://market.osclass.org/themes/general/twitter_43

edit: I see now, you are using forked version from a user.
Title: Re: Twitter bootstrap goes strange with js register script
Post by: sirjones on March 20, 2017, 04:40:59 pm
after you suggested to me to update it, i have found v. 3.1.1,
i attached it, if you wish please have a look
Title: Re: Twitter bootstrap goes strange with js register script
Post by: dev101 on March 20, 2017, 04:45:48 pm
No, I don't really have desire. That theme is over 3 years old :)

But that theme is probably based on 1.3.x version (with updated components, according to it's changelog), so it is newer than your original 1.2.5 from the first post.