Joomla

Create a user when I submit a form [duplicate]

ε祈祈猫儿з 提交于 2019-12-25 05:14:19
问题 This question already has answers here : How can I create a new Joomla user account from within a script? (11 answers) Closed 6 years ago . This question unfortunately is fairly specific in that I may/may not need a Joomla! specialist to help me with this (hopefully I don't and someone with good php/mysql knowledge can help). http://pastebin.com/JRhNB4EP - I've had to put my code in pastebin because the file is pretty damn large and I didn't want to flood this page with code. So let me

Automatic Extension Update: Unknown Archive type

∥☆過路亽.° 提交于 2019-12-25 05:00:33
问题 I have created a new version of my Joomla extension. Manual upgrade via zip file or the directory works fine. But the automatic upgrade (which used to work fine before), now gives an error 500 and the following error messages: "Unknown Archive type", "*Update path does not exist" and "Installation unexpectedly terminated: Update path does not exist". I have no idea why those messages appear. The update.xml references the correct zip files. Downloading it manually works just fine. Joomla(/php

How to include an external PHP file into a Joomla article?

大城市里の小女人 提交于 2019-12-25 04:54:16
问题 So basically, I have a single article that I would like to load a PHP file into. This PHP file has a bunch of PHP and Javascript, along with HTML. I need to include this full PHP file into my article since it contains an application form that I need on my website. I have tried the following: Using an extension to allow PHP and Javascript code within an article. Although, this is extremely time consuming since all PHP and Javascript must be wrapped in some special tags for the extension to

How to remove a single product from mod_virtuemart_cart

一世执手 提交于 2019-12-25 04:23:00
问题 I've found the solution by the link http://forum.virtuemart.net/index.php?topic=127483.0 from Virtuemart Projectleader: if (!class_exists('VirtueMartCart')) require(VMPATH_SITE . DS . 'helpers' . DS . 'cart.php'); $cart = VirtueMartCart::getCart(); $cart->removeProductCart($yourId); but it doesn't work. I tried to replace DS with DIRECTORY_SEPARATOR because I use Joomla 3.x but nothing changed At the same time $cart->emptyCart() works Joomla 3.3.6, VM 3.0.3 回答1: This is my solutions function

Joomla: Set up workflows so articles have to pass by an editor before publishing?

雨燕双飞 提交于 2019-12-25 04:00:45
问题 We need for articles to pass by an editor before getting published. Some pages need to pass by two different people. This is beyond the contributor/author/editor roles in the Joomla core, I think, because edits to existing pages need to be held for approval, during which time the original page needs to remain live. Is this possible in Joomla 3.x? 回答1: An extension like this may help you and other options are also ther use 3rd party software like processmaker and integrate it in JOOMLA in

Joomla 2.5: how do i show a component in modal window without menu?

旧街凉风 提交于 2019-12-25 03:49:52
问题 I'm using JHTML::_('behavior.modal'); to launch a component from a link doing <a href="/index.php?option=com_contact&view=contact&id=1&tmpl=component" class="modal" title="contact us" rel="{handler: 'iframe', size: {x: 680, y: 370}}"> Contact example</a> It shows the contact page but also other items like menu and other modules. Is there a way to avoid it and showing only com_contact page? I read that it was possible using &tmpl=component but it does not work. I'm using J2.5 EDIT: if i look

Does joomla store article/ modules text and image path in database?

元气小坏坏 提交于 2019-12-25 03:49:49
问题 I wanted to create an iPhone app for a website which is created using Joomla 2.5. What I was thinking is to create RSS and pass that link in the iPhone app. However, for creating RSS, I was worried about from where should I get the articles text and images that are there? Hence, I wanted to know: does Joomla store the article/ modules text and images path in a database? If yes, which table does it use to store all info? 回答1: Of course it's stored in the database ;-) You should find all the

How to browser cache image from php

六月ゝ 毕业季﹏ 提交于 2019-12-25 03:41:04
问题 I use virtuemart. There are a lot of images about the products. But this images come from a php file(imgtag.php), so I can't force the browser with this code to take the product images to the cache: <FilesMatch "\.(flv|gif|jpg|jpeg|png|ico|ttf|eot|swf)$"> Header set Cache-Control "max-age=2592000" </FilesMatch> Example for product image URL: http://www.myshop.com/components/com_virtuemart/show_image_in_imgtag.php?filename=be6160cc3ede6b58d13f4adaa61f49f7.jpg&newxsize=120&newysize=120&fileout=

Joomla unified logins for forum and a custom made php sub-site

孤街醉人 提交于 2019-12-25 03:39:40
问题 I'm building a site with Joomla where a forum should exist amongst other things. But also I plan to develop a custom made functionality (diary-like) with a php inserts (it really works, for example with jumi). The problem is that I suppose nobody will understand if the forum and this sub-site will have separated logins. I'd use an existing forum authentication for my code also, but I don't like the idea that the login will look like forum-only login. I see there are bridges exist (like

Joomla 2.5 component controller loading

隐身守侯 提交于 2019-12-25 03:36:06
问题 I've been trying to learn how to build a Joomla component. I've been using http://joomlaprogrammingbook.com/ book which is great. I can now do plugins and modules without too much of a problem. However I'm getting stuck with how certain controllers get loaded for components. The site given has the full code if it's needed. The initial controller loaded is: class JoomproSubsController extends JController { /** * @var string The default view. * @since 1.6 */ protected $default_view =