Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 5,876 through 5,900 (of 32,577 total)
  • Author
    Search Results
  • consultjoseph
    Participant

    @themichaelglenn I tried out your version but it brought problems which weren’t there in the original version.

    Now, when I go to a sub-topic and click on a new thread, it says “PAGE NOT FOUND” despite it having appeared on the previous version in GitHub.

    You can check it out here: http://startecareer.com/forum/say-hi/

    #178632

    Topic: Quote

    in forum Installation
    ico33
    Participant

    Hello. I ‘m new, and I am not a programmer, so please excuse me for the question.

    Is there a way to insert the “quote” option in a bbpress post? I mean a button (or something like that) on each post. When a user what to reply quoting that post, simply has to click there.

    There is a plugin, but If possible I would do it without a plugin. Is there a code to paste somewhere? If so, tell me the code and where (in a simple way so I can understand πŸ˜€ )

    Thanks a lot!

    #178627
    marissafairy
    Participant

    Problem 1:
    Using builtin importer, whole system is being imported by phpbb3. Anonymous users who does not have any accounts are allowed for posting but they are showing up as anonymous, in the system.
    I have collected the usernames_of_the_visitors from posts_from_current_users and created those users, using a query:

    INSERT INTO wp_current_visitors (using_the_login)
        SELECT DISTINCT usernames_of_the_visitors
        FROM posts_from_current_users

    Step 2:
    I am creating multiple tables (in this case:3), some of the code is:

    SELECT ID FROM wp_current_visitors 
    INSERT INTO current_live_posts(author_current_posts)
    WHERE current_live_posts(post_time_and_date) = posts_from_current_users(posted_time)
      AND posts_from_current_users(usernames_of_the_visitors) = wp_current_visitors(using_the_login)

    You can see this is not the correct way contain syntax errors. First I have to correct it. Second, I have to find a way to tell the mySQL that ID is connected with ‘using_the_login’ (see the first line). Am I right?

    Please help in this regard?

    Queries after up-gradation:

    SELECT ID FROM wp_current_visitors
    SELECT post_time FROM posts_from_current_users = post_time_and_date
    SELECT post_username FROM posts_from_current_users = using_the_login

    The are working in the correct way. But, I don’t know where to insert the WHERE information correctly.Only possible solution in my mind is to create sub-queries.

    Problem 2:
    I am installing bbpress on my own(for the first time on a client website, as an evaluation task). I am creating a simple forum, with necessary plugins for login and flow control. But, an important requirement, I am unable to configure is that client wants to create a new page for each directory page. And whenever a new page is added, he wants to add a forum page, automatically. Like, if the directory page is Directory page of militarybases – Cheyenne mountain Air Force base Colorado Springs Colorado. When, he made the page using wordpress, it’s forum page like website/forum/cheyenne-mountain-air-force-base-colorado-springs-co automatically created.

    Is this possible? If yes, how will achieve this? Please don’t tell codes other than javascript and php. Please only provide the full solution, in case of others.

    #178625

    In reply to: BBPress slowness save

    Stephen Edgar
    Keymaster

    I created http://wikoandco.com/topic/test-6, as noted in that topic most of the time wait from my posting appears acceptable, it is far less than 15 seconds, maybe 5 for the topic, and 3 for replies, but I see significant time Waiting for wikoandco.com which no doubt is caused by the connection time waiting from here where I am in Australia

    #178623
    Stephen Edgar
    Keymaster

    Thanks for the topic @fourmi πŸ™‚

    You are correct, looking at that code for forum subscriptions, if you successfully subscribe to a forum then true === $success so and then is_single() || is_page() would be true in your case the redirect should redirect to your page via get_permalink()

    Could you confirm that the user IS successfully subscribed when subscribing via your forum list page please @fourmi

    Ref: https://bbpress.trac.wordpress.org/browser/tags/2.5.10/includes/users/functions.php#L1203

    #178611
    Pascal Casier
    Moderator

    Hi,
    As you confirm your bbPress works fine with a standard theme, I propose that you indicate the strange behaviour on the support forum of the theme (https://wordpress.org/support/theme/hueman).

    Note that you can always copy and modify the standard bbPress templates to have them work within your theme. See https://codex.bbpress.org/themes/theme-compatibility/step-by-step-guide-to-creating-a-custom-bbpress-theme/ starting somewhere step 5.

    Pascal.

    #178601
    jing2016
    Participant

    Hi,
    I installed bbPress for my site which uses hueman theme.
    But when I create the forums page including bbPress shortcode, the layout of the forums page is quite messy. But for another theme thentyfifteen, bbPress works fine.

    What can I do to solve this problem with hueman theme?

    This is the forums page: https://trainsova.pitt.edu/forums

    #178599
    Fourmi
    Participant

    Hi!
    I’m trying to change the URL of the redirection after subscribing to a forum, based on where I’m coming from.

    I have subscription buttons on both the forum pages and a page with a list of all forums. When I subscribe from the forum page I want to stay there (it works fine), and when I subscribe from the list I want to go back to the list but instead I am redirected to the page of the forum I just subscribed to.

    Looking at the comment in the code (“Redirect back from whence we came”) I feel like what I want to do is actually how it’s supposed to work but it’s not working for me (I fall in the last else).

    Any idea how I could achieve this?
    Thanks in advance!!

    #178584
    racfish78
    Participant

    Template hierarchy in detail

    This page is a great initiative to make explained each part.. but for me still has a problem…

    I can’t identify those parts in the layout… could someone do a visual scratch for elements over some “twenty” template?

    I really, really appreciate πŸ˜‰

    #178574
    Steveim
    Participant

    Hi. I have just converted a PHPBB v3.1.10 to BBPress using the 2.6 alpha version. I am unsure whether the user passwords are converted or not.

    In the codex https://codex.bbpress.org/getting-started/importing-data/import-forums/phpbb/ it says “Existing passwords are converted during the import so users can login to WordPress/bbPress as soon as the import and recounts have finished.”
    However, in the importer it says “Non-bbPress passwords cannot be automatically converted. They will be converted as each user logs in.”

    I don’t know if they have been converted or what is meant by “They will be converted as each user logs in.”

    Can you tell me what the status of the WP User passwords is and what the users can or need to do?

    Cheers

    #178572
    THWright
    Participant

    I can’t recall where I had found this code, fairly certain on the forums here, but here is a pastebin of the code:
    http://pastebin.com/J9whPuCV

    It shows category forums and then any forums beneath it, up to one level. It isn’t the entire hierarchical display but could be modified somehow, I would imagine, to show more. How I’m not sure.

    You will want to place this file in your child theme in the themes/childtheme/bbpress directory; you’ll want to name the file loop-forums.php

    Note: I did change the names of my forum’s columns to Topics, Posts, and Recent, for what its worth.

    #178564
    maegras
    Participant

    Hi all i’m new to bbpress. I read lot of docs but i was unable to solve this issue

    I’m setting up a forum for my website, i installed bbpress, created a forum, created a page with bbpres shortcode and now i’m able to see forum root clicking on the link in menu.

    I can create discussions from backend but when i try to create a new topic from frontend, logged in as admin, i got “you don’t have permission to post”.

    How could it be?

    #178528

    In reply to: BBPress slowness save

    Stephen Edgar
    Keymaster

    If it’s taking 15 seconds to do add a reply or a topic you most definately have a plugin or theme manipulating post queries, most likely pre_get_posts filter is running in a plugin, maybe a theme.

    Please disable ALL our plugins and test the speed again please.

    If the speed remains the same, try switching to the Twenty Fourteen theme.

    You’ll also notice here on bbpress.org it does not take 15 seconds

    #178512
    Robin W
    Moderator

    something is broken !

    can you tell me how your page is set up?

    see https://codex.bbpress.org/step-by-step-guide-to-setting-up-a-bbpress-forum/

    and which of item 3?

    contemplate
    Participant

    Hi All. Needed this exact behavior as well. It really should be the default behavior. But if you don’t want to hack the core here is the code to place in your functions.php or custom plugin:

    
    /**
     * Format the BuddyBar/Toolbar notifications
     * Fixed: https://bbpress.org/forums/topic/new-reply-notification-link-to-the-reply/
     */
    function bbp_format_buddypress_notifications_custom( $action, $item_id, $secondary_item_id, $total_items, $format = 'string' ) {
    
    	// New reply notifications
    	if ( 'bbp_new_reply' === $action ) {
    		$topic_id    = bbp_get_reply_topic_id( $item_id );
    		$topic_title = bbp_get_topic_title( $topic_id );
    		$topic_link  = wp_nonce_url( add_query_arg( array( 'action' => 'bbp_mark_read', 'topic_id' => $item_id ), bbp_get_reply_url( $item_id ) ), 'bbp_mark_topic_' . $item_id );
    		$title_attr  = __( 'Topic Replies', 'bbpress' );
    
    		if ( (int) $total_items > 1 ) {
    			$text   = sprintf( __( 'You have %d new replies', 'bbpress' ), (int) $total_items );
    			$filter = 'bbp_multiple_new_subscription_notification';
    		} else {
    			if ( !empty( $secondary_item_id ) ) {
    				$text = sprintf( __( 'You have %d new reply to %2$s from %3$s', 'bbpress' ), (int) $total_items, $topic_title, bp_core_get_user_displayname( $secondary_item_id ) );
    			} else {
    				$text = sprintf( __( 'You have %d new reply to %s',             'bbpress' ), (int) $total_items, $topic_title );
    			}
    			$filter = 'bbp_single_new_subscription_notification';
    		}
    
    		// WordPress Toolbar
    		if ( 'string' === $format ) {
    			$return = apply_filters( $filter, '<a href="' . esc_url( $topic_link ) . '" title="' . esc_attr( $title_attr ) . '">' . esc_html( $text ) . '</a>', (int) $total_items, $text, $topic_link );
    
    		// Deprecated BuddyBar
    		} else {
    			$return = apply_filters( $filter, array(
    				'text' => $text,
    				'link' => $topic_link
    			), $topic_link, (int) $total_items, $text, $topic_title );
    		}
    
    		do_action( 'bbp_format_buddypress_notifications', $action, $item_id, $secondary_item_id, $total_items );
    
    		return $return;
    	}
    }
    remove_filter( 'bp_notifications_get_notifications_for_user', 'bbp_format_buddypress_notifications', 10 );
    add_filter( 'bp_notifications_get_notifications_for_user', 'bbp_format_buddypress_notifications_custom', 10, 5 );
    
    /**
     * Hooked into the new reply function, this notification action is responsible
     * for notifying topic and hierarchical reply authors of topic replies.
     * Fixed: https://bbpress.org/forums/topic/new-reply-notification-link-to-the-reply/
     */
    function bbp_buddypress_add_notification_custom( $reply_id = 0, $topic_id = 0, $forum_id = 0, $anonymous_data = false, $author_id = 0, $is_edit = false, $reply_to = 0 ) {
    
    	// Bail if somehow this is hooked to an edit action
    	if ( !empty( $is_edit ) ) {
    		return;
    	}
    
    	// Get autohr information
    	$topic_author_id   = bbp_get_topic_author_id( $topic_id );
    	$secondary_item_id = $author_id;
    
    	// Hierarchical replies
    	if ( !empty( $reply_to ) ) {
    		$reply_to_item_id = bbp_get_topic_author_id( $reply_to );
    	}
    
    	// Get some reply information
    	$args = array(
    		'user_id'          => $topic_author_id,
    		'item_id'          => $reply_id,
    		'component_name'   => bbp_get_component_name(),
    		'component_action' => 'bbp_new_reply',
    		'date_notified'    => get_post( $reply_id )->post_date,
    	);
    
     	// Notify the topic author if not the current reply author
     	if ( $author_id !== $topic_author_id ) {
    		$args['secondary_item_id'] = $secondary_item_id ;
    
    		bp_notifications_add_notification( $args );
     	}
     
     	// Notify the immediate reply author if not the current reply author
     	if ( !empty( $reply_to ) && ( $author_id !== $reply_to_item_id ) ) {
    		$args['secondary_item_id'] = $reply_to_item_id ;
    
    		bp_notifications_add_notification( $args );
     	}
    }
    remove_action( 'bbp_new_reply', 'bbp_buddypress_add_notification', 10 );
    add_action( 'bbp_new_reply', 'bbp_buddypress_add_notification_custom', 10, 7 );
    
    #178488
    Jon Fergus
    Participant

    r-a-y and Robkk, you can have a look on my staging site’s group topic to see the reply form location issue live. This is how it operates for me (using Robkk’s example above): Attempting to reply to Reply 1 will prompt the reply form to appear under Reply 3. Attempting to reply to Reply 2 will also prompt the reply form to appear under Reply 3. The only time the reply form appears where we want it is when replying to Reply 3 (i.e. the last reply of any column of replies, so long as there are no sub-replies).

    See here: http://staging-nexus.universaltheosophy.com/groups/test-group/forum/topic/test-group-topic/

    I think I remember seeing someone playing with the reply.js code trying to tackle this very issue, so will try to find that again. At the time it didn’t help me because I still hadn’t got reply.js to work at all.

    I’ll spend some time working through the visual tab issue. Thanks for the links.

    #178487
    Milan Petrovic
    Participant

    Hi,

    Does anyone know how to use bbPress conditionals when bbPress is used for group forums? None of the bbp_is_ functions is working outside of the bbPress templates, and the point of the conditional functions is to have them work outside of the bbPress own template so that some other piece of code knows what is the page context. I am trying to use these functions inside the page BODY.

    So, how to determine which forum is loaded as group forum, which topic is currently displayed, and anything else related to subpages for edit of topics and replies?

    Milan

    #178476
    Robkk
    Moderator

    One other little thing though. I notice that the reply form appears below all sub-replies of a reply, instead of directly beneath the intended reply.

    I think the reply.js code and possible other areas for threaded replies code can be improved to fix this. No idea how right now.

    When the reply form is at its default location in a bbpress topic, the Visual tab works fine. But when the reply form pops up after clicking β€œreply” on a comment, the Visual tab fails to work (can’t type in it or see the contents).

    I think this is another known issue. One of these tickets need to possible be reopened and include a patch for this issue.

    https://bbpress.trac.wordpress.org/ticket/2700

    https://bbpress.trac.wordpress.org/ticket/2646

    #178471
    Jon Fergus
    Participant

    Damn, another issue has come up. On my main site I’ve added the “Visual” tab to the reply form, using the following code in my functions.php file:

    /* add visual editor to bbpress replies */ 
    function bbp_enable_visual_editor( $args = array() ) {
        $args['tinymce'] = true;
        $args['teeny'] = false;
        return $args;
    }
    add_filter( 'bbp_after_get_the_content_parse_args', 'bbp_enable_visual_editor' );

    When the reply form is at its default location in a bbpress topic, the Visual tab works fine. But when the reply form pops up after clicking “reply” on a comment, the Visual tab fails to work (can’t type in it or see the contents). I reproduced the issue on my staging site for you to see:

    http://staging-nexus.universaltheosophy.com/groups/test-group/forum/topic/test-group-topic/

    I’m also using the “TinyMCE Advanced” plugin, but can verify that the issue with the Visual tab is independent of that plugin.

    #178468
    benzouye
    Participant

    Hi,

    GD bbPress Toolbox Pro seems to propose what I want … In their “Integration tweaks” there is a “Logged in user reply in topic” option …
    https://bbpress.dev4press.com/features/integration-tweaks/
    Wish I could see the code only for this option πŸ™‚

    I’ll continue working on it !

    Thanks.

    #178450
    Robkk
    Moderator

    Ok. I found the problem: Buddypress.

    The functionality of reply.js works for bbpress, but does not work if the topic is in a forum that is within a Buddypress group.

    Just tested on your site, as well as my test site. And yes that BuddyPress is related to this issue.

    May not specifically be BuddyPress and their code. I think there are tickets with bbPress’ BuddyPress extend code that might have issues with some conditionals in a bbPress post that is in a group.

    Will look through bbPress trac for some possibly related tickets.

    Edit: Found the ticket.

    https://bbpress.trac.wordpress.org/ticket/2974

    It is pretty easy to workaround this issue as well, since all you have to do is enqueue the javascript with a different conditional or enqueue it sitewide, but doing it sitewide might cause another issue somewhere.

    Will do some testing and get back.

    #178426
    james8181
    Participant

    I just put your code snipets in and saved it but unfortunately it is not taking effect still.

    View post on imgur.com

    I cleared cache and tried a difference browser too but not showing up

    #178424
    james8181
    Participant

    Hi Robin,

    I re-enabled bbpress and the style pack and it seems stable now.

    Your 2 code snippets are saved but not taking effect:

    .entry-content fieldset legend {
    color: #fff !important;
    }

    #bbpress-forums p.bbp-topic-content, #bbpress-forums p.bbp-reply-content {
    color: #1e73be !important;
    }

    A snipet i made myself to style the background of the reply form is taking effect so this customer code area for css in the beaver theme seems to work for bbpress:

    .bbp-form{
    background-color:rgba(250, 236, 113, 0.90);
    }

    Here is a screenshot of what i still need to style. If you could take a look when you get the chance that would be great. http://imgur.com/a/tKRoc

    Many thanks

    #178420
    james8181
    Participant

    No worries. I appreciate your help with this Robin.

    I am using the beaver builder page builder and their beaver child theme. I am entering it into the Appearance > customizer area. There is an area for code snippets in there. I usually put CSS in their global CSS area but have been advised from beaver builder that CSS that needs to affect dynamically generated pages (ie, not pagesi have created in the wordpress UI) need to be put in here.

    #178402

    In reply to: Multiple Forums

    Robin W
    Moderator

    depends

    if you are just talking about having two forums, then if you want you use shortcodes

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

    and have

    page 1

    [bbp-single-forum id=32]

    Page 2

    [bbp-single-forum id=35]

Viewing 25 results - 5,876 through 5,900 (of 32,577 total)
Skip to toolbar