Search Results for 'code'
-
AuthorSearch Results
-
December 5, 2013 at 2:34 am #139861
In reply to: Updating bbPress
Stephen Edgar
KeymasterYou should have all your customizations as per this document
https://codex.bbpress.org/theme-compatibility/Once you have your customizations per that doc you can upgrade bbPress anytime without having to worry about these things.
December 5, 2013 at 2:08 am #139853In reply to: Adding profile fields
Stephen Edgar
Keymastercan somebody tell me where to copy the template files so I can customize bbpress. the information here
https://codex.bbpress.org/theme-compatibility/
As to extending profile information take a look at how the ‘signature’ is implemented in GD bbPress Tools as a good starting point.
December 4, 2013 at 7:01 pm #139844In reply to: Edit topic reply, changes post order
John James Jacoby
KeymasterI wonder if
_bbp_reply_toisn’t being carried over when editing a reply. Can you get the_bbp_reply_topostmeta for each of those posts, and report back with them?For context,
_bbp_reply_tois used for the threaded reply hierarchy instead ofpost_parentwhich already used for getting the parent topic ID.December 4, 2013 at 5:39 pm #139842In reply to: Still no visual editor?
John James Jacoby
KeymasterThe HTML editor does work extremely well, as an HTML editor. If you want to enable the visual editor, a Google search should reveal this page as the top hit:
December 4, 2013 at 3:54 pm #139831Haz
ParticipantThanks responding so quickly.
What I am trying to say is that my WP Forum Page using the shortcode has a Title Tag that comes from words I submit via SEO Yoast…so I have control over how the page title reads. And it looks like this, for example:
<title>Aquarium Forum</title>
If I populate the Forum Root field with the slug “forum”, my WP page takes precedence over the Forum Root Field slug of the same name so the navigation words properly and the forum index page looks the same. But when one navigates back, the Forum Page has a different title tag. It changes to:
<title>Forums | Aquarium Care Basics</title>
…which I have no control over.
Actually your question has forced me to think this through again and I’m going to sleep on whether this is actually a difference that really matters. Because in the end, the version of the Forum Page that gets spidered the one with the optimized title, not the version of the Forum Page that exists via the navigation link.
December 4, 2013 at 2:57 pm #139830In reply to: Forums index in the same layout as other bb software
inspirationally
ParticipantKaliceos posted already above an answer to my – the same – problem:
but I did write Adam yet regarding that problem.I simply commented out
#add_filter('bbp_has_forums', 'tehnik_bpp_filter_forums_by_permissions', 10, 2);in tehnik_bbp_forum.php –
that way the forums still show up, but they cannot be entered without permissions.
If they are not visible would be better, of course.I also commented out
#if (current_user_can('read_hidden_forums')) #$post_stati[] = bbp_get_hidden_status_id();btw, because I did not want the moderators to enter the hidden forums. Just because they can move threads doesn’t mean they should take a look at the crew forum for the main site.
December 4, 2013 at 2:17 pm #139828In reply to: Theming the Recent Replies Widget
Robin W
ModeratorIt is in the widgets.php file
located at
wp-content/plugins/bbpress/includes/common/widgets.php
start at line 1064
you should be able to find the time in there somewhere
NOTE : this file will be overwritten by bbPress updates. You might do better to fork the code into your own plugin to prevent overwrites.
I think (but am not sure) the styling comes from other wordpres & bbPress elements and has no direct bbpress.css elements
December 4, 2013 at 2:12 pm #139826In reply to: Forums index in the same layout as other bb software
matrixino
ParticipantI was using this and everything worked fine… until I had the need of a “per forum permission” system. Then I tried this plugin https://github.com/ZanderAdam/Tehnik-bbPress-Permissions (the only one I found actually). Now I just get the default listing repeated for each “section” instead of the subforums.
Seems like I have no other way to restrict single forums to different roles/groups other than this+Members plugin. I wonder why bbPress don’t have a better permission system…
Can you please look this plugin code and help me fix it?
ThanksDecember 4, 2013 at 2:06 pm #139824Robin W
ModeratorWas with you al the way to
I know that if I populate the Forum Root field with the same slug as my shortcode page the forum index and page contents show up, but what I lose is my Page Title Tag.
I think I am being thick, but what does having the forum root field as forum lose you? – can you give a view of what you want to see and what it is doing.
December 4, 2013 at 1:37 pm #139823In reply to: Disable Search Box on Forum Index Page?
Robin W
ModeratorYes, add this code to your style.css in your child theme
.bbp-search-form { display:none !important; }December 4, 2013 at 1:29 pm #139822In reply to: Examples well regarded bbpress forums
Robin W
ModeratorHolly,
bbPress will work out of the box for most implementations. How much you then customise it is up to you.
Typically you might want to change a little of the styling – that depends on how much styling your existing site has – There wasn’t a link to your existing site in your original post.
Then you might wish to alter some layout – although the default is pretty standard
The documentation
will show you what you need to do to set up, and if you already have wordpress, then you could see how well bbPress would suit you in a couple of hours by following the set up guide and creating some test forums.
December 4, 2013 at 11:55 am #139817Topic: Disable Search Box on Forum Index Page?
in forum TroubleshootingHaz
ParticipantHi all, I am using short code on my forum page, but I have duplicate search boxes on my site.
http://www.aquariumcarebasics.com/forum/
My main search box is in the sidebar with is site-wide, and one in the Forum section. I prefer to keep the search box is in the sidebar, as I am using a plugin that will incorporate forum contents in my overall searches.
Is there any way to disable the search box that appears within the forum on the forum index page?
I am using a child theme and I would prefer to avoid changing core files because of updates.
Please let me know, thanks!
December 4, 2013 at 11:43 am #139814Haz
ParticipantHi all, I have an issue that has been baffling me for ages. I’m running twenty twelve, WP 3.7.1, and bbress 2.5.
I’m using a page for my forum index using the shortcode. I want my forum navigation link to point back to my page with short code, not the slug created by the Forum Root field.
I have a child theme, and I would like to avoid changing core files because of updates. Is there any way to code the navigation link so it has my choice of address and link text?
Here is how I’m set up:
Slug for my forum wp page is” “forum”
Forums Settings Forum Root: “DO NOT WANT THIS TO BE WHAT THE LINK POINTS TO”
Forums Settings Single forum slug: “discussion”
Prefix all forum content is unchecked…my preference.Here are the links:
Forum Index Page: http://www.aquariumcarebasics.com/forum/ (no problem)
Forum Page: http://www.aquariumcarebasics.com/discussion/amano-shrimp-care/ (no problems)But when I’ on the amano-shrimp-care page, for example, the “Forums” link text points back to:
http://www.aquariumcarebasics.com/DONOTWANTTHISTOBEWHATTHELINKPOINTSTO/
instead of http://www.aquariumcarebasics.com/forum/.
I know that if I populate the Forum Root field with the same slug as my shortcode page the forum index and page contents show up, but what I lose is my Page Title Tag. The Page Title Tag generated this way is the default tag from the Forum Root field. I suppose I can live with this, but I want to see if I can sort it out properly.
Please let me know, Thanks!
December 4, 2013 at 11:31 am #139813Topic: Why is the forum vertical?
in forum Installationselurnatas
ParticipantHello, I installed the plugin bbpress, adding a forum page, inserted the shortcode, but my forum is a vertical list, I would like to appear as a horizontal blocking like normal forums. Anyone know how to do this? I use the responsive theme, but i tested with other themes and it does the same exact thing. a little assistance would be cool, for i am thoroughly frustrated.
My website = places2bee.comDecember 4, 2013 at 10:49 am #139810robgranholm
Participant@mitesh-patel Could I have some help on how to do this with my website? It’s a membership site so right now there’s nothing to see, but can you connect with me and I can give you access?
I’m trying to adapt the code you’ve given here but this isn’t working.
body.bbPress #nav > menu-item menu-item-type-post_type menu-item-object-page menu-item-158 sfhover > a {background: none repeat scroll 0 0 #F2F2F2;}
The site is at http://dev.itarsenal.com right now
December 4, 2013 at 10:05 am #139808In reply to: bbPress only for logged in users
Robin W
ModeratorYou can also use hidden forums to allow only registered users to view
step 5
or
December 4, 2013 at 8:59 am #139807In reply to: layout changes
Robin W
ModeratorAs Stephen says move the bbpress.css into your theme and you can mod it withoutn overwriting
see
for details of how to do this
December 3, 2013 at 11:06 pm #139790In reply to: Edit topic reply, changes post order
Stephen Edgar
Keymaster@mistercyril Thanks for that info 🙂
At this stage it looks like if you are having this issue of ‘Replies out of order’ (Sometimes after an edit :S) you also have the issue of all replies only having the
evenCSS class.Could you check with your web host what version of PHP your site uses?
(Either contact them directly or create your ownphpinfo.phpfile and upload it to your host, details here how to create one http://www.phpinfofile.com/)December 3, 2013 at 10:01 pm #139789In reply to: Custom BBCodes?
matrixino
ParticipantThe problem is I have some BBcodes with multiple vars like this:
[table3]var1!var2!var3[table3]
transforming in something like this:
<table><tr><td>var1</td><td>var2</td><td>var3</td></tr></table>
I can’t seem to achieve the same thing even if using grouping in regexp with (.*?) and then using $1, $2, $3 to get the texts in between the “!”.December 3, 2013 at 7:55 pm #139785In reply to: Adding profile fields
s1r0n
Participantalso, can somebody tell me where to copy the template files so I can customize bbpress. the information here
https://codex.bbpress.org/step-by-step-guide-to-creating-a-custom-bbpress-theme/
admits to being dated
December 3, 2013 at 11:54 am #139768In reply to: Warning: Illegal offset type in isset or empty in
FreeWPress
ParticipantHi, i’m registered on your site to test this problem… Is strange problem..
This issue was only in a single topic template.. please.. Open File content-single-topic.php and backup it..
On line 28 remove entire this:
<?php if ( bbp_show_lead_topic() ) : ?> <?php bbp_get_template_part( 'content', 'single-topic-lead' ); ?> <?php endif; ?>This is only a test to see if anything happens..
You have another problem.. If i logout from yuor site i cannot view my test topic.. i see only your..
If i get login i see all..
December 3, 2013 at 8:07 am #139764Stephen Edgar
KeymasterSorry, hard to keep up with so many posts 😉
bbPress includes and importer for phpBB and with the size of your forum once you click ‘start’ it should be done in less than 30 seconds 🙂
You will lose very little, details of what is not converted is in the links below.
https://codex.bbpress.org/import-forums/ & https://codex.bbpress.org/import-forums/phpbb
December 3, 2013 at 7:56 am #139763In reply to: Moderator role can't create or manage Forums
Stephen Edgar
KeymasterTwo things:
- At this stage Moderators will NOT be able to see the ‘forums’ section in the backend eg.
/wp-admin/edit.php?post_type=forumno matter what you try, this is the known bug. - The ONLY way moderators can create new forums is by filling out the fields and clicking submit using the shortcode
[bbp-forum-form]
So no matter what you/we do a moderator will not see the forums in the backend.
That said your moderator user should have had no problems creating forums via the
[bbp-forum-form]form.As I said I tested this myself before posting above. Can you create a new user, login as that user, logout and log back in is admin (or via separate browsers etc).
Did this user get the role ‘participant’ assigned to them after they logged in the first time?
Now promote the user to a ‘Moderator’ and visit the page you created with the shortcode ‘[bbp-forum-form]‘ and fill in and submit the form.
How’d wee go?
December 3, 2013 at 7:40 am #139762In reply to: How to change Date and Time format
Stephen Edgar
KeymasterCan you try this instead 😉
Either add this to your themes
functions.phpor yourbbpress-functions.phpor download the entire file and install it as a plugin from https://gist.github.com/ntwb/7767761add_filter ( 'bbp_get_reply_post_date', ntwb_bbpress_enable_date_translation, 10, 6); add_filter ( 'bbp_get_topic_post_date', ntwb_bbpress_enable_date_translation, 10, 6); function ntwb_bbpress_enable_date_translation( $result, $reply_id, $humanize, $gmt, $date, $time ) { $date = get_post_time( get_option( 'date_format' ), $gmt, $reply_id, $translate = true ); $result = sprintf( _x( '%1$s at %2$s', 'date at time', 'bbpress' ), $date, $time ); return $result; } - At this stage Moderators will NOT be able to see the ‘forums’ section in the backend eg.
-
AuthorSearch Results