Search Results for 'code'
-
AuthorSearch Results
-
August 28, 2014 at 12:23 am #151505
Topic: bbp_forum_last_topic_title Max Characters
in forum ThemesimFiles
ParticipantHi
I am currently using this code to show the last topic on the main index.
<a href="<?php bbp_forum_last_topic_permalink(); ?>" title="<?php bbp_forum_last_topic_title(); ?>"><em><?php bbp_forum_last_topic_title(); ?></em></a>
I was wondering if there is a way to make the title of bbp_forum_last_topic_title a max amount of characters, so the title is smaller.
ThanksAugust 28, 2014 at 12:05 am #151504In reply to: WordPress Database Error: Importing (XF to WP BBP)
Stephen Edgar
KeymasterThanks, it is because you don’t have the table prefix
xf_set when doing the import.So use the same settings you used previously and add
xf_in the importer field “Table prefix”.August 27, 2014 at 5:17 pm #151498In reply to: color letter in topic menu
Robkk
Moderatorspan.bbp-admin-links a { color: #222; font-weight: 400; font-size: 10px; text-transform: uppercase; text-decoration: none; }August 26, 2014 at 5:18 pm #151430In reply to: Create Latest Poster Column with Profile image
Robkk
Moderatorin the original bbpress theme
in loop-single-topic.php your freshness column should have this
the bolded text is what shows the avatar,
to make it bigger just make the number higher
high existence uses 40 , they have border radius css to make it rounded<li class="bbp-topic-freshness"> <?php do_action( 'bbp_theme_before_topic_freshness_link' ); ?> <?php bbp_topic_freshness_link(); ?> <?php do_action( 'bbp_theme_after_topic_freshness_link' ); ?> <p class="bbp-topic-meta"> <?php do_action( 'bbp_theme_before_topic_freshness_author' ); ?> <strong><span class="bbp-topic-freshness-author"><?php bbp_author_link( array( 'post_id' => bbp_get_topic_last_active_id(), 'size' => 14 ) ); ?></span></strong> <?php do_action( 'bbp_theme_after_topic_freshness_author' ); ?> </p>August 26, 2014 at 4:12 pm #151424In reply to: Create Latest Poster Column with Profile image
Robkk
Moderator
I’ve been searching high and low with no promising leads.
its been right in front of you the whole time!!!! (not yelling , being dramatic)
ya know how the freshness column has a little avatar by the users name. high existence just moved it into an
liand made it bigger.August 26, 2014 at 3:02 pm #151421In reply to: Conversion MyBB to bbPress
EzYRiDaH
ParticipantHi Stephen / @netweb,
Many thanks for your replies! I am trying to convert MyBB 1.6.11. It is a very old forum which (unfortunately) was customized improperly by the previous owner. It was lagging many many versions. I paid a student to do an upgrade about a year ago, but there is some funky **** still in the PHP. With my limited knowledge of MyBB I even tried to a fresh install of MyBB and imported the complete forum in it. Pulled all my hairs out when I found out MyBB stores code in the database…I’ve stressed my dear wife to start cleaning the old forum, which she’s (finally) diligently doing now.
Don’t worry too much about making any updates on the code 🙂 I also have some kind of life and job next to trying to convert a MyBB forum 😉 After all the cleaning of the old forum, I will do another test run to see if I can find any other issues. It is very likely that some errors are just because it is an ancient forum (10 years old). Read up on the conversion of @Halo-DieHard. Will make sure I do a repair/optimization of the old forum. To be honest, I am not sure if I did that with the last conversion, sorry.
I will report back on the forum on what I was able to squeeze out on performance with MAMP, with what settings and the results.
Another (most likely dumb) question I forgot to ask. This could be the answer to the missing(?) topics/replies. At the end of the conversion, the program shows in short intervals ‘-‘ on the screen. This takes forever and lasted almost as long as the initial part of the conversion which grabbed the Rows. I thought the conversion was finished when the ‘-‘ stopped appearing on screen ‘————‘ etc. Was I supposed to wait for some kind of other message which indicates the conversion ended?
In the meantime I am busy integrating the plugin USERPRO and GD bbPress Toolbox. Never coded in PHP and already hate the syntax 😉 I will get there and report back on the results!
Thanks again for your time!
August 26, 2014 at 2:55 pm #151420In reply to: How to center bbpress after deleting sidebar
Robkk
Moderatorremove the
#bbpress-forumscode you addedand also the code i gave you before
use this
.bbpress #primary { float:left; width:100%; }August 26, 2014 at 12:09 pm #151412af3
ParticipantHate to answer my own post.. anyway, this works okay for me.
1. add shortcode [bbp-topic-form] in the feedback-no-search.php
2. use javascript to change the form default value i.e.<?php echo do_shortcode('[bbp-topic-form forum_id=4135]'); ?> <script> FormObject = document.forms['new-post']; FormObject.elements["bbp_topic_title"].value = '<?php echo bbp_get_search_terms(); ?>'; </script>August 26, 2014 at 11:04 am #151409af3
ParticipantIn template feedback-no-search.php, I would like to add a suggestion to the user to create a new topic instead (since there is no result of the search). How can I make the searched keywords as the default title of the new topic ?
I think I can put the shortcode [bbp-topic-form] in the feedback-no-search.php file but would like the new topic form to have a default Title == searched text.
Thanks in advance!
August 26, 2014 at 6:48 am #151400In reply to: pagination on forum listing Page
divyesh25
Participanthi Stephen,
thanks for reply. yes i want this kind of pagination (“Page 1″, “Page 2″ etc). there is no other custom code for pagination or ajax based loading data. This kind of pagination required on my site because lots of data so i am separate out using categorywise. bbpress have great features so i used it on my site. but i am little disappointed just becusee of forum pagination.
thanks.
August 26, 2014 at 6:06 am #151398In reply to: How to center bbpress after deleting sidebar
mouna84
Participantthis code worked to center the forums, but not the bottom of the page:
#bbpress-forums {
width: 900px;
margin-left: 100px
}August 26, 2014 at 6:00 am #151397Topic: Add a new tab to user profil ?
in forum Troubleshootingkaminoda
ParticipantHi,
I just activated bbpress and I’d like to add a “return to forum” tab to user profil.
I understood that i must put a code like this:
<li c lass=""> <a title="Return forum">Return forums</a> </l i>But i don’t know where to find the file where i should put this code ?
Thank you for your help
August 26, 2014 at 4:35 am #151392In reply to: disable pingbacks
Stephen Edgar
KeymasterThanks for that, I’ll go make a note to dig into why the tracbacks/pingbacks are enabled, they shouldn’t be.
I had a quick look at the theme your using, MineWP, if you make a copy of the
page.phpfile and rename itbbpress.phpthen remove the ‘comments’ section of the template:Remove this line of code and save it and you’ll no longer have the pingbacks or trackbacks shown, technically they will still be enabled but will not show until we get this fixed.
<?php comments_template('',true); ?>August 26, 2014 at 4:23 am #151391In reply to: Strange characters beneath user profile picture.
Stephen Edgar
KeymasterCool, glad it fixed it for you 🙂
I’ve been using IPv6 heaps lately for testing but my
127.0.0.1equivalent in IPv6 is::1, thus it wasn’t an issue locally 😉August 26, 2014 at 3:12 am #151384In 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; } -
AuthorSearch Results
