joomla2.5

How to redirect the user according to their user groups in Joomla

末鹿安然 提交于 2020-01-04 03:27:08
问题 I have created my website in Joomla. In my site I have created 3 user groups ('guest', 'unregistered', 'registered'), and I have created one blog kind of thing called abstract corner in article. The 'guest' and 'unregistered' user can just view the guidelines but they can't submit the abstracts. The 'registered' user can submit abstracts. I am using two images to display "abstract guidelines" and an "abstract submission" link. How can I redirect this user to particular article? Please help me

How to redirect the user according to their user groups in Joomla

孤者浪人 提交于 2020-01-04 03:26:08
问题 I have created my website in Joomla. In my site I have created 3 user groups ('guest', 'unregistered', 'registered'), and I have created one blog kind of thing called abstract corner in article. The 'guest' and 'unregistered' user can just view the guidelines but they can't submit the abstracts. The 'registered' user can submit abstracts. I am using two images to display "abstract guidelines" and an "abstract submission" link. How can I redirect this user to particular article? Please help me

Joomla 2.5 Get User Data from External Script

只谈情不闲聊 提交于 2019-12-30 14:55:28
问题 I need to get the information of the user that's currently logged in to Joomla from a program outside of Joomla itself. I upgraded from 1.5 to 2.5, and what I had before doesn't work anymore. <?php define( '_VALID_MOS', 1 ); include_once( 'globals.php' ); require_once( 'configuration.php' ); require_once( 'includes/joomla.php' ); $option="test"; $mainframe = new mosMainFrame( $database, $option, '.' ); $mainframe->initSession(); $my = $mainframe->getUser(); $joomla_name = $my->name; $joomla

How to set Component parameters in J2.5?

不羁岁月 提交于 2019-12-30 10:41:46
问题 I've created a J2.5 component with some config fields using config.xml in the admin folder of the component. How can I set parameters in the config programatically? I've tried the code bellow, but it obviously doesn't save the result to the DB: $params = & JComponentHelper::getParams('com_mycomponent'); $params->set('myvar', $the_value); Could anyone please show some examples of how to achieve this? 回答1: The safest way to do this would be to include com_config/models/component.php and use it

JFolder::create: Could not create directory - Joomla

北战南征 提交于 2019-12-30 08:32:18
问题 I end up with below error when I try to install a component,module or plugin. JFolder::create: Could not create directory What could be the issue? 回答1: Change the below variable to in your configuration file( configuration.php ) as shown. public $log_path = '/logs'; public $tmp_path = '/tmp'; Also make sure that these folder has the folder permission 755. Read more 回答2: Now I found two solutions for resolving this issue,and both of them has been worked very well: Solution One: First find the

Joomla 2.5 displays wrong datetime

怎甘沉沦 提交于 2019-12-30 05:14:24
问题 I have Created this code in a custom component that I made: $date = date('m/d/Y h:i:s a', time())."<br>"; echo 'Current date and time is: ' . $date; $date = JFactory::getDate(); echo 'Current date and time is: ' . $date->toFormat() ."<br>"; The first code displays the datetime correctly, but the second one displays the time +3 hours I have checked the configuration.php file and the public $offset = 'Europe/Athens'; and is correct. I am also changing the settings from the system configuration

Keep parent with children open when linking to new page

折月煮酒 提交于 2019-12-29 08:17:07
问题 I have a vertical accordion menu that opens on hover, stays open and closes when other items are hovered. I had great help from @JDandChips on getting this working. What I really need now though is to be able to select a particular menu item (virtual-tour) to open the nested list. Then when navigating through each link in this nested list it loads a new page (already does this as it's Joomla!) and the nested list stays open on these pages only. Then when another link is clicked it closed

Migrating from Joomla 2.5 to 3x Generating Errors

只愿长相守 提交于 2019-12-25 11:14:27
问题 Trying to migrate some of the custom components which works well in Joomla 2.5.14 to Joomla 3.1.5, however getting some errors like - 404 component not found in Joomla Backend & other errors in frontend Is there any migration guide from Jooma 2.5 to 3x series, of what changes need to be done in custom components Front End Section of Site 1st error Notice: Use of undefined constant DS - assumed 'DS' in forms.php 2nd error Warning: require_once(com_formsDScontroller.php) [<a href='function

Run custom php code in joomla module backend page

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-25 07:20:33
问题 i am using Joomla 2.5 , I am working on a module .My module loads some javascripts in frontend. I want to run few php code in backend, when admin click on save button. How to do that? 回答1: You can write a plugin that uses the event trigger onBeforeSave, then when you hit the save button, the plugin is run. You can do any validation on the data sent by post, if it fails just return false and you will return to your form. You can see some documentation on how to do this here: http://docs.joomla

Fatal error: Maximum execution time of 30 seconds exceeded in joomla solution without changing ini file

你。 提交于 2019-12-25 06:27:58
问题 I'm created a Joomla extension in which i'm storing records from table A to table B. My script is working fine if table A contains less data. If table A contains large amout of data. While inserting this huge data execution is getting exceed & showing this error 'Fatal error: Maximum execution time of 30 seconds exceeded in /mysite/libraries/joomla/database/database/mysqli.php on line 382'. I can overcome this problem by making change in ini file, but its Joomla extension which people gonna