Wishlist 0 ¥0.00

如何将模块添加到 Joomla 控制面板

  • 作者:史蒂夫·伯奇
  • 发布时间:2019 年
如何将消息添加到 Joomla 控制面板

可以为您的用户自定义 Joomla 管理区域。

特别是,自定义用户第一次登录时看到的控制面板会很有用。

以下是如何修改 Joomla 管理区域以显示您或您的客户所需的信息:

  • 转到扩展 > 模块
joomla 模块
  • 在下拉菜单中,选择“管理员”而不是“站点”:
管理员模块
  • 单击绿色的“新建”按钮。
  • 选择要为用户添加的模块。 我要选择“自定义”:
自定义模块
  • 像往常一样创建你的模块:
创建自定义 joomla 模块
  • 对于职位,寻找可用的选项。 在本例中,我将选择“cpanel”。
  • 如果您希望模块出现在屏幕的高处,请为“Order”设置一个数字,例如“1”或“2”。
joomla 管理员菜单位置
  • 保存模块。
  • 您的新模块将出现在控制面板上:
joomla 管理员欢迎信息

 

 
 

 

 

禁用Joomla插件的3种方法

普通的Joomla站点将有几十个插件,它们是常见的错误来源。在本教程中,我将向您展示如何使用三种不同的技术禁用错误的插件。第一种技术是禁用插件的常规方法。如果插件已将您锁定在Joomla的管理员区域之外,则可以使用第二种和第三种技术。

步骤1.通过Joomla Admin禁用

登录您的Joomla管理区域。

转到扩展>插件。

禁用Joomla插件的3种方法

单击要禁用的插件旁边的绿色复选标记。

该图标应变为红色X.该插件现已禁用。

禁用Joomla插件的3种方法

步骤2.通过文件系统禁用

也可以通过站点的文件系统禁用插件。

登录到您的FTP帐户,或者使用cPanel的文件管理器。

访问Joomla文件的根目录。

查找名为/ plugins /的文件夹

禁用Joomla插件的3种方法

下一步是最棘手的,因为Joomla插件被分成不同的文件夹。

如果您对Joomla没有经验,可能需要一些搜索才能找到插件文件。但是,如果您的插件在您的网站上造成实际问题,则很可能位于以下三个文件夹之一:

/authentication/

/content/

/system/

禁用Joomla插件的3种方法

每个插件至少有两个密钥文件:pluginname.php和pluginame.xml

要禁用插件,您只需删除或重命名PHP文件即可。如果我想要停用Gmail插件,我可以将gmail.php重命名为gmail.php-off:

禁用Joomla插件的3种方法

步骤3.通过数据库禁用

最后,还可以通过数据库禁用插件。所有插件数据都存储在_extensions表中。

注意“已启用”列。要禁用插件(或任何扩展名),请将1(已发布)更改为0(未发布):

禁用Joomla插件的3种方法

 

格式工厂怎么改变视频的尺寸?

1.以手机上常用的MP4格式为例。打开格式工厂软件,单击[MP4]按钮;

2.在弹出的配置框中点击右上角的[添加文件]按钮;

3.选择要处理的文件之后,从“文件信息”栏里可以看到当前视频的“屏幕大小”是1280X720,点击[输出配置]按钮;

4.在视频设置里可以看到“配置”列表里的“视频流”的“屏幕大小”右边的值是“缺省”;

5.点击屏幕大小”右侧的下拉框,按自身手机的屏幕所需大小选择,如这里我选“800X600 SVGA”,点击[确定]按钮;

6.接下来在右上角点击[确定]选项;

7.单击[单击开始]按钮进行任务,完成后就改变视频的尺寸了。

 

 

 

 

将 Joomla 中的搜索限制增加到 20 多个字符

如果您尝试在 Joomla 中搜索很长的句子,那么很可能您得到的唯一结果如下:

搜索词必须最少 3 个字符,最多 20 个字符。

如果你真的希望人们在你的网站上搜索长句子,那么显然你想改变这个上限。 但是怎么做呢?

好吧,在我们告诉你怎么做之前,我们不得不说,我们第一次尝试增加最大搜索限制时,我们花了很长时间才知道如何 - 这就像一场野鹅追逐:一个文件将你引导到另一个文件到另一个文件! 但是,我们终于发现了:它实际上是一种语言设置! 我们不知道为什么 Joomla 没有在一个明显的地方有这个设置——比如在指向搜索组件的菜单项的设置中。

更复杂的是,不能在 Joomla 的后端更改该设置,而是在语言文件中更改(换句话说,您需要进行一些编码)。 因此,如果您想更改最大搜索限制(并假设您的网站上只有一种语言,即英语),那么您可以这样做:

  • 的文件 en-GB.localise.php 位于 /language/en-GB/
  • 在函数 getUpperLimitSearchWord 中,您将返回值从 20 更改为 40(例如)。 换句话说,您更改以下代码:

    return 20;

    return 40;

  • 您保存文​​件并上传它!

  • 而已!

