问题标签 [joomla3.4]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
2 回答
1330 浏览

joomla - 如果我们可以访问 Joomla 网站的管理面板和托管的 cPanel,如何从已开发的 Joomla 网站导出扩展程序?

我有一个通过为自由职业者提供工作而开发的 Joomla 网站。

它有许多已开发的模块、插件和组件。

现在我想在 Joomla 上开发另一个网站。我想使用这些扩展,但没有安装 zip 文件。

有没有办法导出它们或通过导出一些文件来创建它们。是的 - 那么具体如何?

问题与是否可以在 joomla 2.5 中导出已安装的组件不同?因为他们只是询问导出组件,而这里的导出也必须扩展到插件和模块。

0 投票
0 回答
58 浏览

php - Joomla 3.X - 函数之间的事务拆分

我有一个问题,有时(每 1-3 个月一次)事务会运行两次,因此数据会两次输入数据库。

以下是正在发生的事情的要点:

这里, foo() 中的 $arr 应该包含唯一值。该代码通过检查特定条目是否已存在来防止将重复条目插入数据库。

为了测试基本检查是否有效,我模拟了 $arr 以包含 2 个相同的值。我收到了预期的异常。

但是,我仍然在数据库中获得双重条目,我很难理解它是如何可能的。时间戳表明单个事务被复制并且两者并行运行。我无法在这个特定问题上找到任何帮助,主要是因为它不应该发生。

我已经看过所有关于在 Joomla/PHP 中使用transactionStarttransactionCommittransactionRollback在单个函数中的事务的示例,但是我继承的代码已将它们拆分为 2 个不同的函数。这是否会导致事务出现问题,例如运行两次?

0 投票
0 回答
381 浏览

php - 在 joomla 3.4 中包含来自另一个目录的 php 文件

我使用 joomla 开发了一个分类广告网站,我的主要组件是 dj-classifieds。我现在想使用 addthis 共享工具。为此,我需要在我的网站标题中包含 facebook 标题标签。标题当然是动态的,我需要使用 php 字符串来获取每个页面的正确标题。我能够在控制项目视图页面的源文件中执行此操作。实际上,<?php echo $item_name ?>在我的源文件中使用,我可以在项目视图页面的任何位置显示标题。

我试图做的是生成相同的标题,但在控制我的网站头部的文件中。这两个文件位于不同的方向,如下所示(完整路径,在根目录中): - 项目视图源文件存储在这里:/components/com_djclassifieds/views/item/tmpl/default.php

  • 头文件存储在这里:/templates/jm-joomclassifieds-ef4/tpl/blocks/head.php

在阅读了各种解决方案后,我决定在 head.php 文件中包含 default.php 文件,然后调用 echo,但它不起作用。

这是我的代码:<meta property="og:title" content="<?php include( $_SERVER['DOCUMENT_ROOT'] . '/components/com_djclassifieds/views/item/tmpl/default.php' ); echo $item->name; ?>" />

我究竟做错了什么?我对php很陌生,所以如果你能明确地提供帮助,我将不胜感激。

有关更多详细信息,以下是这两个文件中的每一个的摘录:

  • 项目查看源代码(default.php:下面的摘录是从文件的开头到调用 echo 以生成项目标题的点):

default.php 提取的屏幕截图

这是我要编写的 og 标签:在 head.php 文件中:

我将非常感谢您花时间帮助我。

0 投票
2 回答
123 浏览

php - 从传入的 url 在 php 或 htaccess 中重定向

我是这个论坛的新手,我有一个非常直截了当的问题。我有一个站点 www.mysite.com,它是包含所有内容的主站点。为此,我有 20 个不同的域,现在我想添加域指针,以便所有这些域都指向主站点。我知道如何做到这一点,但我想在 www.mysite.com 的根目录中定义这些域应重定向到的某个位置。例如:

这最好在 htaccess 文件或 php 文件或 index.php 文件中完成吗?我的所有网站都使用 Joomla 3.x。谢谢。

0 投票
0 回答
113 浏览

mamp - MAMP 上的 Joomla - 空白页

我是新手,遇到了很多麻烦...我尝试在 MAMP 3.2 上安装 Joomla 3.4.6 但是,当我打开 locahost 进行安装时,出现“服务器错误 500”。

我能做些什么来解决这个问题?我真的很感激!

0 投票
1 回答
3023 浏览

php - 找不到配置文件,也没有可用的安装代码。退出……在 joomla 3.4.8 中

如何在 joomla 3.4.8 中解决此问题 找不到配置文件,也没有可用的安装代码。退出...

0 投票
1 回答
93 浏览

joomla - Joomla 3 权限设置

我正在使用 Joomla 3.4.3,并且正在尝试向特定组授予权限。我希望这个组能Create/Edit/Delete发布特定类别的文章。

我在Registered用户下创建了一个组。然后在System -> Global Configuration -> Permissions我给予 , 等的许可。Admin Login看看Access Administration Interface这里:
应用设置

当我在上方菜单中以该组的用户身份登录时,我只能看到该SP Page Builder选项。看看这里: 用户菜单面板

如何启用Content菜单以访问 ( Create/Edit/Delete)CategoriesArticles
我不想授予Manager权限,因为我想授予的权限越少越好。

0 投票
1 回答
49 浏览

jquery - Joomla 3.4 中的 Jquery

这是网站:http ://backup2015.a-head.at/index.php?option=com_rsform&formId=6

我正在使用 Jquery 脚本,但由于 Joomla 仅提供添加 CSV/JS 的机会,因此应将以下脚本附加到何处?

我将脚本添加到media/system/js目录中,进一步在templates/js andRSForm/js目录中,因为它是range2dslider.js脚本。

当我执行上面的链接时,我可以在头部看到脚本正在运行。2drangeslider.js运行。但是,无法在 x 轴上启用按钮的 mousemove,这意味着我无法在 x 轴上移动按钮。

我想是因为 jquery 没有附加到滑块上。

下面也是紫色元素/范围滑块的屏幕截图。

相关元素滑块的图像

在此处输入图像描述

0 投票
0 回答
119 浏览

c# - Need support about password encryption in Joomla 3.x

I need to implement an external login client using c# and .NET, but I'm having serious problems regarding with the encryption system the latest version of Joomla is using.

I've already figured out:

  • Uses the Blowfish algoritm from newer versions of PHP.
  • Uses the revised or corrected version of the algoritm (generates $2y$... strings)
  • Joomla code adds a salt based on some user's info.

I'm having trouble mostly with the salt stuff, i cannot figure out where does it come from, or how is it generated.

I'm trying to search for info all over the internet, including here at StackOverflow, but all of them are incomplete. Joomla forums/documentation/wikis/source code also lack information, and google failed too. Regarding the Joomla source code, I'am not able to understand php code.

Could someone describe or point me to the correct direction, to help me out designing a coding a c# client program to perform a login check?

What i mainly do need is: Making my program to generate a hash from the uncrypted password for comparing it with the hash stored in the database.

Thanks in advance.

0 投票
1 回答
1421 浏览

php - Joomla:查找当前模块/插件路径

我目前正在开发我的第一个自己的 Joomla 内容插件。我想将自己的 CSS 添加到文档对象,所以我需要插件的路径。

当然我可以使用类似的东西

但我还想使用一些 API 来查找我的实际安装路径。

这可能吗?