joomla2.5

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

add language constants to Joomla component javascript

冷暖自知 提交于 2019-12-18 13:30:51
问题 My component includes a java script file: $doc->addScript("/components/com_cam/js/cam.js"); I have several client side messages that I'd like to add with language constants, i.e. <?php echo JText::_('COM_CAM_SEND_LABEL'); ?> Easy enough in your front end php code like default.php but what about messages inside cam.js ? Such as my jquery validation: messages: { cam: { required: "Enter a label", minlength: jQuery.format("At least {0} characters required!"), maxlength: jQuery.format("Maximum {0}

What is difference between conservative caching and progressive caching in joomla 2.5?

老子叫甜甜 提交于 2019-12-18 12:47:33
问题 In Global Config in joomla have 2 caching is conservative and progressive, what is difference both ? 回答1: Conservative caching is the standard type of caching. Here’s how it works: A visitor visits a page on your website. Joomla checks if there is a non-expired version of that page in its cache directory. If the cached page exists (and it’s not expired), then Joomla will serve it to the visitor – otherwise, a cached version of the page is created, and that cached version will be served to the

JOOMLA site too slow

◇◆丶佛笑我妖孽 提交于 2019-12-18 07:06:28
问题 my Joomla site is too slow. It approximately uses 8 to 10 s to load main page. I am using xampp. template protostar. PC core i7. OS windows. JOOMLA 3.15. Is it normal ?? OR any any one may please guide me how to debug this issue. 回答1: Oppz i solved it just right now. I disable Xdebug in php.ini and time reduces form 8s to 1s [XDebug] ;zend_extension= "C:\Users\arslan\Desktop\xampp-win32-1.8.1-VC9\xampp\php\ext\php_xdebug.dll" ;xdebug.remote_enable=on ;xdebug.remote_handler=dbgp ;xdebug.remote

My Joomla site crashes with this error SQL code [closed]

爱⌒轻易说出口 提交于 2019-12-13 09:49:08
问题 This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center. Closed 6 years ago . So my joomla site crashes throwing me this error , the weird thing is that the other guy being on my site at the sametime in another state still has my

Why is the CSS not loading in Joomla 2.5.6?

僤鯓⒐⒋嵵緔 提交于 2019-12-13 05:19:58
问题 I recently migrated my Joomla website from localhost to the test-server and after having completed the database imports and configurations(in configuration.php), the css doesn't seem to load although I can see that the css files have the correct privileges[644]. all I can see is mis-aligned text. At first, I thought that since my template was custom, the problem lies in it but when I logged into administrator, the same problem occured, although here the text seems properly aligned. The link

Make an entire <div> linkable when a module is loaded inside to it

ぃ、小莉子 提交于 2019-12-13 04:24:22
问题 My question relates to make an entire DIV linkable when a module is loaded inside to it (Joomla 2.5.latest). I have 4 boxes side by side, all as below in my custom-css. .box1 { width: 22%; height: 225px; border-radius: 5%; -moz-border-radius: 5%; etc. etc. etc. In my HTML I have this: <div class="box1">{module Colours module: Challenges}</div> I use Joomla 2.5. latest and I loaded a module inside a module, i.e. the colours module challenges goes into box1 and box1 is inside a Joomla module

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

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