Search Results for 'code'
-
AuthorSearch Results
-
January 1, 2014 at 3:58 am #140837
In reply to: Forums not totally working on iOS phone?
artkahlich
ParticipantI have observed precisely the same problem on my Android Motorola Droid HD Maxx. In my case I defined a page containing the [bbp-forum-index] shortcode for the Forums top level. If I go to that page in either of the latest versions of IE or Firefox, I get a nice page showing the Forum categories. Using my Android phone, I get a page containing the single word ‘Forums’. As the OP noted, if I go directly to a Forum category or topic all is well.
My WordPress version is 3.8, bbPress version is 2.5.2. I am using a copied and modified version of the TwentyFourteen theme.
December 31, 2013 at 9:46 pm #140834Topic: Link to a User’s Forum Profile From Their Comment
in forum ShowcaseKeonD
ParticipantHow do I link a user’s forum profile from their name in their comment. So far I’ve got this code in functions.php but it doesn’t seem to work:
function force_comment_author_url($comment)
{
// does the comment have a valid author URL?
$no_url = !$comment->comment_author_url || $comment->comment_author_url == ‘http://’;if ($comment->user_id && $no_url) {
// comment was written by a registered user but with no author URL
$comment->comment_author_url = ‘http://www.examplesite.co.uk/forums/users/=’ . $comment->username;
}
return $comment;
}
add_filter(‘get_comment’, ‘force_comment_author_url’);Please can somebody tell me where I’m going wrong?
December 31, 2013 at 10:28 am #140823Topic: Move Listing of New Topics/Posts
in forum Troubleshootingmawk
ParticipantHello, thanks for your attention.
I’m currently using some code in my functions.php to show my sub-forums on a separate line, which is better than having them clustered together.
They also show the amount of new topics and replies within parenthesis, example;
Other General (2, 5) Real Life (8, 5) Humour (7, 9)Where “Other” is a forum and the others is sub-forums, and you can see the amount of topics and replies within the (x, topics, y replies).
What I need/want is to move the (x, topics, y replies) to the same place it shows, but only on the same line as the sub-forum, as the parent-forum.
Image example: http://imgur.com/ssonCD2
Is there any code I could put in my functions.php which would support this, or a plugin I could look at? This shouldn’t be hard to do, but yet my Google Search Adventure has reached it’s end (for now, at least).
Thanks for every bit of help.
December 31, 2013 at 10:16 am #140822In reply to: Rather slow PHPFox conversion
Rob Beschizza
ParticipantDone!
I can also report that switching the databases to a ramdisk is quite easy and has sped things up quite a bit. Though my earlier report was a little optimistic — it was going to take a couple of weeks. With the ramdisk, though, it really does seem to be headed for a few days work.
Overnight, it got to 30,000 of 500k rows, but then it started showing hyphens instead of “Converting replies” in the reporting windows, Like so:
------------------------------------------------------------------------ ------------------------------------------------------------------------------------ ------------------------------------------------------------------------------------ ---------------------------------------------- Converting replies (26750 - 26999) Converting replies (26500 - 26749) Converting replies (26250 - 26499) Converting replies (26000 - 26249) Converting replies (25750 - 25999)The hyphens are added a a rate of one per delay time, by the looks of it, at the top.
A peek at the database has it at _bpp_converter_step 10 still, and _bpp_converter_start at 27000
Has the conversion croaked or is this part of the process? Should I manually increment _bpp_converter_start a little and restart the convertion? (I had to do that a couple of times as it was converting topic titles)
December 30, 2013 at 11:54 pm #140814In reply to: New Post Notifications after Forum Install
Stephen Edgar
KeymasterYou could disable bbPress subscriptions if you want to stay with ‘Subscribe2’
https://codex.bbpress.org/forum-settings/#forum-featuresSubscriptions Allow users to subscribe to forums and topics
December 30, 2013 at 11:47 pm #140811In reply to: font color dont work with theme
Stephen Edgar
KeymasterYou’ll want to add a CSS rule to your themes CSS
.bbp-topics ul.super-sticky, .bbp-topics ul.sticky { background-color: #ffffe0 !important; }Changing
#ffffe0for the HEX color of your choice.December 30, 2013 at 10:13 pm #140799In reply to: “link” button
Stephen Edgar
KeymasterI also do not know what changes you have made so until you update both WordPress & bbPress you are basically out of luck.
This is the reason why you should never change the core files in WordPress or bbPress.
I would suggest you create yourself a test install of WordPress locally, add your theme and plugins and compare the changes and start to implement the changes you need in an upgrade friendly way such as child themes and custom additions to
functions.phpetc.December 30, 2013 at 2:05 pm #140784In reply to: Upgrade bbPress 1.0.2 to 2.1.2
John James Jacoby
KeymasterThe problem I see is the table name:
bb_forumsIt should be running these queries on the old
bb_taggedtable.These queries are part of a relatively ancient upgrade routine, dating back to database version 220 in
bb_upgrade_220(). Are you able to see what your bbPress database version was before this upgrade started?December 30, 2013 at 9:25 am #140775icu0755
ParticipantHello.
If you have a look into the templates form-user-register.php and form-user-login.php you could see they are almost the same beside do_action placement.
<?php do_action( 'register_form' ); ?> <div class="bbp-submit-wrapper"> <button type="submit" tabindex="<?php bbp_tab_index(); ?>" name="user-submit" class="button submit user-submit"><?php _e( 'Register', 'bbpress' ); ?></button> <?php bbp_user_register_fields(); ?> </div><div class="bbp-submit-wrapper"> <?php do_action( 'login_form' ); ?> <button type="submit" tabindex="<?php bbp_tab_index(); ?>" name="user-submit" class="button submit user-submit"><?php _e( 'Log In', 'bbpress' ); ?></button> <?php bbp_user_login_fields(); ?> </div>Is it possible to move
<?php do_action( 'login_form' ); ?>out of the bbp-submit-wrapper in the next releases? This will greatly help to have the same markup for these templates using the wordpress hooks system.BR, Vladimir Ivanov
December 30, 2013 at 9:19 am #140773In reply to: Upgrade bbPress 1.0.2 to 2.1.2
e-motion
ParticipantOK, so here is what I get when upgrading database to v1.2:
The upgrade process seems to have failed. Check the upgrade messages below for more information. Attempting to go to the admin area without resolving the listed errors will return you to this upgrade page.Beginning upgrade… >>> Modifying database: circuit_circuit (localhost) >>>>>> Table: bb_forums >>>>>>>>> Dropping index: PRIMARY >>>>>>>>>>>> SQL ERROR! See the error log for more detail >>>>>>>>> Adding index: PRIMARY >>>>>>>>>>>> SQL ERROR! See the error log for more detail >>>>>>>>> Dropping index: forum_slug >>>>>>>>>>>> Done >>>>>>>>> Adding index: forum_slug >>>>>>>>>>>> Done ...SQL ERROR! >>> Database: circuit_circuit (localhost) >>>>>> ALTER TABLE <code>bb_forums</code> DROP PRIMARY KEY; >>>>>> Incorrect table definition; there can be only one auto column and it must be defined as a key(same for each table)
Something wrong with my sql import?
If I click Retry, I get this:
Nothing to upgrade. Get back to work!
And admin page loads as usual.
December 30, 2013 at 8:56 am #140770In reply to: Upgrade bbPress 1.0.2 to 2.1.2
e-motion
ParticipantForum is quite small, around 5’000 posts.
I am trying to reproduce those errors for some time now, but only now I was able to get an error. It’s like something is wrong with my system, as it is too random…
I have lowered post data limit to 128M instead of 1G (it was so high to allow large sql dump upload).
The error is:Repair any missing information: Continue WordPress database error: [Unknown column 'forums.fid' in 'field list'] SELECT convert(forums.fid USING "utf8") AS fid,convert(forums.par_board_id USING "utf8") AS par_board_id,convert(forums.ntopic USING "utf8") AS ntopic,convert(forums.nposts USING "utf8") AS nposts,convert(forums.fname USING "utf8") AS fname,convert(forums.description USING "utf8") AS description,convert(forums.forum_order USING "utf8") AS forum_order,convert(forums.status USING "utf8") AS status FROM bb_forums AS forums LIMIT 0, 100 No forums to convert Starting ConversionDecember 30, 2013 at 8:56 am #140769In reply to: Cannot see “Forums” tab in WordPress dashboard
Stephen Edgar
KeymasterTry running the repair tool ‘Remap existing users to default forum roles’
https://codex.bbpress.org/repair-forums/December 30, 2013 at 8:47 am #140766In reply to: How to remove somethings from my forum
netfux
ParticipantThank’s Thank’s Thank’s! You did it… I put the following code in custom theme css:
#bbp-forum-709 .bbp-forum-topic-count,
#bbp-forum-709 .bbp-forum-reply-count,
#bbp-forum-709 p.bbp-topic-meta {
display: none;
}
#bbp-forum-1085 .bbp-forum-topic-count,
#bbp-forum-1085 .bbp-forum-reply-count,
#bbp-forum-1085 p.bbp-topic-meta {
display: none;
}#bbp-forum-700 .bbp-forum-topic-count,
#bbp-forum-700 .bbp-forum-reply-count,
#bbp-forum-700 p.bbp-topic-meta {
display: none;
}
#bbp-forum-702 .bbp-forum-topic-count,
#bbp-forum-702 .bbp-forum-reply-count,
#bbp-forum-702 p.bbp-topic-meta {
display: none;
}
#bbp-forum-1032 .bbp-forum-topic-count,
#bbp-forum-1032 .bbp-forum-reply-count,
#bbp-forum-1032 p.bbp-topic-meta {
display: none;
}
#bbp-forum-1045 .bbp-forum-topic-count,
#bbp-forum-1045 .bbp-forum-reply-count,
#bbp-forum-1045 p.bbp-topic-meta {
display: none;
}
———I guess there is a cleaner way to put it, but now it’s working. I also needed the thumbnail and info above dissapear so I found the p.bbp-topic-meta code was it…
The only thing that I need now is to know how can I center those forum titles at the center of the page, also center the height between lines…
Thank’s
December 30, 2013 at 4:01 am #140757In reply to: How to make a forum Sticky in the main Forum Page
Robin W
ModeratorIf you want to put some rules at the top of your main forum display page, then create a normal wordpress page, type your rules in the content and then at the end put
[bbp-forum-index]Put that page in your menu, and it will show the rules before showing the forum list
December 30, 2013 at 3:40 am #140756Stephen Edgar
KeymasterTry the ‘Remap existing users to default forum roles’ repair tool
https://codex.bbpress.org/repair-forums/
Also try resaving your permalink structure.
December 30, 2013 at 2:50 am #140751In reply to: Problem to convert Simple Press to bbpress
Stephen Edgar
KeymasterOne other thing I can’t ever get to work is “Purge all information from a previously attempted import”. I’ve let it run for over 48 hours in the past, and it was “Deleting previously converted data” with a number up into the tens of millions before I gave up on the process, and never actually starts converting. Has anyone else experienced similar issues?
This is a known issue as we have two different caching methods we use, and in particular if one is used and not the other this goes on forever, hopefully I will have a fix in the near future for this, as a workaround do as you have and just ‘reset’ bbPress.
It is odd that it stalls, stopis etc at a different point during the reply imports, typicaly it stops because of some mysterious reason on the same reply (or topic) and it appears to be some ‘malformed’ content in that particular post (I can’t prove this though and is not specific to SimplePress) 😉
When it stalls if you click ‘Stop’ then bump the value of
_bbp_converter_startby one, then click ‘Start’ again it should continue on from where it left off skipping that troublesome reply.(A side issue can be you actually get logged out of WordPress so it also pays to open/refresh another admin page to ensure you are still logged in)
December 30, 2013 at 2:31 am #140749In reply to: Dashboard and “Cheatin’ uh?”
Stephen Edgar
KeymasterBasically your users shouldn’t be logging into to backend in the first place, thus they should never see that to be even tempted.
You can add a login widget to a sidebar or create a page with a shortcode, up to you which way depending on how you want your site to look etc.
https://codex.bbpress.org/widgets/ https://codex.bbpress.org/shortcodes/
December 30, 2013 at 2:27 am #140746In reply to: Forums in a public/private site
Stephen Edgar
KeymasterWould I be better with a ‘site-wide’ forum rather than the private All Residents group?
I think this is now sorted based on your reply.
Can I make a site-wide forum private?
Same this is now sorted.
How do I modify the formatting of the forum postings?
If you want custom templates then follow the steps outlined here to make copies of the templates in your theme so they don’t get overridden when you update bbPress.
https://codex.bbpress.org/theme-compatibility/
Where do I look to troubleshoot the ‘threading’ function?
You state you are using ‘bbPress 2.2’, threaded replies were introduced in bbPress 2.4 so you should upgrade to the latest bbPress 2.5.2. You can then enable them in bbPress settings per https://codex.bbpress.org/forum-settings/#forum-features
December 30, 2013 at 2:05 am #140743In reply to: Dashboard and “Cheatin’ uh?”
Stephen Edgar
KeymasterSo far no go. Only my admin user can click on these.
This is correct and is by design, users should only be using the ‘front end’ user interface and not the ‘back end’
Also check the codex docs here to help you on your way 🙂
December 30, 2013 at 2:03 am #140742In reply to: Help with bbpress Install
Stephen Edgar
KeymasterMaybe try making a copy of your themes
page.phporpage-no-sidebar.phporpage-sidebar.phpdepending on the type of template you want your forums to display with and rename the file tobbpress.phpin the root of your themes folder.December 30, 2013 at 1:54 am #140740In reply to: Widget area above topics
Stephen Edgar
KeymasterIf you want widgets above your topic list you will need a theme that supports putting a sidebar at the top of your page, otherwise will one of the shortcodes work?
December 30, 2013 at 1:49 am #140738In reply to: Text Area not Visible
Stephen Edgar
KeymasterYou can make a copy of bbPress’ templates and put theme in a subfolder
bbpressin your theme and edit the templates to any style you wish 😉December 30, 2013 at 1:41 am #140736In reply to: Forum Icons ?
Stephen Edgar
KeymasterThat example I used was using the Glyphicons Font
Probably taking a look at this will give you a rundown on what you can use in CSS with
before,after&contentDecember 30, 2013 at 1:11 am #140730In reply to: Modify “New Post” Form
Stephen Edgar
KeymasterYou could add some custom code with a filter before and after the tags section and apply some custom CSS rules using:
bbp_theme_before_topic_form_tags&bbp_theme_after_topic_form_tagsOr make a copy of
form-topic.phpin your themes/bbpressfolder and edit the template to exactly how you would like it.December 30, 2013 at 12:45 am #140726Stephen Edgar
KeymasterI am pretty sure it is a theme issue your having in that it is not playing nice with bbPress for some reason.
You could try adding a template wrapper for bbPress.
Make a copy of your
page.phporpage-sidebar.phptheme template file and rename it tobbpress.phpin the root folder of your theme.Have you looked to see if there are any resources on your themes support site for using bbPress?
-
AuthorSearch Results