Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> phpnuke 7.5
Author Message
dark-dude
Worker
Worker



Joined: Jun 29, 2003
Posts: 146
Location: Oklahoma

PostPosted: Sat Jan 22, 2005 12:09 pm Reply with quote

Is there a way to put html into news or to make a module that will show an html page without covering whole page? I tried to put it in an index.php file and put it in a folder as a module, but when i open it it is covering my whole page and i see my home and the module page....i want it to show up like a block inside with my blocks still showing on both sides. any ides here would be appreciated. I am running 7.5

_________________
DaRk-DuDe 
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number
hitwalker
Sells PC To Pay For Divorce



Joined:
Posts: 5661

PostPosted: Sat Jan 22, 2005 2:02 pm Reply with quote

well there are a thousand way....
any example of what you wanna show...?
 
View user's profile Send private message
Jolanta
New Member
New Member



Joined: Apr 03, 2005
Posts: 8

PostPosted: Sun Apr 03, 2005 10:45 pm Reply with quote

Here you go... create a php block file named... block-Whatever.php then enter this code

<?php
ob_start();
include("somefolder/yourpage.html");
$output = ob_get_contents();
ob_end_clean();
$content = $output;
?>

put it in the blocks folder... and the html file in another folder... and activate the bolck in your admin... make sure to change the path to your actual html file

thats it... good luck
 
View user's profile Send private message
sixonetonoffun
Spouse Contemplates Divorce



Joined: Jan 02, 2003
Posts: 2496

PostPosted: Mon Apr 04, 2005 6:43 am Reply with quote

HTML will work in the news module but is limited to the allowed html set in your config.php and script, style tags are forbidden elsewhere in any $_POST by default.

_________________
[b][size=5]openSUSE 11.4-x86 | Linux 2.6.37.1-1.2desktop i686 | KDE: 4.6.41>=4.7 | XFCE 4.8 | AMD Athlon(tm) XP 3000+ | MSI K7N2 Delta-L | 3GB Black Diamond DDR
| GeForce 6200@433Mhz 512MB | Xorg 1.9.3 | NVIDIA 270.30[/size:2b8 
View user's profile Send private message
Display posts from previous:       
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> phpnuke 7.5

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©