Robin W (@robin-w)

Forum Replies Created

Viewing 25 replies - 12,451 through 12,475 (of 14,141 total)
  • @robin-w

    Moderator

    @robkk – help out all you like 🙂 🙂

    In reply to: User Groups and Forums

    @robin-w

    Moderator

    user belong to a single group
    forums can belong to multiple groups

    so a user can have multiple forums, and you can build users into any that you want

    @robin-w

    Moderator

    Ok, I’ve put the three files that I’ve amended on my site, and you can download them from there

    You may want to play with the final layout.

    Come back if you need further help !

    Shortened search Results

    @robin-w

    Moderator

    can you explain further?

    Do you have the changes but all over the site, or do you not have the changes anywhere?

    @robin-w

    Moderator

    great – glad you’re fixed for this one.

    Don’t forget to close off your questions in the stargazer support forum, so that the author doesn’t waste time trying to answer them !

    @robin-w

    Moderator

    ok, so do you want this on just the main index, or on each category or all forums?

    this gets increasingly complicated, as then I’d presume you’d want only the most popular and my posts to only relate to the forum shown ?

    just on the main index I could probably show you, the rest would probably be beyond free help !

    @robin-w

    Moderator

    no problem !

    @robin-w

    Moderator

    ok so if your code savvy, two approaches

    1. the hack

    I haven’t tried this, but it should work fine

    go into

    wp-content/plugins/bbpress/includes/common/shortcodes.php

    and look at line

    355 which says

    bbp_get_template_part( 'content', 'single-topic' );
    

    change that to

    bbp_get_template_part( 'content', 'single-topicb' );
    
    

    That will then get bbpress looking for a php file called ‘content-single-topicb.php’

    so then you can use the method in my first post to create that file in your theme ie as per first post, but just rename the file with a b at the end.

    YOU WILL need to change this each time bbpress upgrades as it will overwrite – hence why it is the hack ! But that’s hardly difficult !

    2. the proper way

    Would be to create your own version of the shortcode, by copying all that particular shortcode into your themes functions file, BUT renaming it (or you’ll get already loaded errors), and then lots of editing to get it to work.

    Personally I’d go route 1, and just make a note to change that file each time bbpress upgrades

    @robin-w

    Moderator

    Ideally I would show them above the bhp-header li

    Can you gibe a link page and say where on it you would like it to go

    @robin-w

    Moderator

    ok, I’ve worked out that error

    You have two issues

    1. the code is slightly wrong, I’ve corrected it in the documentation, but you need to change your line 168 from

    function add_new roles( $bbp_roles )
    

    to

    function add_new_roles( $bbp_roles )

    ie an underline between ‘new’ and ‘roles’

    BUT MORE IMPORTANTLY

    2. you have now put the code in a core functions file of bbpress, and it cannot run there as it calls code that has not yet been loaded.

    The code needs to go into your THEME’s functions.php file, not any functions file with the PLUGIN bbpress.

    Please read again

    Functions files and child themes – explained !

    @robin-w

    Moderator

    [ignore this post]

    @robin-w

    Moderator

    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

    where would you like to show these?

    @robin-w

    Moderator

    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

    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

    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

    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

    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

    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

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

    @robin-w

    Moderator

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

    @robin-w

    Moderator

    Can’t you just go into

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

    @robin-w

    Moderator

    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

    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

    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>
Viewing 25 replies - 12,451 through 12,475 (of 14,141 total)