It is currently Thu May 23, 2019 10:49 pm

All times are UTC + 1 hour [ DST ]

Post new topic Reply to topic  [ 1 post ] 
Author Message
PostPosted: Fri Aug 28, 2015 9:57 am 

Joined: Fri Aug 28, 2015 9:47 am
Posts: 1
Hi everybody,

I made a little modification to joomlas blog.php and blog_item.php, loading Admiror Galleries for each article in the blog.
I did this via
echo JHTML::_('content.prepare', '{AG}'.$gallery_str.'{/AG}');
in the blog_item.php.

On any other page the gallery works fine and it does also work on the blog page, but there are errors in the js saying:
Uncaught SyntaxError: Unexpected token )

for every gallery on the page each.

this refers to lines like this in the js-code the gallery adds:
if(AG_jQuery(this).attr('id') == ){

So the gallery gets no id, as the gallery-HTML code always shows:
<div id="AG_0" class="ag_reseter AG_classic">

(The id is always 0)

Is there anyway to fix this?
Do i load the gallery wrong with
echo JHTML::_('content.prepare' ...

Like I said the gallery is working fine, but I would like to get rid of those errors.

 Post subject: Galleries in content -> blog.php
PostPosted: Fri Aug 28, 2015 9:57 am 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 


All times are UTC + 1 hour [ DST ]

Who is online

Users browsing this forum: No registered users and 2 guests

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

This is the official Admiror Joomla! Community Forum. You are welcome to join the Admiror Joomla! Community. All Admiror Joomla! Extensions Users, Joomla! Developers, PHP or mySQL Developers are welcome to support & contribute to Admiror Joomla! Projects.

Joomla! is a free and open source content management system (CMS) for publishing content on the World Wide Web and intranets. With a vibrant volunteer community, user-friendly features and plenty of power, Joomla is perfect for your website!

Joomla! is written in PHP, uses object-oriented programming (OOP) techniques and software patterns, stores data in a MySQL database, and includes features such as page caching, RSS feeds, printable versions of pages, news flashes, blogs, polls, search, and support for language internationalization.

Joomla! is the property of Open Source Matters, Inc. All rights reserved. Read more about Joomla! at

Protected by Anti-Spam ACP Powered by phpBB® Forum Software © phpBB Group