joomla3.0

Joomla 3 get the menu title

给你一囗甜甜゛ 提交于 2019-12-06 11:20:54
I'm using multiple menus on one page. In multiple divs I'm showing a menu (menu1 to menu6). For templating purposes I would like to get the menu title of each menu to show on top. I'm not managing to get the title from the menu. I found this is the way to get the menu items. <?php $menu = $app->getMenu(); $menu_items = $menu->getItems('menutype', 'menu1'); var_dump ($menu_items); ?> Couldn't be so hard but can't find the right syntax. Who could help me? Thanks in advance, Wims Lahmizzar Also you can use this one: $menu = &Jsite::getMenu(); $menuname = $menu->getActive()->title; or if already

Joomla 1.5.14 to Joomla 3.0 Migration [closed]

久未见 提交于 2019-12-06 08:53:22
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 5 years ago . We have already Joomla´s version 1.5.14 from 2009 to make our homepage setting. Now we want to upgrade the version to 3.0. We have made a test page 3.0 and compared it with our original page. We understand that files and the database have been subject to changes, so it´s difficult for us to see how we can

Upgrade / Migrate from Joomla 1.5.26 to Joomla 3.0.1

爱⌒轻易说出口 提交于 2019-12-06 07:31:27
问题 I have a joomla 1.5.26 site and want to upgrade over to Joomla 3.0.1. Is that possible? If so, what are the steps? I am looking for an installer like JUpgrade to do this. I realize that it is a 2 step process: a. Migrate from Joomla 1.5.26 to Joomla 2.5 b. Migrate from Joomla 2.5 to Joomla 3.0.1 Use JUpgrade for both the steps after backing up your files using Akeeba / XCloner component Am I right or am I missing a step? 回答1: It is better to stick with Joomla 2.5 as it is recommended till

Joomla getUser() does not show the updated user data

穿精又带淫゛_ 提交于 2019-12-05 02:25:55
问题 Below code allows me to show the user's name in the profile page of the Joomla profile of a user. Given that I have overridden the template to get the look and feel I want. $user =& JFactory::getUser(); if (!$user->guest) { echo 'You are logged in as:<br />'; echo 'Real name: ' . $user->name . ''; } My problem is I allow user to update his or her profile. After he updates the his name, database is updated correctly but it does not show the updated name in the profile page. When I go through

How to turn off frontend 'edit module' button Joomla 3.2.2?

风流意气都作罢 提交于 2019-12-05 00:43:49
Does anyone know how to disable this functionality? (See pic below) Additional Information: I'm using Rocket Theme's Metropolis template, so I'm not sure if Rocket Theme introduced this feature via updates or I got it through one of Joomla's updates. The button is visible to registered users whenever they hover the mouse cursor over a module. When they click on it, it sends the user to the backend login screen. I do not want this feature at all. In the Joomla backend, go to System >> Global Configuration , and you will see an option called Mouse-over edit icons for , which you can simply set

Joomla hacked. How to prevent? [closed]

北慕城南 提交于 2019-12-04 23:56:24
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 7 years ago . Ok, so one of my websites ( on joomla) is being hacked like the 6th time... I won't tell you any stories. Only facts: Firstly, I found that in template index file appeared some alien code: <div id='hideMe'> <p>Every person knows the large quan...|...ur cure Viagra <a href="xxxxx">Viagra</a> </div><script type=

How to create custom User Group programmatically in Joomla 3.x?

亡梦爱人 提交于 2019-12-04 20:56:32
I am writing a custom Component in Joomla 3.x. At a certain point of the component I need to create a Custom User Group under 'Registered' group in Joomla. After searching the web a lot, I found no solution of this problem. You can add it to the #__usergroups table programmatically, ensuring the user group is not there already; or get an instance of JTableUsergroup (declared in libraries/joomla/table/usergroup.php ). Since it extends JTable you can use its save() method, passing an array with the values you wish to store. Then in order to have proper lft and rgt values, you need to invoke the

Joomla! JDatabase::getErrorNum() is deprecated, use exception handling instead

吃可爱长大的小学妹 提交于 2019-12-04 19:15:46
问题 I have the following code: $db = JFactory::getDbo(); $query = $db->getQuery(true); $query->select('*'); $query->from('#__users'); $db->setQuery($query); // Check for a database error. if ($db->getErrorNum()) { JError::raiseWarning(500, $db->getErrorMsg()); } $result = $db->loadResult(); Now getErrorNum as well as JError are deprecated. Just to clarify, JError and $db->getErrorNum() are NOT deprecated in Joomla 2.5 but are in Joomla! 3.0. So this question has value for somebody who develops

How to use Joomla Ajax Interface for my own plugin

我们两清 提交于 2019-12-04 13:49:25
问题 I'm developing a custom plugin for Joomla 3. I'm trying to make an ajax call to my plugin. I've looked into the Joomla Ajax Interface and followed what was described. But when I make the call, the json response is empty, even if I'm echoing a value. Here is my PHP code: class plgContentMyPlugin extends JPlugin { public static function onAjaxSendMail() { //Get the app $app = JFactory::getApplication(); $data = "test"; //echo the data echo json_encode($data); //close the $app $app->close(); } }

Upgrade / Migrate from Joomla 1.5.26 to Joomla 3.0.1

天大地大妈咪最大 提交于 2019-12-04 13:03:56
I have a joomla 1.5.26 site and want to upgrade over to Joomla 3.0.1. Is that possible? If so, what are the steps? I am looking for an installer like JUpgrade to do this. I realize that it is a 2 step process: a. Migrate from Joomla 1.5.26 to Joomla 2.5 b. Migrate from Joomla 2.5 to Joomla 3.0.1 Use JUpgrade for both the steps after backing up your files using Akeeba / XCloner component Am I right or am I missing a step? Yesceeohhh It is better to stick with Joomla 2.5 as it is recommended till 2014. Here is statement quoted by joomla .org "Joomla 2.5 is the Long Term Support (LTS) version of