Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 11,601 through 11,625 (of 32,521 total)
  • Author
    Search Results
  • #147885
    JBBoY
    Participant

    Hi!

    I’m searching for a bbproles field in the wordpress/bbpress database but with no luck. In wich table and row are they stored? What I want to do is create a form who change the user role if an “update user role code” facilitated by forum admin is correct.

    Thank you very much in advance for your replies. πŸ™‚

    #147876
    GuillaumeR
    Participant

    Hi,

    I work on a WordPress Theme with bbpress integration and the user account are linked with the forums. But the Avatars are not working properly.
    If the users use facebook connect to create their account, bbpress use their facebook avatar, whether they change their account avatar or not. I want to customize code to make sure bbpress always use the user account avatar but I can’t find where is the logic behind this.
    Can you give me some elements as to where I need to make modifications?

    Thanks!

    #147873
    Robin W
    Moderator

    Agree it would be useful, and could be coded, but there are many calls on the developers time (I’m not a developer).

    #147872
    Robin W
    Moderator

    Is there any way to completely skip the forums index? I don’t see why I would need multiple forums when I can have 1 main forum with different topics.

    Yes you can skip the forum index, just create a page and put one of the shortcodes on it

    https://codex.bbpress.org/shortcodes/

    In your case you’d use

    [bbp-single-forum id=$forum_id] – Display a single forums topics. eg. [bbp-single-forum id=32]

    #147869
    Stephen Edgar
    Keymaster

    Ha! Confirmed, will add an updated patch shortly….

    It strips all the ssssssssss’s so even https://sssseanwes.com/ becomes @eanwes.com πŸ˜‰

    #147867
    seanwes
    Participant

    Changeset 5409 fixed it for me.

    However, I still have the following issue:

    My website is seanwes.com. Notifications are now coming from noreply@eanwes.com (notice no ‘s’).

    I have the proper address hardcoded in the mean time.

    #147865
    gd0g
    Participant

    I am running a number of plugins however I have checked another install and when I update to 2.5.4 my Forums tab disappears in admin??

    Plugins I am running below…. on 3.9.1 wordpress

    Admin Menu Editor Pro
    Deactivate | Edit | Settings | License

    Lets you directly edit the WordPress admin menu. You can re-order, hide or rename existing menus, add custom menus and more.
    Version 1.93 | By Janis Elsts | Visit plugin site | Check for updates
    Select Akismet Akismet
    Settings | Deactivate | Edit

    Used by millions, Akismet is quite possibly the best way in the world to protect your blog from comment and trackback spam. It keeps your site protected from spam even while you sleep. To get started: 1) Click the “Activate” link to the left of this description, 2) Sign up for an Akismet API key, and 3) Go to your Akismet configuration page, and save your API key.
    Version 3.0.0 | By Automattic | Visit plugin site
    Select bbPress bbPress
    Activate | Edit | Delete

    bbPress is forum software with a twist from the creators of WordPress.
    Version 2.5.4 | By The bbPress Community | Visit plugin site
    There is a new version of bbPress available. View version 2.5.4 details or update now.
    Select BuddyPress BuddyPress
    Deactivate | Edit | Settings | About

    Social networking in a box. Build a social network for your company, school, sports team or niche community all based on the power and flexibility of WordPress.
    Version 2.0.1 | By The BuddyPress Community | Visit plugin site
    Select Emma & Zoho Emma & Zoho
    Deactivate | Edit

    Synchronize gravity form data into emma and zoho through API
    Version 1.0 | By Stephin Nadar
    Select Emma & Zoho Update or Add Emma & Zoho Update or Add
    Deactivate | Edit

    Send gravity form data into emma and zoho through API
    Version 1.0 | By Stephin Nadar
    Select Goals Goals
    Deactivate | Edit

    Nice Goal Plugin.
    Version 1.0 | By WP-Lokal | Visit plugin site
    Select Gravity Forms Gravity Forms
    Settings | Deactivate | Edit

    Easily create web forms and manage form entries within the WordPress admin.
    Version 1.8.8 | By rocketgenius | Visit plugin site
    Select Import Users from CSV Import Users from CSV
    Deactivate | Edit

    Import Users data and metadata from a csv file.
    Version 1.0.0 | By Ulrich Sossou | Visit plugin site
    Select Multi Plugin Installer Multi Plugin Installer
    Deactivate | Edit

    This plugin can install multi plugins at once click
    Version 1.1.0 | By Nishant Jain, rahulbrilliant2004, tikendramaitry | Visit plugin site
    Select Post Expirator Post Expirator
    Deactivate | Edit | Settings

    Allows you to add an expiration date (minute) to posts which you can configure to either delete the post, change it to a draft, or update the post categories at expiration time.
    Version 2.1.3 | By Aaron Axelsen | Visit plugin site
    Select RSS Shortcode RSS Shortcode
    Deactivate | Edit

    Makes it easy to display an RSS feed on a page
    Version 0.2 | By Joost de Valk | Visit plugin site
    Select Splash Plugin Splash Plugin
    Deactivate | Edit

    “Splash Plugin” is a Word Press plugin that allows you to display static and dynamic tabs on the left and/or right side of your website. They are non-intrusive and a fun way get attention. You have control on how the tabs will look using our built-in tools or our pre-designed tabs.
    Version 4.0 | By SplashPlugin.com | Visit plugin site
    Select User Avatar User Avatar
    Deactivate | Edit

    Allows users to associate photos with their accounts by accessing their “Your Profile” page that default as Gravatar or WordPress Default image (from Discussion Page).
    Version 1.4.11 | By Enej Bajgoric / Gagan Sandhu / CTLT DEV | Visit plugin site
    Select User Role Editor User Role Editor
    Settings | Deactivate | Edit

    Change/add/delete WordPress user roles and capabilities.
    Version 4.14 | By Vladimir Garagulya | Visit plugin site | Changelog
    There is a new version of User Role Editor available. View version 4.14.1 details or update now.
    Select White Label CMS White Label CMS
    Deactivate | Edit

    A plugin that allows you to brand wordpress CMS as your own
    Version 1.5.2 | By http://www.videousermanuals.com | Visit plugin site
    Select WP101 WP101
    Deactivate | Edit

    WordPress tutorial videos, delivered directly in the WordPress dashboard.
    Version 2.1.1 | By WP101Plugin.com
    Select WP Project Manager – Frontend WP Project Manager – Frontend
    Deactivate | Edit

    Frontend functionality for WP Project Manager
    Version 1.2.1 | By Tareq Hasan | Visit plugin site
    Select WP Project Manager – Sub Task WP Project Manager – Sub Task
    Deactivate | Edit

    Time tracker add-on for WP Project Manager
    Version 0.1 | By weDevs | Visit plugin site
    Select WP Project Manager – Time Trakcer WP Project Manager – Time Trakcer
    Deactivate | Edit

    Time tracker add-on for WP Project Manager
    Version 0.1 | By weDevs | Visit plugin site
    Select WP Project Manager PRO WP Project Manager PRO
    Deactivate | Edit

    A WordPress Project Management plugin. Simply it does everything and it was never been easier with WordPress.
    Version 0.5.3 | By Tareq Hasan | Visit plugin site
    Select wpsc Support Tickets wpsc Support Tickets
    Deactivate | Edit

    An open source help desk and support ticket system for WordPress using jQuery. Easy to use for both users & admins.
    Version 4.5.1 | By wpStoreCart, LLC | Visit plugin site
    There is a new version of wpsc Support Tickets available. View version 4.7.2 details or update now.
    Select wpsc Support Tickets PRO wpsc Support Tickets PRO
    Deactivate | Edit

    A professional add-on for the wpsc-Support-Tickets system for WordPress. Adds many professional features.
    Version 3.0.3 | By wpStoreCart, LLC | Visit plugin site

    #147862
    obinyc
    Participant

    Here are my forums as they currently are: http://zimbabwe-today.com/forums/

    Sorry to be the simple one here but I am really not seeing what I am supposed to do to get the sidebar in the forum. I installed BBpress WP Tweaks and added the BBpress login widget but I am not seeing anything. What am I supposed to do next? I created a bbpress.php file but I don’t see what code I should put in it that references the sidebar that I will be using. Is it some variation of this: <?php if (!function_exists(‘dynamic_sidebar’) || !dynamic_sidebar(‘Page Sidebar’)): endif; ?>

    Please let me know.

    Thanks

    #147857
    Stephen Edgar
    Keymaster

    I just also added this to the docs https://codex.bbpress.org/import-forums/vanilla/

    #147851
    Stephen Edgar
    Keymaster

    I just saw your message in #bbpress IRC chat room

    The bbPress Vanilla2 importer does not support threaded replies out of the box, there are far too many plugins available for all the forum packages to try and support all the possible permutations and combinations these would cause.

    So that said, you would have to modify the importer to support the ‘ReplyTo’ Vanilla plugin, I just took a quick peek at the plugin and here you go, add the snippet of code here to the reply section or use the full file and replace your current bbPress Vanilla2.php file I added here and I think will do the trick.

    https://gist.github.com/ntwb/b9b3404400a79ebd5913#file-vanilla2_replyto-php

    Robin W
    Moderator

    Not a quick answer – how well are you able to code?

    #147845
    Robin W
    Moderator

    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.

    and see

    Step by step guide to setting up a bbPress forum – Part 1

    #147844
    Robin W
    Moderator
    #147842
    Jon Christopher
    Participant

    It looks like the issue is compounded by

    // Setup the From header
    $headers[] = 'From: ' . get_bloginfo( 'name' ) . ' ' . $do_not_reply;

    as well. Mandrill complains that the format isn’t an email address and fails validation. Not sure if this is a change in the latest bbPress update but I had to modify that as well.

    Running a few tests, it looks like the new BCC setup continues to work as expected through Mandrill.

    rsg2
    Participant

    hello

    i have a wordpress site with bbpress installed. i have 3 subforums in bbpress. on the homepage of my wordpress site, i would like to list out those 3 forums with the lastest 5 posts from each.

    please take a look at this image:

    the styling doesn’t have to look like the attached as long as i can list out the individual subforums and 5 of its most recent posts.

    i have setup 3 columns with ability to put shortcodes.

    i tried using some of the shortcodes provided by bbpress with no luck.

    SOS please!!! i’m running out of options…lol

    thanks in advance,

    chris

    Stephen Edgar
    Keymaster

    Confirm the capitalization of the language setting is the same for all the files:

    e.g.

    • wp-config.php -> define ('WPLANG', 'he_IL');
    • bbpress-he_IL.mo
    • bbpress-he_IL.po

    Also make sure the bbPress translation files are stored in /wp-content/languages/bbpress/

    https://codex.bbpress.org/bbpress-in-your-language/

    Lexador
    Participant

    Hi,

    I have a problem with syntax highlighter in bbpress (plugin). Normaly, after I’ve used Crayon and paste the example code

    void loop()
    {
    digitalWrite
    }

    it generates in the background (if I switch to text mode)

    <pre class="lang:arduino decode:true crayon-selected">void loop()
    {
    digitalWrite
    }</pre>

    It works good for admin, but if somebody else (member) try to post a code, the tag </pre> disappears, so his code will be not highlighted and in the published post I can see the code and a part of Crayon’s tag like this

    <pre class="lang:arduino decode:true crayon-selected">void loop()
    {
    digitalWrite
    }

    I’ve noticed about restrictions in html-tags etc. but as I can see in formatting.php pre is allowed tag.

    What is the problem?

    Thanks in advance.

    #147816
    Robin W
    Moderator

    Ok, what I want to do is check if the function is trying to filter and failing or not even trying to filter.

    I am therefore going to get the plugin to dump one of the lists, so that you can tell me what it is showing – it won’t look pretty, but should help.

    First of all you need to work out a search that produces only a few results, say less than 10, and that you can list all the results that you would expect to see for full access, and that you want to see for the private groups, and make a not of their numbers.

    so for instance

    search for zebra produces posts numbers

    2345,2367,2657,2894,2965

    But one of these is in a private forum so a non-logged in user should see

    2345,2367,2894,2965

    Once you have this list, then do the following :
    Use notepad to create a file called search.php

    then put this code into it

    <?php
    
    //this function filters to the bbp search function to allow only returns from allowed forums
    
    function pg_has_search_results( $args = '' ) {
    	global $wp_rewrite;
    //start with code as per bbp search !
    	/** Defaults **************************************************************/
    
    	$default_post_type = array( bbp_get_forum_post_type(), bbp_get_topic_post_type(), bbp_get_reply_post_type() );
    
    	// Default query args
    	$default = array(
    		'post_type'           => $default_post_type,         // Forums, topics, and replies
    		'posts_per_page'      => bbp_get_replies_per_page(), // This many
    		'paged'               => bbp_get_paged(),            // On this page
    		'orderby'             => 'date',                     // Sorted by date
    		'order'               => 'DESC',                     // Most recent first
    		'ignore_sticky_posts' => true,                       // Stickies not supported
    		's'                   => bbp_get_search_terms(),     // This is a search
    	);
    
    	// What are the default allowed statuses (based on user caps)
    	if ( bbp_get_view_all() ) {
    
    		// Default view=all statuses
    		$post_statuses = array(
    			bbp_get_public_status_id(),
    			bbp_get_closed_status_id(),
    			bbp_get_spam_status_id(),
    			bbp_get_trash_status_id()
    		);
    
    		// Add support for private status
    		if ( current_user_can( 'read_private_topics' ) ) {
    			$post_statuses[] = bbp_get_private_status_id();
    		}
    
    		// Join post statuses together
    		$default['post_status'] = implode( ',', $post_statuses );
    
    	// Lean on the 'perm' query var value of 'readable' to provide statuses
    	} else {
    		$default['perm'] = 'readable';
    	}
    	
    	//PG then loop to find allowable forums
    	//Get an array of IDs which the current user has permissions to view
    	$allowed_posts = private_groups_get_permitted_post_ids(new WP_Query($default));
    	Echo 'Allowed posts list' ;
    	var_dump ($allowed_posts) ;
    	// The default forum query with allowed forum ids array added
        $default['post__in'] = $allowed_posts;
    
        
    	//then return to bbp search code
    	/** Setup *****************************************************************/
    
    	// Parse arguments against default values
    	$r = bbp_parse_args( $args, $default, 'has_search_results' );
    
    	// Get bbPress
    	$bbp = bbpress();
    
    	// Call the query
    	if ( ! empty( $r['s'] ) ) {
    		$bbp->search_query = new WP_Query( $r );
    	}
    
    	// Add pagination values to query object
    	$bbp->search_query->posts_per_page = $r['posts_per_page'];
    	$bbp->search_query->paged          = $r['paged'];
    
    	// Never home, regardless of what parse_query says
    	$bbp->search_query->is_home        = false;
    
    	// Only add pagination is query returned results
    	if ( ! empty( $bbp->search_query->found_posts ) && ! empty( $bbp->search_query->posts_per_page ) ) {
    
    		// Array of arguments to add after pagination links
    		$add_args = array();
    
    		// If pretty permalinks are enabled, make our pagination pretty
    		if ( $wp_rewrite->using_permalinks() ) {
    
    			// Shortcode territory
    			if ( is_page() || is_single() ) {
    				$base = trailingslashit( get_permalink() );
    
    			// Default search location
    			} else {
    				$base = trailingslashit( bbp_get_search_results_url() );
    			}
    
    			// Add pagination base
    			$base = $base . user_trailingslashit( $wp_rewrite->pagination_base . '/%#%/' );
    
    		// Unpretty permalinks
    		} else {
    			$base = add_query_arg( 'paged', '%#%' );
    		}
    
    		// Add args
    		if ( bbp_get_view_all() ) {
    			$add_args['view'] = 'all';
    		}
    
    		// Add pagination to query object
    		$bbp->search_query->pagination_links = paginate_links(
    			apply_filters( 'bbp_search_results_pagination', array(
    				'base'      => $base,
    				'format'    => '',
    				'total'     => ceil( (int) $bbp->search_query->found_posts / (int) $r['posts_per_page'] ),
    				'current'   => (int) $bbp->search_query->paged,
    				'prev_text' => is_rtl() ? '&rarr;' : '&larr;',
    				'next_text' => is_rtl() ? '&larr;' : '&rarr;',
    				'mid_size'  => 1,
    				'add_args'  => $add_args, 
    			) )
    		);
    
    		// Remove first page from pagination
    		if ( $wp_rewrite->using_permalinks() ) {
    			$bbp->search_query->pagination_links = str_replace( $wp_rewrite->pagination_base . '/1/', '', $bbp->search_query->pagination_links );
    		} else {
    			$bbp->search_query->pagination_links = str_replace( '&paged=1', '', $bbp->search_query->pagination_links );
    		}
    	}
    	//finally filter to return
    	// Return object
    	return apply_filters( 'pg_has_search_results', $bbp->search_query->have_posts(), $bbp->search_query );
    }
    
    add_filter ('bbp_has_search_results', 'pg_has_search_results') ; 

    Then go into FTP

    Then look in

    wp-content/plugins/bbp-private-groups/includes

    and you’ll see a file called

    wp-content/plugins/bbp-private-groups/includes/search.php

    Rename this file to searchold.php (as we’ll need it back later!)

    Then copy the search.php that you made above to this folder (wp-content/plugins/bbp-private-groups/includes).

    Then run your search.

    You should see a horrible list at the start, but this will be what should be the filtered list

    run this with full access and with restricted access (ie not logged in) and tell me what lists you get and of they are different.

    #147815
    Robin W
    Moderator

    That is quite complicated.

    However this will add ‘edit profile’ to you menu if you put it in your function file !

    // Filter wp_nav_menu() to add profile link
    add_filter( 'wp_nav_menu_items', 'my_nav_menu_profile_link' );
    function my_nav_menu_profile_link($menu) { 	
    	if (is_user_logged_in()) {
    		$current_user = wp_get_current_user();
    		$user=$current_user->user_login ;
    		//Lower case everything
    		$user = strtolower($user);
    		//Make alphanumeric (removes all other characters)
    		$user = preg_replace("/[^a-z0-9_\s-]/", "", $user);
    		//Clean up multiple dashes or whitespaces
    		$user = preg_replace("/[\s-]+/", " ", $user);
    		//Convert whitespaces and underscore to dash
    		$user = preg_replace("/[\s_]/", "-", $user);
    		$profilelink = '<li><a href="/forums/users/' . $user . '/edit">Edit Profile</a></li>';
    		$menu = $menu . $profilelink;
    		return $menu;
    	
    }
    #147806
    Robkk
    Moderator

    use css to make your changes

    Step by step guide to setting up a bbPress forum – part 2

    everything is pretty much in there

    #147793
    Robin W
    Moderator
    Robin W
    Moderator

    Really glad that writing that part of the guide has worked for someone else – it was a real challenge to write !

    Try changing the line

    add_filter( 'bbp_get_topic_reply_link','jc_return_review' );

    to

    add_filter( 'bbp_before_get_topic_reply_link_parse_args','jc_return_review' );
    

    This lets you change just one part of the function.

    #147787

    In reply to: Full Width Forum Help

    Robin W
    Moderator

    ok, this is not my strong area, but try making this as your bbpress.php page

    
    <?php 
    
    get_header(); // Loads the header.php template. ?>
     
    	<?php if ( is_bbpress() ) { ?>
     
    		<header class="entry-header">
    			<h1 class="entry-title"><?php single_post_title(); ?></h1>
    			<?php echo apply_atomic_shortcode( 'entry_byline', '<div class="entry-byline">' . __( 'Published by [entry-author] on [entry-published] [entry-comments-link before=" | "] [entry-edit-link before=" | "]', 'spine2' ) . '</div>' ); ?>
    		</header><!-- .entry-header -->
     
    		<?php while( have_posts() ): the_post(); ?>
     
    			<?php the_content(); ?>
     
    		<?php endwhile; ?>
     
     
    		<footer class="entry-footer">
    			<?php echo apply_atomic_shortcode( 'entry_meta', '<div class="entry-meta">' . __( '[entry-terms before="Posted in " taxonomy="category"] [entry-terms before="| Tagged "]', 'spine2' ) . '</div>' ); ?>
    		</footer><!-- .entry-footer -->
     
    	<?php } else { ?>
    	<div id="content" class="hfeed">
     
    		<?php get_template_part( 'loop-meta' ); // Loads the loop-meta.php template. ?>
     
    		<?php get_template_part( 'loop' ); // Loads the loop.php template. ?>
     
    		<?php get_template_part( 'loop-nav' ); // Loads the loop-nav.php template. ?>
     
    	</div><!-- #content -->
     
    <?php get_footer(); // Loads the footer.php template. ?>
    Jerry
    Participant

    I have read the following explanation on using filters, and have become somewhat proficient on this. http://codex.bbpress.org/step-by-step-guide-to-setting-up-a-bbpress-forum-part-5/

    I am having an issue, to which I believe there is probably a simple answer. I want to replace the word “Reply” with “Review This Book” in the admin links. Easy enough. But when I do that, there is no longer a link; I want to maintain the same link.

    According to the tutorial I have been using (above link), I am supposed to use a function like this:

    function jc_return_review( $args = array() ) {
     $args['reply_text'] = 'Review This Book';
     return $args;
    }

    Then I implement the following:
    add_filter( 'bbp_get_topic_reply_link','jc_return_review' );

    However, the above function causes the following error:
    “Warning: Illegal string offset ‘reply_text’ in /homepages/../../../../wp-content/plugins/bp-custom.php on line 111
    Ra href=”#new-post” class=”bbp-topic-reply-link”>Reply”

    But…, when using the following function

    function jc_return_review() {
    return 'Review This Book';
    }

    And the same filter above, the wording gets replaced just fine, but as I mentioned at the start of this post, there is no longer a link. In other words, without my filter, REPLY is a link that takes you to the reply window. When using my filter, Review This Book is present, but there is no link associated with Review This Book.

    Thanks for any help here.

    #147769
    wallyhood
    Participant

    Something is broken with my use of BBPress related to jQuery:

    Using the jQuery selector does not work. For example:

    $(".title")
    TypeError: undefined is not a function
    

    However, using
    jQuery(".title")

    does work. This is breaking other plugins and code I have on my site (http://www.wallyhood.org). I’ve tried disabling all other plugins except for BBPress, and the problem still occurs. I’ve tried enabling all plugins EXCEPT BBPress and the problem doesn’t occur. So it would seem that it must be BBPress causing the issue, except that I would assume lots of other people would be reporting it if that were the case.

    Any help?

Viewing 25 results - 11,601 through 11,625 (of 32,521 total)
Skip to toolbar