现在,要提一件事,如果您有其他语言,那么您需要对每种语言执行上述相同的步骤(例如,如果您的网站有法语版本,那么您需要对文件进行上述修改 fr-FR.localise.php 位于 /language/fr-FR/ 目录下)。 如果您没有时间做这项繁琐的工作,那么您可以改为对 Joomla 核心文件进行以下更改,以确保所有语言都具有您选择的相同搜索限制:

  • 打开 language.php 位于 library/joomla/language 目录
  • 就在这一行之前(第 582 行):

    if ($this-&upperLimitSearchWordCallback !== null)

    添加以下代码:

    return 40;//其中 40 是您的新搜索限制

  • 保存文件并上传回来。

  • 而已!

请注意,Joomla 的搜索模块默认将其 20—— 这就是为什么您不能在该模块的搜索字段中输入超过 20 个字符的原因。 但是,好消息是 maxlength 值来自函数 getUpperLimitSearchWord ,这意味着执行上述操作将自动确保将 maxlength 更改为您选择的值(例如,如果您将值更改为 40,那么 maxlength 值将自动 40).

现在,如果上述方法对您不起作用,或者您没有编程经验,那么为什么不 联系我们 呢? 我们会以光速为你解决问题(嗯,慢一点,但你明白了), 我们不会向你收取太多费用 ,而且我们是地球上最友好的程序员——甚至可能是整个太阳系系统!

注意:如果您想增加/减少搜索下限,只需将 upper 替换 lower 上述指南中的 例如,您需要更改函数 getLowerLimitSearchWord 的返回值,而不是更改函数 getUpperLimitSearchWord 的返回值。

原文:

If you have tried to search for a very long sentence in Joomla, then most likely the only result that you got was the following:

Search term must be a minimum of 3 characters and a maximum of 20 characters.

If you really want people to search for long sentences on your website, then obviously you want to change that upper limit. But how to do that?

Well, before we tell you how, we have to say that the first time we tried to increase the maximum search limit it took us ages to find out how – it was like a wild goose chase: a file leading you to another file which leads to another file! But, we finally discovered it: it was actually a language setting! We have no idea why Joomla doesn’t have this setting in a place that is obvious – such as in the settings of the menu item pointing to the search component.

To make things even more complicated, that setting cannot be changed in Joomla’s backend, but rather in the language file (in other words, you’ll need to do some coding). So, if you want to change the maximum search limit (and assuming that you have only one language on your website, which is English), then here’s how you do this:

  • You open the file en-GB.localise.php located under the /language/en-GB/ folder.
  • In the function getUpperLimitSearchWord, you change the return value from 20 to 40 (for example). In other words, you change the following code:

    return 20;

    to

    return 40;

  • You save the file and you upload it!

  • That’s it!

Now, one thing to mention, if you have other languages then you need to do the same steps above for each one of them (for example, if your website has a French version, then you will need to do the above modifications to the file fr-FR.localise.php located under the /language/fr-FR/ directory). If you don’t have the time to do this tedious job, then you can instead do the following change to a Joomla core file to make sure that all languages have the same search limit of your choice:

  • Open the file language.php which is located under the libraries/joomla/language directory.
  • Just before this line (line 582):

    if ($this-&upperLimitSearchWordCallback !== null)

    add the following code:

    return 40; //where 40 is your new search limit

  • Save the file and upload it back.

  • That’s it!

Note that Joomla’s search module, by default, has its maxlength set to 20 – that’s why you’re not able to enter more than 20 characters in the search field of that module. However, the good news is that the maxlength value comes from the function getUpperLimitSearchWord, which means that doing the above will automatically ensure that maxlength is changed to your value of choice (for example, if you changed the value to 40 then the maxlength value will be automatically 40).

Now, if the above hasn’t worked for you or if you don’t have the programming experience to do it – then why not contact us? We’ll fix the issue for you in the speed of light (well, a bit slower, but you get the point), we won’t charge you much, and we are the friendliest programmers on planet Earth – maybe even the whole solar system!

Note: If you want to increase/decrease the lower search limit, then just replace the word upper with lower in the above guide and you’ll be all set. For example, instead of changing the return value of the function getUpperLimitSearchWord, you will need to change the return value of the function getLowerLimitSearchWord.

 

About Us

Since 1996, our company has been focusing on domain name registration, web hosting, server hosting, website construction, e-commerce and other Internet services, and constantly practicing the concept of "providing enterprise-level solutions and providing personalized service support". As a Dell Authorized Solution Provider, we also provide hardware product solutions associated with the company's services.
 

Contact Us

Address: No. 2, Jingwu Road, Zhengzhou City, Henan Province

Phone: 0086-371-63520088 

QQ:76257322

Website: 800188.com

E-mail: This email address is being protected from spambots. You need JavaScript enabled to view it.