Support forums > Twitter

Twitter bootstrap goes strange with js register script

(1/2) > >>

sirjones:
normally twitter 1.2.5 has js script at head.php as following

--- Code: ---<script type="text/javascript" src="<?php echo osc_current_web_theme_js_url('jquery/1.6.2/jquery.min.js') ; ?>"></script>
--- End code ---
and also in oc-load.php has

--- Code: ---osc_register_script('jquery', osc_assets_url('js/jquery.min.js'));
--- End code ---
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)
--- End quote ---
let see pic number 1
but the AUTO COMPLETE TEXT on Categories/countries dropdowns look work fine

if i removed

--- Code: ---<script type="text/javascript" src="<?php echo osc_current_web_theme_js_url('jquery/1.6.2/jquery.min.js') ; ?>"></script>
--- End code ---
at the head.php and uncommented
--- Code: ---osc_register_script('jquery', osc_assets_url('js/jquery.min.js'));
--- End code ---
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

dev101:
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

sirjones:
Done, thankyou mate..

but i got twitter theme v 3.1.1, maybe other have the newest

dev101:
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.

sirjones:
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

Navigation

[0] Message Index

[#] Next page

Go to full version