Log in

View Full Version : How would I get DJ Says in a box on my fansite?



-Adam
12-12-2008, 09:06 PM
I want the DJ says in a certain box on my fansite.

This box doesnt have iFrames.

This is the link thing for the DJ says:
http://www.wavehabbo.byethost24.com/staff/says.php

How would i go about getting that to appear as the DJ says on my website?

This is the box code

<div class="header"><img src="blue_headerc59d.png?t=THIS IS PHP GD" alt="Anything" /></div>
<div class="box">
hello
</div>

Pazza
12-12-2008, 09:12 PM
<?
include ("staff/says.php");
?>

I think

-Adam
12-12-2008, 09:15 PM
Sos, Forgot to post the full box code.

Could you also include where it would go please pazza?

<div class="header"><img src="blue_headerc59d.png?t=THIS IS PHP GD" alt="Anything" /></div>
<div class="box">
hello
</div>

Pazza
12-12-2008, 09:32 PM
Sos, Forgot to post the full box code.

Could you also include where it would go please pazza?

<div class="header"><img src="blue_headerc59d.png?t=THIS IS PHP GD" alt="Anything" /></div>
<div class="box">
hello
</div>

<div class="header"><img src="blue_headerc59d.png?t=THIS IS PHP GD" alt="Anything" /></div>
<div class="box">
<?
include ("staff/says.php");
?>
</div>

But the ("staff/says.php") depends on where your index file is, if it is like this:

PUBLIC_HTML/index.html
and
PUBLIC_HTML/staff/

It should work.

If it doesn't add a / before staff

-Adam
12-12-2008, 09:45 PM
Still dont work :S

Pazza
12-12-2008, 09:49 PM
Still dont work :S
In the middle div put

<?php include ("/staff/says.php"); ?>
or
<?php include ("staff/says.php"); ?>
or
<?php include ("http://www.wavehabbo.byethost24.com/staff/says.php"); ?>

-Adam
12-12-2008, 09:55 PM
Still nothing

Pazza
12-12-2008, 09:56 PM
Still nothing

post your full page code

-Adam
12-12-2008, 10:00 PM
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>habboGEAR</title>
<link href="css/global.css" rel="stylesheet" type="text/css" />
<link href="css/anylink.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="anylink.js"></script>
<script type="text/javascript" src="ajaxcontent.js"></script>
</head>

<body>

<div id="wrapper">
<div id="container">
<div id="left_container">
<div id="breaking_news">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><strong>BREAKING NEWS:</strong> Joe Swash W...</td>
<td style="width: 17px;"><a href="#"><img src="images/misc/arrow.GIF" alt="More" /></a></td>
</tr>
</table>
</div>
<div class="header"><img src="blue_headerc59d.png?t=THIS IS PHP GD" alt="Anything" /></div>
<div class="box">
<?
include ("http://www.wavehabbo.byethost24.com/staff/says.php");
?>
<?php include ("http://www.wavehabbo.byethost24.com/staff/says.php"); ?>
</div>
<div class="box_bottom"></div>
<div class="header"><img src="grey_header59e5.png?t=EDIT THE URL" alt="Anything" /></div>
<div class="box">
Heloo
</div>
<div class="box_bottom"></div>
<div class="header"><img src="green_header2342.png?t=THIS IS A GD HEADER" alt="Anything" /></div>
<div class="box">
Heloo
</div>
<div class="box_bottom"></div>
</div>
<div id="right_container">
<div id="banner"></div>
<div id="navigation_left"></div>
<div id="navigation_background">
<div id="nav_wrap">
<a href="javascript:ajaxpage('home.html', 'content');" class="home"></a>
<a href="#" onClick="return clickreturnvalue()" onMouseover="dropdownmenu(this, event, 'hiphabs')" class="hiphabs"></a>

<div id="hiphabs" class="anylinkcss">
<a href="javascript:ajaxpage('staff.html', 'content');">Staff List</a>
<a href="http://www.cssdrive.com/">About Us</a>
<a href="http://www.javascriptkit.com/">Disclaimer</a>
<a href="http://www.codingforums.com/">Contact Us</a>
<a href="http://www.javascriptkit.com/jsref/">How We Do It</a>
<div><img src="images/navigatiom/dropdown/bottom.GIF" alt="Bottom" /></div>
</div>

<a href="#" onClick="return clickreturnvalue()" onMouseover="dropdownmenu(this, event, 'news')" class="news"></a>

<div id="news" class="anylinkcss">
<a href="http://www.dynamicdrive.com/">Staff List</a>
<a href="http://www.cssdrive.com/">About Us</a>
<a href="http://www.javascriptkit.com/">Disclaimer</a>
<a href="http://www.codingforums.com/">Contact Us</a>
<a href="http://www.javascriptkit.com/jsref/">How We Do It</a>
<div><img src="images/navigatiom/dropdown/bottom.GIF" alt="Bottom" /></div>
</div>

<a href="#" onClick="return clickreturnvalue()" onMouseover="dropdownmenu(this, event, 'community')" class="community"></a>

