Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 12,376 through 12,400 (of 32,504 total)
  • Author
    Search Results
  • Robin W
    Moderator

    forum descriptions do not show on the forums index page.

    I’ll try and come up with some code to do this sometime next week

    if I fail, post a further response to remind me !

    Magic-Komplex
    Participant

    Hi,
    I’m quite new to bbpress and trying to set up a forum. Now there’s a problem, the forum description is only shown at the single forum pages (after I edited the code using the bbpress documentation), but it’s not shown on the main forum index page, although the documentation says it has to be.
    Look for yourself, but please be nice, it’s still under construction and looks like a mess:

    http://www.thespiritualpath.de

    Could anyone help me please? I’m able to alter code if I have a template, but I’m not a programmer, so please try to explain what to do for beginners. 😉
    I forgot to mention, category descriptions are shown, but not forum descriptions.
    Thanks in advance.

    #143941

    In reply to: Delete Topic Function

    gjwarez
    Participant

    Hey Robin,

    I add the line in this php file location
    wp-content/plugins/bbpress/includes/core/capabilities.php

    
    		// Participant/Default
    		case bbp_get_participant_role() :
    		default :
    			$caps = array(
    
    				// Primary caps
    				'spectate'              => true,
    				'participate'           => true,
    
    				// Forum caps
    				'read_private_forums'   => true,
    
    				// Topic caps
    				'publish_topics'        => true,
    				'delete_topics'         => true,
    				'edit_topics'           => true, 
    				
    				// Reply caps
    				'publish_replies'       => true,
    				'edit_replies'          => true,
    				
    				// Topic tag caps
    				'assign_topic_tags'     => true,
    			);
    
    			break;
    	}
    
    

    In this case the delete_topic does not work,
    if i put delete_others_topics there it will work for all users.

    #143935
    Robin W
    Moderator

    I think you need to seriously consider taking some anger management classes.

    bbPress is free, it costs you nothing, is developed and maintained by a bunch of nice guys who do this for free, and is supported on this site by more nice guys who again do it for free.

    If you cared to read to documentation instead of just hurling abuse at us, you’d find fixes or tools that would let you alter what you are complaining about for instance the inline list is discussed in

    Layout and functionality – Examples you can use


    and turning off the counts in

    Layout and functionality – Examples you can use

    Because bbPress is flexible and all of what is displayed can be altered with either a little php or in many cases a plugin.

    However in your case I’d simply suggest that you find different forum software and annoy someone else, rather than whinging on this support forum.

    #143933
    Robin W
    Moderator

    ok, without me spending hours digging into this, let’s see if we can sort it.

    and yes you can cut the code into a functions file by renaming it, but we’ll fix that later.

    For the moment, where are you registering the new sidebar? In a main theme for a child theme?

    If in a child theme, they won’t register as sidebars have already been loaded. So you need to unload and reload them all in one go (no idea why, it’s just what I learnt when I tried to add a sidebar in my child theme.)

    so what my child theme functions file starts with is

    remove_action( 'widgets_init', 'twentyten_widgets_init' ); //necessary to replace parent theme's code which is a twentyten theme
    function twentytenchild_widgets_init() {
    	// Area 1, located at the top of the sidebar.
    	register_sidebar( array(
    		'name' => __( 'Primary Widget Area', 'twentytenchild' ),
    		'id' => 'primary-widget-area',
    		'description' => __( 'The primary widget area', 'twentytenchild' ),
    		'before_widget' => '<li id="%1$s" class="widget-container %2$s">',
    		'after_widget' => '</li>',
    		'before_title' => '<h3 class="widget-title">',
    		'after_title' => '</h3>',
    	) );

    so it starts by removing the twentyten sidebar’s and then adds them straight back – my child theme for the twentyten main theme is excitingly called “twentytenchild”!. I have just shown the first widget from the parent theme, all are just copied from the parent theme. Several others follow
    Then on the end you add your new sidebar.

    Then after that you complete and register them viz :

    	//** Register sidebars by running twentyten_widgets_init() on the widgets_init hook. */
    add_action( 'widgets_init', 'twentytenchild_widgets_init' );
    

    by the by in your after title you need to change the a/ to /a

    Give that a go, and come back if it works, and we’ll then talk about taking the widget into a custom one.

    forwardslashdesigns
    Participant

    Hi,

    Title says it all really. I am trying to customise the recent topics widget; using it to display topics from a specific forum; and I would like the title to link to the forum from which the topics are from.

    I have registered a sidebar for this in my functions.php file and I’ve tried the following code, but it doesnt work as its not adding the URL into the title:

    register_sidebar(
    		array(
    			'id' => 'forumcontent',
    			'name' => __( 'Forum Home Content - Colleges', 'textdomain' ),
    			'description' => __( 'A short description of the sidebar.', 'textdomain' ),
    			'before_widget' => '<div id="%1$s" class="widget-topic-list %2$s">',
    			'after_widget' => '</div>',
    			'before_title' => '' . apply_filters( 'bbp_get_forum_permalink', get_permalink( $forum_id ) ) . '<h3 class="widget-title">',
    			'after_title' => '</h3><a/> <br class="clear"/>'
    		)
    	);

    I am trying to create something similar to this: http://postimg.org/image/55qwbgoe3/

    I am currently editing the the bbpress/includes/common/widgets.php file directly which I know is a BIG NO NO! and I should create a custom widget for this, but I am not really sure how to!

    I am currently using WordPress v3.6 and Bbpress v2.5.3

    Thanks

    #143923
    Stephen Edgar
    Keymaster

    Wow! On the front page of bbpress.org and everywhere we mention bbPress:

    "bbPress is forum software, made the WordPress way."

    bbPress is not like all other forums, it was not made to be like other forums, it was made the WordPress way allowing for customized functionality by plugins and/or themes.

    So maybe you should post on http://jobs.wordpress.net/

    #143919
    Robmcclel
    Participant

    Robin,

    Thanks for getting back to me, I’m sorry I was less clear.

    The WP page is real and live, and it does work. The issue is, the Index page is still there — I can’t seem to replace it with the WP Page. Breadcrumbs become meaningless, as the forum source will be the Index Page not the WP Page.

    The shortcodes allow me to organize the forums but still keep the sub (Genre) and sub-sub (subgenre) forums visible. For example, the “Mysteries, Suspense, Thrillers” genre has the sub-genre “Detectives”. On the WP/Shortcode page you can see that. On the Index Page you can’t.

    To change the Index Page takes considerable effort, if it can even be done at all (we have yet to be able to do so, though we can make it better looking). The WP/Shortcode Page, however, is exactly how we want it. The problem is that page competes and cross-connects to the Index Page.

    I want to get rid of the Index Page — for real, or for practical purpsoes — so that it is never seen, linked to, or interacted with by a user. Period. ever.

    Failing the ability to remove the Index Page from the equation, I would like to modify it so that it looks and acts very similar to the set-up the WP/Shortcode Page provides.

    Bottom Line: I want the various descriptions, genres, and subgenres visible to the user from the main forum page they would see and interact with, without any confusion or conflict by any other page or index.

    #143902

    In reply to: SimplePress Import

    Stephen Edgar
    Keymaster

    There we go, that indeed will be the issue.

    Essentially after the forum hierarchy is calculated it starts importing the topics (though that’s the last message you see)

    We use a custom ‘bbcode’ parser to convert the imported forums BBCodes eg. [url], [b], [img] etc.

    So if you are using a plugin that is doing something with BBCodes it’s a high probability that that is the conflict.

    Disable said plugin and you should be good to go and/or if you don’t know which plugin it is disable them all, do your import, then enable your plugins again.

    #143901

    In reply to: SimplePress Import

    matrixino
    Participant

    Ok found the problem. The WP plugin Boingball BBcode was using the same class name.
    I’m importing now and went to the next step. Finger crossed 🙂 Thanks for your time

    #143900

    In reply to: SimplePress Import

    matrixino
    Participant

    WP 3.8.1 – SP 5.4.1 (but also isn’t working with 5.4, i just upgraded when trying to fix this) – BBP 2.5.3
    I’m working on a duplicate copy of my wp db (I always do a test run before working on live site).

    However I just noticed this error in my php logs:
    “PHP message: PHP Fatal error: Cannot redeclare class bbcode in /wp-content/plugins/bbpress/includes/admin/parser.php on line 979” while reading response header from upstream

    So I think some other plugin (or maybe wp itself?) is declaring that class already. I’m going to debug this now.

    #143887

    In reply to: Delete Topic Function

    Robin W
    Moderator

    there are two capabilities within bbpress roles

    ‘delete_topics’
    ‘delete_others_topics’

    Looks like the plugin is changing the wrong one.

    I presume it is the participant role that you like delete topic on ?

    If so, please come back and confirm, and I’ll cut a quick filter for you after the weekend if you know how to add some code to your functions file.

    #143884
    Robin W
    Moderator

    if it worked before, then something has changed.

    If you want to stop it using the template then create a ‘bbpress’ folder in the root of your theme, and copy

    wp-content/pluigins/bbpress/templates/default/bbpress/loop-single-reply.php across to this new folder.

    The edit to remove the code that displays this – lines 47 to 55 have an if(keymaster) statement that display this info

    #143883
    Robin W
    Moderator

    Ok, so if I understand you problem correctly, what you’d like is the main forum page to show is

    1.
    Category
    Forum
    Subforum
    forum
    subforum

    The subforums are not currently showing?

    and

    2. for each to have a description?

    you are trying to achieve this by using a wordpress page and shortcodes.

    What confuses me is that you give a link to the page you want to use – if this is a real page, then what is preventing you form using it?

    Sorry if I’m not understanding you correctly

    #143874
    Robmcclel
    Participant

    My objective is to not use the standard forum root index page that is auto-created and instead use a WordPress page with forum shortcodes.

    The auto-generated forum root page is here: http://thirdscribe.com/cafe

    and I would much rather use this page here: http://thirdscribe.com/cafe-forums

    I have not had any success in customizing my root from the settings panel where it says: “Customize your Forums root. Partner with a WordPress Page and use Shortcodes for more flexibility.”

    Failing the ability to use the WP page with shortcodes, I would like for the sub-sub forums to be shown, as well as the text descriptions for everything, in the root index. This forum supports a book network, and to have the subgenres showing under the genres is pretty important. Again, I would prefer to just use the page generated using the shortcodes, but I’ll accept just getting the subgenres and descriptions to show.

    This is my first time using bbPress — I like it and like the back end administration, but I REALLY need to be able to show more information on this forum page.

    I am running WP 3.8.1, Buddypress 1.9.2, and bbPress 2.5.3

    Any help or suggestions appreciated.

    #143870

    In reply to: SimplePress Import

    Stephen Edgar
    Keymaster

    I was on Simple:Press v5.3.4 and have just now upgraded to v5.4.1

    Tested the current bbPress v2.5.3 import using the SimplePress5 importer and everything worked fine.

    Repair any missing information: Continue
    Conversion Complete
    No reply_to parents to convert
    Converting replies (0 - 99)
    No tags to convert
    No super stickies to stick
    Calculating topic stickies (0 - 99)
    Converting topics (0 - 99)
    Calculating forum hierarchy (0 - 99)
    Converting forums (0 - 99)
    Delete users WordPress default passwords (0 - 99)
    Converting users (0 - 99)
    Starting Conversion

    This is the SQL query that runs the step you are stuck on:
    SELECT post_id AS value_id, meta_value FROM sp_postmeta WHERE meta_key = '_bbp_forum_parent_id' AND meta_value > 0 LIMIT 0, 100

    This shouldn’t really cause any issues, worst case scenario you no longer have your forums grouped in their previous hierarchal structure.

    The only other thing I can think of is maybe a SimplePress plugin/extension may have modified the database setup beyond the basic ‘out of the box’ setup I use.

    You could also try reordering your SimplePress forums to force an update of their values in the database. Also try removing the forums from the groups and delete the groups. You can easily add the groups/categories again on the bbPress side once the import is completed successfully.

    #143851
    aidibiomed
    Participant

    Hello: I’m running into the same issue. I’ve created a Page and used the Index Short Code, Created a Forum, and a Topic. I can see the forum, just not the topic. And when I try to access the link it sends me to a 404 error.

    #143840
    jyd44
    Participant

    Hi,
    your initial question was about replies. In fact, you have exactly the same issues for posting, reading, and so on. You have to use the same kind of trick for every action you want to block.
    The best way to find which filter is key to control an action, is to start from the template files, to see which bb_call is made, read the source code of this function and discover which filter is applied. It’s the same also for the buddypress menus (either in the admin bar, either in the body of the page), depending on your requirements (eg. Do you allow a non member to discover the list of member in a group, and so on.)
    Yes it’s a huge job. When you complain about the way the access control in bbpress is handled, remember that I told you before that blocking the access to replies will not be the only one issue you will have to face. With roughly the same requirements, I have written more than 1800 lines of code (including comments !) to tune the menus and to refine the access control rules. Fortunately, thanks to the filter and action mechanism of WP and the goodwill of their developpers, bbPress and BuddyPress offer many possibilities for this tuning.

    #143834
    still
    Participant

    Using shortcode [bbp-single-topi id=xx].
    Page looks like this: http://screencast.com/t/eo3RUhcczzyW .
    How to fix the layout?

    Thank you.

    #143826
    Perry Vermeulen
    Participant

    Thanks Lynq – in what php code and where exactly can I add that code? In bbpress/bbpress.php? and where exactly?

    Perry

    #143820
    Stephen Edgar
    Keymaster

    I’d suggest you start with the docs in the codex.

    It looks like you don’t need to know any PHP just yet 😉

    Codex

    #143798
    Stephen Edgar
    Keymaster

    Make a copy of your page.php (or page-no-sidebar.php depending on your preference) of your StudioPress theme template file and name it bbpress.php

    This should also remove ‘door’ from your page.

    #143788

    I’ve created a series of Forums on this site:
    http://xxxxxxxx.ca

    They are located here at http://xxxxxx.ca

    I used a series of shortcodes so I could customize the pages…

    I seem to be running into a problem of “now you see them now you dont” when topics or replies are posted.. almost as if the short codes cant hold the link to the topics and replies.. yet the one main topic I “stuck” to the top and closed as an admin always remains.

    If you register for the forums, everythings fine… if you post, it seems to be fine.. but go back later.. and its gone. I cant make any sense out of this. It all seems very buggy… I’m suspicious of a conflict in there somewhere, sometimes the wp menu bar shows.. and I can see the posts.. sometimes.. even though Im logged in it disappears.. but is there to touch.. and I can still see the posts.. sometimes its gone completetly and bbpress thinks I logged out completely, then I can see nothing.. grrrrrrr

    The short of it.. these forums arent working right… very frustrating and somehow I need to fix it. I cant just start disabling things without affecting the whole site.

    Any sugestions?

    With the disappearing toolbar over top.. I suspect a conflict.

    I currently run WP 3.8.1
    I also use BBPress 2.5.3, BBPress reCapctha 1.1, mailchimp for wordpress lite 1.5.7, W3 Total Cache 0.9.3, WP SEO 1.5.2.2

    Im lost.. about to go into the long haul of troubleshooting but any suggestions would be helpful.. I am by no means an expert in these forums, these are the first I have ever built.

    #143784
    Apokh
    Participant

    Okay I declared the 2 Functions

    function my_bbp_current_user_can_publish_replies($input)
    {
    $topic_id = bbp_topic_id();
    $root_forum = alsb_get_post_root_forum($topic_id);
    $groups_id = bbp_get_forum_group_ids($root_forum);
    $user_id = get_current_user_id();
    if (groups_is_user_admin( $user_id, $groups_id[0])
    || groups_is_user_mod ($user_id, $groups_id[0])
    || groups_is_user_member ($user_id, $groups_id[0]) )
    return true;
    else return false;
    }
    
    function alsb_get_post_root_forum($post_id)
    {
    $post = get_post($post_id);
    do
    {
    $post = get_post($post->post_parent);
    }while ($post->post_parent != 0);
    return $post->ID;
    }
    
    add_filter (‘bbp_current_user_can_publish_replies’, my_bbp_current_user_can_publish_replies, 10);

    within my themes function.php. It seems to work, but only for the Parent Forum, not for their child forums.

    So when i have

    Parent (Private buddypress rootforum for Goup)
    — Child 1
    — Child 2

    Only the Parent is “safe”, when I click as non-member of the group in the forum index on one of the Children, I have access, can read and post. Seems the Access Control of bbpress cannot compete in direct comparism to the forumintegrations of other CMS´. I´m asking how other users do realize their communities with buddypress (which is based on a really good idea) in comnbination with bbpress as forum.

    #143775
    dtbaker
    Participant

    I added this new Voting feature as part of the old GetShopped Support Forum plugin.

    It was the quickest way I could get a support forum (resolved/unresolved) plus topic voting working together.

    Here is the comment I made on the WordPress plugin repo site:
    https://wordpress.org/support/topic/i-added-bbpress-voting-and-fixed-some-bugs-version-303?replies=1

    Code is available on github. It’s not polished enough to be a standalone plugin just yet.

    I have added a few new things:
    1) topic voting
    2) sidebar registration widget
    3) copied the ‘resolved’ dropdown to near the submit button, so you can easily mark a topic as resolved while you are replying to it (much quicker!)
    4) fixed a couple of potential bugs around permissions (ie: anyone could mark a thread resolved or assign a thread to someone etc..)

    You can grab the code (and see the changes) from here: https://github.com/dtbaker/bbPress-Support-Forums

    The voting and sidebar registration features can be seen in the demo here: http://ultimateclientmanager.com/forums/forum/feature-requests/

    (I have modified some of the div tags/classes in this plugin to better support bootstrap, so it might look a bit funky on the standard bbPress install)

    Cheers,
    Dave

    https://wordpress.org/plugins/bbpress-vip-support-plugin/

Viewing 25 results - 12,376 through 12,400 (of 32,504 total)
Skip to toolbar