Page 2 of 2

Re: hide form to create new post

Posted: 07 Feb 2011, 23:37
by Peterrr
I'll try to search for Artisteer compatibility issues , thanks for your help!

Regards,

Peter

Re: hide form to create new post

Posted: 08 Feb 2011, 10:15
by Benno
Ok.
Kind regards,
Benno

Re: hide form to create new post

Posted: 12 Feb 2011, 21:03
by MrJazzo
Hi !!

Using Artisteer 2.6 templates and having the same problem as described above.

Looking into the html-code behind the web-page containing the Phoca Guestbook I can se that the following references are missing (compared to other pages generated with the same Artisteer template):

<script type="text/javascript" src="/jomgof/media/system/js/core.js"></script>
<script type="text/javascript" src="/jomgof/media/system/js/mootools-core.js"></script>
<script type="text/javascript" src="/jomgof/media/system/js/caption.js"></script>

Futher i guess that the line "var pgVSlide = new Fx.Slide('pg-guestbook').hide();" is dependent on functions provided by "mootools-core.js"??

Consequently:

For some reason referens to "mootools-core.js" (and other script libraries) get lost in the html generated by Joomla when you click the "guestbook" menu-item (if you are using a template generated by Artisteer (2.6 or 3)).

Why this is i dont know but perhaps someone with deeper understanding of Joomla can figure out what triggers this...

Perhaps there is a simple fix to the problem.

/Jazzo

Re: hide form to create new post

Posted: 13 Feb 2011, 14:40
by MrJazzo
Fixed it...

Perhaps not the best of solutions but i seems to work....

In the file: components/com_phocaguestbook/phocaguestbook.php
Add the line: JHTML::_('behavior.mootools');

This seems to solve the problem with Artisteer-generated templates not loading correct mootool-scripts...

/Jazzo

Re: hide form to create new post

Posted: 13 Feb 2011, 16:19
by Jan
Ok