Yes, I already tried that. I don't have a header.php file. My header file is called header.html. If I change the name to header.php, and change that code in theme.php, the rollover works, but everything else is out of wack.
symantix Nuke Soldier
Joined: Feb 25, 2004
Posts: 32
Posted:
Wed Feb 25, 2004 2:37 pm
Actually, correction:
it throws everything out of wack if I try to convert header.html with phpNuke tools and then save it as header.php. If I don't try to convert and I just rename the file, I get a blank page when I pull my site up...nothing.
I've posted these in a download directory because the site I'm working on is for a client and is currently running on a local server.
symantix Nuke Soldier
Joined: Feb 25, 2004
Posts: 32
Posted:
Wed Feb 25, 2004 2:48 pm
There is a big difference in the look of the site when I convert the contents of header.html to php with phpNuke Tools and then save it as header.php, vs. just using header.html as it is. It keeps excluding all of the blocks from the outer border of the page and stacking them on top of one another, instead of laying them out how they are supposed to be layed out (i.e. blocks on left, center, and right).
Telli, I've posted the site to http://dluxprinting.com. You've gotten much further than I was able to go, but as you can see, things are still out of wack for some reason.
Thanks for trying. I'll look at your code and see if I can get any ideas. If you can possibly figure out what's going on, I'd really appreciate it, but I don't expect you to go to any great extant.
Thanks again for taking the time, my friend.
symantix Nuke Soldier
Joined: Feb 25, 2004
Posts: 32
Posted:
Wed Feb 25, 2004 8:21 pm
The original header.html had two table tag terminators at the very end of the script, and you have removed them. I have noticed since I started hacking this theme how critical that header file is...you mess with one thing, and everything else goes out of whack. Sometimes it seems like you haven't changed a solitary thing, and it will still go out of whack.
But when I put those two table terminators back in, it only makes it worse. I don't know what the deal is.
telli Support Mod
Joined: Aug 21, 2003
Posts: 335
Posted:
Wed Feb 25, 2004 8:55 pm
Ok please try the files again I made a few changes.
Don't be afraid to just experiment with it a little bit. I've found that I spend almost as much time asking as I would have if I had just tried the mod I thought was right, uploaded it, and see if it works and what type of errors I get. I've learned a lot doing this, and I've also enjoyed a bit of satisfaction when I've gotten it right. We sometimes get intimidated by all of it, but courage gets us all a long way. After all, we're the webmasters, right?
Anyway, I think the answer is in the first example in the original post.
I think the solution might be, and you'll notice the might........
Code:
<?php
/******************************************/
/* PHP-NUKE: Web Portal System */
/* ========================= */
/* */
/* Copyright (c) 2002 by Francisco Burzi */
/* http://phpnuke.org */
/* */
/* This program is free software. You can redistribute it and/or modify */
/* it under the terms of the GNU General Public License as published by */
/* the Free Software Foundation; either version 2 of the License. */
/************************************************************************/
Ok Guys....This has been messing with me for 2 months now, I tried every code and everything i could find and nothing works. Here's the deal
I got this javascript code from another site, and i want to make it work in a block on my nuke site so i tried everything, the way i have it now the errors have died....now the block is just totally blank....nothing in it. My block file is as follows:
Code:
<?php
if (eregi("block-RandomMidi2.php", $PHP_SELF)) {
Header("Location: index.php");
die();
}
Then i have the randommidi script in the .js file just like this:
Code:
<script language="JavaScript">
song = new Array(5); //must match the number of songs and titles;
title = new Array(5);//must match the number of songs and titles;
song[0]='http://resources.bravenet.com/audio/audioclips/disco_dance/rasputin.mid';
song[1]='http://resources.bravenet.com/audio/audioclips/pop_music/tainted_love.mid';
song[2]='http://resources.bravenet.com/audio/audioclips/disco_dance/tribaldance.mid';
song[3] ='http://resources.bravenet.com/audio/audioclips/disco_dance/relax.mid';
song[4] ='http://resources.bravenet.com/audio/audioclips/disco_dance/lefreak.mid';
song[5] ='http://resources.bravenet.com/audio/audioclips/disco_dance/dancingqueen.mid';
index = Math.floor(Math.random() * song.length);document.write("<DL>\n");
document.write("<embed SRC="+song[index]+" width=200 height=55 autostart=true loop=infinite BGCOLOR='#000000'");
document.write(' TEXT="#FFFFFF">');
document.write("<BR>");
document.write("The randomly selected song you are listening to is: ");
document.write("<font size=4 color=red>");
document.write(title[index]);
document.write("</font>")
document.write("</DL>\n");
</script>
*NOTE: I haven't changed the midi file links in the code to my site yet*
When i try to preview the block...i get a popup in IE telling me there is a Script error on the page, Line 2 Char: 1, I can't figure anything out here, what do i have wrong? Please help me, i been trying on my own with this for 2 months.
Very big EXTRA thanks to anyone who offers there help!
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