Okay - i integrated it... and the ajax tabs are working (as far as showing the tabs and scrolling... but it doesn't seem to show the actual content. It's just blank now:
www.nodfactor.com
I changed the original tab script, which I've attached, into four separate files (external1.php, external2.php... etc) and I keep getting this error:
Fatal error: Call to undefined function get_header() in /home/nodfacto/public_html
I've attached the original tabber script and one of the external.php scripts for your review.
ORIGINAL SCRIPT:
<div class="tabber">
<div class="tabbertab">
<!--This section is currently pulling category ID #1, and can be switched by changing the cat=1 to show whatever category ID you would like in this area.-->
<h2>News</h2>
<?php $recent = new WP_Query("cat=9&showposts=1"); while($recent->have_posts()) : $recent->the_post();?>
<div class="tabbertableft">
<a href="<?php the_permalink() ?>" rel="bookmark"><img src="<?php echo get_post_meta($post->ID, "top feature", true); ?>" alt="<?php echo get_post_meta($post->ID, "Theme Name", true); ?> Thumbnail" /></a>
</div>
<div class="tabbertabright">
<h1><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h1>
<p style="font-size:11px; margin:0px 0px 10px 0px;"><?php the_time('F j, Y'); ?> · <?php comments_popup_link('Leave a Comment', '1 Comment', '% Comments'); ?> <?php edit_post_link('(Edit)', '', ''); ?></p>
<?php the_content_limit(525, "[Read the full story]"); ?>
</div>
<?php endwhile; ?>
</div>
<div class="tabbertab">
<!--This section is currently pulling category ID #1, and can be switched by changing the cat=1 to show whatever category ID you would like in this area.-->
<h2>Reviews</h2>
<?php $recent = new WP_Query("cat=1&showposts=1"); while($recent->have_posts()) : $recent->the_post();?>
<div class="tabbertableft">
<a href="<?php the_permalink() ?>" rel="bookmark"><img src="<?php echo get_post_meta($post->ID, "top feature", true); ?>" alt="<?php echo get_post_meta($post->ID, "Theme Name", true); ?> Thumbnail" /></a>
</div>
<div class="tabbertabright">
<h1><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h1>
<p style="font-size:11px; margin:0px 0px 10px 0px;"><?php the_time('F j, Y'); ?> · <?php comments_popup_link('Leave a Comment', '1 Comment', '% Comments'); ?> <?php edit_post_link('(Edit)', '', ''); ?></p>
<?php the_content_limit(525, "[Read the full story]"); ?>
</div>
<?php endwhile; ?>
</div>
<div class="tabbertab">
<!--This section is currently pulling category ID #1, and can be switched by changing the cat=1 to show whatever category ID you would like in this area.-->
<h2>Interviews</h2>
<?php $recent = new WP_Query("cat=4&showposts=1"); while($recent->have_posts()) : $recent->the_post();?>
<div class="tabbertableft">
<a href="<?php the_permalink() ?>" rel="bookmark"><img src="<?php echo get_post_meta($post->ID, "top feature", true); ?>" alt="<?php echo get_post_meta($post->ID, "Theme Name", true); ?> Thumbnail" /></a>
</div>
<div class="tabbertabright">
<h1><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h1>
<p style="font-size:11px; margin:0px 0px 10px 0px;"><?php the_time('F j, Y'); ?> · <?php comments_popup_link('Leave a Comment', '1 Comment', '% Comments'); ?> <?php edit_post_link('(Edit)', '', ''); ?></p>
<?php the_content_limit(525, "[Read the full story]"); ?>
</div>
<?php endwhile; ?>
</div>
<div class="tabbertab">
<!--This section is currently pulling category ID #1, and can be switched by changing the cat=1 to show whatever category ID you would like in this area.-->
<h2>Events</h2>
<?php $recent = new WP_Query("cat=3&showposts=1"); while($recent->have_posts()) : $recent->the_post();?>
<div class="tabbertableft">
<a href="<?php the_permalink() ?>" rel="bookmark"><img src="<?php echo get_post_meta($post->ID, "top feature", true); ?>" alt="<?php echo get_post_meta($post->ID, "Theme Name", true); ?> Thumbnail" /></a>
</div>
<div class="tabbertabright">
<h1><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h1>
<p style="font-size:11px; margin:0px 0px 10px 0px;"><?php the_time('F j, Y'); ?> · <?php comments_popup_link('Leave a Comment', '1 Comment', '% Comments'); ?> <?php edit_post_link('(Edit)', '', ''); ?></p>
<?php the_content_limit(525, "[Read the full story]"); ?>
</div>
<?php endwhile; ?>
</div>
<!-- <div class="tabbertab">
<h2>Category</h2>
<?php $recent = new WP_Query("cat=1&showposts=1"); while($recent->have_posts()) : $recent->the_post();?>
<div class="tabbertableft">
<a href="<?php the_permalink() ?>" rel="bookmark"><img src="<?php echo get_post_meta($post->ID, "top feature", true); ?>" alt="<?php echo get_post_meta($post->ID, "Theme Name", true); ?> Thumbnail" /></a>
</div>
<div class="tabbertabright">
<h1><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h1>
<p style="font-size:11px; margin:0px 0px 10px 0px;"><?php the_time('F j, Y'); ?> · <?php comments_popup_link('Leave a Comment', '1 Comment', '% Comments'); ?> <?php edit_post_link('(Edit)', '', ''); ?></p>
<?php the_content_limit(525, "[Read the full story]"); ?>
</div>
<?php endwhile; ?>
</div>
<div class="tabbertab">
<h2>Category</h2>
<?php $recent = new WP_Query("cat=1&showposts=1"); while($recent->have_posts()) : $recent->the_post();?>
<div class="tabbertableft">
<a href="<?php the_permalink() ?>" rel="bookmark"><img src="<?php echo get_post_meta($post->ID, "top feature", true); ?>" alt="<?php echo get_post_meta($post->ID, "Theme Name", true); ?> Thumbnail" /></a>
</div>
<div class="tabbertabright">
<h1><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h1>
<p style="font-size:11px; margin:0px 0px 10px 0px;"><?php the_time('F j, Y'); ?> · <?php comments_popup_link('Leave a Comment', '1 Comment', '% Comments'); ?> <?php edit_post_link('(Edit)', '', ''); ?></p>
<?php the_content_limit(525, "[Read the full story]"); ?>
</div>
<?php endwhile; ?>
</div>
<div class="tabbertab">
<h2>Category</h2>
<?php $recent = new WP_Query("cat=1&showposts=1"); while($recent->have_posts()) : $recent->the_post();?>
<div class="tabbertableft">
<a href="<?php the_permalink() ?>" rel="bookmark"><img src="<?php echo get_post_meta($post->ID, "top feature", true); ?>" alt="<?php echo get_post_meta($post->ID, "Theme Name", true); ?> Thumbnail" /></a>
</div>
<div class="tabbertabright">
<h1><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h1>
<p style="font-size:11px; margin:0px 0px 10px 0px;"><?php the_time('F j, Y'); ?> · <?php comments_popup_link('Leave a Comment', '1 Comment', '% Comments'); ?> <?php edit_post_link('(Edit)', '', ''); ?></p>
<?php the_content_limit(525, "[Read the full story]"); ?>
</div>
<?php endwhile; ?>
</div> -->
</div>
EXTERNAL PHP SCRIPT:
<?php get_header(); ?>
<div class="tabber">
<div class="tabbertab">
<!--This section is currently pulling category ID #1, and can be switched by changing the cat=1 to show whatever category ID you would like in this area.-->
<?php $recent = new WP_Query("cat=9&showposts=1"); while($recent->have_posts()) : $recent->the_post();?>
<div class="tabbertableft">
<a href="<?php the_permalink() ?>" rel="bookmark"><img src="<?php echo get_post_meta($post->ID, "top feature", true); ?>" alt="<?php echo get_post_meta($post->ID, "Theme Name", true); ?> Thumbnail" /></a>
</div>
<div class="tabbertabright">
<h1><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h1>
<p style="font-size:11px; margin:0px 0px 10px 0px;"><?php the_time('F j, Y'); ?> · <?php comments_popup_link('Leave a Comment', '1 Comment', '% Comments'); ?> <?php edit_post_link('(Edit)', '', ''); ?></p>
<?php the_content_limit(525, "[Read the full story]"); ?>
</div>
<?php endwhile; ?>
</div>
</div>
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32: 33: 34: 35: 36: 37: 38: 39: 40: 41: 42: 43: 44: 45: 46: 47: 48: 49: 50: 51: 52: 53: 54: 55: 56: 57: 58: 59: 60: 61: 62: 63: 64: 65: 66: 67: 68: 69: 70: 71: 72: 73: 74: 75: 76: 77: 78: 79: 80: 81: 82: 83: 84: 85: 86: 87: 88: 89: 90: 91: 92: 93: 94: 95: 96: 97: 98: 99: 100: 101: 102: 103: 104: 105: 106: 107: 108: 109: 110: 111: 112: 113: 114: 115: 116: 117: 118: 119: 120: 121: 122: 123: 124: 125: 126: 127: 128: 129: 130: 131: 132: 133: 134: 135: 136: 137: 138: 139: 140: 141: 142: 143: 144: 145: 146: 147: 148: 149: 150: 151: 152: 153: 154: 155: 156: 157: 158: 159: 160: 161: 162: 163: 164: 165: 166: 167: 168:





by: FahdmurtazaPosted on 2008-03-21 at 23:33:29ID: 21184989
Nopes
you are doing the things right
http://www.nodfactor.com/
is working. All you have to do is to open the theme's header files and start implementing the new tabbed interface. I see the original theme has support for drop downs of sub categories. Thats cool.
Regards,
Fahd Murtaza