Joomla

Strict Standards: Non-static method StreamComment::getCommentsHTML() should not be called statically, assuming $this from incompatible context

蹲街弑〆低调 提交于 2021-02-05 11:46:00
问题 I am using Offiria (joomla based social networking script) and when I click on the link "Show All Comments" to see all posted comments under a link, I get the following error right above the first comments. The function works so all comments expand and I can see them all but the error sits there as well. Strict Standards: Non-static method StreamComment::getCommentsHTML() should not be called statically, assuming $this from incompatible context in C:\Program Files\Ampps\www\offiria\components

Joomla schedule plugin activation

自闭症网瘾萝莉.ら 提交于 2021-01-29 11:16:57
问题 I have a problem for a long time about having my Joomla site go in offline mode in certain part of the week. I want to make in unaccesable to users for example thursday 12pm to friday 12pm. Is there some kind of plugin or something that can schedule such task? (sorry for bad English) 回答1: I elaborate on Sergey's answer. You could write a system plugin as I explain below, it won't take long. I'm not sure whether it exists already. Instead of putting the site offline, your plugin can redirect

Debian 9 + PHP7.0-FPM + NGINX 1.10.3-1 path_info issue

天涯浪子 提交于 2021-01-28 10:12:11
问题 I'm using DigitalOcean Debian 9 + PHP 7.0 + NGINX 1.10.3-1 and trying to install Joomla! CMS, but at the very first installation screen (example.com/installation/index.php) I've noticed a broken image (which is the Joomla logo), and it looks like this: img src attribute for that image contains "/template/images/joomla.png", but the image is actually located at "/installation/template/images/joomla.png" which means I'm missing the "/installation/" part. Here is my nginx conf part for the PHP:

Debian 9 + PHP7.0-FPM + NGINX 1.10.3-1 path_info issue

老子叫甜甜 提交于 2021-01-28 10:04:31
问题 I'm using DigitalOcean Debian 9 + PHP 7.0 + NGINX 1.10.3-1 and trying to install Joomla! CMS, but at the very first installation screen (example.com/installation/index.php) I've noticed a broken image (which is the Joomla logo), and it looks like this: img src attribute for that image contains "/template/images/joomla.png", but the image is actually located at "/installation/template/images/joomla.png" which means I'm missing the "/installation/" part. Here is my nginx conf part for the PHP:

Joomla 2.5 login with curl

醉酒当歌 提交于 2021-01-28 05:03:36
问题 I'm trying remotely access joomla 2.5 with curl in php. Later I want to create new content too, but for now i have troubles with login. For me is curl new so I don't know what am I doing wrong. I get this message: "Your session has expired. Please log in again.". Here is my code so far: $url = "http://localhost/joomla25/administrator/"; $cookie = "tmp/cookie".time().".txt"; $ch = curl_init(); curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE); curl_setopt($ch, CURLOPT_COOKIEJAR, $cookie); curl

Joomla 2.5 login with curl

自古美人都是妖i 提交于 2021-01-28 04:57:16
问题 I'm trying remotely access joomla 2.5 with curl in php. Later I want to create new content too, but for now i have troubles with login. For me is curl new so I don't know what am I doing wrong. I get this message: "Your session has expired. Please log in again.". Here is my code so far: $url = "http://localhost/joomla25/administrator/"; $cookie = "tmp/cookie".time().".txt"; $ch = curl_init(); curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE); curl_setopt($ch, CURLOPT_COOKIEJAR, $cookie); curl

How to use prepare statements / bind values in a query in Joomla 3?

此生再无相见时 提交于 2021-01-27 14:13:57
问题 I'd like to know how to bind values in where clause. I have understood that is something that MUST be done for security reasons. $db = JFactory::getDbo(); $query = $db->getQuery(true); $query ->select("*") ->from($db->quoteName("food")) ->where("taste = :taste") ->bind(':taste', 'sweet'); $db->setQuery($query); $rows = $db->loadAssocList(); I'm getting this error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use

Changing query string key name with htaccess rewrite rule

烈酒焚心 提交于 2021-01-20 13:15:09
问题 We are changing affiliate software and I can't figure out how to rewrite the name of the query string key to achieve the following: https://www.example.com/path/to/productx?old_key_name=numeric_value Redirect to: https://www.example.com/path/to/productx?new_key_name=numeric_value So far I have: RewriteCond %{QUERY_STRING} ^old_key_name=([0-9]+) RewriteRule ^ %{REQUEST_URI}?new_key_name=%1 [L,R=301] Which doesn't retain the full path to the product, but results in: https://www.example.com

Joomla网站隐藏后台登陆地址

和自甴很熟 提交于 2021-01-19 19:36:49
Joomla网站后台管理默认登陆地址一般都是网站域名加administrator,这样安全性可能有些低,那么如何更改网站后台管理地址呢?接下来就来介绍一个方法。 下载jSecure Authentication插件并后台安装扩展 在组件设置中找到jSecure Authentication,点击Basic Configuration 然后在这里添加自定义字符。例如我这里添加的是backend 更改完之后点击保存,重新访问后台登陆地址,你会发现无法访问到后台登陆界面了。这时候 您需要在您的后台登陆地址后面加上"?您定义的字符",例如,我设置的是backend,所以新的后台地址是www.xxx.com/administrator?backend,这样就可以隐藏起来您的后台登陆地址啦! 来源: oschina 链接: https://my.oschina.net/u/3761169/blog/4913154

提升Joomla网站运行速度的方法

落爺英雄遲暮 提交于 2021-01-12 09:18:28
无论您是运行个人博客、企业网站、还是Joomla电子商务网站,您最关心的都是网站可以吸引更多的流量,提高流量的转化率,对吗?那么我们今天来了解影响流量转化率的因素之一 ——网站运行速度。 提升您的网站运行速度,专业网站内容需要涉及很多技术方面。在这里,就不去过多描述它们,而是分享一些行之有效的策略来加速和优化Joomla网站。网站速度被认为是影响流量转化率的最重要的因素之一。为什么速度很重要? 多项研究表明,快速加载的网站可以显着提高转化率并促进销售。几年前,沃尔玛宣布,网站加载时间在2秒内,他们的转化次数达到了顶峰,随着页面加载时间的增加,转化次数逐渐下降。在下面的图表中,您可以注意到,当网站速度从0-1秒降低到3-4秒时,总体转化和销售量是如何波动的。 一项调查表明,有40%的人选择离开网站,因为网站的加载时间超过3秒。那么您希望您的Joomla网站应该更快速的加载。在这里,我将分享一些有关Joomla速度优化的有用技巧。 选择可靠的虚拟主机 选择最佳的Joomla托管时做出正确的决定被认为是加快Joomla网站速度的关键。想为什么?您网站的文件实际上托管在远程服务器上。 当最终用户在浏览器地址栏中点击您的站点URL,并且如果需要花费一些时间从服务器检索数据到最终客户端时,肯定会增加站点加载时间,并且将损失大量的交通。那么什么是最好的解决方案?为了解决这个问题