hide form to create new post

Phoca Guestbook - creating guestbooks in Joomla! CMS
Peterrr
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 06 Feb 2011, 23:49

Re: hide form to create new post

Post by Peterrr »

I'll try to search for Artisteer compatibility issues , thanks for your help!

Regards,

Peter
User avatar
Benno
Phoca Hero
Phoca Hero
Posts: 9703
Joined: 04 Dec 2008, 11:58
Location: Germany
Contact:

Re: hide form to create new post

Post by Benno »

Ok.
Kind regards,
Benno
MrJazzo
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 12 Feb 2011, 20:20

Re: hide form to create new post

Post 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
MrJazzo
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 12 Feb 2011, 20:20

Re: hide form to create new post

Post 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
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48739
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: hide form to create new post

Post by Jan »

Ok
If you find Phoca extensions useful, please support the project
Post Reply