Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter englishcoder

    (@englishcoder)

    Figured it out – replaced:

    if ( file_exists($remote_version_url) ) {

    with

    if (@fopen($remote_version_url, "r")) { //@ hides error message if file not found / available

    since you can’t use file_exists for remote servers…

    #2 is fairly straight forward:

    Upload BB Press to the /forum directory of your site then follow instructions to install. Assuming you have setup WordPress already, you can integrate the forum by following the integration guide as part of the BB Press installation.

    Once you have setup BB Press (and told to login using your existing WP username / password) install this BB Press Integration plugin: http://wordpress.org/extend/plugins/bbpress-integration/ (needed to ensure cookies work between WordPress and BB Press correctly.

    If I was setting up the site, I would keep WordPress in a sub-folder (/blog in your case) just to keep the site better organised.

    I’ve had a similar problem to this before.

    Try setting the default WP theme; if you can’t load WP then just rename the current themes’ folder on the server – this will reset to the default theme (note: you should now be able to login to WP admin, once there go to Appearance > Themes and you’ll get a message saying the current theme is broken, reverting to default).

    If this works, make sure there are no spaces in the themes’ .php files before the opening <?php tag and after the closing ?> tag.

    Worst case scenario, try uploading WP to a subdirectory / sub domain / / dirrerent domain /localhost and see if the same error occurs. Make sure you download a “fresh” version of 2.8.4 (current latest).

    Hope this helps!

    Thread Starter englishcoder

    (@englishcoder)

    Got it working by using this code:

    <?php
    		$temp = $wp_query;
    		$wp_query= null;
    		$wp_query = new WP_Query();
    		$wp_query->query('showposts=5'.'&paged='.$paged);
    	?>
    
    	<?php while ($wp_query->have_posts()) : $wp_query->the_post(); ?>
    
    		<div class="entry grid_3">
    
    			<div class="gallery-image">
    				<a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php postimage(158,160); ?></a>
                </div><!-- /gallery-image -->
    
                <div class="gallery-vote">
    				<?php if(function_exists('the_ratings')) { the_ratings(); } ?>
                </div><!-- /gallery-vote -->
    
    		</div><!-- /entry -->
    
        <?php endwhile; ?>
    
        <br class="clear" />
    
        <?php if (function_exists('wp_pagenavi')) { ?>
        <div id="pagenavi-wrap">
        	<?php  wp_pagenavi(); ?>
        </div>
        <?php } ?>
    
        <?php $wp_query = null; $wp_query = $temp;?>

    Thread Starter englishcoder

    (@englishcoder)

    Thanks for the quick reply.

    I’ve tried the code but it hasn’t had any effect. Does it make a difference that this is a page template rather than an archive page?

    Any other suggestions?

    Many thanks.

Viewing 5 replies - 1 through 5 (of 5 total)