Joomla

Materializecss: carousel & slider not working

北城余情 提交于 2020-01-05 09:29:33
问题 EDIT: I found out the solution. See my post at the bottom of the page. I've created a template for joomla with materializecss. Everything works fine except the slider (which displays as a gray rectangle) and carousel which just shows images one after another as obsolete divs. The carousel: The slider: I've imported the jquery script before materializecss. I've also called the carousel.carousel(). The code for slider and carousel I used is same as on the Materializecss website in examples. Can

nl2br() not working when displaying SQL results

廉价感情. 提交于 2020-01-05 08:39:33
问题 On my Joomla module, we are using the following code to get shouts from the database function getShouts($number, $timezone, $message) { $shouts = array(); $db = JFactory::getDBO(); $query = $db->getQuery(true); $query->select('*') ->from('#__shoutbox') ->order('id DESC'); $db->setQuery($query , 0 , $number); $rows = $db->loadObjectList(); $i=0; foreach ( $rows as $row ) { $shouts[$i]->id = $row->id; $shouts[$i]->name = $row->name; $shouts[$i]->msg = $row->msg; $i++; } return $shouts; } and

$db->loadObjectList and mysql_fetch_array error

送分小仙女□ 提交于 2020-01-05 07:50:47
问题 i am working on a joomla module and i write this code for db connection and then fetch data from db and print it in a table $db = JFactory::getDBO(); $query = $db->getQuery(true); if($q == ""){ $query ->select(array('Stune_code,Stune_name,Stune_artist')) ->from('my_table') ->where('sub_cat_id = "4"') ->limit('$start, $per_page'); $query_pag_data = $db->loadObjectList(); $msg = "<table class='show-rslt'><tr> <th class='tbl-header'>Song Title</th> <th class='tbl-header'>Artist</th> <th class=

$db->loadObjectList and mysql_fetch_array error

老子叫甜甜 提交于 2020-01-05 07:50:43
问题 i am working on a joomla module and i write this code for db connection and then fetch data from db and print it in a table $db = JFactory::getDBO(); $query = $db->getQuery(true); if($q == ""){ $query ->select(array('Stune_code,Stune_name,Stune_artist')) ->from('my_table') ->where('sub_cat_id = "4"') ->limit('$start, $per_page'); $query_pag_data = $db->loadObjectList(); $msg = "<table class='show-rslt'><tr> <th class='tbl-header'>Song Title</th> <th class='tbl-header'>Artist</th> <th class=

$db->loadObjectList and mysql_fetch_array error

不羁的心 提交于 2020-01-05 07:50:30
问题 i am working on a joomla module and i write this code for db connection and then fetch data from db and print it in a table $db = JFactory::getDBO(); $query = $db->getQuery(true); if($q == ""){ $query ->select(array('Stune_code,Stune_name,Stune_artist')) ->from('my_table') ->where('sub_cat_id = "4"') ->limit('$start, $per_page'); $query_pag_data = $db->loadObjectList(); $msg = "<table class='show-rslt'><tr> <th class='tbl-header'>Song Title</th> <th class='tbl-header'>Artist</th> <th class=

Joomla with Ajax: Fatal error: Class 'JFactory' not found

冷暖自知 提交于 2020-01-05 07:32:25
问题 Still having problems figuring out how to use Ajax and the Joomla framework together. I've created a Joomla component which I can access with: index.php?option=com_mycomponent I'm using Jquery with Ajax in components/com_mycomponent/views/mycomponent/tmpl/default.php : <?php // No direct access to this file defined('_JEXEC') or die('Restricted access'); ?> <html> <head> <title>Ajax with jQuery Example</title> <script language="javascript" type="text/javascript" src="https://ajax.googleapis

Joomla with Ajax: Fatal error: Class 'JFactory' not found

梦想与她 提交于 2020-01-05 07:32:11
问题 Still having problems figuring out how to use Ajax and the Joomla framework together. I've created a Joomla component which I can access with: index.php?option=com_mycomponent I'm using Jquery with Ajax in components/com_mycomponent/views/mycomponent/tmpl/default.php : <?php // No direct access to this file defined('_JEXEC') or die('Restricted access'); ?> <html> <head> <title>Ajax with jQuery Example</title> <script language="javascript" type="text/javascript" src="https://ajax.googleapis

Make read more link open on separate page in joomla

不问归期 提交于 2020-01-05 07:06:15
问题 I am using joomla 2.5. When creating an article I add read more links to it. The issue I am having is, when a page has a single article then the read more link overwrites that content with the new article. I want the read more link to open as a separate page. I want it to be dynamic and not manually change. Any thing I am missing ? Any help is appreciated. Thanks 回答1: I am not sure if you sorted it out but I think I know what you mean. You may need to create a new Menu and use it as a hidden

Allow users to select user group from custom Joomla login form

 ̄綄美尐妖づ 提交于 2020-01-04 13:05:40
问题 I am developing a website in Joomla 3.0. What I am trying to do is to create a custom login form. The reason I want to do that is to enable users to select the user group they want to be put in while they are registering. So I need to create a dropdown box in the login form. From this dropdown box users would be able to pick up the desired user group. So far I've tried using various plugins and extentions but the problem is that they can't be customized the way I want. So please, if you have

How to add extra text to the <title> tag in Joomla

雨燕双飞 提交于 2020-01-04 09:17:13
问题 I need to add extra text (Hard cord) to the title tag on a joomla website. But I cant seem to find where the tag is located in Joomla. Does any of you guys know where it is located? hanks 回答1: Try adding this to your pages <?php if (@$_REQUEST['view'] != 'frontpage') { $document =& JFactory::getDocument(); $document->setTitle("My Custom Text - ".$document->getTitle()); } ?> or <?php if (@$_REQUEST['view'] != 'frontpage') { $document =& JFactory::getDocument(); $document->setTitle($document-