joomla2.5

Handling 404 error Joomla 2.5

妖精的绣舞 提交于 2020-01-07 06:19:06
问题 I try to redirect all my 404 error on my web site following those docs : http://docs.joomla.org/Creating_a_Custom_404_Error_Page So I edited my error.php : <?php defined('_JEXEC') or die; if (($this->error->getCode()) == '404') { header('Location: http://www.mywebsite.com'); exit; } if { (!isset($this->error)) { $this->error = JError::raiseWarning(404, JText::_('JERROR_ALERTNOAUTHOR')); $this->debug = false; } //get language and direction $doc = JFactory::getDocument(); $this->language = $doc

Errors while upgrading joomla 2.5 to 3.x.x

半世苍凉 提交于 2020-01-06 14:17:15
问题 I attempted to upgrade from joomla 2.5.11 to 3.2.3 which is latest right now. First of all I checked and upgraded all extensions - CB, k2, kunena, xmap (I did not upgrade xmap as I got errors so I left it, little one not important) to latest by going extensions manager -> update tab . Then going components-> joomla-> update update to 3.2.3. The update finished but I got an error about remember.php and could not access admin panel. Getting suggestions from Fatal error when updating joomla from

auto refresh a div using javascript

百般思念 提交于 2020-01-06 07:26:16
问题 SITUATION I am trying to auto refresh a tag defined within an article in Joomla 2.5 <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.0/jquery.min.js"> </script> <script> var auto_refresh = setInterval( function() { alert("testing"); $('#results').fadeOut('slow').load('#results').fadeIn("slow"); }, 20000); </script--> <div id="results"> {szakitable csv = "http://127.0.0.1/msedcl/Archives/status2.csv" csvseparator="," width= 430} {/szakitable} </div> The above code makes use of an

auto refresh a div using javascript

早过忘川 提交于 2020-01-06 07:26:09
问题 SITUATION I am trying to auto refresh a tag defined within an article in Joomla 2.5 <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.0/jquery.min.js"> </script> <script> var auto_refresh = setInterval( function() { alert("testing"); $('#results').fadeOut('slow').load('#results').fadeIn("slow"); }, 20000); </script--> <div id="results"> {szakitable csv = "http://127.0.0.1/msedcl/Archives/status2.csv" csvseparator="," width= 430} {/szakitable} </div> The above code makes use of an

How to return a single value from a controler after an ajax request? Joomla 2.5

拜拜、爱过 提交于 2020-01-06 03:57:13
问题 I am making an ajax call to a controler from a view like this jQuery.ajax({ type: "POST", url: "index.php?option=com_virtuemart&view=participate&task=participate_request&virtuemart_product_id=2&virtuemart_category_id=5&tmpl=component&Itemid=101", data: { name: "John", location: "Boston" } }).done(function( msg ) { alert( "Data Saved: " + msg ); }); and in the controler I have a task method declared like this public function participate_request(){ echo 'test'; return false; } And I get this

Getting Details from one Dynamic Page to Another - Re-Post

懵懂的女人 提交于 2020-01-05 10:27:18
问题 After some wrestling with almost every line of code written for the JoomShopping component I beleive I have found what should be the answer to all my woes. When activating the "Buy" button in the shopping list and once clicked on it uses the following link syntax in order to post a Product to the Checkout Cart: index.php/cart/add?category_id=2&product_id=12&quantity=4 Where 2 is the Category ID and 12 is the Product ID etc ... This was solved by V.Vachev, but I thought it prudent to post all

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

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