Quick portfolio

I have created the below super user for you to enter the back-end if necessary.
9 years 2 months ago #7 by Elisha Brescia

Please Log in or Create an account to join the conversation.

  • Posted by TemplatePlazza (5310) Offline

No.. there are several positions available so i used a separate one to post a message until we get this one working. If the gallery was displaying correctly, it should come in right below that message. It is contained in a div with css class "media".

Ah I see.
Anyway I got jQuery is not defined error in the console, does your template have jquery loaded?
https://www.dropbox.com/s/crqvuwtlcu9pumg/xia5t.jpg?raw=1
9 years 2 months ago #8 by TemplatePlazza

Please Log in or Create an account to join the conversation.

Unlike your Slider extension, this one doesn't appear to have an option to load it in the module.. what do i need to do to load JQuery for this module?
9 years 2 months ago #9 by Elisha Brescia

Please Log in or Create an account to join the conversation.

// check Joomla version for jquery load
JLoader::import( 'joomla.version' );
$version = new JVersion();
if (version_compare( $version->RELEASE, '2.5', '<='))
{
$loadJQuery = (int) $params->get('loadJQuery', 1);
if( $loadJQuery == 1 ) {
$doc->addScript({path}/jquery-1.8.2.min.js');
} elseif( $loadJQuery == 2 ) {
$doc->addScript('ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js');
}
} else {
// call jquery lib - ensure this is called first before another jquery plugins - schro
JHtml::_('jquery.framework');
}


Can i use a form of this and just get rid of the IF statement and force it to load either the google installation or the jquery that I am using from the responsive banner? Throw this in the php file and call it done?

I know just enough to get myself in trouble however I try to avoid these issues by purchasing the software. :) its late. Till tomorrow. Thanks for the assistance.
9 years 2 months ago #10 by Elisha Brescia

Please Log in or Create an account to join the conversation.

  • Posted by TemplatePlazza (5310) Offline
Ahh you were using Joomla 2.5 that is not loaded jquery by default.

Ok, can you try to open the file root/modules/mod_quickportfolio/mod_quickportfolio.php and add this code :
// check Joomla version for jquery load
JLoader::import( 'joomla.version' );
$version = new JVersion();
if (version_compare( $version->RELEASE, '2.5', '<='))
{
	$loadJQuery		= (int) $params->get('loadJQuery', 1);
	if( $loadJQuery == 1 ) {
		$doc->addScript($modulebase.'assets/jquery-1.8.2.min.js');
	} elseif( $loadJQuery == 2 ) {
		$doc->addScript('http://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js');
	}
} else {
	// call jquery lib - ensure this is called first before another jquery plugins - schro
	JHtml::_('jquery.framework');
}
at lines 16, after the code
$app = JFactory::getApplication();
Please let me know if this solve the problem or not

its late. Till tomorrow. Thanks for the assistance.

ah ok have a good rest ;) see you tomorrow
9 years 2 months ago #11 by TemplatePlazza

Please Log in or Create an account to join the conversation.

It still doesn't seem to be resolved. I have done as you requested and also reopened and saved the module even though aim fairly sure that only runs the admin php script. I have attached the php file that I believe is current (pulled it from dreamweaver). Let me know what else I need to do. Thanks.
9 years 2 months ago #12 by Elisha Brescia

Please Log in or Create an account to join the conversation.

Powered by Kunena Forum