Robin W (@robin-w)

Forum Replies Created

Viewing 25 replies - 7,276 through 7,300 (of 14,305 total)
  • In reply to: Links in new topic

    @robin-w

    Moderator

    can you post the code you are now using

    @robin-w

    Moderator

    no problem, – glad you are fixed !

    @robin-w

    Moderator

    if the forum is set as private, then you will not see topics or replies in the profile for that forum unless logged in.

    what theme and other bbpress related plugins are you running?

    @robin-w

    Moderator

    @poonasor

    function rew_check_forum_root () {
    $forum_slug = '/'.bbp_get_root_slug().'/' ;
    $page_slug = $_SERVER['REQUEST_URI'] ;
    if ($page_slug == $forum_slug) return true ;
    else return false ;
    }
    
    if (rew_check_forum_root() ) echo 'we are at the forum root!'  ;

    @robin-w

    Moderator

    this should do it

    function rew_check_forum_root () {
    $forum_slug = '/'.bbp_get_root_slug().'/' ;
    $page_slug = $_SERVER['REQUEST_URI'] ;
    if ($page_slug == $forum_slug) return true ;
    else return false ;
    }
    
    if (rew_check_forum_root() ) echo 'we are at the forum root!'  ;

    @robin-w

    Moderator
    In reply to: Links in new topic

    @robin-w

    Moderator

    I’m pretty sue that you code is suffering from apostrophe differences.

    When you copy code differ3ent editors change the ‘ !

    so your code has for instance

    (‘bbp_before_has_replies_parse_args’,

    suggest you remove the start and end apostrophies and replace eg

    ('bbp_before_has_replies_parse_args',

    @robin-w

    Moderator

    That looks like an issue with the bbp-messages plugin, which is not part of bbpress, you’ll need to post on their forum

    https://wordpress.org/support/plugin/bbp-messages/

    In reply to: Links in new topic

    @robin-w

    Moderator

    hmmm…

    1. did you leave in the code, from what you say that is needed as well

    
    function custom_bbp_show_lead_topic( $show_lead ) {
    $show_lead[] = ‘true’;
    return $show_lead;
    }
    add_filter(‘bbp_show_lead_topic’, ‘custom_bbp_show_lead_topic’ );

    on your other errors, can you post lines from say 615-630 from your functions file

    In reply to: Links in new topic

    @robin-w

    Moderator

    your first bit of code should be

    function custom_bbp_has_replies($args) {
     $args[‘order’] = ‘DESC’; // ‘ASC’ (Ascending, Default), ‘DESC’ (Descending)
    
    return $args;
     }
    
    add_filter(‘bbp_before_has_replies_parse_args’, ‘custom_bbp_has_replies’ );
    

    The ($args) brings in all the existing args and then your next line modifies just the ‘order’ arg. Otherwise the only argument passed to the query is the ‘order’ arg, so there is nothing to display.

    @robin-w

    Moderator

    Great – glad you are fixed, and for anyone reading this later the code should be

    add_filter ('bbp_get_do_not_reply_address', 'rew_no_reply') ;
    
    function rew_no_reply ($no_reply) {
    	$no_reply = 'abc@def.com' ;
    return $no_reply ;
    }

    @robin-w

    Moderator

    yes

    @robin-w

    Moderator

    by default bbpress send one email to the noreply address and bcc’s in the subscibers, so only one email sent.

    code to change

    add_filter ('bbp_get_do_not_reply_address', 'rew_no_reply') ;
    
    function rew_no_reply ($no_reply) {
    	$no_reply = abc@def.com ;
    return $no_reply ;
    }

    You’d think the bbpress coders would have created setting for this by now

    the bbpress coders are busy people who can code what they wish to. Not up to us to criticise free software

    @robin-w

    Moderator

    too longer a list for free help from me I’m afraid, but you will probably need my private groups plugin

    Private groups

    briefly – for master think category, then forums as ‘sub forums’ , threads (nested) are in the bbpress plugin, email per forum post – yes the rest is a mixture of easily doable and a some custom work.

    contact me via

    http://www.rewweb.co.uk/contact-me/ if you want further help

    @robin-w

    Moderator

    bbpress sends an email to the noreply address and bcc’s in the intended recipients.

    2 solutions

    1. my style pack plugin lets you amend the ‘to’ address (see email subscriptions tab), or you can do this with code, and amend it to a real address on your website.

    bbp style pack


    2.switch to individual emails – this plugin does that https://wordpress.org/plugins/asyncronous-bbpress-subscriptions

    In reply to: All Forums not showing

    @robin-w

    Moderator

    put this in your functions file, or code snippets

    Code Snippets

    //Number of forums per page
    add_filter (‘bbp_before_has_forums_parse_args’, ‘rew_number_of_forums’) ;#

    function rew_number_of_forums ($args) {
    $args[‘posts_per_page’] = 100 ;
    return $args ;
    }

    In reply to: All Forums not showing

    @robin-w

    Moderator

    forums per page uses one of these settings

    In reply to: All Forums not showing

    @robin-w

    Moderator

    dashboard>settings>forums>topics and replies per page – forums uses one of these, can’t remember which

    @robin-w

    Moderator

    bbpress uses the wordpress moderation and blacklists

    dashboard>settings>discussion

    @robin-w

    Moderator

    this crops up occasionally and has proved difficult to fault find.

    I’ve just written a small plugin that will check what is set in the blacklist, but also let you skip that check.

    can you give it a try, and let me know if it helps

    1. go to

    bbp blacklist checker

    and download and save, and make a note of where it is saved.

    2. Then go to dashboard>plugins>add new> upload and upload the plugin you saved in 1. above

    3. then activate

    4. go to dashboard>tools>bbp blacklist checker and it will confirm whether data is held, and let you skip the check

    In reply to: increase font size

    @robin-w

    Moderator

    or install

    bbp style pack

    In reply to: increase font size

    @robin-w

    Moderator

    as per op

    What I did,
    1. installed Simple Custom CSS plugin – all ok
    2. insert the below code. and changed the font-size: 1.1em; to 1.6em

    @robin-w

    Moderator

    great – glad you are fixed

    In reply to: Help with installation

    @robin-w

    Moderator

    @robin-w

    Moderator

    I’d suggest you do this as follows:

    there is a ‘hook’ that you show above called ‘<?php do_action( ‘bbp_template_before_single_topic’ ); ?>’

    This tells bbpress to do any action that is added at that point.

    so adding a hook will mean that the function is called at that point.

    The following code should go in your child theme functions file, or use the code snippets plugin

    Code Snippets

    add_action ( 'bbp_template_before_single_topic' , 'rew_back' ); 
    
    function rew_back () {
    	$text = 'click to go back' ;
    	if (bbp_get_topic_forum_id() == '25') $href = home_url( '/forum/domestics/' ) ;
    	if (bbp_get_topic_forum_id() == '33') $href = home_url( '/forum/commercial/' ) ;
    		//where to go if page not there
    	else $href = home_url( '/login/' ) ;
    	echo '<a class="button" href ="'.$href.'">'.$text.'</a>' ;
    }

    so each forum will need a line.

Viewing 25 replies - 7,276 through 7,300 (of 14,305 total)