Question Custom_js module welldid not work.
- JAS
- Topic Author
- Offline
- New Member
End code pages Xenea:
<script type="text/javascript">
//<![CDATA[
jQuery.ajaxSetup({cache:true});
jQuery("#block_8").load("index.php?ctype=gedcom&action=ajax&block_id=8");
jQuery("#block_13").load("index.php?ctype=gedcom&action=ajax&block_id=13");
jQuery("#block_14").load("index.php?ctype=gedcom&action=ajax&block_id=14");
//]]>
</script>
</body></html>
WT 1.7.12
PHP7: 256 MB, 60 sec
MySql: verze 5.6.28
InnoDB
Please Log in or Create an account to join the conversation.
- kiwi
- Offline
- Platinum Member
Also, ths version had an extra instruction. You must also enable (save) it under Administration>Modules-Menus.
Nigel
www.our-families.info
Please Log in or Create an account to join the conversation.
- JAS
- Topic Author
- Offline
- New Member
Everything is setting according to instruction and Save.
GA code:
var _gaq = _gaq || [];
_gaq.push();
_gaq.push();
(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);
})();
WT 1.7.12
PHP7: 256 MB, 60 sec
MySql: verze 5.6.28
InnoDB
Please Log in or Create an account to join the conversation.
- heinrichderfuchs
- Visitor
I encountered the same problem. Had GA for some time now and it all worked. Downloaded the new 1.2.5 and custom_js 1.2.5 and since then it didi not work anymore. Same as with user JAS.
Heinrich
Please Log in or Create an account to join the conversation.
- kiwi
- Offline
- Platinum Member
Nigel
www.our-families.info
Please Log in or Create an account to join the conversation.
- heinrichderfuchs
- Visitor
var _gaq = _gaq || []; _gaq.push(); _gaq.push(); (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); })();
I copied it from Google without the script-part after the old one did not work anymore.
Heinrich
Please Log in or Create an account to join the conversation.
- kiwi
- Offline
- Platinum Member
Also, ths version had an extra instruction. You must also enable (save) it under Administration>Modules-Menus
Are you sure have visited administration> menus (Yes I DO mean menus) and "save"?
See webtrees.net/index.php/en/forum/3-help-f...download-files#16828 posts #4 and #5
Nigel
www.our-families.info
Please Log in or Create an account to join the conversation.
- JAS
- Topic Author
- Offline
- New Member
WT 1.7.12
PHP7: 256 MB, 60 sec
MySql: verze 5.6.28
InnoDB
Please Log in or Create an account to join the conversation.
- JAS
- Topic Author
- Offline
- New Member
WT 1.2.5 GA not OK.
Progress be like each other so what's this in aid of.
WT 1.7.12
PHP7: 256 MB, 60 sec
MySql: verze 5.6.28
InnoDB
Please Log in or Create an account to join the conversation.
- kiwi
- Offline
- Platinum Member
Please answer my question:
Are you sure have visited administration> menus (Yes I DO mean menus) and "save"?
Nigel
www.our-families.info
Please Log in or Create an account to join the conversation.
- ToyGuy
- Offline
- Moderator
- Live like it's Christmas every day - Santa Stephen
YES -that "trick" of visiting the MENU admin page and saving did activate the JS module.
Thanks
Santa Stephen the Fabled Santa
Latest webtrees at MyArnolds.com
Hosted by webtreesonline.com , a division of GeneHosts LLC
MacOS 10.6.8, Apache 2.2+, PHP 5.4.16, MySQL 5.5.28
Please Log in or Create an account to join the conversation.
- heinrichderfuchs
- Visitor
I did it again and now it works...
Please Log in or Create an account to join the conversation.
- JAS
- Topic Author
- Offline
- New Member
<script type="text/javascript">
//<![CDATA[
jQuery.ajaxSetup({cache:true});
jQuery("#block_1").load("index.php?ctype=user&action=ajax&block_id=1");
jQuery("#block_5").load("index.php?ctype=user&action=ajax&block_id=5");
jQuery("#block_6").load("index.php?ctype=user&action=ajax&block_id=6");
//]]>
</script>
</body></html>
No view GA code, v.1.2.4 view GA code
WT 1.7.12
PHP7: 256 MB, 60 sec
MySql: verze 5.6.28
InnoDB
Please Log in or Create an account to join the conversation.
- kiwi
- Offline
- Platinum Member
administration> menus then simply click Save.
I realise it is not obvious WHY you would need to do this. It is, for now, necessary though. We hope to fix this in the future. See this image:
EDIT: Apologies that this extra instruction was not included in the module's ReadMe file. That has now been corrected.
Nigel
www.our-families.info
Please Log in or Create an account to join the conversation.
- JAS
- Topic Author
- Offline
- New Member
only at enregistration on pages. After sign off from WT GA isn't functional and visitors not
registerd.
There has been any alternative how insert code GA to the file header.php?
Progressed observe the time according to instruction. Turned off I modulus, because did not work well.
WT 1.7.12
PHP7: 256 MB, 60 sec
MySql: verze 5.6.28
InnoDB
Please Log in or Create an account to join the conversation.