Title: MHFC's Replies | WordPress.org

---

# MHFC

  [  ](https://wordpress.org/support/users/mhfc/)

 *   [Profile](https://wordpress.org/support/users/mhfc/)
 *   [Topics Started](https://wordpress.org/support/users/mhfc/topics/)
 *   [Replies Created](https://wordpress.org/support/users/mhfc/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/mhfc/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/mhfc/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/mhfc/engagements/)
 *   [Favorites](https://wordpress.org/support/users/mhfc/favorites/)

 Search replies:

## Forum Replies Created

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

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Facebook Page Photo Gallery] Some thumbnails do not display.](https://wordpress.org/support/topic/some-thumbnails-do-not-display/)
 *  [MHFC](https://wordpress.org/support/users/mhfc/)
 * (@mhfc)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/some-thumbnails-do-not-display/#post-5137184)
 * rcaweb how do u make the whole album to get load?
 *   Forum: [Installing WordPress](https://wordpress.org/support/forum/installation/)
   
   In reply to: [integrate wordpress with phpbb3 forum](https://wordpress.org/support/topic/integrate-wordpress-with-phpbb3-forum/)
 *  [MHFC](https://wordpress.org/support/users/mhfc/)
 * (@mhfc)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/integrate-wordpress-with-phpbb3-forum/#post-5177746)
 * hi bro, how did u make the integration with ur forum
    which script works?
 * i tried this.
 *     ```
       <?php
   
       function show_posts($limit = 5)
       {
       global $wpdb;
       //Put your phpBB and wordpress database info here:
       $WPDB = "DB"; //WP db name
       $PHPBBDB = "DB"; //phpBB db name
       $USERS_TABLE = "phpbb3_users"; //phpbb user table
       $TOPICS_TABLE = "phpbb3_topics"; //phpbb topics table
       $POSTS_TABLE = "phpbb3_posts"; //phpbb posts table
       $SITEURL = "http://www.mhfc.co.il/forum/"; //Forum URL with trailing /
       	//Do not edit beyond this point
       	$lastfpost = 0;
       	$top5=array(-1,-1,-1,-1,-1,-1,-1,-1,-1,-1);
       	$wpdb->select($PHPBBDB);
       	$test = 0;
       	$results = $wpdb->get_results("SELECT * FROM $POSTS_TABLE ORDER BY post_time DESC");
   
       	if ($results)
       	{
       		foreach ($results as $post)
       		{
       			$user = $wpdb->get_row("SELECT * FROM $USERS_TABLE WHERE user_id = $post->poster_id");
       			$forum = $wpdb->get_row("SELECT * FROM $TOPICS_TABLE WHERE forum_id = $post->forum_id");
       			$topic = $wpdb->get_row("SELECT * FROM $TOPICS_TABLE WHERE topic_id = $post->topic_id");
       			$test = 0;
       			for($i=0;$i<=$limit;$i++){
       			if($topic->topic_id==$top5[$i]){ $test=1; }
       			}
       			if($user && $topic && $test==0)
       			{
       				$top5[$lastfpost]=$topic->topic_id;
       				$lastfpost += 1;
       				echo "
       <li><a>forum_id&t=$post->topic_id'>";
       				$nposts=$topic->topic_replies+1;
       				echo "$topic->topic_title\n";
       				echo "</a>\n";
       				echo " at " . date("F j, Y - H:i", $post->post_time) . " \n";
       				echo "($nposts)</li>
       \n";
       				if($lastfpost == $limit){ break; }
       			}
       		}
       	}
   
       	$wpdb->select($WPDB);
       }
   
       ?>
       ```
   
 * and nothing happen
 * any help?

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