Joomla

Joomla to Static HTML website

☆樱花仙子☆ 提交于 2019-12-24 00:24:42
问题 I have a Hindi magazine website hosted on Joomla. Though helpful from publishing point of view the site was a maintenance nightmare. Joomla is so much susceptible to hacker attacks. My host will often shut down my site due to bots attacking my website. Recently I relaunched the site as a new Wordpress based site on a different name. The Joomla based website would therefore never be updated anymore. However, I do want to maintain the old content. I have used PHP but hardly am a power user. I

Add a quick icon in Joomla 3

落爺英雄遲暮 提交于 2019-12-23 20:12:40
问题 Anyone know how to add a quick icon or maybe even edit the current list of quick icons in Joomla 3.1? To be more specific, that would be the series of links that appear on the right side of the screen immediately after logging in to Joomla admin. I searched and couldn't find this question on stackoverflow. 回答1: If you go to the following file: administrator/modules/mod_quickicon/helper.php You will see on the start of line 51 , arrays such as the following: array( 'link' => JRoute::_('index

Joomla PHP: Checkbox won't uncheck

有些话、适合烂在心里 提交于 2019-12-23 19:33:27
问题 Making a simple component. If I save a new record with the box checked, it saves fine. If I go back and uncheck a previously checked item it reverts back to checked. I thought it had something to do with a hidden field, played with putting one of those in manually but that didn't fix it either so took it out. Here's where I'm at: An xml snippet: <fieldset name="checks"> <field name="checkbox1" type="checkbox" label="First Checkbox" value="1" filter="intval" /> <field name="checkbox2" type=

K2_content module rating

扶醉桌前 提交于 2019-12-23 17:24:35
问题 I've been reconstructing the standard K2 rating in the category_item.php to view ratings from to show as stars to show as number. What I did was, I replaced this code: <?php if($this->item->params->get('catItemRating')): ?> <div id="catItemRatingBlock"> <div class="itemRatingForm"> <ul class="itemRatingList"> <li class="itemCurrentRating" id="itemCurrentRating<?php echo $this->item->id; ?>" style="width:<?php echo $this->item->votingPercentage; ?>%;"></li> <li><a href="#" rel="<?php echo

Set page title in Joomla! 3 from a module

最后都变了- 提交于 2019-12-23 17:12:39
问题 I have an existing module, which I display from an article by using {loadposition custom_position}. The article is linked to a menu item. I want to be able to set a customized page title from this module, overwriting the page title set by the menu item. I tried using $document = JFactory::getDocument(); $document->setTitle('Set your title here'); But it does not set the page title. Is it possible to set the page title from within a module, or can it only be done within a component. 回答1: The

MySQL Query performance help, many of the same table being joined

霸气de小男生 提交于 2019-12-23 17:02:58
问题 I am writing a PHP script that creates an SQL query. This script and database is for the Joomla CMS, and specifically it's querying the SOBIPro component's tables (to use the data entered there in this component). However, due to the way that the SOBI Pro tables are handled, with each instance of a field being its own row in a table, this means including a separate instance of the table for every field I want to pull back. This doesn't seem very efficient, and in fact in this one search it

What does this regular expression in joomla mean?

余生长醉 提交于 2019-12-23 12:59:09
问题 I was trying to install joomla on my website. While installing joomla, I was asked to create a MYSQl user. But I couldn't because, everytime I type as password, it gives a message saying the paswword doesn't meet the reqular expression requirement. Given below is the regular expression '(?=^.{8,}$)((?=.*\d)|(?=.*\W+))(?![.\n])(?=.*[A-Z])(?=.*[a-z]).*$' What does this mean? What password can I give? Give an example of a password that will pass this regular expression test. Please help me 回答1:

how to send a input file type via javascript in joomla modules

与世无争的帅哥 提交于 2019-12-23 12:32:21
问题 I want to send a file with javascript to php file . I have this form in my php file <form action="" method="post" enctype="multipart/form-data"> <label for="file">Filename:</label> <input type="file" name="file" id="file1"><br> <p id="poi">upload</p> <p id="plo"></p> </form> and white this code in js file jQuery(document).on("click","#poi",function(){ var objfile=new FormData(); var file=jQuery("#file1").get(0).files[0]; objfile.append("iefile078",file); var ajax ; ajax.upload

Joomla 3.1 Override Libraries

徘徊边缘 提交于 2019-12-23 12:16:37
问题 I have a Joomla 3 website and want to override libraries/cms/html/html.php . Is it possible? I tried to use same technique described here How to override Joomla System Messages - message.php template I put my html.php file in templates/MY_TEMPLATE/html/html.php this does not help, neither helps if I put in my template index.php file the following: require_once JPATH_ROOT .'/templates/'. $this->template .'/html/html.php'; 回答1: You can't override it using template overrides. It's an issue we

CSS issue - margin top - Google Chrome [closed]

橙三吉。 提交于 2019-12-23 12:03:50
问题 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 . On my Joomla site I have a problem with the margin-top only in Google Chrome. Firefox & IE are ok. There are 27 pixels, the menu is above. I use a theme