Robin W (@robin-w)

Forum Replies Created

Viewing 25 replies - 11,851 through 11,875 (of 13,530 total)

  • Robin W
    Moderator

    @robin-w

    ok the template you are after is

    wp-content/bbpress/templates/default/bbpress/content-single-topic.php

    this will alter it wherever this template is used.

    make a copy of this template and put it in a directory called bbpress in the root of your theme, so you end up with

    wp-content/themes/%your-theme-name%/bbpress/content-single-topic.php

    where %your-theme-name% is the name of your theme

    Then modify this file

    to remove breadcrumbs take out line 14 which says

    <?php bbp_breadcrumb(); ?>

    then move line 44 (will probably be line 43 if you’ve taken out then breadcrumb!) which says

    <?php bbp_get_template_part( 'form', 'reply' ); ?>
    
    

    You may need to play with where to put it 9i haven’t tried it) , but after lines 21 & 22

    <?php bbp_get_template_part( 'form', 'protected' ); ?>
    
    	<?php else : ?>
    

    looks a good start, if not just keep moving it til you get what you want.

    If you only want it to look like this for the shortcode, then that is doable but a lot more complicated !


    Robin W
    Moderator

    @robin-w

    where would you like to show these?


    Robin W
    Moderator

    @robin-w

    ok, not sure if you meant get back the stuff about the author etc, or rthe width of the copyright or both !

    So I’ve put a copy on my website, as like you copying form here seems to lose bits.

    If you don’t want the about author bit, then take out the line 52 as shown in the file

    Hopefully we are there now, but come back if not !


    Robin W
    Moderator

    @robin-w

    You might be able to so something with multi-site, but beyond my knowledge

    I’d just install wordpress and my theme in the sub-domain and add the bbress plugin, and have maybe a coupe of menu items, eg forums and login


    Robin W
    Moderator

    @robin-w

    what do you want in your summary from this list

    topic/reply author
    avatar
    role
    link to user profile
    title
    content
    link to other replies


    Robin W
    Moderator

    @robin-w

    not that easy of the top of my head, I’ll try and take a look when I get a chance, but may be a while !


    Robin W
    Moderator

    @robin-w

    Best way to find out if it is their plugin is to deactivate it and do a test post to see if that goes through.

    Email is at best a shaky medium, and many things from host provider, server, links, wordpress, plugins and just plain complexity can make something that worked stop. Switch it off and on again can fix quite a lot, so even deactivating a plugin and reactivating it can fix.

    good luck !


    Robin W
    Moderator

    @robin-w

    Don’t know ay plugin that restricts wordpress based on bbpress roles.

    I use the plugin ‘restrict content’ to limit wordpress pages and then my plugin ‘bbp private groups’ to limit forum access.

    On one site I then use manual registration to give users wordpress ‘subscriber’ and bbpress ‘participant’ roles, and on another automatic registration that does the same

    In reply to: User Groups and Forums

    Robin W
    Moderator

    @robin-w

    do come back and let us know if it worked for you !


    Robin W
    Moderator

    @robin-w

    presume you’ve put a support call in their forum?


    Robin W
    Moderator

    @robin-w

    Can’t you just go into

    Dashboard>replies and work through that, or am I missing something?


    Robin W
    Moderator

    @robin-w

    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

    Functions files and child themes – explained !

    for how to do this


    Robin W
    Moderator

    @robin-w

    have 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.)


    Robin W
    Moderator

    @robin-w

    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>

    Robin W
    Moderator

    @robin-w

    can you copy lines 51-53 into here please !


    Robin W
    Moderator

    @robin-w

    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.


    Robin W
    Moderator

    @robin-w

    Does 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 !


    Robin W
    Moderator

    @robin-w

    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

    Custom Capabilities

    add this code to your functions file – see

    https://codex.bbpress.org/functions-files-and-child-themes-explained/


    Robin W
    Moderator

    @robin-w

    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
    

    Robin W
    Moderator

    @robin-w

    hey great – glad you’re now fixed !


    Robin W
    Moderator

    @robin-w

    @robkk – thanks fro posting that I now understand


    @steelersden
    – lots there for you to work on


    Robin W
    Moderator

    @robin-w

    yes 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?


    Robin W
    Moderator

    @robin-w

    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 stuff

    Your 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.


    Robin W
    Moderator

    @robin-w

    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


    Robin W
    Moderator

    @robin-w

    offhand 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.

    .

Viewing 25 replies - 11,851 through 11,875 (of 13,530 total)