vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   [phpnuke fix] Include other PHP files in Blocks (https://vborg.vbsupport.ru/showthread.php?t=30121)

10-10-2001 10:00 PM

if you want to inlcude php files in your blocks with phpnuke (to display the last 10 posts in a block for example) go here

I've explained why it doesn't work and provided a fix....

BramT 10-11-2001 09:34 PM

if you still need help, post here or in the thread linked above... (i'll be notified and i'll respond asap. This is the least i can do for u great ppl!! :D)

good luck and nuke 'm! ;)

ps. a "thank you" is really appreciated if i've solved your problem.. it would make me come back more often to help u out.... :p

fudgeman 12-02-2001 04:07 PM

Where can I find this page? It doesn't work for me. :(

Konqueror 12-15-2001 09:19 PM

It's here: https://vborg.vbsupport.ru/showthrea...threadid=30113

SteveUrkelREAL 01-03-2002 10:51 AM

Hi all,

that my themesidebox

Code:

/************************************************************/
/* Function themesidebox()                                  */
/*                                                          */
/* Control look of your blocks. Just simple.                */
/************************************************************/

function themesidebox($title, $content){
    $tmpl_file = "themes/NukeNews/blocks.html";
    $thefile = implode("", file($tmpl_file));
    $thefile = addslashes($thefile);
    $thefile = "\$r_file=\"".$thefile."\";";
    eval($thefile);
    print $r_file;
}

and thats the html-File for the Block:

Code:

<table width="180" cellpadding="0" cellspacing="1" border="0">
  <tr>
    <td bgcolor="#ff7f00">
      <table width="100%" border="0" cellpadding="3" cellspacing="1">
        <tr>
          <td bgcolor="#ff7f00"><b><font color="#000000">$title</font></b></td>
        </tr>
        <tr>
          <td bgcolor="#040437">$content</td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<br>

where must i do these changes??

PHP Code:

if (substr($content,0,2) != "<?")  echo $content;
       else {
       $content = str_replace ("<?", "", $content);
       eval($content);}

Can anyone help me???

Thanks

Steve

Anatolia 01-03-2002 02:26 PM

thanks all in needed that fix..


All times are GMT. The time now is 08:31 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01189 seconds
  • Memory Usage 1,725KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (1)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete