Questions tagged [php]

PHP is a server-side scripting language designed for web development but also used as a general-purpose programming language. Joomla is based on PHP.

Filter by
Sorted by
Tagged with
0
votes
1answer
481 views

Upgrade Joomla 1.7.3 to 2.5.0 failed

I need to migrate my joomla 1.7.3 site to joomla 3. So, I first upgraded it to joomla 1.7.4 and 1.7.5 successfully. In the next step I am going to upgrade it to 2.5.0. So I downloaded the update ...
7
votes
1answer
930 views

Joomla Article Multilingual Associations

I am confused. I have a Joomla 3 multilingual website. I managed to associate menu items and everything else, but I have a page where there is an article and below the article I put Joomla Article ...
0
votes
1answer
527 views

Blank page when executing a database query?

What's wrong with this code? I'm getting a blank page for this? <?php define( '_JEXEC', 1 ); define('JPATH_BASE', __DIR__); require_once ( JPATH_BASE .'/includes/defines.php' ); require_once ( ...
3
votes
1answer
95 views

Records in log file

In my site logs folder when i open error.php, i see lots of records per line as one is look like this - 2014-04-03 22:35:54 INFO 2.61.174.50 Joomla FAILURE: Username and password do not ...
6
votes
2answers
1k views

Adding a numerical value to each submenu in Joomla

<?php /** * @package Joomla.Site * @subpackage mod_menu * * @copyright Copyright (C) 2005 - 2014 Open Source Matters, Inc. All rights reserved. * @license GNU General Public License ...
2
votes
3answers
2k views

Plugin development - parse error: syntax error, unexpected 's' (T_STRING)

I'm having a shot at developing my first plugin for Joomla, its just a simple plugin which places some javascript just before the close of the body. The javascript works fine if I place it directly in ...
10
votes
2answers
4k views

Adding joomla's default toolbar in a component view page

I am developing a mvc component for both joomla 2.5 and 3.In many components i saw they added joomla's default command buttons like new, edit, publish, trash, options at top of their settings page in ...
1
vote
1answer
762 views

Hide past items based on date inside foreach loop

I have a custom component that displays "coming soon" items based on dates. I am trying to hide all those items that are past today's date. However if there is no future items it does not display the ...
1
vote
2answers
81 views

Show products based on my custom attributes to second addon domain site

I'm using virtuemart 2.0 and joomla 2.5 with a commercial template mowebso_ecommerce - Default. I want to show some products on my first website eg. firstsite.com and some products on second site eg. ...
1
vote
1answer
356 views

Adding all form parameters in a custom item of the component

I prepared a component and i have to add different categories and custom items with lots of fields in my component.But What i want is to display all the joomla's fields for adding a new item in my new ...
3
votes
3answers
908 views

Security: best practices for disabled_functions and classes

Because Joomla uses so much third party components and such, what are some safe functions and classes to add to the php.ini for disabled_classes and disabled_functions? The reason I ask this is for ...
12
votes
1answer
169 views

Docs use assign by reference (=&) but is this necessary with PHP 5?

I've noticed in the Joomla documentation, such as for JFactory/getSession, that the examples use assign-by-reference (=&), rather than a simple assignment (=). $session =& JFactory::...
3
votes
1answer
680 views

Correct way to verify if the logged in user is super user

As my question implies what i want, i used google to search through the web to get correct answer though simple about how to verify if current logged in user is super user or not in both joomla 2.5 ...
13
votes
2answers
2k views

How can I programmatically get the Joomla database prefix using php?

I sometimes access the Joomla DB via external scripts. The problem I have is that if I ever need to change the prefix, I'll need to edit my scripts again too. Is there a way to programmatically ...
3
votes
4answers
802 views

Override default php session

I'm building a AngularJs app using joomla in background. The AngularJs app get loaded once and then calls the server always through ajax. Some calls happen simultaneously. If I'm using the default PHP ...
7
votes
1answer
4k views

SMTP no error but not sending email

I have been battling with this for some time now. I have built a custom component for forms and it uses Joomla's mail functions to send email. I have checked all the data to make sure it is correct ...
20
votes
3answers
8k views

Whats the correct way for exception handling?

In Joomla core I find still many calls like this: // Check for errors. if (count($errors = $this->get('Errors'))) { JError::raiseError(500, implode("\n", $errors)); ...
7
votes
3answers
275 views

How to resolve `Strict standards` warning for different method signatures across Joomla versions

In updating an extension to support Joomla 3.x we've run into a few cases where the signature for a function has changed since 2.5 and results in a Strict standards warning. For example in the JTable ...

1
10 11 12 13
14