joomla3.0

Is is possible to use joomla 3 modules on joomla 2.5?

自古美人都是妖i 提交于 2019-12-11 08:07:06
问题 Is there any way to use Joomla! 3 extensions on J!2.5 ? I need to use Noo Timeline on Joomla! 2.5 but there is no version for it. http://extensions.joomla.org/extensions/calendars-a-events/time/content-date-a-time/25732 Best regards, 回答1: Change below codes in below files In modules/mod_noo_timeline/elements/nootimeline.php Line no: 25 Change JHtml::_('jquery.ui', array('core','sortable')); To: $document = JFactory::getDocument(); $document->addScript("//ajax.googleapis.com/ajax/libs/jquery/1

Where to put a simple callable php script in Joomla directory

隐身守侯 提交于 2019-12-11 06:45:58
问题 I have some Joomla HTML content which contains a simple HTML form which results should available to a simple PHP script. Basically the HTML form looks like: <form action="action.php" method="post"> The question is where can/should I put my action.php script in the Joomla project directory to be callable for my form action and not overwritten by Joomla updates 回答1: I would recommend creating a component for forms. You probably need to handle the input in your form, and do some action based on

update record in database using jdatabase

你离开我真会死。 提交于 2019-12-10 20:55:20
问题 How do to use jdatabase to update a record in Joomla3. Here is what i have so far. $db =& JFactory::getDBO(); $query = $db->getQuery(true); $query->update('#__test AS h'); $query->set('h.name = 'apple', h.description= 'orange', h.url = 'bannana''); $query->where('h.id=1'); $db->setQuery($query); Am i missing something simple? 回答1: I just spent the day banging my head against the wall with this too. You're very close, but you just need some minor tweaks. $query->set('h.name = 'apple', h

How can I change the Joomla administrator URL By PHP - No plugins

▼魔方 西西 提交于 2019-12-10 18:44:35
问题 Since I'm new to Joomla I would like to know whether there is a way to change the administrator URL by using PHP rather than using a plugin or extensions. As far as I see using a 3rd party component is risky. I really don't want to use 3rd party extensions at all in mysite. How can I get it done? By default Joomla administrator URL is yoursitename/administrator. changing constants in /includes/defines.php and /administrator/includes/defines.php does not work . Thanks 回答1: referring this post

php Query INNER join tables

﹥>﹥吖頭↗ 提交于 2019-12-10 12:25:17
问题 In my Joomla component I have two table: Table1: #__com_units Id | Building | Floor |unit_number | posx | posy | mood ------------------------------------------------------- 1 | 01 | 01 | 001A | 100 | 200 |Rented 2 | 01 | 01 | 002A | 101 | 202 |Available 3 | 01 | 01 | 003A | 102 | 204 |Available 4 | 01 | 01 | 004A | 103 | 206 |Available 5 | 01 | 01 | 005A | 104 | 208 |Rented 6 | 01 | 01 | 006A | 103 | 206 |Available 7 | 01 | 01 | 007A | 104 | 208 |Rented 8 | 01 | 01 | 008A | 103 | 206 |Rented

Is there any way to disable the screenshot to the particular website? image can't be save in any format

a 夏天 提交于 2019-12-08 11:25:46
问题 I want to create a website, From there no one can steal my photos by screenshot or any kind of download method. if they try to screenshot the particular image also they unable to save any photo format. Is that possible? Please Let Me Know... Thanks!!! 回答1: You cannot stop clients from screenshot-ting from their end. Possible duplicates : What are the ways to prevent users to take screenshot of a webpage? 回答2: Preventing screenshots is not possible 回答3: {(function() { var startingTime = new

Joomla 3 get the menu title

删除回忆录丶 提交于 2019-12-07 23:14:22
问题 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 回答1: Also you

How do I get non-existing Joomla URLS redirected to our 404 Error Page?

自古美人都是妖i 提交于 2019-12-07 20:10:53
问题 Brief: Any search friendly URL that starts with a number goes to a broken page that shouldn't exist instead of custom 404 Error Page Details: Any partial existing url & random characters seems to return a broken page and not the 404 page. Example non-exiting urls that correctly goes to 404 Error page: http://www.shareandcare.org/asdasd or http://www.shareandcare.org/a22sdasd Example non-existing or partially existing urls that SHOULD go to 404 Error page: http://www.shareandcare.org/17

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

China☆狼群 提交于 2019-12-06 17:36:47
问题 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. 回答1: In the Joomla backend, go to System >>

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

谁都会走 提交于 2019-12-06 13:11:57
问题 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. 回答1: 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