<div id="community" class="anylinkcss">
<a href="http://www.dynamicdrive.com/">Staff List</a>
<a href="http://www.cssdrive.com/">About Us</a>
<a href="http://www.javascriptkit.com/">Disclaimer</a>
<a href="http://www.codingforums.com/">Contact Us</a>
<a href="http://www.javascriptkit.com/jsref/">How We Do It</a>
<div><img src="images/navigatiom/dropdown/bottom.GIF" alt="Bottom" /></div>
</div>

<a href="#" onClick="return clickreturnvalue()" onMouseover="dropdownmenu(this, event, 'media')" class="media"></a>

<div id="media" class="anylinkcss">
<a href="http://www.dynamicdrive.com/">Staff List</a>
<a href="http://www.cssdrive.com/">About Us</a>
<a href="http://www.javascriptkit.com/">Disclaimer</a>
<a href="http://www.codingforums.com/">Contact Us</a>
<a href="http://www.javascriptkit.com/jsref/">How We Do It</a>
<div><img src="images/navigatiom/dropdown/bottom.GIF" alt="Bottom" /></div>
</div>

<a href="#" onClick="return clickreturnvalue()" onMouseover="dropdownmenu(this, event, 'guides')" class="guides"></a>

<div id="guides" class="anylinkcss">
<a href="http://www.dynamicdrive.com/">Staff List</a>
<a href="http://www.cssdrive.com/">About Us</a>
<a href="http://www.javascriptkit.com/">Disclaimer</a>
<a href="http://www.codingforums.com/">Contact Us</a>
<a href="http://www.javascriptkit.com/jsref/">How We Do It</a>
<div><img src="images/navigatiom/dropdown/bottom.GIF" alt="Bottom" /></div>
</div>

<a href="#" onClick="return clickreturnvalue()" onMouseover="dropdownmenu(this, event, 'goodies')" class="goodies"></a>

<div id="goodies" class="anylinkcss">
<a href="http://www.dynamicdrive.com/">Staff List</a>
<a href="http://www.cssdrive.com/">About Us</a>
<a href="http://www.javascriptkit.com/">Disclaimer</a>
<a href="http://www.codingforums.com/">Contact Us</a>
<a href="http://www.javascriptkit.com/jsref/">How We Do It</a>
<div><img src="images/navigatiom/dropdown/bottom.GIF" alt="Bottom" /></div>
</div>

<a href="#" onClick="return clickreturnvalue()" onMouseover="dropdownmenu(this, event, 'forum')" class="forum"></a>

<div id="forum" class="anylinkcss">
<a href="http://www.dynamicdrive.com/">Staff List</a>
<a href="http://www.cssdrive.com/">About Us</a>
<a href="http://www.javascriptkit.com/">Disclaimer</a>
<a href="http://www.codingforums.com/">Contact Us</a>
<a href="http://www.javascriptkit.com/jsref/">How We Do It</a>
<div><img src="images/navigatiom/dropdown/bottom.GIF" alt="Bottom" /></div>
</div>

</div>
</div>
<div id="navigation_right"></div>
<div class="clear"></div>
<div id="divider"></div>
<div id="content_container">
<div class="content_top"></div>
<div class="content_background" id="content">
<script type="text/javascript">
ajaxpage('home.html', 'content') //load "test.htm" into "rightcolumn" DIV
</script>
</div>
<div class="content_bottom"></div>
<div class="disclaimer_top"></div>
<div class="disclaimer_background" id="disclaimer">
<script type="text/javascript">
ajaxpage('disclaimer.html', 'disclaimer') //load "test.htm" into "rightcolumn" DIV
</script>
</div>
<div class="disclaimer_bottom"></div>
</div>

<div id="right_side_content">
<div class="grey_boxes" id="userlogin">
<form>
<input type="text" value="username..." style="border: 1px solid #b4b4b4; padding-top: 3px; padding-bottom: 3px; padding-left: 3px; padding-right: 3px; width: 160px; margin: 0 auto; margin-bottom: 3px; margin-top: 3px;"/>
<input type="password" value="password" style="border: 1px solid #b4b4b4; padding-top: 3px; padding-bottom: 3px; padding-left: 3px; padding-right: 3px; width: 160px; margin: 0 auto; margin-bottom: 3px;" /><br />
<input type="submit" value="login" />
</form>
</div>
<div class="grey_boxes" id="greybox1">
<script type="text/javascript">
ajaxpage('radio.html', 'greybox1') //load "test.htm" into "rightcolumn" DIV
</script>
</div>
<div class="grey_boxes" id="greybox2">
<script type="text/javascript">
ajaxpage('php/radio_stats.html', 'greybox2') //load "test.htm" into "rightcolumn" DIV
</script>
</div>
<a href="#" class="orange"></a>
<a href="#" class="blue"></a>
<a href="#" class="green"></a>
</div>
</div>


<div class="clear"></div>
</div>
<div id="bottom"></div>
</div>

</body>
</html>


Still need to edit nav ect

Pazza
12-12-2008, 10:01 PM
rename index.html to index.php :P

