Clan Adverts

Sponsors

CT on Facebook

Latest Product

User Box

Anonymous
38.107.179.220
Nickname:

Password:

Security Code
Security Code
Type Security Code


PND Downloads Feed

Phpnuke Downloads
How to Delete or Reset yo...
How to Delete or Reset your PHPNuke Admin Account
Lost your admin password ?  Cant login to your admin account ?This sh...
Back Online & Stuff
Back Online & Stuff
Look at us with our nifty website back up and running… Seriousl...
How to edit the admins in...
How to edit the admins in the forums
Here is a way to make someone admin in your forums on your Evo site. I...
Demo Splash Screen
Demo Splash Screen
Ped @ Clan Themes has released a simple splash screen entrance hack. ...
Free Phpnuke Business The...
Free Phpnuke Business Theme 6
This is the 6th Business theme for Phpnuke that Clan Themes has releas...
Tricked Out Slider
Tricked Out Slider
We have seen some great new things come out of Tricked Out News and th...

Custom Work

PHP Nuke Custom Work

www.clanthemes.com :: View topic - I-frame module
I-frame module

4 Replies / 619 Views


Post new topic   Reply to topic  

   www.clanthemes.com Forum Index » Modules

View previous topic :: View next topic


Express
Reputation: 269.2 Add RepSubtract Rep
Local time: 2:24 PM
Location: Alaska
usa.gif

Spammer
Spammer

0.06 posts per day
Medals: 0

Joined: Oct 17, 2007
Last Visit: 02 Jan 2011
Posts: 95
Points: 3800 

Post I-frame module Posted: Thu Dec 24, 2009 5:12 pm

Hi all,

I downloaded the Iframe module from this site. Since I still have much to learn, I am not sure where to insert my "html" code.
The intructions that come with this module are not specific enough for a n00b like myself.
Here is the code

include("header.php");
OpenTable();
if( substr($file,0,5)!="./../" && substr($file,0,7)!="http://" ){
include ($file);
CloseTable();
include("footer.php");
}
else {
echo "<IFRAME src=\"$file\" width=\"100%\" height=\"$height\" scrolling=\"auto\" frameborder=\"0\">";
echo "</IFRAME><center><hr size=\"1\" noshade><a href=\"$file\" target=\"_blank\">$file</a></center>";
CloseTable();
include("footer.php");
And here is my "html" code that I am trying to install.

<script src="http://www.clocklink.com/embed.js"></script><script type="text/javascript" language="JavaScript">obj=new Object;obj.clockfile="world001-blue.swf";obj.TimeZone="AKST";obj.width=480;obj.height=250;obj.wmode="transparent";showClock(obj);</script>
 

I know not with what weapons World War III will be fought, but World War IV will be fought with sticks and stones. Albert Einstein (1879 - 1955)  
View user's profileSend private messageVisit poster's website Reply with quote

Ped
Reputation: 63.4 Add RepSubtract Rep
votes: 35
Local time: 12:24 AM
Location: Great British Empire
uk.gif

Site Founder
Site Founder

2.33 posts per day
Medals: 2 (View more...)
Super Dedicated User (Amount: 1)
Theme Guru
Theme Guru
Joined: Nov 13, 2006
Last Visit: 09 Feb 2012
Posts: 4461
Points: 181063 

Post Re: I-frame module Posted: Thu Dec 24, 2009 8:35 pm

Shop Purchases:
Clan Roster 2.0 · Bad Company 2 Vietnam Xtreme Theme

the Iframe module is for a module, i think the clock code you pasted is to meant to be for a block ?

where do you want the clock to show ?
 

 
View user's profileSend private messageSend e-mail Reply with quote

Express
Reputation: 269.2 Add RepSubtract Rep
Local time: 2:24 PM
Location: Alaska
usa.gif

Spammer
Spammer

0.06 posts per day
Medals: 0

Joined: Oct 17, 2007
Last Visit: 02 Jan 2011
Posts: 95
Points: 3800 

Post Re: I-frame module Posted: Thu Dec 24, 2009 8:44 pm

Hi m8,

I was hoping to put the "module" name under the Site Navigation Module. I was hoping to enter a new name, ie World Clock, and then members could click on it and another page would show the world clock.


They had 2 html codes at their site. I just posted the default one. They had another code in case that one wouldn't work.

It is

<embed src="http://www.clocklink.com/clocks/world001-blue.swf?TimeZone=AKST&" width="480" height="250" wmode="transparent" type="application/x-shockwave-flash">
 

 
View user's profileSend private messageVisit poster's website Reply with quote


Ped
Reputation: 63.4 Add RepSubtract Rep
votes: 35
Local time: 12:24 AM
Location: Great British Empire
uk.gif

Site Founder
Site Founder

2.33 posts per day
Medals: 2 (View more...)
Forums MoD (Amount: 1)
Theme Guru
Theme Guru
Joined: Nov 13, 2006
Last Visit: 09 Feb 2012
Posts: 4461
Points: 181063 

Post Re: I-frame module Posted: Thu Dec 24, 2009 9:01 pm

Shop Purchases:
Clan Roster 2.0 · Bad Company 2 Vietnam Xtreme Theme

Your getting modules confused with blocks

modules are these whole pages

http://phpnuke.org/modules.php?name=Community
http://phpnuke.org/modules.php?name=Surveys
http://phpnuke.org/modules.php?name=PHP-Nuke_HOWTO

notice how they all have modules.php hence why people relate to them as modules.

What you are trying to do is put a clock in a block, the blocks typically line the left/right and center your websites home page...

to put that code into a block we have to make one, Im going to use http://www.clanthemes.com/php-nuke-tools-Block.html

Paste the code you provided into the top section and hit create

then we put the code produced into a file called block-Clock.php
Code:
<?php
#### Generated by Block Creator by Disipal Site (www.disipal.net) updated for nuke patch by Mental Modz ###
if ( !defined('BLOCK_FILE') ) {
    Header("Location: ../index.php");
    die();
}
$content  =  "<embed src=\"http://www.clocklink.com/clocks/world001-blue.swf?TimeZone=AKST&\" width=\"480\" height=\"250\" wmode=\"transparent\" type=\"application/x-shockwave-flash\">";
?>


upload the block-Clock.php to yoursite.com/blocks and then activate the block via your blocks admin area at yoursite.com/admin.php?op=BlocksAdmin
 

 
View user's profileSend private messageSend e-mail Reply with quote

Express
Reputation: 269.2 Add RepSubtract Rep
Local time: 2:24 PM
Location: Alaska
usa.gif

Spammer
Spammer

0.06 posts per day
Medals: 0

Joined: Oct 17, 2007
Last Visit: 02 Jan 2011
Posts: 95
Points: 3800 

Post Re: I-frame module Posted: Thu Dec 24, 2009 9:38 pm

Fantastic!

You are correct in that I am confused. I still have sooo much to learn and am just gratefull to you guys and this site for helping so many of us out.

The block works great! Thanks again for such great help!

Happy Holidays to you and your families!

Gift
 

 
View user's profileSend private messageVisit poster's website Reply with quote
Post new topic   Reply to topic  
   www.clanthemes.com Forum Index » Modules


 
4 Replies / 619 Views
Page 1 of 1
All times are GMT
Display posts from previous:   
 
Jump to:  
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 cannot attach files in this forum
You can download files in this forum