ShadiNeko
Forum Replies Created
-
Forum: Plugins
In reply to: Having issues integrating wordpress header into SMFAlright well… I got the template issues sorted out, but now I’ve ran into different problems. The problems I’m running into now are that the featured images don’t load, and I can’t login, some kind of cookie problem according to SMF.
Look for yourself: http://segabits.com/smf/index.php
Anyways, this is the current situation I got going…
SMF index.php
require_once('/path/to/blog/wp-blog-header.php');
right before
$forum_version = 'SMF 2.0';and…
SMF index.template.php
require('/path/to/blog/wp-content/themes/segabits2/headerForums.php');
right afterfunction template_body_above() { global $context, $settings, $options, $scripturl, $txt, $modSettings;here is the code i use to fetch featured images with in wordpress, for some reason it’s not working when embedded into SMF:
<?php include('/path/to/blog/wp-content/themes/segabits/functions.php'); query_posts('cat=814&showposts=6'); ?> <?php while(have_posts()) : the_post(); ?> <div class="featuredBox"> <a href="<?php the_permalink() ?>"> <?php $key="featured_pic" ?> <?php echo '<img width="144" height="80" src="' . get_post_meta($post->ID, $key, true) . '" />' ?> <?php the_title(); ?> </a></div> <?php endwhile; ?> <?php wp_reset_query(); ?>anyways yeah ^^;;; that’s my current issue.. I hope this makes more sense.. i was pretty tired when I made that other post and probably made no sense.