Need help adding php code into php page!

Discussion in 'PHP' started by lbhabib.ru, Aug 6, 2011.

  1. #1
    I have this PHP script

    <?php require_once('1948ecb23ffd2b4839162ab.php'); $voltRank = new VoltRank(); echo $voltRank->display(); ?>
    Code (markup):
    And i want to add it at the end of this

    
    
    // Show the navigation tree. 
    theme_linktree();
    } 
    
    function template_body_below() 
    { 
    global $context, $settings, $options, $scripturl, $txt, $modSettings; 
     echo ' 
    </div> 
    </div></div>';  
    
    // Show the "Powered by" and "Valid" logos, as well as the copyright. Remember, the copyright must be somewhere! 
    echo ' 
    <div id="footer_section"><div class="frame"> 
    <ul class="reset"> 
    <li class="copyright">', theme_copyright(), '<br />Managed by <a href="http://www.lbhabib.ru" title="Graphic Design">LBHabib.RU</a><br /> 
    
    <!-- original SMF footer --> </ul>';
    PHP:

    Thank you for your support!
     
    Last edited: Aug 6, 2011
    lbhabib.ru, Aug 6, 2011 IP
  2. FFMG

    FFMG Well-Known Member

    Messages:
    1,091
    Likes Received:
    39
    Best Answers:
    0
    Trophy Points:
    160
    #2
    Not sure I understand what your problem is, but given the code

    
    <?php 
    
    require_once('1948ecb23ffd2b4839162ab.php'); 
    
    $voltRank = new VoltRank(); 
    echo $voltRank->display();
    
    // Show the navigation tree.
    theme_linktree();
    
    function template_body_below()
    {
    global $context, $settings, $options, $scripturl, $txt, $modSettings;
     echo '
    </div>
    </div></div>';  
    
    // Show the "Powered by" and "Valid" logos, as well as the copyright. Remember, the copyright must be somewhere!
    echo '
    <div id="footer_section"><div class="frame">
    <ul class="reset">
    <li class="copyright">', theme_copyright(), '<br />Managed by <a href="http://www.lbhabib.ru" title="Graphic Design">LBHabib.RU</a><br />
    
    <!-- original SMF footer --> </ul>';
    ?>
    
    PHP:
    That should work

    FFMG
     
    FFMG, Aug 6, 2011 IP