Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 6,176 through 6,200 (of 32,519 total)
  • Author
    Search Results
  • #176255
    Robkk
    Moderator

    1. An answer to this is really a personal opinion on what you prefer specifically from each.

    2. For WordPress you need a theme, Im sure its the same for others.

    3. Just so you know WordPress is the CMS and bbPress is just piggybacking and using APIs from such. WordPress is updated quite frequently. You can allow bbPress to update automatically if you want through some plugin.

    4. I don’t know why you brought up phpbb here, but bbPress can be automatically updated using a plugin. WordPress is updated automatically for security releases, and sometimes hosts cann allow you to just allow it to update automatically all the time.

    5. Blog functionality comes packaged with WordPress, you can add other features using plugins or themes.

    6. Read this for hardening WordPress.

    https://codex.wordpress.org/Hardening_WordPress

    7. For captcha plugins that work with bbPress check out this guide.

    https://codex.bbpress.org/getting-started/forum-moderation/dealing-with-spam/#registration-spam

    8. Use a plugin, or online service, or check your hosting provider.

    https://codex.bbpress.org/getting-started/before-installing/backing-up-your-database-and-files/

    9. Yes this forum has more than 100k topics. Users you will be fine.

    Also which plugins will be better for users and forums so that their updation does not affect the live site once it is launched.

    IF you are talking about plugin/theme/WordPress updates. Try to avoid automatic updates so you do not come across issues during an update and check to see if the update does not have any issues below rolling it out. Or just take frequent backups to avoid update issues and just roll back to a previous state.

    #176245
    roshansachan
    Participant

    You can test this behaviour on any topic on https://bbpress.org/forums . As per the docs for roles and capabilities a participant should be able to only assign tags and not delete them.

    #176236
    Robkk
    Moderator

    Maybe something like this, not sure of what you are after.

    Put the custom CSS in a custom CSS plugin or place it into a child themes style.css if you already created a child theme.

    #bbpress-forums li.bbp-body ul.forum {
      border-top: 1px solid #E91E63;
    }
    #176202
    theredheadhenry
    Participant

    I have a question on this method. I’m working on a site that’s currently not live yet and I used this snippit of code, and it worked great!

    However the joined date for all my subscribed users profiles are all showing the same date and year as my admins profile. I set these users up as dummy profiles on the same computer I made the admin.

    Does this have something to do with the IP address?

    Thanks!

    #176193
    Nik_S
    Participant

    Managed to solve the problem using this code:

    <?php
    
    //this function changes the bbp freshness data (time since) into a last post date for forums
    function change_freshness_forum ($forum_id = 0 ) {
    
    // Verify forum and get last active meta
    		$forum_id = bbp_get_forum_id( $forum_id );
    
    			// Get the date for the most recent reply and topic in each forum
    			$reply_id = bbp_get_forum_last_reply_id( $forum_id );
    			if ( !empty( $reply_id ) ) {
    				$last_active_reply_date = get_the_date( '', $reply_id );
    			}
    			$topic_id = bbp_get_forum_last_topic_id( $forum_id );
    			if ( !empty( $topic_id ) ) {
    				$last_active_topic_date = get_the_date('', $topic_id );
    			}
    
    			// Compare the reply and topic dates, and assign the most recent one to $last_active_date
    				if ( !empty($last_active_reply_date ) && !empty($last_active_topic_date) ) {
    					$last_active_date = ((strtotime($last_active_topic_date) >= strtotime($last_active_reply_date)) ? $last_active_topic_date : $last_active_reply_date );
    				} elseif (empty($last_active_reply_date)) {
    					$last_active_date = $last_active_topic_date ;
    				} else {
    					$last_active_date = $last_active_reply_date ;
    				}
    
    			// Get the time for the most recent reply and topic in each forum
    			if ( !empty( $reply_id ) ) {
    				$last_active_reply_time = get_the_time( '', $reply_id );
    			}
    			if ( !empty( $topic_id ) ) {
    				$last_active_topic_time = get_the_time('', $topic_id );
    			}
    
    			// Compare the reply and topic times, and assign the most recent one to $last_active_time
    				if ( !empty($last_active_reply_time ) && !empty($last_active_topic_time) ) {
    					$last_active_time = ((strtotime($last_active_topic_time) >= strtotime($last_active_reply_time)) ? $last_active_topic_time : $last_active_reply_time );
    				} elseif (empty($last_active_reply_time)) {
    					$last_active_time = $last_active_topic_time ;
    				} else {
    					$last_active_time = $last_active_reply_time ;
    				}
    			
    		$last_active_date = bbp_convert_date( $last_active_date ) ;
    		$last_active_time = bbp_convert_date( $last_active_time ) ;
    		$date_format = get_option( 'date_format' );
    		$time_format = get_option( 'time_format' );
    		$date= date_i18n( "{$date_format}", $last_active_date );
    		$time=date_i18n( "{$time_format}", $last_active_time );
    		$active_time = sprintf( _x( '%1$s at %2$s', 'date at time', 'bbp-last-post' ), $date, $time );  
    		return $active_time ;
    		}
    add_filter( 'bbp_get_forum_last_active', 'change_freshness_forum', 10, 2 );
    
    //this function changes the bbp freshness data (time since) into a last post date for topics
    function change_freshness_topic ($last_active, $topic_id) {
    
    $topic_id = bbp_get_topic_id( $topic_id );
    
    		// Try to get the most accurate freshness date possible
    		if ( empty( $last_active_date ) ) {
    		$reply_id = bbp_get_topic_last_reply_id( $topic_id );
    		if ( !empty( $reply_id ) ) {
    			$last_active_date = get_the_date( '', $reply_id );
    		} else {
    				$last_active_date = get_the_date( '', $topic_id );
    			}
    		}
    
    		// Try to get the most accurate freshness time possible
    		if ( empty( $last_active_time ) ) {
    		$reply_id = bbp_get_topic_last_reply_id( $topic_id );
    		if ( !empty( $reply_id ) ) {
    			$last_active_time = get_the_time( '', $reply_id );
    		} else {
    				$last_active_time = get_the_time( '', $topic_id );
    			}
    		}
    		
    		
    		$last_active_date = bbp_convert_date( $last_active_date ) ;
    		$last_active_time = bbp_convert_date( $last_active_time ) ;
    		$date_format = get_option( 'date_format' );
    		$time_format = get_option( 'time_format' );
    		$date= date_i18n( "{$date_format}", $last_active_date );
    		$time=date_i18n( "{$time_format}", $last_active_time );
    		$active_time = sprintf( _x( '%1$s at %2$s', 'date at time', 'bbp-last-post' ), $date, $time );
    		return $active_time ;
    		}
    add_filter( 'bbp_get_topic_last_active', 'change_freshness_topic', 10, 2 );
    
    //This function changes the heading "Freshness" to the name created in Settings>bbp last post
    function change_translate_text( $translated_text ) {
    	$text = 'Freshness' ;
    	if ( $translated_text == $text ) {
    	global $rlp_options;
    	$translated_text = $rlp_options['heading_label'];
    	}
    	return $translated_text;
    }
    add_filter( 'gettext', 'change_translate_text', 20 );

    But now another issue has become apparent – the permalinks and anchor tag titles still refer to either bbp_get_forum_last_topic_permalink or bbp_get_forum_last_reply_url (I think) and not to the most recent post or topic as I have defined it above. Any ideas on how I can change the last_topic or last_reply permalinks to match the ones corresponding to the displayed dates? This is just a touch beyond my current PHP skills and so would greatly appreciate any suggestions.

    #176189
    Nik_S
    Participant

    WordPress Version: 4.5.3
    bbPress Version: 2.5.9
    Website Link: http://www.sva.bc.ca/newforums/

    Hello,

    After setting up bbPress I “imported” forum posts manually from an older system, setting the “Published On” date to match the date of each original topic/reply. I then found that bbPress’s “freshness” ignored this date and used the date/time I had manually added these posts.

    So I installed the bbPress last post plugin ( https://en-gb.wordpress.org/plugins/bbp-last-post/ ) and modified it a little. The following code is what is currently being used, and is almost what I want:

    <?php
    
    //this function changes the bbp freshness data (time since) into a last post date for forums
    function change_freshness_forum ($forum_id = 0 ) {
    
    // Verify forum and get last active meta
    		$forum_id         = bbp_get_forum_id( $forum_id );
    
    			$reply_id = bbp_get_forum_last_reply_id( $forum_id );
    			if ( !empty( $reply_id ) ) {
    				$last_active_date = get_the_date( '', $reply_id );
    			} else {
    				$topic_id = bbp_get_forum_last_topic_id( $forum_id );
    				if ( !empty( $topic_id ) ) {
    					$last_active_date = get_the_date('', $topic_id );
    				}
    			}
    
    			if ( !empty( $reply_id ) ) {
    				$last_active_time = get_the_time( '', $reply_id );
    			} else {
    				if ( !empty( $topic_id ) ) {
    					$last_active_time = get_the_time('', $topic_id );
    				}
    			}
    			
    		$last_active_date = bbp_convert_date( $last_active_date ) ;
    		$last_active_time = bbp_convert_date( $last_active_time ) ;
    		$date_format = get_option( 'date_format' );
    		$time_format = get_option( 'time_format' );
    		$date= date_i18n( "{$date_format}", $last_active_date );
    		$time=date_i18n( "{$time_format}", $last_active_time );
    		$active_time = sprintf( _x( '%1$s at %2$s', 'date at time', 'bbp-last-post' ), $date, $time );  
    		return $active_time ;
    		}
    add_filter( 'bbp_get_forum_last_active', 'change_freshness_forum', 10, 2 );
    
    //this function changes the bbp freshness data (time since) into a last post date for topics
    function change_freshness_topic ($last_active, $topic_id) {
    
    $topic_id = bbp_get_topic_id( $topic_id );
    
    		// Try to get the most accurate freshness date possible
    		if ( empty( $last_active_date ) ) {
    		$reply_id = bbp_get_topic_last_reply_id( $topic_id );
    		if ( !empty( $reply_id ) ) {
    			$last_active_date = get_the_date( '', $reply_id );
    		} else {
    				$last_active_date = get_the_date( '', $topic_id );
    			}
    		}
    
    		// Try to get the most accurate freshness time possible
    		if ( empty( $last_active_time ) ) {
    		$reply_id = bbp_get_topic_last_reply_id( $topic_id );
    		if ( !empty( $reply_id ) ) {
    			$last_active_time = get_the_time( '', $reply_id );
    		} else {
    				$last_active_time = get_the_time( '', $topic_id );
    			}
    		}
    		
    		
    		$last_active_date = bbp_convert_date( $last_active_date ) ;
    		$last_active_time = bbp_convert_date( $last_active_time ) ;
    		$date_format = get_option( 'date_format' );
    		$time_format = get_option( 'time_format' );
    		$date= date_i18n( "{$date_format}", $last_active_date );
    		$time=date_i18n( "{$time_format}", $last_active_time );
    		$active_time = sprintf( _x( '%1$s at %2$s', 'date at time', 'bbp-last-post' ), $date, $time );  
    		return $active_time ;
    		}
    add_filter( 'bbp_get_topic_last_active', 'change_freshness_topic', 10, 2 );
    
    //This function changes the heading "Freshness" to the name created in Settings>bbp last post
    function change_translate_text( $translated_text ) {
    	$text = 'Freshness' ;
    	if ( $translated_text == $text ) {
    	global $rlp_options;
    	$translated_text = $rlp_options['heading_label'];
    	}
    	return $translated_text;
    }
    add_filter( 'gettext', 'change_translate_text', 20 );

    The only problem now is that from the forum index view, the “Last Post” column will show the date of the most recent reply, even if there is a newer topic.

    Is there a way to compare the dates and make sure the Last Post column displays the most recent topic or reply, whichever is newer?

    Thanks!

    #176188
    boomeraudio
    Participant

    Hi All,

    I just created a really nice working table that I wanted to post as a sticky topic on my bbpress forums. I’m set up as an admin and have full html capabilities.

    When I preview my html & css in Coda, it works great! Upon typing in the code as a new sticky topic, it is not inheriting any of the CSS styling.

    Is this possible? I’m positive that styling and everything is done correctly. The forum just isn’t seeing it.

    Thanks for the help.

    – Boomer

    #176184
    haddly
    Participant

    Hi,
    When searching through the forum and not being logged in, a message appears at the bottom saying you must be logged in to post a reply……
    Is there any way you can send me the code, so that there is a direct link to the forum login from this message or next to the message.

    bbPress version is up to date. and wordpress version is a unique one created by web dev company.
    Thanks in advance for your help

    #176176
    Robkk
    Moderator
    #176169

    Topic: List Followed Posts?

    in forum Plugins
    BlueIvoryCreative
    Participant

    Hi all!

    I’m using bbPress as part of a membership website. I know that a member can select to have post responses sent to their email. But is it possible to include a list of each specific member’s posts on the dashboard (account) page that I’m creating? This seems like an easy way for them to access what they’re posted, and track responses. Is there a shortcode for this, or will it require customization?

    Thanks!

    #176156
    Stephen Edgar
    Keymaster

    All those topics in those forums are “super sticky”

    Go to topics dashboard https://example.com/wp-admin/edit.php?post_type=topic

    On each of those topics in the list click “Unstick”

    Your issue should be fixed now

    See https://codex.bbpress.org/getting-started/forum-moderation/common-tasks/#sticking-a-topic for more info

    #176150
    Joel James
    Participant
    #176146
    darkoned12000
    Participant

    There are all of the tables from my WP database:

    Table Rows Type Collation Size
    wp_commentmeta 0 MyISAM utf8mb4_unicode_ci 4 KiB
    wp_comments 1 MyISAM utf8mb4_unicode_ci 7.2 KiB
    wp_links 0 MyISAM utf8mb4_unicode_ci 1 KiB
    wp_options 147 MyISAM utf8mb4_unicode_ci 408.1 KiB 372B
    wp_postmeta 281,003 MyISAM utf8mb4_unicode_ci 22.3 MiB
    wp_posts 67,398 MyISAM utf8mb4_unicode_ci 72 MiB
    wp_termmeta 0 MyISAM utf8mb4_unicode_ci 4 KiB
    wp_terms 1,448 MyISAM utf8mb4_unicode_ci 146.7 KiB
    wp_term_relationships 2,891 MyISAM utf8mb4_unicode_ci 191.3 KiB
    wp_term_taxonomy 1,448 MyISAM utf8mb4_unicode_ci 110.5 KiB
    wp_usermeta 17 MyISAM utf8mb4_unicode_ci 11.1 KiB
    wp_users 1 MyISAM utf8mb4_unicode_ci 8.1 KiB

    One thing I noticed is that it didn’t convert the users even though I checked that box, I might re-install WP/bbpress and do this process again. I did download bbpress 2.6a and installed it via browse file and activated it when it was done and went directly to forum -> tools -> import forums to start the process. But it looks like that table you were looking for DID NOT get created during this process. If there is a missed step in here to create missing tables please let me know.

    Even though I will need to reinstall running the repair tools to see if it returns or shows any errors.

    #176144
    theredheadhenry
    Participant

    I’ve seen a few people post about this issue I can’t seem to find a resolution however. I’m using 2.5.9 and when you click on a users profile it shows the date they joined as January 1, 1970. However, when I look at my profile it shows the correct date. What could I be missing?

    This is a snippet of code I have in the user-profile.php page.
    <?php
    echo '<b>Joined:</b> '.date("F, Y", strtotime(get_userdata(bbp_get_reply_author_id())->user_registered));?>

    Does that look correct?

    #176143
    Stephen Edgar
    Keymaster

    Thanks, that should be enough info for now, it eliminates fucky things that can happen with MAMP and XAMPP working with localhost, most likely there is a PHP restriction that is triggering this, can probably be worked around/ignored I think.

    The importer restarting is a pain, can you check via phpMyAdmin or equivalent if you actually have a wp_bbp_converter_translator table? (Maybe a different prefix to wp_ if you use a custom prefix, e.g. myprefix_bbp_converter_translator.

    What I actually expect here rather than restarting the import is:

    
    Conversion Complete
    Repair any missing information: <a href="https://example.com/wp-admin/tools.php?page=bbp-repair">Continue</a></p>');
    

    Instead of:

    
    Conversion Complete
    Started process again with Converting forums (0 – 99)
    

    For my notes, after displaying “Conversion complete” (src) it should then read that message and link to the “Repair tools” (src)

    For now, can you run through each of the repair tools via and see how everything looks, it should fix up the counts of forums, topics, replies etc

    https://example.com/wp-admin/tools.php?page=bbp-repair

    #176141
    Stephen Edgar
    Keymaster

    @ darkoned12000 Thanks for the detailed reply, helps heaps +1

    All those MySQL queries look correct, so what I see is you have 100-199 forums, it recalculated your forum hierarchy, you’ve 1100-1199 topics, there were some “sticky” topics, 1800-1899 topic tags, and 400-499 replies imported all up.

    I’m surprised, aka have not seen before the ini_set warning shown in the conversion window, I thought you may have found that in your logs rather than on-screen :/

    Now this: <Script started over again with ‘Converting Fourms’, I’ve never seen this happen either, what is the environment you are performing this in? A local setup using MAMP or XAMPP? A Vagrant VVV setup? A webhost suck GoDaddy, Dreamhost etc?

    I’m trying to think how I might be able to replicate this issue so I can then fix it :/

    #176140
    darkoned12000
    Participant

    Just to describe my process in this trial run I am doing with the import of IPB 3.47 to bbpress 2.6a:

    – Install latest version of WP
    – Download and install latest version of bbpress
    – Open ‘Tool -> Forums -> Import Forums’
    – Selected ‘Invision’ and put in all my database info. I did set ‘Table Prefix’ to ‘ipb_’ since all of my tables in my ipboard setup start with ‘ibp_’
    – Row Limit and Time Delay (set to default), Convert Users is checked and nothing else is checked and I clicked ‘Start’

    Here is a listing of the sql code executed, I only listed items that there was something done, ‘no conversions’ for items are not listed:

    Code for convert Forum:
    <p class="" title="SELECT convert(forums.id USING &quot;utf8mb4&quot;) AS id,convert(forums.parent_id USING &quot;utf8mb4&quot;) AS parent_id,convert(forums.topics USING &quot;utf8mb4&quot;) AS topics,convert(forums.posts USING &quot;utf8mb4&quot;) AS posts,convert(forums.name USING &quot;utf8mb4&quot;) AS name,convert(forums.name_seo USING &quot;utf8mb4&quot;) AS name_seo,convert(forums.description USING &quot;utf8mb4&quot;) AS description,convert(forums.position USING &quot;utf8mb4&quot;) AS position FROM ipb_forums AS forums LIMIT 100, 100">Converting forums (100 - 199)</p>

    Code for Forum Heirarchy:
    <p class="" title="SELECT post_id AS value_id, meta_value FROM wp_postmeta WHERE meta_key = &quot;_bbp_old_forum_parent_id&quot; AND meta_value > 0 LIMIT 0, 100">Calculating forum hierarchy (0 - 99)</p>

    Code for Topics:
    <p class="loading" title="SELECT convert(topics.tid USING &quot;utf8mb4&quot;) AS tid,convert(topics.posts USING &quot;utf8mb4&quot;) AS posts,convert(topics.forum_id USING &quot;utf8mb4&quot;) AS forum_id,convert(topics.starter_id USING &quot;utf8mb4&quot;) AS starter_id,convert(posts.post USING &quot;utf8mb4&quot;) AS post,convert(topics.title USING &quot;utf8mb4&quot;) AS title,convert(topics.pinned USING &quot;utf8mb4&quot;) AS pinned,convert(topics.start_date USING &quot;utf8mb4&quot;) AS start_date,convert(topics.last_post USING &quot;utf8mb4&quot;) AS last_post FROM ipb_topics AS topics INNER JOIN ipb_posts AS posts ON(topics.tid = posts.topic_id) WHERE posts.new_topic = 1 LIMIT 1100, 100">Converting topics (1100 - 1199)</p>

    Code for Topic Stickies:
    <p class="" title="SELECT post_id AS value_id, meta_value FROM wp_postmeta WHERE meta_key = &quot;_bbp_old_sticky_status_id&quot; AND meta_value = &quot;sticky&quot; LIMIT 0, 100">Calculating topic stickies (0 - 99)</p>

    Code for Topic Tags:
    <p class="" title="SELECT convert(core_tags.tag_meta_id USING &quot;utf8mb4&quot;) AS tag_meta_id,convert(core_tags.tag_text USING &quot;utf8mb4&quot;) AS tag_text FROM ipb_core_tags AS core_tags LIMIT 1800, 100">Converting topic tags (1800 - 1899)</p>

    Code for Replies:
    <p class="" title="SELECT convert(posts.pid USING &quot;utf8mb4&quot;) AS pid,convert(posts.topic_id USING &quot;utf8mb4&quot;) AS topic_id,convert(posts.ip_address USING &quot;utf8mb4&quot;) AS ip_address,convert(posts.author_id USING &quot;utf8mb4&quot;) AS author_id,convert(posts.post USING &quot;utf8mb4&quot;) AS post,convert(posts.post_date USING &quot;utf8mb4&quot;) AS post_date,convert(posts.edit_time USING &quot;utf8mb4&quot;) AS edit_time FROM ipb_posts AS posts LIMIT 400, 100">Converting replies (400 - 499)</p>

    Conversion Complete
    Warning: ini_set() has been disabled for security reasons in /home/darkone/public_html/wp/wp-content/plugins/bbpress/includes/admin/converter.php on line 319

    <Script started over again with ‘Converting Fourms’

    #176139
    Stephen Edgar
    Keymaster

    noticed that it had created several duplicates of each forum area and replicated posts more than once. It’s almost like it didn’t know it finished and restarted the process all over.

    Hmmmm, that is weird, especially the forum duplicates

    Is there any logs or debugging that I can turn on

    Right click, “inspect element” will show you the actual MySQL queries in the raw web page source code that are taking place that importer uses for each step.

    If there is mods installed on IPB could this mess with the importer at all?

    Possibly, I’ve not tested any of the importable forums with any mods, there are simply far too many permutations and combinations, the MySQL debug above should help with determining if this is a factor or not.

    The ini_set is bbPress’ attempt at bumping PHPs memory limit to 256mb if it can during import, you can ignore this.

    The WordPress database error Specified key was too long; max key length is 1000 bytes for query CREATE TABLE wp_bbp_converter_translator issue I still need to fix, I’ll try to get that fixed today, see https://bbpress.trac.wordpress.org/ticket/2936

    #176138
    Stephen Edgar
    Keymaster

    I’d start by deactivating other plugins and then reactivating them one by one to find the plugin causing the conflict:

    Troubleshooting

    #176135
    darkoned12000
    Participant

    Hello Everyone

    I just recently installed bbpress 2.6 alpha build because I heard there was some more improvements to the database importer. I was trying a test run of converting my IPB v3.47 forums to bbpress 2.6a and I put in all of the info into the script and it looks like it was working and I went away for a few hours and came back and it was still running. I thought this was odd because the forums/users are not abnormally large.

    I opened up the forums link inside the WP admin and noticed that it had created several duplicates of each forum area and replicated posts more than once. It’s almost like it didn’t know it finished and restarted the process all over.

    Is there any logs or debugging that I can turn on that would provide help into troubleshooting this issue as to why the importer never stops processing? If there is mods installed on IPB could this mess with the importer at all?

    I did find an error_log file and here is some of the issues I saw in it:

    [03-Jul-2016 17:18:48 UTC] PHP Warning: ini_set() has been disabled for security reasons in /home/darkone/public_html/wp/wp-content/plugins/bbpress/includes/admin/converter.php on line 319
    [03-Jul-2016 17:18:48 UTC] PHP Warning: ini_set() has been disabled for security reasons in /home/darkone/public_html/wp/wp-content/plugins/bbpress/includes/admin/converter.php on line 320

    [02-Jul-2016 17:10:39 UTC] WordPress database error Specified key was too long; max key length is 1000 bytes for query CREATE TABLE wp_bbp_converter_translator (
    meta_id mediumint(8) unsigned not null auto_increment,
    value_type varchar(25) null,
    value_id bigint(20) unsigned not null default ‘0’,
    meta_key varchar(255) null,
    meta_value varchar(255) null,
    PRIMARY KEY (meta_id),
    KEY value_id (value_id),
    KEY meta_join (meta_key, meta_value) ) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci made by do_action(‘wp_ajax_bbconverter_process’), call_user_func_array, BBP_Converter->process_callback, BBP_Converter->sync_table, dbDelta

    Any help is appreciated, thanks.

    #176133
    Robkk
    Moderator

    If you would want that feature in that particular shortcode, you would have to filter the code, and change the query.

    You can also make a new shortcode or a custom view to display the latest topics and limit the number of topics.

    Robkk
    Moderator

    I then lost hours trying to get the list of popular posts to appear…Turns out that the shortcode has dodgy apostrophes. Once I edited those the shortcode worked:

    Good ole’ curly quotes back at it again.

    Glad you seem to have it all figured out now.

    khunmax
    Participant

    Thanks for your assistance and prompt reply.

    It would seem that a good deal of my agony was caused by an error in the documentation page for this website:

    I went to:

    Shortcodes

    Under the subheading “views” I copied the shortcode and then pasted it into the text of my WP page. It appeared as follows:

    [bbp-single-view id=’popular’]

    I then lost hours trying to get the list of popular posts to appear. Instead I just kept getting the oh bother message.

    Turns out that the shortcode has dodgy apostrophes. Once I edited those the shortcode worked:

    [bbp-single-view id='popular']

    This is a very nasty black hole for those that are unaware.

    Robkk
    Moderator

    Without even trying to mess with Robins plugin.

    You can just make a copy of the content-single-view.php file put it into a child theme, and then edit out whatever you want.

    https://codex.bbpress.org/themes/theme-compatibility/

    You can also use CSS to hide items too. Make sure to use the .bbp-view class for single view pages or if you have a shortcode in a page use this type of class which would work in most themes, but you just need to find the page id, .page-id-ID_NUMBER, replace “ID_NUMBER” with the number or page id of the page. Depending on your set up use any of these classes before any other item selector you are trying to remove.

    #176128
    Robkk
    Moderator

    What he was going for is technically right, he linked to the wrong one though. The RSS setting only affects how many posts in the rss feed, not in the topic/reply lists.

    https://codex.bbpress.org/getting-started/configuring-bbpress/forum-settings/#topics-replies-per-page

Viewing 25 results - 6,176 through 6,200 (of 32,519 total)
Skip to toolbar