Skip to:
Content
Pages
Categories
Search
Top
Bottom

layout of subcategories

Published on October 6th, 2014 by giantqtipz

Hi guys!

Im loving bbpress. i think its perfect for my site.

I want to make my subcategories appear vertically. right now its like this:

Videogames
– PS4, PS3

I want to make it

Videogames
– PS4
– PS3

how do i do that?

thanks so much guys.

wp-admin area protected via .htaccess

Published on October 6th, 2014 by hiniguez

Hi,

It seems to be recommended to protect wp-admin area with .htpasswd an .htaccess. That’s what I did with all my websites.

Some plugins are using admin-ajax.php. So, in .htaccess I added a line for this file.

It looks like bbpress uses other files of the wpadmin area (on the user point of view – front office). Can somone tells me which files ?

Thanks a lot,

Hervé

Issue Posting – Topics with more 1k replies

Published on October 6th, 2014 by Nitac

We’ve come across a couple of issues when a topic has > 1000 replies.

Slow to post:

  • We’ve had users noticing a significant increase in post time. Might related to this post?

Less than 1k replies:

  • User submits post and post id is appended to URL
  • Eg. /topic-name/page/13/#post-12345
  • User is anchored to their post

More than 1k replies:

  • User submits post and post id is appended to URL but ignores/overrides the page reference.
  • Eg. /topic-name/#post-12345
  • User is redirected to the first page of the topic

Importing DeluxeBB Into bbPress?

Published on October 5th, 2014 by brittonk

I’m moving a social site into BuddyPress and the forums used a now defunct DeluxeBB. It doesn’t seem to be one of the options for the Importer Tools. Do any of you know if the structure of DeluxeBB matches that of one of the options listed?

Here are the forums, threads, and posts tables which contain most of the information needed for this migration.

--
-- Table structure for table <code>deluxebb_forums</code>
--

CREATE TABLE IF NOT EXISTS <code>deluxebb_forums</code> (
  <code>ordered</code> int(5) DEFAULT '0',
  <code>cid</code> varchar(225) DEFAULT NULL,
  <code>name</code> varchar(225) DEFAULT NULL,
  <code>fid</code> int(6) NOT NULL AUTO_INCREMENT,
  <code>topics</code> varchar(225) DEFAULT NULL,
  <code>replies</code> varchar(225) DEFAULT NULL,
  <code>viewstatus</code> varchar(10) DEFAULT NULL,
  <code>poststatus</code> varchar(10) DEFAULT NULL,
  <code>replystatus</code> varchar(10) DEFAULT NULL,
  <code>lastpost</code> varchar(225) DEFAULT NULL,
  <code>lastpostby</code> int(10) DEFAULT '0',
  <code>description</code> tinytext,
  <code>lastpid</code> int(6) DEFAULT '0',
  <code>lastpidtime</code> varchar(255) DEFAULT NULL,
  <code>password</code> varchar(32) DEFAULT NULL,
  <code>userlist</code> mediumtext NOT NULL,
  <code>moderators</code> mediumtext NOT NULL,
  <code>ficon</code> varchar(25) NOT NULL,
  PRIMARY KEY (<code>fid</code>),
  KEY <code>cid</code> (<code>cid</code>),
  KEY <code>lastpostby</code> (<code>lastpostby</code>),
  KEY <code>lastpid</code> (<code>lastpid</code>)
) ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=22 ;

-- --------------------------------------------------------

--
-- Table structure for table <code>deluxebb_posts</code>
--

CREATE TABLE IF NOT EXISTS <code>deluxebb_posts</code> (
  <code>pid</code> bigint(10) NOT NULL AUTO_INCREMENT,
  <code>tid</code> bigint(10) NOT NULL DEFAULT '0',
  <code>author</code> int(10) NOT NULL DEFAULT '0',
  <code>subject</code> varchar(285) CHARACTER SET latin1 NOT NULL,
  <code>message</code> text NOT NULL,
  <code>picon</code> varchar(50) CHARACTER SET latin1 NOT NULL DEFAULT '',
  <code>postdate</code> int(10) NOT NULL DEFAULT '0',
  <code>ip</code> varchar(50) CHARACTER SET latin1 NOT NULL DEFAULT '',
  <code>smiliesoff</code> smallint(1) DEFAULT '0',
  PRIMARY KEY (<code>pid</code>),
  KEY <code>author</code> (<code>author</code>),
  KEY <code>tid</code> (<code>tid</code>,<code>postdate</code>,<code>ip</code>)
) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=495424 ;

-- --------------------------------------------------------

--
-- Table structure for table <code>deluxebb_threads</code>
--

CREATE TABLE IF NOT EXISTS <code>deluxebb_threads</code> (
  <code>tid</code> bigint(10) NOT NULL AUTO_INCREMENT,
  <code>fid</code> int(5) NOT NULL DEFAULT '0',
  <code>author</code> int(10) NOT NULL DEFAULT '0',
  <code>subject</code> varchar(285) NOT NULL,
  <code>picon</code> varchar(50) NOT NULL DEFAULT '',
  <code>views</code> int(3) NOT NULL DEFAULT '0',
  <code>replies</code> int(3) NOT NULL DEFAULT '0',
  <code>closed</code> smallint(1) NOT NULL DEFAULT '0',
  <code>pinned</code> smallint(1) NOT NULL DEFAULT '0',
  <code>moved</code> int(10) unsigned DEFAULT '0',
  <code>flame</code> tinyint(1) NOT NULL DEFAULT '0',
  <code>lastpostby</code> varchar(255) NOT NULL DEFAULT '0',
  <code>lastpostdate</code> int(10) NOT NULL DEFAULT '0',
  <code>hiddenby</code> text NOT NULL,
  <code>likedby</code> text NOT NULL,
  PRIMARY KEY (<code>tid</code>),
  KEY <code>fid</code> (<code>fid</code>),
  KEY <code>pinned</code> (<code>pinned</code>),
  KEY <code>lastpostdate</code> (<code>lastpostdate</code>),
  KEY <code>author</code> (<code>author</code>),
  KEY <code>moved</code> (<code>moved</code>),
  KEY <code>ashouts</code> (<code>fid</code>,<code>tid</code>,<code>author</code>)
) ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=406651 ;

