Forum Replies Created
-
In reply to: Forum Page does not have link to Login
ok, so now we are back to my first response which gave you two ways to do it.
If you want it within the screen, then add this to your functions file
//add login to top of index function index_login () { if (!is_user_logged_in() ) { echo do_shortcode('[bbp-login]'); } } add_action ('bbp_template_before_forums_index', 'index_login' ) ;
see
for how to do this
In reply to: wrong display when logged in as non-adminhave to say I am struggling from the screenshots to see what your issue is, the ‘correct’ one is all squashed up and impossible to read !
What plugin are using for the ‘paid’ bit? suspect that this works at wordpress user levels (subscriber, author, admin etc. ) not bbpress (participant, keymaster etc.)
In reply to: Sidebar reappear in topic and topic/ok, this theme has annoyed me so much that I have down loaded it.
I then saw that it claims to be a bbpress friendly theme, aghh!!! why not include a fullwidth forum????
so had a little play
on my test site the following works
bbpress.php looks like
<?php get_header(); // Loads the header.php template. ?> <main> <?php if ( have_posts() ) : // Checks if any posts were found. ?> <?php while ( have_posts() ) : // Begins the loop through found posts. ?> <?php the_post(); // Loads the post data. ?> <article <?php hybrid_attr( 'post' ); ?>> <?php if ( is_singular( get_post_type() ) ) : // If viewing a single page. ?> <header class="entry-header"> <h1 <?php hybrid_attr( 'entry-title' ); ?>><?php single_post_title(); ?></h1> </header><!-- .entry-header --> <div <?php hybrid_attr( 'entry-content' ); ?>> <?php the_content(); ?> <?php wp_link_pages(); ?> </div><!-- .entry-content --> <?php else : // If not viewing a single page. ?> <header class="entry-header"> <?php the_title( '<h2 ' . hybrid_get_attr( 'entry-title' ) . '><a href="' . get_permalink() . '" rel="bookmark" itemprop="url">', '</a></h2>' ); ?> </header><!-- .entry-header --> <div <?php hybrid_attr( 'entry-content' ); ?>> <?php the_content(); ?> <?php wp_link_pages(); ?> </div><!-- .entry-content --> <?php endif; // End single page check. ?> </article><!-- .entry --> <?php endwhile; // End found posts loop. ?> <?php else : // If no posts were found. ?> <?php locate_template( array( 'content/error.php' ), true ); // Loads the content/error.php template. ?> <?php endif; // End check for posts. ?> </main><!-- #content --> <footer <?php hybrid_attr( 'footer' ); ?>> <div class="wrap"> <?php hybrid_get_menu( 'social' ); // Loads the menu/social.php template. ?> <p class="credit"> <?php printf( /* Translators: 1 is current year, 2 is site name/link, 3 is WordPress name/link, and 4 is theme name/link. */ __( 'Copyright © %1$s %2$s. Powered by %3$s and %4$s.', 'stargazer' ), date_i18n( 'Y' ), hybrid_get_site_link(), hybrid_get_wp_link(), hybrid_get_theme_link() ); ?> </p><!-- .credit --> </div><!-- .wrap --> </footer><!-- #footer --> </div><!-- #container --> <?php wp_footer(); // WordPress hook for loading JavaScript, toolbar, and other things in the footer. ?> </body> </html>
In reply to: Sidebar reappear in topic and topic/can you copy lines 51-53 into here please !
In reply to: Sidebar reappear in topic and topic/The fact that your theme has coded the sidebar in the footer is really annoying !
No idea why that isn’t working, but plan b
change footer.php back to how it was, that way all the other pages will work.
now go back into bbpress.php and instead of the
<?php get_footer(); // Loads the footer.php template. ?>
paste the footer.php code, but without the two sidebar lines
</div><!– #main –> </div><!– .wrap –> <footer <?php hybrid_attr( ‘footer’ ); ?>> <div class=”wrap”> <?php hybrid_get_menu( ‘social’ ); // Loads the menu/social.php template. ?> <p class=”credit”> <?php printf( /* Translators: 1 is current year, 2 is site name/link, 3 is WordPress name/link, and 4 is theme name/link. */ __( ‘Copyright © %1$s %2$s. Powered by %3$s and %4$s.’, ‘stargazer’ ), date_i18n( ‘Y’ ), hybrid_get_site_link(), hybrid_get_wp_link(), hybrid_get_theme_link() ); ?> </p><!– .credit –> </div><!– .wrap –> </footer><!– #footer –> </div><!– #container –> <?php wp_footer(); // WordPress hook for loading JavaScript, toolbar, and other things in the footer. ?>
and see what that does ! Sorry without having your theme, I’m guessing at some of the code, and am as before likely to miss some grammer so you may need to play a bit with it.
In reply to: Forum Page does not have link to LoginDoes that answer your question?
Yes thanks, but it was not the answer I was expecting !!
ok so
http://bodybuildingdietapp.com/forum/ is a page you have set up called ‘forum’ and has [bbp-forum-index] and nothing else in it – yes? I don’t see how this page is then going to a page called forum-login.
Are you manually setting up your menu, or are menu items automatically added?
And if you type in http://bodybuildingdietapp.com/forums/ you will go to the forums as I would expect you to. You could simply add this as a link into your menu and not worry !
Apologies was trying to answer many threads with guests due for dinner, so prevouis answer was a bit short !
I followed it and copy-and-pasted the code into my capabilities.php
ahhh, now I understand, as per original thread you need to add that code to your functions.php, not to capabilities.php, and that would explain the error.
Whilst you could amend the participant role, I haven’t documented that, so easiest is just for you to create a new role and give it the participant capabilities plus the ‘delete topics’ and ‘delete replies’. This article explains how
add this code to your functions file – see
https://codex.bbpress.org/functions-files-and-child-themes-explained/
In reply to: Sidebar reappear in topic and topic/late night brain fade
try
<?php if (!bbpress()) {hybrid_get_sidebar( ‘primary’ ); } // Loads the sidebar/primary.php template.?> </div><!– #main –> <?php if (!bbpress()) {hybrid_get_sidebar( ‘subsidiary’ ); }// Loads the sidebar/subsidiary
hey great – glad you’re now fixed !
In reply to: What could make bbPress better? I have ideas…@robkk – thanks fro posting that I now understand
@steelersden – lots there for you to work onIn reply to: Forum Page does not have link to Loginyes it shouldn’t be so confusing !
so ignoring the safari for the moment.
If I click BBDT forum on the menu, and I being taken to a page in wordpress that you have set up or a link? IE how is that menu item set up?
In reply to: Sidebar reappear in topic and topic/ok no problem
Normally you would have a bbpress.php that would contain
header stuff
while have posts loop stuff
do_sidebar stuff
do_footer stuffYour theme has decided that the sidebar stuff will be in the footer stuff.
Now all this will work for non bbpress pages, so all we need to do is stop sidebars for bbpress pages.
so put back the footer line in bbpress.php
and then edit footer.php to make the first lines that were
<?php hybrid_get_sidebar( ‘primary’ ); // Loads the sidebar/primary.php template. ?> </div><!– #main –> <?php hybrid_get_sidebar( ‘subsidiary’ ); // Loads the sidebar/subsidiary.php template. ?>
change to
<?php if !bbpress() {hybrid_get_sidebar( ‘primary’ ); } // Loads the sidebar/primary.php template.?> </div><!– #main –> <?php if !bbpress() {hybrid_get_sidebar( ‘subsidiary’ ); }// Loads the sidebar/subsidiary.php template. ?>
essentially that code says ‘if the page is not a bbpress page ‘ the do the sidebar stuff the ‘!’ is a not statement and bbpress() checks if we are dispaying a bbprtess page
Give it a try, and come back and let me know if it works.
why changing directly doesn’t work?
because on every software update you will lose your changes!
My Full Code
sorry but pastebin adds millions of blank lines, so without re-editing the file I can’t see what you are doing.
If you go back to my original instructions and follow these and get an error, then come back and I’ll try and help you further
or if you go back to your
2) making custom role, but it says:
“ Parse error: syntax error, unexpected ‘roles’ (T_STRING), expecting ‘(‘ in /home/gleam/public_html/wp-content/plugins/bbpress/includes/core/capabilities.php on line 216
216: function add_new roles( $bbp_roles )
217: {and let me have lines 210 to 220 I’ll try and sort the error
In reply to: Forum Search not workingoffhand I can’t say.
It could be a theme or plugin issue
Plugins
Deactivate all but bbpress and see if this fixes. if it does, re-enable one at a time to see which is causing the error.
Themes
If plugins don’t pinpoint the problem, switch to a default theme such as twentytwelve, and see if this fixes.
.
In reply to: What could make bbPress better? I have ideas…The ethos behind bbpress is keep it light and let other add plugins for the functionality you require, so you don’t get tons of code for functions that you don’t need.
1. You can create menu logins such as
or
or add this code to your functions file
//add login to top of index function index_login () { if (!is_user_logged_in() ) { echo do_shortcode('[bbp-login]'); } } add_action ('bbp_template_before_forums_index', 'index_login' ) ;
see
2. Easily added as a plugin
https://wordpress.org/plugins/bbp-signature/
3. can you give an example of how you would like it to look? doesn’t need to be a bbpress site
In reply to: Accept shortcodes in forumIn reply to: Updating BBpress questionvery high chance it will be fine, but risk that your developer will have changed some core files.
Since your trying to learn stuff, then I strongly recommend that you create a test site, which will let you try it there first, but also will teach you loads about wordpress and how it operates, and give you confidence to make other changes in a test area first
In reply to: customizing bbpress admin linksyes I’ll give it a go, but may not be for a couple of days – relatives staying !!
In reply to: Sidebar reappear in topic and topic/absolutely there is, but if you’ve only taken out the footer in bbpress.php, then it will only have been taken out for bbpress, so will still be available elsewhere.
otherwise do come back
In reply to: User Groups and Forumsnot sure if private groups will help you, might be worth a look
In reply to: how to upgrade bbpress 1.0.2 to a newer version?this thread discusses
https://bbpress.org/forums/topic/upgrade-bbpress-1-0-2-to-2-1-2/
looks like you need to go via 1.2 but then should just be export/import?
of course back everything up before you start.
Actually if I were doing this I’d do it on a test site first
https://codex.bbpress.org/creating-a-test-site/
and just see if it works !
Can you document as you go, and When you’ve done it, come back and give us how you did it, and I’ll add it to the
https://codex.bbpress.org/import-forums/bbpress-1-x-buddypress-group-forums/
to help someone in future
In reply to: Help with getting basic plugin to workgreat – glad it worked and saved you some time 🙂
In reply to: How do I add a sidebar to all topics pages?great – glad you’re fixed !
In reply to: Sidebar reappear in topic and topic/Hey don’t worry, code is just a bunch of stuff that either works or doesn’t – and yours now works.
what I couldn’t figure out was why the sidebar was showing, and now that you’ve posted the footer.php I can see why. Strange bit of theme coding to put the sidebar in a footer.php but there are only conventions not rules. All you’ve done by deleting the footer line is stop the sidebar running, which is what you wanted.
The fact that I changed your code also is worrying me since I have absolutely no knowledge about php coding. I mean, I’ve found out there is a something called php coding.
Don’t worry you’ve done nothing wrong, it’s all good.
NOW the only thing you’ll need to do is make a note of all the changes you made. Themes sometimes have updates, and these may overwrite existing files, and in your case may also delete the bbpress.php. So keep copies of any files you have changed or added on your PC.
In reply to: compact bbpressto get rid of avatar
//get rid of the avatar function my_bbp_change_avatar_size($author_avatar, $topic_id, $size) { $author_avatar = ''; 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);
can you give us your url so we can see the lack of search !