Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8426613
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T04:34:37+00:00 2026-06-10T04:34:37+00:00

I am loading a module via a plugin using shortcode for jooolma however im

  • 0

I am loading a module via a plugin using shortcode for jooolma however im running into a problem im loading the module via the render method this is my plugin code

    defined('_JEXEC') or die('Restricted access');

    add_shortcode("mygallery", "sc_mygallery");
    function sc_mygallery($atts, $content = null) {
      extract(shortcode_atts(array(
        "galleryid" => 'galleryid=oHg5SJYRHA0',
        "width" => '480',
        "height" => '360',
        "allowfullscreen" => 'true',    
      ), $atts));


    $module_name='mod_eastbelfastpics';
    $moudle_title='East Belfast Gallery!';
    $module = JModuleHelper::getModule($module_name, $module_title); 

    $module->params = array('Gallery' => $galleryid);
    echo JModuleHelper::renderModule($module ,$options);


    }

But when i come to outputting the value of Gallery i just get no output what is the problem this is my front end code

    <?php
    defined('_JEXEC') or die('Restricted access');

    $items = $params->get('items', 1);
    $db =& JFactory::getDBO();
    $query = "SELECT * from jos_eastbelfastpagegallery_images";
    $db->setQuery( $query, 0 , $items );
    $rows = $db->loadObjectList();
    $galleryid= $params->get('Gallery');
     ?>

    this is content comming from a module form a content plugin ;-)

    <?php echo $galleryid;?>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T04:34:39+00:00Added an answer on June 10, 2026 at 4:34 am

    $options is not defined.

    Define $options with suitable parameters you want to pass while rendering your module.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

When loading the class, using method forName() , any static initializers in the class
After loading a PHP template (using jQuery's load function), this simple script won't make
I have a problem loading a kernel module, there is a large data structure,
In Python, I'm getting an error because it's loading a module from /usr/lib/python2.6/site-packages but
Loading images into Flex (size < 100kb) causes IE7 memory increase by a megabyte
This is a biggie. I have a well-structured yet monolithic code base that has
How can I implement lazy module loading in Perl? I've seen similar things in
It is possible to create a Lua module which returns multiple results via the
i have a gwt project and using method GWT.create(SomeClass.class) throw exception. The exception is
If I compile the following module into a dll namespace MyNs module SomeModule =

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.