Search Results for 'code'
-
AuthorSearch Results
-
July 3, 2014 at 5:08 am #148654
Topic: How to migrate a Drupal forum to Buddypress
in forum Troubleshootingsebgates
ParticipantHi, I have a question about forum migration. I need to migrate a Drupal 6 forum into BBPress. I see Drupal 7 migration is supported http://codex.bbpress.org/import-forums/. I have some questions:
Can this migration be easily done from Drupal 6?
Can I pay a BBPress professional to do it?July 3, 2014 at 3:44 am #148650Robin W
Moderatorin the meantime, you can move it in your style.css
July 3, 2014 at 3:39 am #148648In reply to: starting a new forum topic
Robin W
ModeratorYes,
If you have a forum page ie a wordpress page that has [bbp-forum-index] in it, (ie you’ve use method 2 rather than method 1 in this link
then go into edit on your forum page
Switch to text from visual and put
Create a new topic before the [bbp-forum-index] to get it at the top or after it to put it at the bottom.
or you could use
[bbp-topic-form] after the [bbp-forum-index]
or
[bbp-topic-form forum_id=$forum_id] to display a single forum topic form.
Lots of possibilities.
If you don’t have a set wordpress forum page, then you can create one, see method 2 in the link above
July 2, 2014 at 9:56 pm #148642In reply to: Error, name of forum as post.
Stephen Edgar
KeymasterDo you have any static pages set in Dashboard -> Settings -> Reading (/wp-admin/options-reading.php), if you have a page here for the ‘Home’ and it has long text as it’s title that can cause the issue you see.
I am pretty sure you need to create a bbPress template for your theme, make a copy of
page.phpand rename itbbpress.php.It looks like there are some similar questions in the theme support forums but I cannot see the answers as I am not a registered owner of the theme.
July 2, 2014 at 6:46 pm #148638In reply to: How to remove "Change Topic"?
Stephen Edgar
KeymasterThere is two parts to this:
1. The ‘moderator’ role cannot be currently set to only disable moving topics to another forum currently, to change this though a couple of tweaks to the
form-topic.phptemplate would achieve this end result.2. There is also a bug where moderators can move a topic to a group forum that they are not a member of that we are looking into in #2639
July 2, 2014 at 6:37 pm #148637In reply to: phpBB Import Error(s)
Stephen Edgar
KeymasterThanks extra sets of eyes with all of this ‘import’ stuff is always handy, boat loads of data all just starts to look the same after a while đ
Indeed, ‘Reset Forums’ will remove everything bbPress, as long as you also check the ‘Delete Imported Users’ they will also be removed.
The
wp_bbp_converter_translatoris not explicitly required, if your site can create this table bbPress uses it as part of the import process, if not it will just use the ‘out of the box’ WordPress database tables. It also gets deleted when resetting the forums. It also relates to the bugs I found yesterday that I am working on fixing and as I stated above I am pretty sure your imports are not usingwp_bbp_converter_translatoras if you were you wouldn’t have had any stickies.As to redirects you shouldn’t need that table for those, depending on your old phpBB permalinks
some simple right up to some advanced .htaccess will get you what you want.A week or so back whilst messing about with splitting and merging topics I happened upon a WordPress feature for 301 redirection of old URL’s to new URL’s. I am yet to try this as it has only popped into my head as I wrote the previous paragraph that this may be something that could work so that imported topics and replies include full redirect support.
So much so I just gave it a whirl, if I store and old topic slug e.g.
viewtopic.php?f=3&t=9I can query on the fly that topics new post ID and 301 redirect to it’s new permalink e.g.phpbb-v3-standard-topicđIt still doesn’t quite work though due to some URL weirdness presumably with one or a combination of the
.php,?and&characters, I am quite sure we can do something here though đJuly 2, 2014 at 5:24 pm #148630Topic: Where can I find the forum ID's (bbpress 2.5.4)
in forum TroubleshootingLeafyGrove
ParticipantI was wondering where can I find the forum ID’s? Trying to use the single forum shortcode, but dunno where the ID’s are. (Wish they were listed in Forum > All Forums via a ID column).
July 2, 2014 at 4:10 pm #148625In reply to: Resizing Avatars
Rescue Themes
ParticipantI was able to locate
bbp_single_user_details_avatar_sizein bbpress/templates/default/bbpress/user-details.php which eventually lead me to the following function that accomplishes what I needed (resizing the avatar):function my_bbp_change_avatar_size($author_avatar, $topic_id, $size) { $author_avatar = ''; if ($size == 14) { $size = 24; } if ($size == 80) { $size = 110; } $topic_id = bbp_get_topic_id( $topic_id ); if ( !empty( $topic_id ) ) { if ( !bbp_is_topic_anonymous( $topic_id ) ) { $author_avatar = get_avatar( bbp_get_topic_author_id( $topic_id ), $size ); } else { $author_avatar = get_avatar( get_post_meta( $topic_id, '_bbp_anonymous_email', true ), $size ); } } return $author_avatar; } /* Add priority (default=10) and number of arguments */ add_filter('bbp_get_topic_author_avatar', 'my_bbp_change_avatar_size', 20, 3); add_filter('bbp_get_reply_author_avatar', 'my_bbp_change_avatar_size', 20, 3); add_filter('bbp_get_current_user_avatar', 'my_bbp_change_avatar_size', 20, 3);July 2, 2014 at 11:01 am #148615Topic: Forum landing page not showing
in forum TroubleshootingZdev1
ParticipantTwo days ago i had an update showing for BBpress, and after I updated my forum page stopped showing. I can get to some of the forums via the ‘recent replies and topics’ on the sidebar, but when clicking on the FORUM link from my main menu, this is all that is showing.
Warning: array_merge(): Argument #2 is not an array in /home/content/p3nexnas05_data01/83/2102083/html/wp-content/plugins/bbpress/includes/common/functions.php on line 1344WP Version – Version 3.9.1
BBpress Version – Version 2.5.4July 2, 2014 at 10:05 am #148613In reply to: I can't get my forum to functon at all.
Robin W
Moderatorok try
Deactivate bbpress tweaks
Dashboard>plugins>bbpress tweaks>deactivateGo into widgets
Dashboard>appearance>widgetsAnd look at the bottom of the left hand side. Youâll see an âinactive sidebarâ, with your entries on
Below this is an âinactive widgetsâ
Drag all the entries from the inactive sidebar to the inactive widgets area.
This then allows wordpress to delete the sidebar
I normally log out and in again at this stage â probably not needed, but Iâve never bothered to check
Then basically reverse the above
Re-enable bbpress tweaks
You see the bbpress sidebar returns
Drag the entries back from the inactive widgets area to the sidebarAs soon as you’ve got the site vaguely going again, you need to STOP !!!! YES STOP!!!!!!!!!!
Then take a breath, and create a test site – you cannot continue to develop your site in live, and you need a child theme. So you’ll need to read.
https://codex.bbpress.org/creating-a-test-site/Once you have a test site, you can change things there first and then when you are happy put it into live.
July 2, 2014 at 9:56 am #148611In reply to: Sidebar not appearing
Robin W
ModeratorThe problem is that there are so many themes out there, all of which do ‘clever’ things with layout that it is impossible to give a set of instructions.
However you are using a paid theme with support, so you need to refer to them.
You question should look like
I’ve just installed bbpress forum software, and I want to use this in a page with a sidebar. To do this I need to copy and rename a theme page template that has a sidebar – basically I need to rename it bbpress.php and put it in my themes folder.
Can you either let me know which template file in your theme has a sidebar, or where within an existing template (having copied and renamed it) I would put something like
<?php get_sidebar(); ?>July 2, 2014 at 9:42 am #148608Topic: Sidebar not appearing
in forum Troubleshootingdutchpuzzle
ParticipantWordPress 3.8.3 running Headway theme 2.0.15
bbPress Version 2.5.4Link: http://www.herefordequestrian.co.uk/forums/
I tried following your instructions: “In dashboard>pages, go to add new page. Call this âForumsâ or whatever you want your menu item to be. Then in the content section, you may want to have some introductory words âwelcome to the forumâ etc. then add the following bbpress short code [bbp-forum-index]
Save this page.”……. but it didn’t make any difference, so I deleted the page.I can’t work out what template my current pages with sidebar are called.
I therefore can’t work out how to add the sidebar to the page.
Can you advise?
ThanksJuly 2, 2014 at 9:31 am #148607In reply to: How to add a @username
Robin W
Moderatorok, put the css in your style.css.
then maybe try this code in your functions.php file
add_action( âbbp_theme_after_reply_author_detailsâ, âmentionname_to_bbpressâ ); function mentionname_to_bbpress () { $user = get_userdata( bbp_get_reply_author_id() ); if ( !empty( $user->user_nicename ) ) { $user_nicename = $user->user_nicename; echo '<ul><li><font class=bbp-user-nicename>' ; echo â@â.$user_nicename.â</font></li></ul>â ; } }July 2, 2014 at 9:16 am #148604In reply to: Registration page background messed up
Stephen Edgar
KeymasterGive this a try:
The following page has two links, one an introduction, the next a bit more detailed.
What you need to do is find the template in your theme that you want to use, typically this is
page.phpbut depending on your theme you may have to look at what other templates are included in your theme.Essentially make a copy of the
page.phpfile and rename itbuddypress.phpin your theme folder.July 2, 2014 at 8:24 am #148598In reply to: Forum index
Robkk
Moderatorthere is a little bug on this
that i could fix in the futurewhenever i subscribe to a forum
it shows the menu on subscribed forums in the subscriptions area in your profile
(it showed up on the forums area in my buddypress extended profiles)easy fix is to turn off subscriptions to forums and topics in bbpress forum settings
ill try to find a css way to fix this , if not ILL look up another way
@netweb i might put this into the codex if i fix all the nooks and cranniesJuly 2, 2014 at 8:16 am #148595In reply to: Registration page background messed up
Stephen Edgar
KeymasterThis is more of a theme issue, maybe create a support topic in your themes support forums?
Also this is the BuddyPress login and not the bbPress shortcode…
See what I did here? I had a quick look at your site and like you couldn’t see an easy fix so I came up with some alternatives places for you to look đ
July 2, 2014 at 8:01 am #148590In reply to: phpBB Import Error(s)
Stephen Edgar
KeymasterStickies â the issue here seems to be that the phpBB stickies and announcements have all been imported as âsuper stickiesâ. There is actually a lot more than 20 posts (my estimate in the original post was waaay out â there was actually about 100 when I went in to un-stick them). These might have been fine had they imported as normal stickies â but having them as super-stickies had a hug impact on forum pages load times.
Hmmmm… I see where your coming from, not sure what to do about this though, I think we should continue to support ‘stickies’ as part of the import process, I’ll have a think about this some more.
User import â I thought at the time that it was probably a conflict with username and/or ID but having looked at the posts Iâve adopted, they are all from different users. I have 62 forum topics/replies under my name but looking at the live site, the original authors of these are all different users which makes no sense to me. Whatâs more is, I havenât adopted all of the users posts, just like one or two from each userâŚ
I think this will come down to ‘data integrity’ the queries are quite accurate so if the results are inconsistent I can only really think that.
Can you check via MySQL a couple of those if your happy playing with MySQL that is?
âŚFollowing on, I now wonder if these are posts that should have been assigned to the âAnonymousâ user because I think I may have deleted that user at some point not realising it was a result of the import⌠Iâll add it back in and see if it fixes my problem.
That is one possibility though if as you say they are inconsistent a bit more debugging will be needed. Adding the user ‘back in’ so to speak most likely won’t help as the existing topics/replies are already assigned to the admin user.
I didnât realise that adding a moderators only forum was that easy⌠Iâve been working with RobinW to integrate the bbp-private-groups plugin, maybe I donât need that after all.
I didn’t realise from those posts this is what your intentions were đ
Repair Tools â our forum has imported 72 Forums, 71,007 Topics, and 564,453 Replies. Itâs a fairly large one, but I think Iâve heard of larger forums being imported into bbPressâŚ
Yes, there have been a handful (I can count them on one hand ) larger that this that I know of, but again theoretically it should not be an issue.
That said because phpBB does not support ‘threaded replies’ there is nothing to be gained by running the repair tool ‘Recalculate the position of each reply’, so for now just avoid that tool.
User login â I havenât used a plugin for this, Iâve written it myself. It just does a simple ajax call using the admin-ajax and then calls wp_signon() to attempt to log you in. Itâs a fairly simple one, I just need to know which hooks bbPress is using to run the conversions on and hopefully I can just call that action before/after trying to log them in.
I’ll put this on my ‘todo’ list, which is open up bbPress source and read the inline docs, bbPress is extremely well documented source code, so feel free to beat me to that. đ
July 2, 2014 at 4:13 am #148571In reply to: bbPress Mods Wishlist
Robin W
Moderatoryes there’s lots to learn, my css is probably at your php level !
I found a way to have a search box that is persistent on every level of the bbPress forums. Now I have to get rid of the second search box that is at the top of the forums. I canât find where that is in the code to remove it.
You could try just turning off the forum search
dashboard>settings>forums and look for allow forum wide search
Is there anyone that comes around regularly that would either donate the time for these couple of tweaks or let me pay them over time?
you can put an ad on wordpress jobs
just post it as a project and detail what you want
But I’d play with the css first, as I think much of what you want is stylable.
July 2, 2014 at 4:02 am #148570In reply to: bbPress Mods Wishlist
K-Path
ParticipantRobin W,
Thank you for the resources. I can work my way through the CSS and HTML4 and some 5 but I haven’t a clue how to program in PHP. Is there anyone that comes around regularly that would either donate the time for these couple of tweaks or let me pay them over time?I cloned TwentyTen and renamed it TwentyTen+ and then tweaked the CSS of the formatting to the limit of my understanding. I’m going to keep at that but I’m not going to have the programming kung fu needed to tweak the PHP that bbPress depends on for it’s formating.
I found a way to have a search box that is persistent on every level of the bbPress forums. Now I have to get rid of the second search box that is at the top of the forums. I can’t find where that is in the code to remove it.
Help please.
Auriel
July 2, 2014 at 2:10 am #148567In reply to: I can't get my forum to functon at all.
Robin W
Moderatorno problem, using the wordpress editor will not work, you’ll need to use ftp or cpanel
see the following
on FTP and notepad++ which will get you the tools.
then you want to
ftp the file to your pc
open it using notepad++
then save it to your pc as the new filename
the edit it for the sidebar
then save it on your pc
the ftp the file back to your hostlots to learn, but you’ll find this useful for future as you customise you site
July 1, 2014 at 9:40 pm #148564In reply to: Couple issues while styling BBPress
Stephen Edgar
KeymasterI have also made the edits to that part 3 document.
Awesome, thank you đ
The
_bbp_topic_titleon the new form something like:#bbpress-forums fieldset.bbp-form p, #bbpress-forums fieldset.bbp-form textarea, #bbpress-forums fieldset.bbp-form select, #bbpress-forums fieldset.bbp-form input { margin: 0 0 8px; background-color: #111111; }(The above includes a few other areas of bbPress forms you might be interested in)
July 1, 2014 at 9:34 pm #148563In reply to: Couple issues while styling BBPress
SeeingBlueS2
ParticipantOk I figured that one out. I forogt to add
!importantI was able to successfully use the Inspect Element to change those background as well. The only thing I couldn’t figure out is how to properly code changes to the textbox for bbp_topic_title. Not savvy enough to write my own without an example.
I have also made the edits to that part 3 document.
July 1, 2014 at 8:48 pm #148560In reply to: Only can reply admin user
Stephen Edgar
KeymasterYou would need to create a custom role, should be possible.
Take a look at these to get you started:
https://codex.bbpress.org/bbpress-user-roles-and-capabilities/
July 1, 2014 at 8:42 pm #148558In reply to: Couple issues while styling BBPress
Stephen Edgar
KeymasterThis worked for me…. Try a hard refresh (CRTL F5/CMD F5 I think), your CSS might be cached.
#bbpress-forums div.bbp-topic-header, #bbpress-forums div.bbp-reply-header { background-color: #111111; }Use your browsers debug tools also, most browsers tools are pretty awesome, F12 will bring it up or right click an element and select ‘Inspect Element’
Also could you update the codex with the correct edits you found, anyone can edit the codex, just login using your same username and password đ
July 1, 2014 at 8:31 pm #148555In reply to: How to remove "Change Topic"?
Stephen Edgar
KeymasterOnly moderators and keymasters would see that you it should not be an issue in the majority of use cases.
If you still want to though create a child theme if you don’t have one already and modify the bbPress template
form-topic.php. -
AuthorSearch Results