Joomla

Why do i have to log in twice in backend to log in?

Deadly 提交于 2019-12-19 11:43:50
问题 I have to put my username and password in twice for the administrator back-end. The first time I type in my user name and password, I return to the login with blank fields. The second time I get logged in... Are some users experiencing the same? Weard can someone help? There is one post with a user having the same problem, but I did not find the usefull answers: http://forum.joomla.org/viewtopic.php?t=558305 Joomla version 2.5.9 回答1: The login problem was related to my domain configuration

500 - An error has occurred – DB function reports no errors when adding new article in Joomla

二次信任 提交于 2019-12-19 11:37:13
问题 I have an article that I want to publish on my Joomla! site. Every time I click apply or save. I get error 500 - An error has occurred! DB function reports no errors . I have no idea why this error comes up, al I can think is that it's a server error. I'm using TinyMCE to type articles together with Joomla! 1.5.11. Updated: I turned on Maximum error reporting in Joomla! and in the article manager I tried to save the article and got these couple of errors. Please check screenshot I tried

Intermittent simplexml_load_file(): I/O warning on local Joomla site

让人想犯罪 __ 提交于 2019-12-19 07:28:32
问题 I've just started getting an intermittent error on all pages of a joomla dev site I'm running on localhost. The full warning is: Warning: simplexml_load_file(): I/O warning : failed to load external entity "/site/language/en-GB/en-GB.xml" in /site/libraries/joomla/language/language.php on line 1354 The strange thing is that it is intermittent and a few refreshes will usually resolve the problem. Is there a code problem that could be causing this or is it something else? 回答1: Let me put it

How to get article text by article ID in Joomla?

不打扰是莪最后的温柔 提交于 2019-12-19 05:59:46
问题 I want to get article text by passing article ID from the joomla template. 回答1: Simple, providing you sending an article id with post/get and using variable "id" as its number: $articleId = JRequest::getInt('id'); $db =& JFactory::getDBO(); $sql = "SELECT fulltext FROM #__content WHERE id = ".intval($articleId); $db->setQuery($sql); $fullArticle = $db->loadResult(); if(!strlen(trim($fullArticle))) $fullArticle = "Article is empty "; EDIT: to get articleId from anywhere: $articleId = (JRequest

joomla spambots error

痴心易碎 提交于 2019-12-19 04:37:14
问题 Using widgetkit map (external component by yootheme) in joomla 2.5, joomla detect when I insert an email address and give me this error This email address is being protected from spambots. You need JavaScript enabled to view it. Javascript obviously is enabled. 回答1: do you have the plugin Content - Email Cloaking active ? Disable it and everything should be fine. 回答2: If you're a programmer or webdesigner, you should look for any JavaScript error messages with a tool of your choice, which

Joomla - Overriding getItem method

我只是一个虾纸丫 提交于 2019-12-19 04:09:14
问题 I want to override the method getItem() found in file \administrator\components\com_content\models\article.php line 257 public function getItem($pk = null) I need to modify the return value based on the value of variable $pk. How do I do this? I am hoping to find a way to not to modify the core. Also, if override is possible, can I make a plugin out of it? Am using Joomla 2.5.9 回答1: With some more searching, came across a beautiful solution. All I needed was to override the model (article.php

Adding custom field in default joomla 3.1.1 registration form

时间秒杀一切 提交于 2019-12-19 01:03:11
问题 Recently I have stumbled upon a situation in Joomla 3.1.1 where I need to add a custom field attached with default registration form. I surfed the existing resources which say that I should navigate to joomla_root/components/com_users/models/forms/registration.xml and then change the file accordingly. I have done that but nothing is showing up. I also need to change registration.php in model and controller too. So, I need your inputs on how to do that. I can't use profile plugin or commercial

Adding custom field in default joomla 3.1.1 registration form

本小妞迷上赌 提交于 2019-12-19 01:03:00
问题 Recently I have stumbled upon a situation in Joomla 3.1.1 where I need to add a custom field attached with default registration form. I surfed the existing resources which say that I should navigate to joomla_root/components/com_users/models/forms/registration.xml and then change the file accordingly. I have done that but nothing is showing up. I also need to change registration.php in model and controller too. So, I need your inputs on how to do that. I can't use profile plugin or commercial

HttpWebRequest POST and Cookies

时光毁灭记忆、已成空白 提交于 2019-12-18 18:23:11
问题 Hi am trying to make an application that post data to a joomla login page but the only thing i get back is cookies is not enabled. Function GetPage(ByVal Url As String) As String Dim CookieJar As New Net.CookieContainer Dim enc As Encoding = Encoding.GetEncoding(1252) Dim Data As Byte() = Nothing Dim PostData As String = "" If InStr(Url, "?") <> 0 Then PostData = Url.Substring(InStr(Url, "?")) Url = Replace(Url, PostData, "") Url = Url.TrimEnd("?"c) Data = enc.GetBytes(PostData) End If Dim

Logging in Joomla platform 11 JLog

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-18 16:57:47
问题 I'm playing with the new Joomla 1.7 system built on the Joomla platform 11-- and all my logging code from earlier versions of Joomla no longer work (they appear to be writing log entries but with improper syntax, so the messages are blank). Does anyone know the proper syntax for the new version of JLog? Here's my existing code-- $log = &JLog::getInstance('test.log.php'); $log->addEntry(array('COMMENT' => 'A test Logging message')); This creates the log file, but the actual log entry looks