Search Results for 'code'
-
Search Results
-
Topic: Issue since upgrade to 2.4
Hello,
after exactly 10 years and over 500.000 posts with our board deppheads.com running with Woltlab Burning Board (right now version 3.1.8), social networks have sort of won – instead of 150 new posts the day we have now maximum 5 posts. WBB4 will be coming out soon, so this is the right time to sell my WBB license and move it all to my site johnny-depp.org, powered by WordPress. This is where I seek help.
I already deleted inactive members, so that we now have “just” over 300, but I don’t want to delete all the written things like movie reviews and serious discussion, as this is still the home of many. So there are 500.000 posts and nearly 10.000 topics to be imported.
I edited the example.php and so far it worked with importing members and forums (just on a test WordPress installation for now).
However, there are some problems/questions I’ve come up with and I’m almost sure, there will be more following.
1. there is, equally to phpBB, the problem, that there are topics and posts, and the first post of the topic has to become “topic content” of WBB.
Here I used
// Topic content.
// Note: We join the posts table because topics do not have content.
$this->field_map[] = array(
'from_tablename' => 'wbb1_1_post',
'from_fieldname' => 'message',
'join_tablename' => 'topics',
'join_type' => 'INNER',
'join_expression' => 'USING (threadID) WHERE wbb1_1_post.postID = wbb1_1_thread.firstPostID',
'to_type' => 'topic',
'to_fieldname' => 'post_content',
'callback_method' => 'callback_html'
);Unfortunately, I get the error, that wbb1_1_post.message does not exist:
WordPress database error: [Unknown column 'wbb1_1_post.message' in 'field list'] SELECT convert(wbb1_1_thread.threadID USING "utf8") AS threadID,convert(wbb1_1_thread.replies USING "utf8") AS replies,convert(wbb1_1_thread.boardID USING "utf8") AS boardID,convert(wbb1_1_thread.userID USING "utf8") AS userID,convert(wbb1_1_post.message USING "utf8") AS message,convert(wbb1_1_thread.topic USING "utf8") AS topic,convert(wbb1_1_thread.time USING "utf8") AS time,convert(wbb1_1_thread.lastPostTime USING "utf8") AS lastPostTime FROM wbb1_1_thread AS wbb1_1_thread LIMIT 0, 100
But it does!
I attached both, my wbb3.php import script and the database structure of the most important tables, here you go:
http://deppheads.com/uploads/wbb.txt
http://deppheads.com/uploads/database_structure.txt2. I hope/guess, this is also the reason that all topics (once I remove that passage that produces an error) are started either by Anonymous or by ME (although I haven’t done it)?
3. some users are twice now (like myself..who have been admins of wordpress and users of the forum). Can I simply merge them with
UPDATE wp_posts SET post_author = ‘1’ WHERE post_author = ‘2’; and it will count for the forum, too?4. the passwords – in WBB they are hashed by this:
$passwort = sha1($row->salt.sha1($row->salt.sha1($_POST[‘passwort’])));
so what do I write at the end of wbb3.php
public function authenticate_pass( $password, $serialized_pass ) {
$pass_array = unserialize( $serialized_pass );
return ( $pass_array[‘hash’] == md5( md5( $password ). $pass_array[‘salt’] ) );
}
or is this impossible and the users have to get the new password by mail?5. the imported users have no “Forum Role”. Is is “normal”? Is there any chance to automatically give them the forum role “Participant”?
6. do I have to keep the wbb3.php “forever” because of the passwords or can I delete it one day, even if not all members have com back yet?
7. until now we have everything like private messages, profiles, friends and especially user groups (Moderators, crew members) with hidden forums. Do I see correct, that I can install both, import bbpress and afterwards attach for example our “Mods Only” to the group “Moderators” as group forum?
8. I see that every user gets a new User ID – old IDs are saved in table _bbp_converter_translator – will that table be kept? Maybe by this I have a chance to later import – somehow – private messages for buddy press!?
Alone if my first point is solved, I’d be thankful.
Kind regards, inspirationally.
Hello,
I have my registration and login pages on the frontend of my website using the shortcodes [bbp-register] and [bbp-login].
However after someone registers they get redirect to the back /wp-login. How can I make them go to my frontend /login?
After logging in I’d like them to be redirected to homepage. Is this possible?
Thanks
Hi,
I’m in the process of migrating a phpBB forum to WordPress with bbPress. I don’t know if the bbPress style is better but my users are used to the phpBB style for displaying Forums on the main page. So I tried to reproduce that layout in bbPress using categories. With the default theme, I was not happy with the way it looked. After a quick search in these forums, I saw some interesting topics from @lynq (here and there) but it didn’t work as intended in the last bbpress release and ticket #1958 has been moved to 2.6.
So after a few hours of searching codex, and a lot of tries, I managed to do what I wanted. As there is still some demand in Lynq’s topic, I thought I should share my little work.
I’m not a developper, so my code may be a little messy, but it works as intended. I’ve tried using the bbpress functions, and commented my code. If any PHP expert would like to review it and make it better, any feedback is welcome.
The only file to change is loop-forums.php with this code.
You just need to create it and paste the code. Then upload it to /wp-content/your-theme/bbpress/. Use a child-theme if you don’t want to loose it on next theme update.The forums are not yet online, so here are some screenshots with descriptions. (In French, because, as you may have noticed, English is not my native language 🙂 )
I’ve tested many situations (even a category inside a forum, which bbpress doesn’t consider anymore as a category, probably normal behavior) and I think everything works as intended. Feel free to report any bug.
Topic: Conditionals
Hi there
Does anyone know if BBPress has conditionals like BuddyPress does such as in the following link: buddypress conditionals?
I am trying to find a condition for if you are on the forum index and the users forum list when on a profile. I can’t seem to find anything that works so if anyone knows that would be great.
Thanks
Topic: Permalink for Subforums?
Hello!
I can’t seem to find any answers via Google, so maybe you fine folks could help me. I just started delving into bbpress themeing. I’m basically skeletonizing the default bbpress theme so I can start working in depth with it.
The way I have my forums structured is in three category forums, with variable amounts of subforums. The default theme uses bbp_list_forums to return an unordered list of all subforums of a category. I’ve been messing with the arguments and made each list item separated in its own div. My problem with that is only the text inside the div links to the forum, whereas I would like the entire div to be the link.
My arguments look like so:
<?php bbp_list_forums( array( 'before' => '<ul class="bbp-forums-list">', 'after' => '</ul>', 'link_before' => '<li class="bbp-forum"><a href="<?php the_permalink(); ?>"><div class="forum-list-item">', 'link_after' => '</div></a></li>', 'count_before' => '<div class="forum-list-item-count"><span class="forum-list-item-topics">Topics: </span>', 'count_after' => '', 'count_sep' => '<br><span class="forum-list-item-replies">Replies: </span>', 'separator' => '<br>', 'forum_id' => '', 'show_topic_count' => true, 'show_reply_count' => true, )); ?>Any way I can get the permalinks to the individual subforums?
Topic: breadcrumbs missing
I feel like I am missing something very basic here… why are breadcrumbs not showing at all? I used a custom template for the main bbpress page. I’ve added in
<?php bbp_breadcrumb(); ?>into that custom template – nothing changed and no breadcrumbs appearing. Help? What am I missing here?Hi
I have used topic index shortcode on forum page and the pagination is all messed with line breaking. I have tried to search a lot but cant fix it. Hoping any one solve this. thanks
pagination issues when using topics shortcode on front page.
Hi,
I just used this shortcode [bbp-topic-tags] in widget and also in template file and its showing the tags but with <br> tag after each …. tag. Its means all tag clouds are displaying in a long list style and not displaying like wordpress default Tag cloud are displaying.
Is this bug or please help to fix thanks
I am integrating bbpress files into my own wordpress theme. But, I don’t get why there is so many loop files?
“content-archive-forum.php” links to “loop-forums.php”, and inside that, it links to “single-forum.php”.
Why on earth is there one loop linked to another, and then another, and then another? It sees confusing to me…Can’t I just leave out files like “loop-forums.php” and add that code directly in “content-archive-forum.php and do the same with the other files? Or is it necessary to keep them broken up?
i want to add some custom fields inside
<div class="bbp-reply-author"> </div>.I can do this inside user-profile.php using this code:
<div> <?php if ( bbp_get_displayed_user_field( 'twitter' ) ) : ?> <a class="tooltip" href="http://twitter.com/<?php bbp_displayed_user_field( 'twitter' ); ?>" title="<?php bbp_displayed_user_field( 'display_name' ); ?><?php _e( ' on Twitter', 'todo' ); ?>"><img src="<?php echo get_stylesheet_directory_uri(); ?>/images/socialicons/twitter.png" alt="" /></a> <?php endif ?> <?php if ( bbp_get_displayed_user_field( 'facebook' ) ) : ?> <a class="tooltip" href="<?php bbp_displayed_user_field( 'facebook' ); ?>" title="<?php bbp_displayed_user_field( 'display_name' ); ?><?php _e( ' on Facebook', 'todo' ); ?>"><img src="<?php echo get_stylesheet_directory_uri(); ?>/images/socialicons/facebook.png" alt="" /></a> <?php endif ?> <?php if ( bbp_get_displayed_user_field( 'google' ) ) : ?> <a class="tooltip" href="<?php bbp_displayed_user_field( 'google' ); ?>" title="<?php bbp_displayed_user_field( 'display_name' ); ?><?php _e( ' on Google+', 'todo' ); ?>"><img src="<?php echo get_stylesheet_directory_uri(); ?>/images/socialicons/google_plus.png" alt="" /></a> <?php endif ?> <?php if ( bbp_get_displayed_user_field( 'linkedin' ) ) : ?> <a class="tooltip" href="<?php bbp_displayed_user_field( 'linkedin' ); ?>" title="<?php bbp_displayed_user_field( 'display_name' ); ?><?php _e( ' on Linkedin', 'todo' ); ?>"><img src="<?php echo get_stylesheet_directory_uri(); ?>/images/socialicons/linkedin.png" alt="" /></a> <?php endif ?> <?php if ( bbp_get_displayed_user_field( 'flickr' ) ) : ?> <a class="tooltip" href="<?php bbp_displayed_user_field( 'flickr' ); ?>" title="<?php bbp_displayed_user_field( 'display_name' ); ?><?php _e( ' on Flickr', 'todo' ); ?>"><img src="<?php echo get_stylesheet_directory_uri(); ?>/images/socialicons/flickr.png" alt="" /></a> <?php endif ?> <?php if ( bbp_get_displayed_user_field( 'youtube' ) ) : ?> <a class="tooltip" href="<?php bbp_displayed_user_field( 'youtube' ); ?>" title="<?php bbp_displayed_user_field( 'display_name' ); ?><?php _e( ' on YouTube', 'todo' ); ?>"><img src="<?php echo get_stylesheet_directory_uri(); ?>/images/socialicons/youtube.png" alt="" /></a> <?php endif ?> <?php if ( bbp_get_displayed_user_field( 'pinterest' ) ) : ?> <a class="tooltip" href="<?php bbp_displayed_user_field( 'pinterest' ); ?>" title="<?php bbp_displayed_user_field( 'display_name' ); ?><?php _e( ' on Pinterest', 'todo' ); ?>"><img src="<?php echo get_stylesheet_directory_uri(); ?>/images/socialicons/pinterest.png" alt="" /></a> <?php endif ?> <?php if ( bbp_get_displayed_user_field( 'user_url' ) ) : ?> <a class="tooltip" href="<?php bbp_displayed_user_field( 'user_url' ); ?>" title="<?php bbp_displayed_user_field( 'display_name' ); ?><?php _e( " 's site", 'todo' ); ?>"><img src="<?php echo get_stylesheet_directory_uri(); ?>/images/socialicons/site.png" alt="" /></a> <?php endif ?> </div>But for some reason this didn’t work at loop-single-reply.php, there’s something i’m missing? ty
