Osclass forums
Support forums => Themes => Twitter => Topic started by: sirjones on March 19, 2017, 12:00:33 pm
-
normally twitter 1.2.5 has js script at head.php as following
<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
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
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
<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 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
-
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
-
Done, thankyou mate..
but i got twitter theme v 3.1.1, maybe other have the newest
-
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.
-
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
-
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.