You are missing our premiere tool bar navigation system! Register and use it for FREE!

NukeCops  
•  Home •  Downloads •  Gallery •  Your Account •  Forums • 
Readme First
- Readme First! -

Read and follow the rules, otherwise your posts will be closed
Modules
· Home
· FAQ
· Buy a Theme
· Advertising
· AvantGo
· Bookmarks
· Columbia
· Community
· Donations
· Downloads
· Feedback
· Forums
· PHP-Nuke HOWTO
· Private Messages
· Search
· Statistics
· Stories Archive
· Submit News
· Surveys
· Theme Gallery
· Top
· Topics
· Your Account
Who's Online
There are currently, 60 guest(s) and 0 member(s) that are online.

You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - Embedding HTML pages [ ]
 Forum FAQ  •  Search  •   •  Memberlist  •  Usergroups   •  Register  •  Profile •    •  Log in to check your private messages  •  Log in

 
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
Author Message
Mischieffer
Nuke Soldier
Nuke Soldier


Joined: Feb 13, 2003
Posts: 19

Location: UK

PostPosted: Wed Feb 19, 2003 8:21 am Reply with quoteBack to top

Hi,

I have been using the code snippet below to add html pages into Nuke modules which works great but have a problem with one page.
I am trying to add a colour chart where people move a slider and variant to get the appropriate numbered value for a particular colour but it calls on .class files to perform the task.
I wondered if this is a problem with Nuke as embedding the Microsoft streaming media player into a page worked fine but this colour chart fails to load ??.
Any ideas would be much appreciated.
-------------------------------------------------------------------------------------

1. create folder in nuke/html/modules call it what you want it to appear as in the modules menu (no spaces)
2. create a text file called index.php inside this folder (its a php file not text. use notepad or something similar)
3. insert the following code

###do not add this line, start code###
<?php
if (!isset($mainfile)) {include("mainfile.php"); }
include ("header.php");
include ("xxxxxx.html");
include ("footer.php");
?>
##end code##

4. change the xxxxxx.html to the address of your html page, this is better if its a full URL. this html file can be anywhere.

TO LINK TO ANOTHER PAGE FROM THIS ONE....
make a xxx.php file and include the same code as above (change the xxxx.html again) then place this with the original html file and make the hyperlink go to http://mydomain.com/path/to/file/xxxxx.php and your off.
Find all posts by MischiefferView user's profileSend private message
peaceV
Corporal
Corporal


Joined: Feb 15, 2003
Posts: 50

Location: USA

PostPosted: Wed Feb 19, 2003 11:22 am Reply with quoteBack to top

if you embed html page this well, if i have an ad banner in this html,
will the ad banner set as refered from the html page or the php page?
Find all posts by peaceVView user's profileSend private message
ArtificialIntel



Joined: Jan 31, 2004
Posts: -88


PostPosted: Wed Feb 19, 2003 11:24 am Reply with quoteBack to top

the html page will appear as it is in the html file, but won't be @ the top of the page cause it'll appear underneath the header.php file which includes the logo and any topnav bars.

ArtificialIntel
Find all posts by ArtificialIntelView user's profileSend private message
Mischieffer
Nuke Soldier
Nuke Soldier


Joined: Feb 13, 2003
Posts: 19

Location: UK

PostPosted: Thu Feb 20, 2003 11:35 am Reply with quoteBack to top

The HTML page I am embedding loads fine on its own but when I call it using the php code snippet the box for the colour chooser stays gray instead of running the .class files it needs and showing the controls.
The html page is fine on its own and works so I wondered if Nuke has a problem recognizing .class files or if there is something I have to put into a php page to get it to understand certain file types ??.
Find all posts by MischiefferView user's profileSend private message
Mischieffer
Nuke Soldier
Nuke Soldier


Joined: Feb 13, 2003
Posts: 19

Location: UK

PostPosted: Sun Mar 02, 2003 9:12 am Reply with quoteBack to top

Hi guys,

Just wanted to post a quick message for others who make the same mistakes I do Very Happy
When embedding html into the nuke php pages I assumed that just having all files in the same directory would work, I found out this is not the case.
I had a file called colour.class in a module called Colour and left the links in the html page as simply "colour.class" which didn't work.
Once I altered each link to "modules/Colour/colour.class" the page loaded properly.
Hope this helps any other newbies like me.
Find all posts by MischiefferView user's profileSend private message
JackX
Corporal
Corporal


