help with including a file

  Post new topicReply to topicPrintable Version
<< View previous topic View next topic >>
Share: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
#1   help with including a file
cybershot
CZ Super Newbie
cybershot has been a member for over 13 year's 13 Year Member
usa.gif oregon.gif
Website:
Status: Offline
Joined: Jan 31, 2007
0.01 posts per day
Posts: 75
Points: 25
   
I have a blog site that is run by php and I want to have a news ticker at the top of the page. the ticker is written in javascript and html. two seperate files. the ticker runs just fine on the site but the blog doesn't show up. it will be just the ticker. How can i include the html into the php so that they won't fight.

I have attached the html code


here is the file I need it in.


<?php

if (! isset($wp_did_header)):
if ( !file_exists( dirname(__FILE__) . '/wp-config.php') ) {
   if (strpos($_SERVER['PHP_SELF'], 'wp-admin') !== false) $path = '';
   else $path = 'wp-admin/';

   require_once( dirname(__FILE__) . '/wp-includes/classes.php');
   require_once( dirname(__FILE__) . '/wp-includes/functions.php');
   require_once( dirname(__FILE__) . '/wp-includes/plugin.php');
   wp_die("There doesn't seem to be a <code>wp-config.php</code> file. I need this before we can get started. Need more help? <a href='http://codex.wordpress.org/Editing_wp-config.php'>We got it</a>. You can <a href='{$path}setup-config.php'>create a <code>wp-config.php</code> file through a web interface</a>, but this doesn't work for all server setups. The safest way is to manually create the file.", "WordPress &rsaquo; Error");
}

$wp_did_header = true;

require_once( dirname(__FILE__) . '/wp-config.php');

wp();
gzip_compression();

require_once(ABSPATH . WPINC . '/template-loader.php');

endif;

?>



Attached Files
ticker.txt (430 Bytes, Downloaded: 3997 Time(s))


Back to top Reply with quote
#2   
Telli
Site Admin
Telli has been a member for over 17 year's 17 Year Member
Occupation: Self Employed
Age: 42
Fav. Sports Team: Detroit Red Wings
Website:
Status: Offline
Joined: May 26, 2003
1.27 posts per day
Posts: 8089
Points: 494,375
   
The output is being buffered so including it there will not work. Can you edit the theme file and add into the html where you want it?




_________________
The path of the righteous man is beset on all sides by the inequities of the selfish and the tyranny of evil men. Blessed is he, who in the name of charity and good will, shepherds the weak through the valley of darkness, for he is truly his brother's keeper and the finder of lost children. And I will strike down upon thee with great vengeance and furious anger those who would attempt to poison and destroy my brothers. And you will know my name is the Lord when I lay my vengeance upon thee. Ezekiel 25:17
Back to top Reply with quote
Display posts from previous:      
Add To: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
<< View previous topic View next topic >>
Post new topicReply to topic

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 cannot download files in this forum