Javascript code management problem !!
5 posters
Page 1 of 1
Javascript code management problem !!
new update of javascript code management is not working !
i m using phpbb2 version & i hv got java script code !
it works if i put in home page message ! but it wont show on homepage if i put it in javascript code management !
need help !!!
i m using phpbb2 version & i hv got java script code !
it works if i put in home page message ! but it wont show on homepage if i put it in javascript code management !
need help !!!
Last edited by thundermat on July 6th 2011, 5:12 pm; edited 1 time in total
Re: Javascript code management problem !!
For members with a forum on PhpBB2 or PunBB version and with modified templates overall_header
You will need to update your own custom overall_header template by searching the code
<!-- BEGIN google_analytics_code -->
then adding this code before it:
{HOSTING_JS}
Vlajki- Forumember
- Posts : 724
Reputation : 359
Language : Serbian & English
Location : Serbia
Re: Javascript code management problem !!
i hv done it already !
take a look !
but still i couldn't able to do it !
help me for this !
take a look !
- Code:
.jcarousel-skin-tango .jcarousel-item-horizontal {
margin-right: {switch_ticker.SPACING}px;
}
.jcarousel-skin-tango .jcarousel-item-vertical {
margin-bottom: {switch_ticker.SPACING}px;
}
</style>
<!-- END switch_ticker_new -->
{HOSTING_JS}
<!-- BEGIN google_analytics_code -->
<script type="text/javascript">
//<![CDATA[
var _gaq = _gaq || [];
_gaq.push(['_setAccount', '{G_ANALYTICS_ID}']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
but still i couldn't able to do it !
help me for this !
Re: Javascript code management problem !!
im also having problems with it,i uploaded the same script from my forumotion site and my website,only the website one worked.
you'll have to wait till forumotion fixes it,or upload your scripts somewhere else.
you'll have to wait till forumotion fixes it,or upload your scripts somewhere else.
Re: Javascript code management problem !!
I'm having problems too, the script doesn't run unless I put it in script tags on an html page and make an iFrame to that page.
Re: Javascript code management problem !!
thundermat wrote:new update of javascript code management is not working !
i m using phpbb2 version & i hv got java script code !
it works if i put in home page message ! but it wont show on homepage if i put it in javascript code management !
need help !!!
thundermat.
Please changeyour topic title to something in relation to your inquiry or i will have to lock the topic.
helppppppppppppppppppppp plz !!!! in not an appropriate title and rather annoying
This is a new update so you may have to give it a lil time before it's 100% functional?
I am sure whatever the problems they are only small bugs and being worked out now.
kirk- Forumaster
- Posts : 11037
Reputation : 653
Language : English,Vulcan,Klingon, Romulan,& Gorn
Re: Javascript code management problem !!
hey , krik , dont mind it !!
i just did it cuz no one was replyin it !!
i hv changed it again !!
i just did it cuz no one was replyin it !!
i hv changed it again !!
Re: Javascript code management problem !!
The new javascript feature minifies scripts. That means the scripts must be well-formed (semicolons to end each line, etc). Very few scripts written before JSMin was introduced in late 2003 were written in this fashion. Unfortunately, much of what's available at places like DynamicDrive are in this category. Based on the scripts I've seen used around forumotion, I'd guess about half of them will not work with the new feature because they're old and/or poorly-formed.
The other problem is that this new feature is designed to have the scripts loaded inside the HEAD tag. Any script that requires being loaded inside the BODY tag will not work well (or at all!) with this feature. And again, I've seen quite a few that require being loaded inside the BODY tag (usually just before the /BODY closing tag). Most scripts like these can be re-written to work with this feature, but I suspect I can count on one hand the number of people on forumotion who could rewrite such a script.
So staff...get ready to field a lot of posts like these.
The other problem is that this new feature is designed to have the scripts loaded inside the HEAD tag. Any script that requires being loaded inside the BODY tag will not work well (or at all!) with this feature. And again, I've seen quite a few that require being loaded inside the BODY tag (usually just before the /BODY closing tag). Most scripts like these can be re-written to work with this feature, but I suspect I can count on one hand the number of people on forumotion who could rewrite such a script.
So staff...get ready to field a lot of posts like these.
Guest- Guest
Similar topics
» Javascript code management
» Hide A visible section
» ModernBB - Javascript code management and templates managment
» Forum widgets management CSS code problem...
» javascript code problem
» Hide A visible section
» ModernBB - Javascript code management and templates managment
» Forum widgets management CSS code problem...
» javascript code problem
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum