Fork me on GitHub

Problems calling my HTML module and calling specifics blocks  Bottom

  • Yo, in need help with this, im not a pro coder but im trying something a litlte pro xd


    Well, i create a new folder in modules directories called "Portada", inside i made a index.php with some like this

    Code

    <?php

        include "modules/Portada/inicio/index.htm";

    ?>


    so then in this file [index.html] I make all i want in HTML, with a litle experiment that i think could work,

    first i make an news.php file whom make a call to a specific block like this

    Code

    <?php
     // Show a specific dynamic menu block
    $block = pnBlockGetInfo('20');
    $block['bid'] = '20';
    pnBlockShow('Core', 'xstories', $block);
    ?>


    so this news.php call a specific block, it works perfectly if i include it in module index.php file but if i try to call it via iframe in the modules/Portada/inicio/index.htm it return this

    Code

    Fatal error: Call to undefined function: pnblockgetinfo() in /home/risector/public_html/noticias/modules/Portada/noticias.php on line 3


    so, i want to ask you if i can do this or not, help please cry
  • 0 users

This list is based on users active over the last 60 minutes.