-Adam
12-12-2008, 10:08 PM
Already tried doing that

Pazza
12-12-2008, 10:11 PM
No idea then, that should've worked :S

EDIT: Something to do with ur host I think

-Adam
12-12-2008, 10:16 PM
I havnt uploaded it yet so it wont be my host

Pazza
12-12-2008, 10:17 PM
I havnt uploaded it yet so it wont be my host
Thats why den,


upload it so i can av a look

Jxhn
12-12-2008, 10:17 PM
No space between include and the bracket. Alternatively you could just put an iframe inside the box. I'm sure it wouldn't be that hard.

Pazza
12-12-2008, 10:19 PM
No space between include and the bracket. Alternatively you could just put an iframe inside the box. I'm sure it wouldn't be that hard.

Omg

the internet is more fussy than my mum with a cup of tea

-Adam
12-12-2008, 10:21 PM
I dont know much about stuff like iFrames, And its taking its time 2 upload.

Pazza
12-12-2008, 10:22 PM
I dont know much about stuff like iFrames, And its taking its time 2 upload.

includes r simpler.

<div class="header"><img src="blue_headerc59d.png?t=THIS IS PHP GD" alt="Anything" /></div>
<div class="box">
<?
include("staff/says.php");
?>
</div>

I think that should work, if it doesnt i tried

-Adam
12-12-2008, 10:28 PM
Still not.

Pazza
12-12-2008, 10:33 PM
Still not.

I sppose u could use an iframe

<iframe src="staff/says.php" width="WIDTH OF IFRAME(IMAGESIZE)" height"HEIGHT OF IFRAME(IMAGEHEIGHT)">
</iframe>

Calon
13-12-2008, 12:00 AM
Don't use short tags, before you advise someone about using PHP, you should learn how it should be used.

HTTP includes - just don't bother, use file_get_contents..



<?php
$site = file_get_contents( "http://www.lol.com/testicals.php" );
echo $site;
?>

Short tags basically means don't just do <? add "php" to the start tag, short tags are disabled on a lot of servers, they also interfere with XML, also the alternative to using short tags is proven faster.

Jxhn
13-12-2008, 08:36 AM
Don't use short tags, before you advise someone about using PHP, you should learn how it should be used.

HTTP includes - just don't bother, use file_get_contents..



<?php
$site = file_get_contents( "http://www.lol.com/testicals.php" );
echo $site;
?>

Short tags basically means don't just do <? add "php" to the start tag, short tags are disabled on a lot of servers, they also interfere with XML, also the alternative to using short tags is proven faster.

Includes should be used in this situation though. If he used file_get_contents() with a relative path then it would echo the source code.

-Adam
13-12-2008, 01:02 PM
It still isnt working.
If you look at page 1/2 my code is there, Maybe you could take a look at it?

Jxhn
13-12-2008, 02:17 PM
It still isnt working.
If you look at page 1/2 my code is there, Maybe you could take a look at it?

What's the url of the file?

-Adam
13-12-2008, 03:12 PM
The URL of the file is:

www.wavehabbo.byethost24.com/staff/says.php

Jxhn
13-12-2008, 04:49 PM
The URL of the file is:

www.wavehabbo.byethost24.com/staff/says.php

No, the file you want the to be included in.

-Adam
13-12-2008, 05:33 PM
Huh, What do you mean

Pazza
13-12-2008, 08:38 PM
No, the file you want the to be included in.
Thats the file, but he hasnt uploaded his actual site yet.

Calon
13-12-2008, 08:45 PM
Thats the file, but he hasnt uploaded his actual site yet.
PHP doesn't work on computers that don't have PHP.. but simple to have guessed that? PHP Includes/file_get_contents and ANY other php function won't work unless you have PHP installed, just upload to your site for a mo and check that they work, then you can simply remove them.

-Adam
14-12-2008, 03:55 PM
None of this is working, Even when I upload!

Jxhn
14-12-2008, 04:03 PM
None of this is working, Even when I upload!

Where did you upload? We need to see an example to see what's going wrong before er can help you.

Jackboy
14-12-2008, 04:47 PM
Fixed it for him :P

user130523
21-12-2008, 05:24 PM
EDIT: Oh you fixed it :L

Btw;
http://www.wavehabbo.byethost24.com/watchhabbo/
Your not gonna get far with free layout :)

Habtopia
21-12-2008, 06:07 PM
<iframe frameborder="0" width="200" scrolling="no" height="15" allowTransparency background="transparent" src="http://www.wavehabbo.byethost24.com/staff/says.php (http://www.wavehabbo.byethost24.com/staff/says.php)"></iframe>

Will get rid of the scrollbars

Jackboy
24-12-2008, 11:09 AM
<iframe frameborder="0" width="200" scrolling="no" height="15" allowTransparency background="transparent" src="http://www.wavehabbo.byethost24.com/staff/says.php (http://www.wavehabbo.byethost24.com/staff/says.php)"></iframe>

Will get rid of the scrollbars

i already fixed?

Want to hide these adverts? Register an account for free!