Forum Index not displaying properly

Published on October 5th, 2014 by SpidermanPuddin

The Forum Topic Pages look fine:
http://demo.gunshowtrader.com/forums/forum/gun-clubs/
Forum Topic

However the forum Index page looks like this:
http://demo.gunshowtrader.com/forums/
Forum Index Page

This demo site requires a login to view:
Username: Testuser
Password Abcd1234

bbPress shortcode – show post extract

Published on October 5th, 2014 by ttmt

Hi all

I’m using a WP multisite. One of the sites is a bbpress forum.

On another site I’m pulling through the lastest post using the code below

The only thing I can’t seem to find is the shortcode to show an extract of the post.

Is there a shortcode to show an extract of the post.


<?php
    switch_to_blog( 3 );
    $topics_query = array(
      'author'=> 0, 
      'post_type'=> bbp_get_topic_post_type(), 
      'post_parent'=>'any', 
      'posts_per_page'=>3, 
      //'post_status'=>join(',', array(bbp_get_public_status_id(), bbp_get_closed_status_id()), 
      'show_stickes'=> false, 
      'meta_key'=>'_bbp_last_active_time', 
      'orderby'=>'meta_value', 
      'order'=>'DESC', 
      'meta_query'=>array(bbp_exclude_forum_ids('meta_query'))
    );
    
    $widget_query = new WP_Query($topics_query);

    if ($widget_query->have_posts()) :
      $widget_output = $before_widget;
      $widget_output .= $before_title . $title . $after_title;
      ob_start();

    while ($widget_query->have_posts()):
      $widget_query->the_post();
      $topic_id = bbp_get_topic_id($widget_query->post->ID);
      $author_link = bbp_get_topic_author_link(array('post_id'=>$topic_id, 'type'=>'both', 'size'=>60));
      $forum_id = bbp_get_topic_forum_id($topic_id);   
  ?>

  <div class="col-sm-4"> 
    <div class="post">
      <h4><a>"><?php bbp_topic_title($topic_id); ?></a></h4>
      <p class="date"><span><?php bbp_author_link($topic_id); ?></span> <?php bbp_topic_last_active_time($topic_id);?></p>
      <p> <!--show post extract--> </p>
      <a href="">Read more</a>
    </div>
  </div>

  <?php 
    endwhile; 
    endif; 
    wp_reset_postdata();
  ?>

Import from SMF and strange tags in text.

Published on October 5th, 2014 by mag07

Hello, I have imported my forms from SMF, all went great, except one thing. Parts of text in all forum posts are wrapped in strange <tt> tags.

That results in different font on the front end – http://levelonetwinks.com/?topic=about-frostmourne

And when looking at the posts from WP admin, text editor I see this:

<b>Frostmourne</b> is an established guild (<b>level 25</b>) that has existed on the realm as both social and raiding venue for nearly 8 years.<tt><tt>We’re looking for mature, fun, yet dedicated people that will not only contribute to our progress but to the strong social aspect of our guild.<tt><tt>We have a fairly non strict age requirement of 18+.</tt></tt></tt></tt>

Removing them manually sorts the issue but that’s a lot of work hours to go through each topic and reply :S

I’ve tried a localhost import to the default WP theme, same thing 🙁

Would be grateful for any insight on what may be causing it, as I’d rather not spend the next two days going through them manually :p

Cheers!

Forum Icons?

Published on October 4th, 2014 by LaunchFocus

http://www.kristarella.com/2013/04/bbpress-forum-icons/

Above link does not work. What is the best way to add forum icons?

Our forum URL – http://launchfocus.com/forums/

Create new topic via script

Published on October 4th, 2014 by Omiya Games

Here’s a weird question: is it possible to create a new topic via a script run by a continuous integration server? To provide more context, I’m trying to create a private forum so selected playtesters (users I manually entered, as you can’t register to this forum) can test my games. Ideally, I’d like to configure my Jenkins server to upload a Unity webplayer to my server, then create a new topic with the first post being the webplayer and the change log to a specified forum. I’m wondering if there’s an automated way to make this happen. Preferably, I would not like to rely on WordPress posts, since again, I’d like to keep these work-in-progress private.

Thanks for the help!

Quick stats:
Wordpress 4.0
bbPress 2.5.4

Help with optimising an imported 60k post forum

Published on October 4th, 2014 by Jamie

Hi there,

I have been reading through the forums, and can’t find anything for more recent versions so was wondering if I could request some help.

I am working on a project called GameDevelopers.ie, a 12 year old site. We recently ported over their old, bespoke CMS into WordPress, and the our forums which were on phpbb after paying cms2cms which did a great job.

The forum has 60,000 posts among several thousand threads and two thousand users. Our server is woefully underresourced, and the site is crashing when bbpress is enabled. So we have it disabled, and are just organising to get a better server with more cpu’s, tons of ram and space.

I was wondering what else we can do to help reduce the load? Is there some way that we can mass archive parts of the forum, or other tactics to help make things run a little better?

Any help would be GREATLY appreciated.

Cheers

Jamie

Skip to toolbar