Joomla

Strict Standards: Non-static method (joomla and roksprocket)

我的梦境 提交于 2019-12-13 04:20:49
问题 Strict Standards: Non-static method K2ModelItemlist::getCategoryTree() should not be called statically, assuming $this from incompatible context in C:\xampp\htdocs\virgin\components\com_roksprocket\lib\RokSprocket\Provider\K2\Filter.php on line 151 All I have this error...I am using RokSprocket, Joomla and received the above error... It seems to have originated from protected function category($data) { if(file_exists(JPATH_SITE.'/components/com_k2/models/itemlist.php')) require_once (JPATH

JToolBarHelper::Custom syntax

落花浮王杯 提交于 2019-12-13 04:18:50
问题 I can't quite figure out exactly what this line does from the docs: JToolBarHelper::custom( 'masterslavesync', 'save', '', 'Save', false, false ); Is it calling a masterslavesync function somewhere (controller)? Or do I have to register it with $this->registerTask() ? 回答1: This code is used to create custom button in the joomla admin.This code will create a save and when someone click on this button it will call masterslavesync function defined in the controller. if you want to check this

Get component content in joomla

余生长醉 提交于 2019-12-13 04:14:03
问题 I'm making a system plugin and I need a way to put html before any components and after header,menu ecc. in other words I need to put html before this in template: <jdoc:include type="component" /> Thank you 回答1: I found what I need: // get the document object. $doc = JFactory::getDocument(); // get the buffer $buffer = $doc->getBuffer('component'); // your string to insert $insert_string = "<p>I've been inserted</p>"; // insert the string $buffer = $insert_string . $buffer; // reset the

Unable to put Python code to Joomla

北城余情 提交于 2019-12-13 03:44:25
问题 I have a Python code from Google app engine. I need to implement it to Joomla. How can you implement Python code to Joomla? [edit after the 1st answer] It is enough for me that I can put the code to a module position. 回答1: Joomla is PHP based whereas Google App Engine is Python based (and tends to use Django). Your best bet is to either find an alternative to the python code, find someone to translate it, or learn python and manually translate it. There's no straight python to php conversion

Why is my Joomla site generating weird session ID's?

五迷三道 提交于 2019-12-13 03:29:17
问题 First of all, my URL - http://www.candoboatloans.com.au In webmaster tools I am receiving many links such as: http://www.candoboatloans.com.au/?wvsessionid=wv7d73ec84dc9a4a97b27fb3928927d405 http://www.candoboatloans.com.au/used.html?wvsessionid=wv8dfe2ff8bc24463f894053b1e5153d0b http://www.candoboatloans.com.au/jet-ski-finance.html?wvsessionid=wv246bfb5c95524129b0751fbc91dab2ee Something seems to be auto-generating these weird peramaters since new ones keep popping up in webmaster tools. I

PHP - Moving multiple files with different files names to own directory

我怕爱的太早我们不能终老 提交于 2019-12-13 02:59:58
问题 Hi wonder if you can help, I'm looking to do this in PHP if someone can help me. I have a number of files that look like this: "2005532-JoePharnel.pdf" and "1205121-HarryCollins.pdf" Basically I want to create a PHP code that when someone ftp uploads those files to the upload folder that it will 1) Create a directory if it doesn't exist using there name 2) Move the files to the correct directory (E.g. JoePharnel to the JoePharnel Directory ignoring the number at the beginning) I have looked

How to send the task variable in Joomla

余生长醉 提交于 2019-12-13 02:44:52
问题 I have a menu item in joomla (virtuemart) with url index.php?option=com_virtuemart&view=manufacturer Now, in view.html.php of manufacturer view I added a function called jump as function jump(){echo "hello";} I added task=jump in the url so that it becomes index.php?option=com_virtuemart&view=manufacturer&task=jump But even now the default display function executes and not the jump function. Why? Please help me. Thanks 回答1: The task in this url index.php?option=com_virtuemart&view

Email Message configuration for forgot password

泄露秘密 提交于 2019-12-13 02:44:37
问题 I am using joomla's default login module. In forgot module section, I have added one more column called username. Now how shall I send this username along with the token id in the mail? Please help me. Thanks in advance. 回答1: Open the following folder: root/components/com_user/models/reset.php Joomla 2.5 Lines 383 to 388, change this: $body = JText::sprintf( 'COM_USERS_EMAIL_PASSWORD_RESET_BODY', $data['sitename'], $data['token'], $data['link_text'] ); to this: $body = JText::sprintf( 'COM

Joomla include database functions

冷暖自知 提交于 2019-12-13 02:14:57
问题 I'm using Joomla 1.5. I have created a custom component that pulls data out of the database perfectly. I initialize the database in my main component file like this: $db =& JFactory::getDBO(); The problem is that I have a jQuery autocomplete plugin on my component page that makes calls to a PHP file from my component folder. That PHP file searches the database for matching results but I can't do the query because I can't call $db =& JFactory::getDBO(); because this is a custom PHP page and I

Change value of baseurl in joomla

不问归期 提交于 2019-12-13 01:14:59
问题 How to change baseurl value in joomla? echo $this->baseurl 回答1: Baseurl is automatic function of joomla.. defined at /templates/ja_purity/ja_templatetools.php -> line 165 If you clarify your problem, it will be easier to help you. 回答2: $this->baseurl = 'yourvalue_'; 来源: https://stackoverflow.com/questions/7137080/change-value-of-baseurl-in-joomla