Joined: Feb 12, 2003
Posts: 58

Location: USA

PostPosted: Sun Mar 16, 2003 9:52 pm Reply with quoteBack to top

I have a question for you. If you have created an HTML page using the following code (different from above), how would you include a customized page title for it?

Code:
<?php
if (!isset($mainfile)) { include("mainfile.php"); }
include("header.php");
OpenTable();
?>
HTML MESSAGES HERE
<?php
CloseTable();
include("footer.php");
?>

I have tried to get it to work by adding the following code into the page...
Code:
$pagetitle = "Custom Page Title goes here!";

However that does not seem to work.... any clues or hints as to get this operating correctly??? Thanks in adance!
Find all posts by JackXView user's profileSend private message
JackX
Corporal
Corporal


Joined: Feb 12, 2003
Posts: 58

Location: USA

PostPosted: Mon Mar 17, 2003 7:47 pm Reply with quoteBack to top

Code:
<?php
if (!isset($mainfile)) { include("mainfile.php"); }
$pagetitle = "Custom Page Title goes here!";
include("header.php");
OpenTable();
?>
HTML MESSAGES HERE
<?php
CloseTable();
include("footer.php");
?>
That code works Wink - but I now have another question... How would you get that same page to display correctly from a subfolder?

for example, from /misc/page.php instead of /page.php Question
Find all posts by JackXView user's profileSend private message
saladin
Nuke Cadet
Nuke Cadet


Joined: Dec 28, 2003
Posts: 8


PostPosted: Wed Dec 31, 2003 11:40 am Reply with quoteBack to top

I want to make it a block how do i go about that?
Find all posts by saladinView user's profileSend private message
duhduhdude
Corporal
Corporal


Joined: Mar 30, 2003
Posts: 58


PostPosted: Sat Jan 17, 2004 2:08 pm Reply with quoteBack to top

this is a very useful thread, thank you all.

_________________
http://www.nascarace.com
Find all posts by duhduhdudeView user's profileSend private message
everyartist
Nuke Soldier
Nuke Soldier


Joined: Jan 08, 2004
Posts: 21


PostPosted: Wed Jan 21, 2004 1:39 pm Reply with quoteBack to top

I used the code below to add a subscription form (through paypal) into my modules block. However, i get the following error on the top (the page works perfectly fine exept for this error):

Warning: main(): stream does not support seeking in /home/everyart/.panel/web/portal/cms/modules/Subscribe/index.php on line 4

The code I used is below:

<?php
if (!isset($mainfile)) {include("mainfile.php"); }
include ("header.php");
include ("http://www.everyartist.net/subscribe.html");
include ("footer.php");
?>

What am I doing wrong? Please reply to this post!!! I'm desperate
Find all posts by everyartistView user's profileSend private message
aabbcc
Corporal
Corporal


Joined: Feb 20, 2004
Posts: 60


PostPosted: Sat Feb 21, 2004 2:12 am Reply with quoteBack to top

Quote:
$pagetitle = "Custom Page Title goes here!";


Just put it in a language file in your language directory of the module in question...

Quote:
<?php
if (!eregi("modules.php", $PHP_SELF)) {
die ("You can't access this file directly...");

}
require_once("mainfile.php");
$module_name = basename(dirname(__FILE__));
get_lang($module_name);
$pagetitle = ""._PAGETITLE."";
include("header.php");
include("xxxxxxxx.php");
include("footer.php");
?>

_________________
World of Warcraft Nation
Find all posts by aabbccView user's profileSend private messageVisit poster's website
Display posts from previous:      
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next 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



Powered by phpBB © 2001, 2005 phpBB Group

Ported by Nuke Cops © 2003 www.nukecops.com
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::
Powered by · TOGETHER TEAM srl ITALY http://www.togetherteam.it · DONDELEO E-COMMERCE http://www.DonDeLeo.com
Web site engine's code is Copyright © 2002 by PHP-Nuke. All Rights Reserved. PHP-Nuke is Free Software released under the GNU/GPL license.
Page Generation: 0.213 Seconds - 230 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::