API
joomla的中文api在哪里可以下载
J3X • admin 回复了问题 • 2 人关注 • 1 个回复 • 1028 次浏览 • 2017-12-08 21:37
如何在外部系统中校验joomla用户的密码是否输入正确
J3X • admin 发表了文章 • 0 个评论 • 923 次浏览 • 2017-09-11 15:37
$user =JFactory::getUser();
$enterPasswd='zmax99';
$passwdMatch = JUserHelper::verifyPassword($enterPasswd, $user->password, $user->id);
if($passwdMatch)
{
echo "match ";
}
else
{
echo "not match";
}在用户重置密码前,我们需要验证用户的当前密码。那么上面的代码代码就可以了。
注意上面的代码在J3.4.X上测试通过。
如果你在另外的框架中调用,那么需要引入Joomla框架。代码如下:
if (!class_exists("JFactory")) {
define('_JEXEC', 1);
define('JPATH_BASE', dirname(__FILE__)); // specify path to joomla base directory here
define('DS', DIRECTORY_SEPARATOR);
require_once ( JPATH_BASE . DS . 'includes' . DS . 'defines.php' );
require_once ( JPATH_BASE . DS . 'includes' . DS . 'framework.php' );
$mainframe = & JFactory::getApplication('site');
$mainframe->initialise();
} 查看全部
$enterPasswd='zmax99';
$passwdMatch = JUserHelper::verifyPassword($enterPasswd, $user->password, $user->id);
if($passwdMatch)
{
echo "match ";
}
else
{
echo "not match";
}在用户重置密码前,我们需要验证用户的当前密码。那么上面的代码代码就可以了。
注意上面的代码在J3.4.X上测试通过。
如果你在另外的框架中调用,那么需要引入Joomla框架。代码如下:
if (!class_exists("JFactory")) {
define('_JEXEC', 1);
define('JPATH_BASE', dirname(__FILE__)); // specify path to joomla base directory here
define('DS', DIRECTORY_SEPARATOR);
require_once ( JPATH_BASE . DS . 'includes' . DS . 'defines.php' );
require_once ( JPATH_BASE . DS . 'includes' . DS . 'framework.php' );
$mainframe = & JFactory::getApplication('site');
$mainframe->initialise();
} 查看全部
$user =JFactory::getUser();在用户重置密码前,我们需要验证用户的当前密码。那么上面的代码代码就可以了。
$enterPasswd='zmax99';
$passwdMatch = JUserHelper::verifyPassword($enterPasswd, $user->password, $user->id);
if($passwdMatch)
{
echo "match ";
}
else
{
echo "not match";
}
注意上面的代码在J3.4.X上测试通过。
如果你在另外的框架中调用,那么需要引入Joomla框架。代码如下:
if (!class_exists("JFactory")) {
define('_JEXEC', 1);
define('JPATH_BASE', dirname(__FILE__)); // specify path to joomla base directory here
define('DS', DIRECTORY_SEPARATOR);
require_once ( JPATH_BASE . DS . 'includes' . DS . 'defines.php' );
require_once ( JPATH_BASE . DS . 'includes' . DS . 'framework.php' );
$mainframe = & JFactory::getApplication('site');
$mainframe->initialise();
}
Joomla删除按钮如何在删除前添加提示信息
J3X • admin 发表了文章 • 0 个评论 • 757 次浏览 • 2017-08-07 17:36
在做Joomla后台开发的时候,我们经常需要使用工具栏。joomla已经为了我们准备好了一些现成的工具,非常的方便。
JToolBarHelper::deleteList('你确定需要删除该任务吗','plans.delete','删除');最后产生的结果如下图:
deleteList参数:
1,删除前的JS提示信息。如果为空,那么就直接执行提交控制器任务。否则会弹出一个确认框
2,需要执行的任务
3,按钮的文本
查看全部
JToolBarHelper::deleteList('你确定需要删除该任务吗','plans.delete','删除');最后产生的结果如下图:
deleteList参数:
1,删除前的JS提示信息。如果为空,那么就直接执行提交控制器任务。否则会弹出一个确认框
2,需要执行的任务
3,按钮的文本
查看全部
Joomla 3.x 如果使用代码修改组件的参数
J3X • admin 发表了文章 • 0 个评论 • 765 次浏览 • 2017-08-05 11:51
今天再做微信同步组件的时候,遇到一个问题需要动态的修改组件的参数。我感觉这是一个通用的问题,就看了一下代码。最后得到解决方案
代码如下:
$params = JComponentHelper::getParams("com_zmaxwechat");
$params->set('show_newsqueue_msg', 0);
$componentid = JComponentHelper::getComponent('com_zmaxwechat')->id;
$table = JTable::getInstance('extension');
$table->load($componentid);
$table->bind(array('params' => $params->toString()));
if (!$table->check())
{
$ajaxData->setError($table->getError());
}
if (!$table->store())
{
$ajaxData->setError($table->getError());
}
希望对其他的朋友能有所帮助
查看全部
代码如下:
$params = JComponentHelper::getParams("com_zmaxwechat");
$params->set('show_newsqueue_msg', 0);
$componentid = JComponentHelper::getComponent('com_zmaxwechat')->id;
$table = JTable::getInstance('extension');
$table->load($componentid);
$table->bind(array('params' => $params->toString()));
if (!$table->check())
{
$ajaxData->setError($table->getError());
}
if (!$table->store())
{
$ajaxData->setError($table->getError());
}
希望对其他的朋友能有所帮助
查看全部
今天再做微信同步组件的时候,遇到一个问题需要动态的修改组件的参数。我感觉这是一个通用的问题,就看了一下代码。最后得到解决方案
代码如下:
希望对其他的朋友能有所帮助
代码如下:
$params = JComponentHelper::getParams("com_zmaxwechat");
$params->set('show_newsqueue_msg', 0);
$componentid = JComponentHelper::getComponent('com_zmaxwechat')->id;
$table = JTable::getInstance('extension');
$table->load($componentid);
$table->bind(array('params' => $params->toString()));
if (!$table->check())
{
$ajaxData->setError($table->getError());
}
if (!$table->store())
{
$ajaxData->setError($table->getError());
}
希望对其他的朋友能有所帮助
如何在外部系统中校验joomla用户的密码是否输入正确
J3X • admin 发表了文章 • 0 个评论 • 923 次浏览 • 2017-09-11 15:37
$user =JFactory::getUser();
$enterPasswd='zmax99';
$passwdMatch = JUserHelper::verifyPassword($enterPasswd, $user->password, $user->id);
if($passwdMatch)
{
echo "match ";
}
else
{
echo "not match";
}在用户重置密码前,我们需要验证用户的当前密码。那么上面的代码代码就可以了。
注意上面的代码在J3.4.X上测试通过。
如果你在另外的框架中调用,那么需要引入Joomla框架。代码如下:
if (!class_exists("JFactory")) {
define('_JEXEC', 1);
define('JPATH_BASE', dirname(__FILE__)); // specify path to joomla base directory here
define('DS', DIRECTORY_SEPARATOR);
require_once ( JPATH_BASE . DS . 'includes' . DS . 'defines.php' );
require_once ( JPATH_BASE . DS . 'includes' . DS . 'framework.php' );
$mainframe = & JFactory::getApplication('site');
$mainframe->initialise();
} 查看全部
$enterPasswd='zmax99';
$passwdMatch = JUserHelper::verifyPassword($enterPasswd, $user->password, $user->id);
if($passwdMatch)
{
echo "match ";
}
else
{
echo "not match";
}在用户重置密码前,我们需要验证用户的当前密码。那么上面的代码代码就可以了。
注意上面的代码在J3.4.X上测试通过。
如果你在另外的框架中调用,那么需要引入Joomla框架。代码如下:
if (!class_exists("JFactory")) {
define('_JEXEC', 1);
define('JPATH_BASE', dirname(__FILE__)); // specify path to joomla base directory here
define('DS', DIRECTORY_SEPARATOR);
require_once ( JPATH_BASE . DS . 'includes' . DS . 'defines.php' );
require_once ( JPATH_BASE . DS . 'includes' . DS . 'framework.php' );
$mainframe = & JFactory::getApplication('site');
$mainframe->initialise();
} 查看全部
$user =JFactory::getUser();在用户重置密码前,我们需要验证用户的当前密码。那么上面的代码代码就可以了。
$enterPasswd='zmax99';
$passwdMatch = JUserHelper::verifyPassword($enterPasswd, $user->password, $user->id);
if($passwdMatch)
{
echo "match ";
}
else
{
echo "not match";
}
注意上面的代码在J3.4.X上测试通过。
如果你在另外的框架中调用,那么需要引入Joomla框架。代码如下:
if (!class_exists("JFactory")) {
define('_JEXEC', 1);
define('JPATH_BASE', dirname(__FILE__)); // specify path to joomla base directory here
define('DS', DIRECTORY_SEPARATOR);
require_once ( JPATH_BASE . DS . 'includes' . DS . 'defines.php' );
require_once ( JPATH_BASE . DS . 'includes' . DS . 'framework.php' );
$mainframe = & JFactory::getApplication('site');
$mainframe->initialise();
}
Joomla删除按钮如何在删除前添加提示信息
J3X • admin 发表了文章 • 0 个评论 • 757 次浏览 • 2017-08-07 17:36
在做Joomla后台开发的时候,我们经常需要使用工具栏。joomla已经为了我们准备好了一些现成的工具,非常的方便。
JToolBarHelper::deleteList('你确定需要删除该任务吗','plans.delete','删除');最后产生的结果如下图:
deleteList参数:
1,删除前的JS提示信息。如果为空,那么就直接执行提交控制器任务。否则会弹出一个确认框
2,需要执行的任务
3,按钮的文本
查看全部
JToolBarHelper::deleteList('你确定需要删除该任务吗','plans.delete','删除');最后产生的结果如下图:
deleteList参数:
1,删除前的JS提示信息。如果为空,那么就直接执行提交控制器任务。否则会弹出一个确认框
2,需要执行的任务
3,按钮的文本
查看全部
Joomla 3.x 如果使用代码修改组件的参数
J3X • admin 发表了文章 • 0 个评论 • 765 次浏览 • 2017-08-05 11:51
今天再做微信同步组件的时候,遇到一个问题需要动态的修改组件的参数。我感觉这是一个通用的问题,就看了一下代码。最后得到解决方案
代码如下:
$params = JComponentHelper::getParams("com_zmaxwechat");
$params->set('show_newsqueue_msg', 0);
$componentid = JComponentHelper::getComponent('com_zmaxwechat')->id;
$table = JTable::getInstance('extension');
$table->load($componentid);
$table->bind(array('params' => $params->toString()));
if (!$table->check())
{
$ajaxData->setError($table->getError());
}
if (!$table->store())
{
$ajaxData->setError($table->getError());
}
希望对其他的朋友能有所帮助
查看全部
代码如下:
$params = JComponentHelper::getParams("com_zmaxwechat");
$params->set('show_newsqueue_msg', 0);
$componentid = JComponentHelper::getComponent('com_zmaxwechat')->id;
$table = JTable::getInstance('extension');
$table->load($componentid);
$table->bind(array('params' => $params->toString()));
if (!$table->check())
{
$ajaxData->setError($table->getError());
}
if (!$table->store())
{
$ajaxData->setError($table->getError());
}
希望对其他的朋友能有所帮助
查看全部
今天再做微信同步组件的时候,遇到一个问题需要动态的修改组件的参数。我感觉这是一个通用的问题,就看了一下代码。最后得到解决方案
代码如下:
希望对其他的朋友能有所帮助
代码如下:
$params = JComponentHelper::getParams("com_zmaxwechat");
$params->set('show_newsqueue_msg', 0);
$componentid = JComponentHelper::getComponent('com_zmaxwechat')->id;
$table = JTable::getInstance('extension');
$table->load($componentid);
$table->bind(array('params' => $params->toString()));
if (!$table->check())
{
$ajaxData->setError($table->getError());
}
if (!$table->store())
{
$ajaxData->setError($table->getError());
}
希望对其他的朋友能有所帮助