0

I have mobile unlock code remote api which allows user to search for mobile unlock code using dropdown, so I want to attach it to my existing Joomla website. It uses curl to address the remote server so I have no idea how to add it to Joomla so that I can make a dropdown device selection and show unlock codes through remote server API.

I am totally beginner in this so I want to know how to attach it, as it is a php file with json parsing. I will provide any relevant information about my API and Joomla website.

2

You can add PHP code to Joomla in several ways.

Inside articles

Using Sourcerer from NoNumber, you can add PHP code directly inside your content editor (Tinymce). This works inside any article, or inside a Custom HTML module (if you enable "Prepare content" from the Advanced tab in your module). Simply wrap your PHP code inside {sourcerer}{/sourcerer}.

{source}
<?php
    echo 'This text is placed through <strong>PHP</strong>!';
?>
{/source}

Flexi Custom Code module

This module allows you to add any code (Javascript, HTML, PHP etc), and publish it to any module position. Simply paste your PHP code inside the module, set module position and menu item assignment, and save. You can also load the module inside an article using {loadposition yourmouduleposition}.

Custom Plugin or Module

Another option is to build your own module or plugin. It's not as hard as it might sound, and the possibilities are endless. Here's a couple of resources to get you started:

(The module generator is created by @Lodder)

  • Thanks for your reply. i am using your above solutions. I hope it works . @johanpw – Rj Rana Jan 21 '15 at 17:41
  • @RjRana if this solution works, please mark this answer as question-resolving with the big green tick – mickmackusa May 27 at 13:50

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.