Joomla

JFactory not found

喜夏-厌秋 提交于 2019-12-12 10:26:16
问题 I made a external file in Joomla getuser.php and place it at administrator/getuser.php contain db queries <?php $q=$_GET["q"]; $db = JFactory::getDBO(); // Create a new query object. $query = $db->getQuery(true); $query->select($db->nameQuote('product_name')); $query->from('#__virtuemart_products_en_gb'); $query->where($db->nameQuote('virtuemart_product_id').' = '.$db->quote($q)); $db->setQuery($query); $result = $db->loadResult(); echo "<tr>"; echo "<td>" . $result['product_name'] . "</td>";

Joomla 1.5 to 2.5 with Jupgrade. “undefined migrating error”

落花浮王杯 提交于 2019-12-12 09:56:44
问题 I've try to migrate a website in Joomla from 1.5 to 2.5 using jUpgrade but I've receive the "undefined migrating" error. The files was correctly transferred, but there's no change to the db, and when I try to log on website.com/jupgrade , I land on a page saying "please delete installation folder" and no db was transferred/created (so I have to create it manually and create menu, article, etc. wasting so much time!) Please help. I have already tried removing folder and changing tmp to 777

How to insert HTML tags in Joomla! module title?

南楼画角 提交于 2019-12-12 09:51:19
问题 What I'm trying to do is to add some HTML tags to my Joomla! module titles. I will need something like this Some <b>Title</b> but when I save !Joomla trims the titles and remove all HTML tags. I've check the administrator/com_content, which I think should be responsible for inserting the database data, but I couldn't find the answer there. Can anyone help me with this headache? 回答1: Check out ../templates/system/html/modules.php You can style your module structure in HTML. function modChrome

how to edit header tag in joomla website

有些话、适合烂在心里 提交于 2019-12-12 09:15:51
问题 my website is created in joomla 1.5 , i wants to edit my website pages header tags. is there any extention available. 回答1: I'm assuming you mean you wish to edit the content of your head tag. That is elements between . The <header></header> tag is only used in HTML5 and quite sure that's not what you meant. As for the head tag, you add that yourself in your template and can add any content you wish between those tags. In most CMS's you have complete control in what appears between the head

What user account does IIS 8.5 use when the app pool is using 'ApplicationPoolIdentity'?

回眸只為那壹抹淺笑 提交于 2019-12-12 08:32:28
问题 I am working with a new Windows 2012 R2 server, running IIS 8.5. I have PHP and a Joomla site installed in the default wwwroot folder for testing purposes (C:\inetpub\wwwroot). Right now, the default web site is using the 'Default Web Site' application pool which in turn is using the 'ApplicationPoolIdentity' identity. The Joomla site loads without issue, but problems start appearing when it needs to write to the file system (i.e. new modules, changes to the configuration file, etc.). The

joomla: customize text in user menu

三世轮回 提交于 2019-12-12 06:41:16
问题 In the user-menu module, I want to change the text in the div.login-greeting element (which is a child of the form#login-form element). Right now, it says "Hi Steph," (supposing the username is Steph) I want it to say "Hi, Steph". That's all. I can't figure out if what I need to do is a template override or something else... because I can't figure out where the heck these elements come from. I am fairly new to Joomla, and intermediate in php. I've found working with the module manager, adding

What disadvantages/problems are there when integrating Joomla and ASP.Net web pages?

孤街浪徒 提交于 2019-12-12 06:08:22
问题 A friend of mine really likes using Joomla as a base for his websites. He also likes the power that Asp.Net has and can code in VB.Net. He wants to use Joomla as the "Master Page" and Asp.Net/VB.Net/SQL Server to handle the main business logic of the application. He is planning on using the Joomla Wrapper Module (an IFrame , joomla modules) to integrate the ASP.Net into the Joomla website. Joomla will be able to handle the security (users,roles,registration), menu (based on roles), static

Save an array of arrays to database

≡放荡痞女 提交于 2019-12-12 05:52:22
问题 After lots of searching and failing after trying.. i am posting this question here.. After half part of my actual query [here][1] i am not able to save the resulting array of arrays to the database.. Initially i had an array of inputs which i turned into array of arrays of inputs now my save function looks something like this function store() { foreach($post['cats'] as $cat) { $query = 'insert into #__joomd_item_cat values('.$cat.', '.$row->id.')'; $this->_db->setQuery( $query ); if(!$this->

url rewriting in joomla with htaccess

。_饼干妹妹 提交于 2019-12-12 05:49:41
问题 my joomla url is : http://sitename.com/index.php/search/door?slug= 101-jessica-alba-202 and make it to url like : http:// 10-jessica-alba-194 .sitename.com/ so what is the .htaccess rule for this. ?? i tried RewriteCond %{HTTP_HOST} ^(([0-9]+)-(.*)-([0-9]+))\.sitename\.com$ RewriteRule ^$ index.php?option=com_name&view=viewname&slug=%1 回答1: There are multiple steps that need to be done in order to accomplish what you want: You will need to enable wildcard subdomains on your domain (this can

How to get notification when someone likes or comments via Facebook Social Plugin

一世执手 提交于 2019-12-12 05:36:39
问题 I have integrated the Facebook Social Plugin into my Joomla Website. I have a Like button and a Comment box. How can I get notified when someones Likes the page? How do I view a list of users who Liked the page? How do I get notified when someone comments on the page? 回答1: Are you using XFBML or an iframe to implement the Like button? I If you're using XFBML, you can give Facebook a callback function whenever an event happens through Facebook. When someone 'likes' your webpage, Facebook