Search Results for 'code'
-
AuthorSearch Results
-
August 26, 2014 at 3:12 am #151384
In reply to: Conversion MyBB to bbPress
Stephen Edgar
KeymasterSorry for the delay, life has been getting in the way.
Thanks for listing those tweaks you made, they make sense, we already bump the PHP timeout and up the memory limit to 256M but that is all we can really do safely before we cause grief in shared hosting environments.
I linked this post from our Import Troubleshooting docs so when I get the time we can expand that section (or a dedicated section) on tweaking ‘all the things’.
It doesn’t look I have asked this previously, what version of MyBB are you importing from?
All my tests have been with MyBB v1.6.10
Some topics are not combined correctly. All replies are separate topics. The ‘Recalculate the parent topic for each post’ does not fix this. I ran all repair queries btw. An option in the Topics interface to combine these, would be ace 😉 Is it possible to correct this with a query? My SQL skills are too limited unfortunately.
I just ran an MyBB import of my ‘standard’ MyBB database and without running any repair tools replies are correctly associated with their parent topics.
As to the possibility of correcting this with a MySQL query, it could be, it’s hard to say without knowing what data is mismatched.
Run the following query in phpMyAdmin:
–83is my topic ID
–97,99,100and102are the reply ID’s I know should be part of the topic ID83
– A single topic and a couple of replies should be all I need to see what’s going onSELECT * FROM wp_posts WHERE ID IN (83,97,99,100,102)Once you’ve executed the query, click ‘Print View’ and the results should open in a new browser tab, select all the text and paste them into a GitHub Gist and select SQL from the language dropdown (You don’t need an account for this)
It should look similar to this (this is based on my above screenshot)
https://gist.github.com/ntwb/04ed1cf9cf5f67528fcbThe Repair Forums option ‘Recalculate the position of each reply’ does not work. It creates a white screen. Load problem?
Yes, sadly, this is because of the size of the forums, kind of a know issue so that is good, sortof. Anyway the best thing is is that you do not need to run this tool. This is for only repairing ‘threaded replies’ which MyBB did not have so you can just skip running this tool. I’ll update the verbiage for this text in the next release and make some improvements when used with ‘large’ sites and some error handling.
myBB accepts spaces in the login name. Unfortunately WordPress does not. The conversion leaves the spaces in the login name. Is it possible to correct this with an SQL? Is there another workaround? Correcting them one by one is not my preference
I’ll work out a fix for that shortly, second time I’ve hit this issue today, @Halo-DieHard also did on BuddyPress.org.
Two forums are created double. The copies do not contain any topics or replies, so it is easy to remove them. Just thought you should know
That shouldn’t be the case, though as you point out easily fixed, most likely one of two things, either those forums were still there from a previous import OR there is something funky with the forum categories versus the forum forums though checking my import I just did, everything is fine for me 😉
The original myBB forum contained 1mlj+ messages and 36k+ discussions. The converted forum contains 109k subjects. That can be explained because of the first issue. But it only contains 830k replies. It could be that myBB adds subjects and replies to messages, but the difference is a bit too big. Is it possible to do an SQL checksum to check the expected output?
It does sound a little off, some forum software combine the total topics and replies to create a total post count.
On my MyBB I have:
Our members have made a total of 22 posts in 10 threads. We currently have 6 members registered.After importing using the
[bbp-stats]shortcode I have
Topics 10, Replies 12So that works out correct in my case, total of 22 posts = 10 topics + 12 replies 🙂
It’s hard to match up yours because the issue above as you state, ball park 109k + 830k = 93k which is a few short of the 1m, this will be due to those issues above and we can take another look after they’re fixed.
August 26, 2014 at 2:15 am #151379In reply to: WordPress Database Error: Importing (XF to WP BBP)
Stephen Edgar
KeymasterCan you open up your Xenforum’s database in phpMyAdmin, open the forum table and take a screenshot and post it here please.
(Your Xenforum’s
forumtable may include a prefix, in the screenshot below mine isxf_forum)It should look similar to mine here, I need to check that the table format matches what I am using.
https://i.cloudup.com/mnIqTR-W8m.png
August 26, 2014 at 1:59 am #151378In reply to: pagination on forum listing Page
Stephen Edgar
KeymasterAdd the following to your
functions.phpfilefunction custom_bbp_list_forums() { $args['separator'] = '<br />'; return $args; } add_filter('bbp_before_list_forums_parse_args', 'custom_bbp_list_forums' );That will result in something like this, depending on your themes styles:
August 26, 2014 at 1:33 am #151377In reply to: Strange characters beneath user profile picture.
Stephen Edgar
KeymasterAdd the following CSS to your custom CSS and you should be good to go:
#bbpress-forums span.bbp-author-ip { word-wrap: break-word; }I have added
word-wrap: break-word;to bbPress CSS in #2675span.bbp-author-ip { font-family: 'Helvetica Neue', Arial, Helvetica, 'Nimbus Sans L', sans-serif; font-size: 11px; font-weight: bold; word-wrap: break-word; color: #aaa; }August 25, 2014 at 11:33 pm #151373In reply to: Forum theme not working…
cybarmitzvah
ParticipantTell me the url you get when you get the 404 on the edit profile link.August 25, 2014 at 10:09 pm #151370In reply to: Forum theme not working…
Robkk
ModeratorOk, so your code solved moving the edit profile button to the far right, and removed it from the footer, yet all the above problems still remain.
I probably dont need an account anymore, and im not going to experiment with your site with ftp.
The other error your getting your going to have to contact your theme developer so they can see whats up with your theme.
Tell me the url you get when you get the 404 on the edit profile link.
August 25, 2014 at 9:37 pm #151369In reply to: Forum theme not working…
cybarmitzvah
ParticipantHi Robkk,
I tried making an account, but its hard because I cannot log out. Making an account takes like 10 seconds though.
When I went to the backend to log out, and clicked it, heres what I got:
Warning: Cannot modify header information - headers already sent by (output started at /home/vaghar123/public_html/wp-content/themes/mesocolumn/functions.php:371) in /home/vaghar123/public_html/wp-login.php on line 414 Warning: Cannot modify header information - headers already sent by (output started at /home/vaghar123/public_html/wp-content/themes/mesocolumn/functions.php:371) in /home/vaghar123/public_html/wp-login.php on line 426 Warning: Cannot modify header information - headers already sent by (output started at /home/vaghar123/public_html/wp-content/themes/mesocolumn/functions.php:371) in /home/vaghar123/public_html/wp-includes/pluggable.php on line 883 Warning: Cannot modify header information - headers already sent by (output started at /home/vaghar123/public_html/wp-content/themes/mesocolumn/functions.php:371) in /home/vaghar123/public_html/wp-includes/pluggable.php on line 884 Warning: Cannot modify header information - headers already sent by (output started at /home/vaghar123/public_html/wp-content/themes/mesocolumn/functions.php:371) in /home/vaghar123/public_html/wp-includes/pluggable.php on line 885 Warning: Cannot modify header information - headers already sent by (output started at /home/vaghar123/public_html/wp-content/themes/mesocolumn/functions.php:371) in /home/vaghar123/public_html/wp-includes/pluggable.php on line 886 Warning: Cannot modify header information - headers already sent by (output started at /home/vaghar123/public_html/wp-content/themes/mesocolumn/functions.php:371) in /home/vaghar123/public_html/wp-includes/pluggable.php on line 887 Warning: Cannot modify header information - headers already sent by (output started at /home/vaghar123/public_html/wp-content/themes/mesocolumn/functions.php:371) in /home/vaghar123/public_html/wp-includes/pluggable.php on line 888 Warning: Cannot modify header information - headers already sent by (output started at /home/vaghar123/public_html/wp-content/themes/mesocolumn/functions.php:371) in /home/vaghar123/public_html/wp-includes/pluggable.php on line 891 Warning: Cannot modify header information - headers already sent by (output started at /home/vaghar123/public_html/wp-content/themes/mesocolumn/functions.php:371) in /home/vaghar123/public_html/wp-includes/pluggable.php on line 892 Warning: Cannot modify header information - headers already sent by (output started at /home/vaghar123/public_html/wp-content/themes/mesocolumn/functions.php:371) in /home/vaghar123/public_html/wp-includes/pluggable.php on line 893 Warning: Cannot modify header information - headers already sent by (output started at /home/vaghar123/public_html/wp-content/themes/mesocolumn/functions.php:371) in /home/vaghar123/public_html/wp-includes/pluggable.php on line 894 Warning: Cannot modify header information - headers already sent by (output started at /home/vaghar123/public_html/wp-content/themes/mesocolumn/functions.php:371) in /home/vaghar123/public_html/wp-includes/pluggable.php on line 897 Warning: Cannot modify header information - headers already sent by (output started at /home/vaghar123/public_html/wp-content/themes/mesocolumn/functions.php:371) in /home/vaghar123/public_html/wp-includes/pluggable.php on line 898 Warning: Cannot modify header information - headers already sent by (output started at /home/vaghar123/public_html/wp-content/themes/mesocolumn/functions.php:371) in /home/vaghar123/public_html/wp-includes/pluggable.php on line 899 Warning: Cannot modify header information - headers already sent by (output started at /home/vaghar123/public_html/wp-content/themes/mesocolumn/functions.php:371) in /home/vaghar123/public_html/wp-includes/pluggable.php on line 900 Warning: Cannot modify header information - headers already sent by (output started at /home/vaghar123/public_html/wp-content/themes/mesocolumn/functions.php:371) in /home/vaghar123/public_html/wp-includes/pluggable.php on line 1121Pretty crazy.
Ok, so your code solved moving the edit profile button to the far right, and removed it from the footer, yet all the above problems still remain.
If you send me an email at astronomertalk@gmail.com, or make an account on Astronomertalk.com list your email or something, I can probably give u the FTP info and you can experiment with it.
TY,
JBAugust 25, 2014 at 5:33 pm #151357In reply to: Change Login widget font size
Robkk
Moderator.bbp-login-links a { font-size:14px; display:block; }August 25, 2014 at 5:29 pm #151356Topic: New Topic content textarea is grayed out
in forum Troubleshootinggodavid33
ParticipantI just installed the latest version of BP from the WP repo
WP 3.9.2When I go to a buddypress group forum page, it says the forum is empty (which it is) and displays the new topic editor. I can’t fill out any post content for some reason though, the box is grayed out. The html doesn’t say it is disabled. If I click the “code” WYSIWYG button, I can then type but if I remove the tick marks I cannot once again. Title and tags are both completely working, though obviously I can’t create a topic because I cant add content….
Help please 🙁
August 25, 2014 at 5:28 pm #151355In reply to: How to center bbpress after deleting sidebar
Robkk
Moderatortry
.bbpress #content { width:100% }else try
.bbpress #content .clearfix { width:100% }August 25, 2014 at 1:09 pm #151353In reply to: Forum theme not working…
Robkk
Moderatorthis should hide the edit profile link in the footer
.footer-right #bbp-editpro { display: none; }August 25, 2014 at 12:43 pm #151351In reply to: Forum theme not working…
Robkk
Moderatorto move the edit profile link right use this.
replace the original edit profile code with this.
// Filter wp_nav_menu() to add profile link add_filter( 'wp_nav_menu_items', 'my_nav_menu_profile_link' ); function my_nav_menu_profile_link($menu) { if (!is_user_logged_in()) return $menu; else $current_user = wp_get_current_user(); $user=$current_user->user_login ; $profilelink = '<li id="bbp-editpro"><a href="http://www.astronomertalk.com/forums/users/' . $user . '/edit">Edit Profile</a></li>'; $menu = $menu . $profilelink; return $menu; }custom css
#bbp-editpro { float: right; }that should move it right.
August 25, 2014 at 12:23 pm #151350In reply to: Forum theme not working…
Robkk
Moderatorokay heres how to get full width
this should be your bbpress.php in your child themes root directory wp-content/awesome/bbpress.php
you can also remove the css that i gave you from this topic
since i removed the post author info in the template.
<?php get_header(); ?> <?php do_action( 'bp_before_content' ); ?> <!-- CONTENT START --> <div class="content"> <div class="content-inner"> <?php do_action( 'bp_before_blog_home' ); ?> <!-- POST ENTRY END --> <div id="post-entry"> <section class="post-entry-inner"> <?php if (have_posts()) : ?><?php while (have_posts()) : the_post(); ?> <!-- POST START --> <article <?php post_class('post-single page-single'); ?> id="post-<?php the_ID(); ?>"> <h1 class="post-title entry-title"><?php the_title(); ?></h1> <?php do_action( 'bp_before_page_content' ); ?> <div class="post-content"> <div class="entry-content"><?php the_content( __('...more »',TEMPLATE_DOMAIN) ); ?></div> <?php wp_link_pages('before=<div id="page-links">&after=</div>'); ?> </div> <?php do_action( 'bp_after_page_content' ); ?> </article> <!-- POST END --> <?php endwhile; ?> <?php else : ?> <?php get_template_part( 'lib/templates/result' ); ?> <?php endif; ?> </section> </div> <!-- POST ENTRY END --> <?php do_action( 'bp_after_blog_home' ); ?> </div><!-- CONTENT INNER END --> </div><!-- CONTENT END --> <?php do_action( 'bp_after_content' ); ?> <?php get_footer(); ?>and heres some css
.bbpress .content { width: 100%; }this should get you full width
August 25, 2014 at 12:18 pm #151349In reply to: where to edit topics page template ?
Anonymous User
Inactivebbpress/includes/topics/template.phpAugust 25, 2014 at 3:54 am #151343Topic: How to center bbpress after deleting sidebar
in forum Troubleshootingmouna84
ParticipantHi there,
I’m using: wordpress version 3.9.2–de_DE
bbpress version 2.5.4The site I need help with is: http://darjinan.com/forum/
I deleted the sidebar by copying page.php and renaming it to bbpress.php. But I can’t figure out how to center my forum. Here’s the code:
<?php /** * Theme Page Section for our theme. * * @package ThemeGrill * @subpackage Accelerate * @since Accelerate 1.0 */ ?> <?php get_header(); ?> <?php do_action( 'accelerate_before_body_content' ); ?> <div id="primary"> <div id="content" class="clearfix"> <?php while ( have_posts() ) : the_post(); ?> <?php get_template_part( 'content', 'page' ); ?> <?php do_action( 'accelerate_before_comments_template' ); // If comments are open or we have at least one comment, load up the comment template if ( comments_open() || '0' != get_comments_number() ) comments_template(); do_action ( 'accelerate_after_comments_template' ); ?> <?php endwhile; ?> </div><!-- #content --> </div><!-- #primary --> <?php /*accelerate_sidebar_select();*/ ?> <?php do_action( 'accelerate_after_body_content' ); ?> <?php get_footer(); ?>Can someone please help me? I’m a complete newbie to html and css.
Thank you.August 24, 2014 at 10:45 pm #151333In reply to: Forum theme not working…
Robkk
Moderatorwill need that code, would appreciate it
ill try it to find out.
Darn, tell me any steps if you remember
i didnt use much php
August 24, 2014 at 10:36 pm #151330In reply to: Forum theme not working…
Robkk
Moderatorit didnt work for awhile on localhost , then i editing the href link to make it work.
use this
// Filter wp_nav_menu() to add profile link add_filter( 'wp_nav_menu_items', 'my_nav_menu_profile_link' ); function my_nav_menu_profile_link($menu) { if (!is_user_logged_in()) return $menu; else $current_user = wp_get_current_user(); $user=$current_user->user_login ; $profilelink = '<li><a href="http://www.astronomertalk.com/forums/users/' . $user . '/edit">Edit Profile</a></li>'; $menu = $menu . $profilelink; return $menu; }August 24, 2014 at 10:35 pm #151329In reply to: Forum theme not working…
cybarmitzvah
Participantit works now??
yes
ill test out that profile link ,
if you think its social login , deactivate and see if robins profile link code works.
still not working
im sure its just positioning it with css , but hey it doesnt have to be floated right, not a big deal if it is or not.
will need that code, would appreciate it 🙂
i just achieved this today. But it required a lot of work with my theme.
Darn, tell me any steps if you rememberTY
JBAugust 24, 2014 at 10:17 pm #151328In reply to: Forum theme not working…
Robkk
Moderatorworks not, I just did not have the <?php in my site.
it works now??
So I just added the code from Robin W’s link,
however it does not work,
ill test out that profile link ,
if you think its social login , deactivate and see if robins profile link code works.
Plus, I would prefer it to stay all the way to the right.
im sure its just positioning it with css , but hey it doesnt have to be floated right, not a big deal if it is or not.
Plus, preferably, look more like this sites, with the username and photo of the person logged in, in the top right.
i just achieved this today. But it required a lot of work with my theme.
August 24, 2014 at 10:06 pm #151327In reply to: Forum theme not working…
cybarmitzvah
ParticipantSo I just added the code from Robin W’s link,
however it does not work,
I get the edit profile button for logged in users, however, it does not link to their profile. Could it be that I am using social login.?
Plus, I would prefer it to stay all the way to the right. Plus, preferably, look more like this sites, with the username and photo of the person logged in, in the top right.
JB
August 24, 2014 at 10:01 pm #151326In reply to: Forum theme not working…
cybarmitzvah
ParticipantNice!
works not, I just did not have the
<?phpin my site.August 24, 2014 at 9:20 pm #151324Robkk
ModeratorMy goal is this: Attach BadgeOS rewards to users using specific words within forum posts;
I feel like that is going to be a paid project
August 24, 2014 at 9:16 pm #151323In reply to: 2.5.3 Easy change bbpress title font and color
sidelancer
ParticipantThanks a lot! Worked for me. I couldn’t find the code in bbpress to change the forum headings but your code worked right away.
August 24, 2014 at 9:09 pm #151322gxechidna
ParticipantMy goal is this: Attach BadgeOS rewards to users using specific words within forum posts; however I can’t find where I might be able to inject the code to search through the post text.
Please be kind, any PHP knowledge I hold is self taught and filled with huge gaps. I know I’ll need to use “strpos” with the post text and an IF statement, but I’m just lost as to where in the plugin/theme code I need to use it.
Thank you!
August 24, 2014 at 8:37 pm #151318In reply to: Image click/resize
Robkk
Moderatorwas it just a link or using the
imgbutton ??example with
imgbutton
-
AuthorSearch Results
