Little bump, ok, so i returned to my original script, I just don't want to believe something that is working fine in one page, doesn't work on some other.
As you can see, it is fully working on this html page:
cudamine.com/santa-maria/santa2/
But on the wordpress php page, it doesn't:
http://cudamine.com/wordpress/?page_id=39
The code is the same with the exception of how I call the scripts in the php page header:
Code:
<script type="text/javascript" src="<?php bloginfo('template_url'); ?>/jquery.js"></script>
<script type="text/javascript" src="<?php bloginfo('template_url'); ?>/jquery.autoheight.js"></script>
I need to this because of the way wordpress calls the header, index and footer pages.
A layout would look like this:
Code:
<?php get_header(); ?>
<?php get_index(); ?>
<?php get_footer(); ?>
Since this is a custom page, I have:
Code:
<?php
/*
Template Name: Forum
*/
?>
<?php get_header(); ?>
<div id="wordp">
<iframe id="myframe" name="myframe" class="autoHeight" frameborder="0" scrolling="no" src="http://cudamine.com/santa-maria/forumsmf/index.php" width="100%"></iframe>
</div>
<?php get_footer(); ?>
this is driving nuts right now, wordpress forums don't seem to have many answers, I'm not sure if it's my small knowledge with js and php that is the cause of this, maybe I need to call the script in a different way? I have no clue.
edit:
I know the script uses no jquery, by the way
.
Bookmarks