People who code: we want your input. Take the Survey

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
2
votes
4answers
127 views

How to use cookies to populate RSForm fields without notices/warnings?

I have used this code to save the RSForm data in a cookie and if the user tries to fill in the same form again, the previously entered data is loaded as default values: Script called on form display: ...
2
votes
1answer
285 views

Add multiple recipient email addresses Joomla Page Builder

I am using Joomla and SP Page Builder. I have back-end side and front-end side. I would like to add multiple recipients for sent emails from my contact form. I have found related codes for sending ...
2
votes
2answers
248 views

How to query certain rows from a table based on other associated rows in the same table?

I'm trying to query my jos_rsform_submission_values table for FieldValue data in rows with a FieldName of Container# which shares a SubmissionId with another row where the FieldValue is "Pending" and ...
2
votes
1answer
513 views

Access PHP Session from Joomla backend

I have a php session value like this, $_SESSION['variable'] = "value"; How to access this session value in Joomla admin? This session value is stored in PHP file and not in Joomla front end (php ...
2
votes
1answer
26 views

What type of extension processes non-HTML markup in an article?

I'd like to develop an extension that processes images and related data using article markup, such as is done by Articles Anywhere, for example: {article 999}{/article} In my case it would look ...
2
votes
1answer
376 views

Custom Module delete from database with AJAX

I have been trying to get my head around Joomla's com_ajax component for some time with a view to using it in my custom module. The module displays data from a component. One of the form fields is of ...
2
votes
1answer
653 views

Correct ways to verify update query is successful under conditions

I was trying to find out correct ways to verify db update query is successful but some problems i am fetching. Even if update query($db->execute()) is not done/row does not exists.... but it ...
2
votes
1answer
117 views

How to insert data properly in Joomla article with content plugin?

I have created a content plugin which adds extra field on Joomla default article editor window and everything working as expected. But the problem is with existing/old articles created before ...
2
votes
1answer
440 views

Where query in Joomla component - what file do I edit?

Okay, so I am completely new to Joomla and I am trying to edit the source files of a component I built using component-creator.com. I have a database which stores different data for multiple ...
2
votes
1answer
55 views

How does Joomla! URL Re-writing works?

How does Joomla decide which module is supposed to be visible on a particular menu/web-page? I mean we only put the RE-WRITED URL in the browser and it automatically determines which menu it belongs ...
2
votes
1answer
329 views

Module to show selected articles in frontend with links to article page

I am writing a module to allow admins to select upto 3 different articles (taken from Joomla Content) to show in the frontend of a site. I want to show the article title and the intro image, along ...
2
votes
1answer
2k views

Joomla administrator error Call to a member function isAdmin() on null

I' m trying to login in Joomla Administrator (Joomla 3.5) and I am getting this error: Fatal error: Call to a member function isAdmin() on null in /var/www/html/plugins/system/stats/stats.php on ...
2
votes
1answer
65 views

How to develop a survey extension which prevents respondents from taking a survey more than once?

I'm looking for advice on how to make a survey for my Joomla production (3.6.4) site. A key requirement is to restrict respondents to only taking the survey once (i.e. preventing 'ballot-box' ...
2
votes
2answers
86 views

How to make it easier for a client to update Joomla website?

I'm new to Joomla! and I'm designing a website for a client, my very first in Joomla!. He doesn't know how to code, so I'm trying to make it easier for him to update content after I finish with the ...
2
votes
1answer
240 views

Where to prevent field value change in custom component form record?

Where is the best place in Joomla MVC (server-side) to forbid users from changing a value in a pre-existing form record? In JTable check / bind/ JModel prepareTable, or elsewhere? For context, I have ...
2
votes
2answers
237 views

Set module assignment at menu creation

I have a component which creates content pages for custom entities. I have an xml which allows to set those pages as menu items of that entity type. I have 1 module that I always want to display on ...
2
votes
2answers
335 views

Trying to repair or eliminate “Written by” author field in article view

I'm trying to figure out where in the heck is the "Written by" tagline displayed at the top of each news article...basically, which css/php/whatever file holds the layout for articles and would ...
2
votes
1answer
91 views

Filter an IP address

I've written the following to get the user IP: private function getIpAddress() { $server = JFactory::getApplication()->input->server; if (!empty($server->get('HTTP_CLIENT_IP'))) ...
2
votes
1answer
60 views

is there any workaround for viewing different admin template according to user role

This will work like e.g. If user is having super administrator access level, then user will be redirected on the default Isis administrator template. But if user is having access of administrator ...
2
votes
1answer
175 views

jquery mini slider, generate unique id

On my Joomla site, I am using a jQuery gallery, where there are 2 instances of it. The problem is that upon hovering on a thumbnail to show as the main image, it shows that image on both galleries. ...
2
votes
1answer
111 views

mb2portfolio increase skills limit

I am using a component called mb2portfolio with Joomla 3.4.8 and I'm having difficulties with the skills limit. It seems that the skills limit is set at 12, but I need 25 as the limit. Please could ...
2
votes
2answers
1k views

Dropdown default value

Hi my dropdown getting value from below code: public function getFloorsHTML() { $jinput = JFactory::getApplication()->input; $db = JFactory::getDbo(); $query = $db->getQuery(...
2
votes
1answer
1k views

Calling category title params from a com_content

I have tried to search on every Joomla site to find a solution but haven't found a proper result yet. I have created this custom module for my page and I need to display the "corrent" category title. ...
2
votes
1answer
326 views

Strange behaviour with bootstrap nav in Joomla 3

I am using bootstrap's nav in the menu (using a module called mod_bootstrapnav) Now the issue is that when the menu is has subitems, I have to follow these steps to get the submenu to display: 1) ...
2
votes
1answer
969 views

How to call Users controller's method from any custom component with argument?

Can any one suggest how I can call the Users default controller's methods, like activate or any other, that I have created in User controller of Admin site with argument?
2
votes
1answer
5k views

Echo content inside foreach only once

I have written the following PHP, to basically show a LI if the status is set to Offline or Delay: <?php if(count($rows) > 0) { foreach($rows as $row) { ...
2
votes
1answer
341 views

Joomla 3.4.x: Tags are not saved

I would like to use the tagging-function of Joomla! in my component. To get that working I created a postflight which is being executed after installation: function postflight($type, $parent) { $...
2
votes
1answer
492 views

Joomla 3 Module Save Event

I am searching for an event that is triggered after saved a specific Module, for a Plugin. Like the onContentAfterSave Event for the Content Group. Is there such an Event, or how can I trigger such ...
2
votes
1answer
1k views

How to load and use external libraries in a component?

I am wondering how to load "external" php-libraries into my component. I would like to fetch mail via imap. To get this working, I would like to use a lib which is able to handle smime-encoded mails. ...
2
votes
1answer
750 views

Load a module between modules in the same position

I'm not as expert in php, so sorry in advance (i'm using Joomla! 3.3.6 in Italian). What I want to do / get is: - create and enable an HTML module into Joomla, with position "position-x" (which does ...
2
votes
1answer
264 views

Netbeans code formatting comment blocks

I use Netbeans for Joomla extensions development, I want to stick to Joomla coding standards but I have a problem with the first phpdoc comment block. I know this is an stupid question but it's ...
2
votes
1answer
608 views

Customising the Virtuemart confirmation e-mail?

I am using Joomla 1.5 and Virtuemart 1. With the order confirmation e-mail sent to the seller, is it possible to not show attributes that have the default option selected? (not changed) For example ...
2
votes
1answer
9k views

Inserting php in a custom html module

I'm trying to introduce a simple php in a custom html module and it doesn't let me do it.Why? This is the code: <p> </p> < ? php echo " Hello World" . "\n"; ?>
2
votes
3answers
228 views

PHP get each line of textarea in jform

I am building a joomla 3 component. I have a text area set up in my xml document where the user can add additional JavaScripts (one per line). I then have some php which takes each line and adds the ...
2
votes
1answer
342 views

Joomla 3 overwrite user validation rule

I have currently a joomla3 install, and I want to overwrite the server-side validation, and the clientside validation of the username (I only want users to be able to sign up with a phonenumber)... ...
2
votes
1answer
516 views

Pagination in custom RSS feed reader

I have built a module to read a specific RSS feed and output a list of the feeds. The feed is read like this: <?php $FeedURL = $params->get('FeedURL'); $rss = simplexml_load_file($FeedURL); ...
2
votes
1answer
715 views

Jquery marquee script not working in joomla?

I want to marquee some content divs with continues scrolling. I create a module then added the jQuery from this url: https://github.com/aamirafridi/jQuery. This code is working successfully in our ...
2
votes
1answer
393 views

Joomla 3 LDAP username won't allow required special character

When using LDAP login authentication domain\username is the format that we need to use but Joomla will not allow this. When trying to save these users in Joomla backend the format is rejected due to ...
2
votes
1answer
53 views

Using hooks in Joomla to add a Single Sign-On link in main page of Joomla

I have implemented SSO (Single Sign-On) in Joomla using OKTA and now my goal is to add a link in the main login page of Joomla using hooks. To do this, I have added one checkbox in the service ...
2
votes
3answers
95 views

Cannot Connect To MSSQL Server

I am using php 7 and trying to connect to mssql server. I have this code: <?php $serverName = "server"; //serverName\instanceName $connectionInfo = array( "Database"=>"...
2
votes
1answer
67 views

How do I pass _JEXEC to a php file?

I have a form in my Joomla! site. Once completed, the form should send an e-mail but only if some conditions have been met. Not having been able to use standard, commercially available mailers while ...
2
votes
1answer
348 views

TypeError: Form is Null on Button in Admin toolbar

I am receiving TypeError: form is null in the browser console when I select a custom button added to a form using JToolbarHelper. I can insert the button to any other component as is and it will ...
2
votes
1answer
235 views

0 - Using $this when not in object content

I moved a website from server (PHP 5.6.38) to localhost (PHP 7.2.10). And I receive this error in the page title (in the chrome tab): 0 - Using $this when not in object content While searching ...
2
votes
1answer
36 views

Make div disapear after a while

I have made a page, where if the user update its form, the backend will send the user back to the form with a message like this: header('loaction:/index.php?msg'); On the index.php site, it loads ...
2
votes
1answer
612 views

Convert line breaks in php textarea

I have a kind of a guestbook on my page. It's just a common textarea like this: echo ' <textarea name="msg"></textarea>'; and then I use a form to send me to the backend on ...
2
votes
1answer
211 views

Joomla Migrating Live Site To Localhost -Navigation Not Working

I just migrated a Joomla site from live to localhost. Have the front end up and can access the backend without problem. Front end wise none of the menu items work. I have renamed the live site ...
2
votes
2answers
220 views

How can I translate SQL code into something that Joomla will take?

I am in the same case discussed on https://stackoverflow.com/questions/11709043/mysql-update-column-with-value-from-another-table, that is, I need to copy the value of a column from tableA to tableB ...
2
votes
1answer
204 views

Accessing ajax/REST based php api

Someone built a site using joomla and third party plugin RS Forms Pro and created a page where a client could configure and purchase a product (via stripe). But they have asked me to write some ...
2
votes
1answer
528 views

Joomla registration emails and PHP mail() taking hours to deliver

UPDATE UPDATE UPDATE: Okay so all the emails ended up arriving, but they took anywhere from 30 minutes to 9 hours. Here's the raw message of one maybe osmeone can decipher it for me. Delivered-To: my....
2
votes
1answer
226 views

How to Completely Remake (Delete, Then Add) Menu Items Through Joomla Framework

A couple of previous questions have touched on this topic (how to add menu items, how to hide menu items), but I'm trying to figure out how to remove or empty a menu and then programmatically refill ...

1
3 4
5
6 7
14