1
jimbofoxman
Adding PHP File, not a module?

Is there a way to add a block on the main page that displays a PHP file that is not part of a module. It's a stand alone PHP file.

THANKS

2
smdcom
Re: Adding PHP File, not a module?

Yes. You can create custom block with type PHP.

SMD

3
jimbofoxman
Re: Adding PHP File, not a module?

I missed the "CUSTOM BLOCK" option.......LOL

Do I just cut and paste the php code in there and select PHP Script?

4
JMorris
Re: Adding PHP File, not a module?
  • 2005/10/16 0:17

  • JMorris

  • XOOPS is my life!

  • Posts: 2722

  • Since: 2004/4/11


Yes, sort of. The exception is you don't include .

Example:
phpinfo():


Best Regards,

James
Insanity can be defined as "doing the same thing over and over and expecting different results."

Stupidity is not a crime. Therefore, you are free to go.

5
jimbofoxman
Re: Adding PHP File, not a module?

This is what my filename.php contains. I just copied and pasted that into the content part of the custom block, select php script. It shows the block title, but that is it. I tried replacing the on there or not?

#### All Scripting Done By EvilSniperCQ^INC (http://www.incclan.net) ###
if (eregi("block-Block_Creator.php",$PHP_SELF)) {
    
Header("Location: index.php");
    die();
}
$content  =  "";
$content  .= "center" cellpadding="5">";
$content  .= "top">";
$content  .= "";
$content  .= "";
$content  .= "";
$content  .= "";
$content  .= "JavaScript" ";
$content  .= "SRC="http://share1.serverspy.net/cgi-bin/monitor.js?mid=109396">";
$content  .= "";
$content  .= "";
$content  .= "";

?>

6
Lance_
Re: Adding PHP File, not a module?
  • 2005/10/16 1:18

  • Lance_

  • Home away from home

  • Posts: 983

  • Since: 2004/1/12


phpinfo() was just an example of a php script.

Simply take out the from your code since by choosing php in custom block, XOOPS will automatically add it to the code.

Cheers.
GDL-Web.com :: Website development.
Xoopslance.com::Freelancing and Projects
thelionsden-arena.net:: Clan/League/Ladder Hosting

7
jimbofoxman
Re: Adding PHP File, not a module?

I give up, buddy of mine posts that same code in PHPNuke and it works fine, mine is all messed up.

THANKS FOR THE HELP

8
Lance_
Re: Adding PHP File, not a module?
  • 2005/10/16 2:18

  • Lance_

  • Home away from home

  • Posts: 983

  • Since: 2004/1/12


Try an html block with

<TABLE align="center" cellpadding="5">
<
TR><TD valign="top">
<
SCRIPT LANGUAGE="JavaScript" SRC="http://share1.serverspy.net/cgi-bin/monitor.js?mid=109396">SCRIPT>
TD>TR>TABLE>
GDL-Web.com :: Website development.
Xoopslance.com::Freelancing and Projects
thelionsden-arena.net:: Clan/League/Ladder Hosting

Login

Who's Online

458 user(s) are online (371 user(s) are browsing Support Forums)


Members: 0


Guests: 458


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits