Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 4,601 through 4,625 (of 32,518 total)
  • Author
    Search Results
  • #189489
    TechHaus
    Participant

    I just tried to insert the shortcode on a random page via the admin editor, and it worked fine.

    So it has something to do with putting it in my template directly. Any ideas?

    #189488
    TechHaus
    Participant

    I even tried in another browser, so it wasn’t a cache issue.

    It’s odd that everything else seems to work and style correctly, but not this shortcode.

    I just tried

    <?php echo do_shortcode("[bbp-forum-index]"); ?>

    And same issue. Hmmm…

    TechHaus
    Participant

    Hi,

    I started working on bbpress 2.5.14 last night and used the shortcode [bbp-topic-index] on my front page, and it rendered as expected.

    Today I switched development to 2.6 Release Candidate 5, and now it is displaying without styles. For example, the all of the lists are showing up completely unstyled with bullets, etc.

    However, when I switch to twentyfifteen and use the shortcode on a page, it looked fine.

    Any ideas?

    Sorry the site is only on my local server as of now, but I could upload later if necessary.

    Thank you,
    Bobby

    #189482
    Robin W
    Moderator

    they are held in the postmeta table

    so taking a topic or reply make a note of the id – in the example below it is 16191.

    then go into the postmeta and enter this sql command

    SELECT * FROMwp_postmetaWHEREpost_idLIKE '16191'

    assuming your table prefix is ‘wp_’

    you see entries for both the IP and email

    #189479

    In reply to: @mentions not working

    pjbarry21
    Participant

    Does not autopopulate/work in forum discussions using the visual editor, although cutting and pasting or typing handles changes them into links upon saving — most of the time. Sometimes we have to go back in and edit/remove spaces around the entry for it to show up.

    To try to get a little more functionality on a test site, I’ve added code from here: https://bbpress.org/forums/topic/mentions-not-becoming-links-some-times/ — but this only works in the text editor and not in the visual editor.

    It does autopopulate in activity feeds and does work in resources (bpdocs).

    #189462
    Robin W
    Moderator

    ok, I can’t help you with winscp, but what you need to achieve is the following.

    create a directory on your theme called ‘bbpress’
    ie wp-content/themes/%your-theme-name%/bbpress

    where %your-theme-name% is the name of your theme

    find
    wp-content/plugins/bbpress/templates/default/bbpress/loop-single-forum.php
    Make a copy of this file, and put in in the directory called bbpress that you created above, so you end up with
    wp-content/themes/%your-theme-name%/bbpress/loop-single-forum.php
    bbPress will now use this template instead of the original
    and you can amend this

    so line 38 says

    <div class="bbp-forum-content"><?php bbp_forum_content(); ?></div>

    delete this and in its place put these lines

    <div class="bbp-forum-content">
    		
    		<?php setup_postdata(bbp_get_forum_id()) ; 
    				
    		$excerpt = get_the_excerpt() ;
    		
    		echo $excerpt ;	?>
    		
    </div>

    This will then put the first 55 characters of your content.

    Once you have achieved that, come back and I’ll show you the second part.

    #189450
    avaiya
    Participant

    Wordpress Version:4.9.2
    bbPress Version: 2.5.14
    Site: http://www.avaiya.com

    I just installed bbPress a few days ago and I see it automatically created this page:

    https://www.avaiya.com/forums/

    But when you click on it it doesn’t have the actual forum on it. It seems like this should be the main forum page, with all our Categories & Forums listed on that page.

    I then watched a tutorial and realized I needed to create a page with the bbpress forum index shortcode. So I did that on the page below and now this page shows all the forums & categories on it.

    Enlightenment Village – Community

    The issue I still see, however, is that if you’re on one of the forum pages:

    https://www.avaiya.com/forums/forum/community-discussions/

    You still see the “Forum” text near the top and if you click on it it takes you
    back to this page: https://www.avaiya.com/forums/

    How can I fix this?

    Thanks!

    #189446

    Hi and thank you very much,

    we are close but not there yet: this last code works, but writes the meta-tag on <b>each page of the forum</b>, not only the archives.

    How is it possible to make it work only for archives pages?

    Thank you,

    the Process

    #189437
    Pascal Casier
    Moderator

    That should be the correct functions.php, yes.
    As the theme is not open sourced, I cannot see how the different archives and pages you mentioned are setup. If they are really bbPress pages, then the above should at least add the meta tag when looking at the source of the html page.

    You could also try (make sure to copy it from here on the forum, not from an email that you get):

    add_action( 'wp_head', 'casiepa_add_noindex' );
    function casiepa_add_noindex() {
      if ( bbp_is_topic_archive() || bbp_is_forum_archive() ) {
        wp_no_robots();
      }
    }

    Maybe have the theme author have a look at the above code and ask him to add an option in the theme?

    makingcircuits
    Participant

    sorry..this plugin not correctly coded, I got the following error message as soon as I installed..and I had to immediately deactivate it…

    “The plugin generated 115 characters of unexpected output during activation. If you notice “headers already sent” messages, problems with syndication feeds or other issues, try deactivating or removing this plugin…”

    Robin W
    Moderator

    since bbpress just uses wordpress then anything that works in wordpress

    eg code

    https://stackoverflow.com/questions/21928355/list-currently-logged-in-users-wordpress

    or plugin

    WP-UserOnline

    There are probably lots more examples, I just googled ‘wordpress list logged in users plugin’

    richard.miller
    Participant

    Is there a way to display which users are currently logged in?

    I’m not using a sidebar, so a code snippet I could drop into a template would be idea.

    Thanks!

    #189416
    richterd
    Participant

    Hi,
    if I click on “reply” for a comment I would expect the form to appear below that comment. This currently does not work due to a bug in reply.js (bbpress/templates/default/js/reply.js) in line 19.
    reply.parentNode.appendChild(respond);
    If you change it to the following, everything works fine:
    reply.parentNode.appendChild(respond, null);

    Best Daniel

    PS: Would be great to see development happen on github… 😉

    #189409

    Hi,

    I don’t think this is a general question since bbpress states to be compatible with Yoast and Tsf when it is not (at least when it comes to noindex pages) so, imho, it is a BBpress problem.

    https://github.com/sybrew/the-seo-framework/issues/243

    I asked the same question on wp support anyway and still didnt get any answers (it took almost one week to have one here so I guess I’ll be waiting for some days there as well – https://wordpress.org/support/topic/noidex-metatag-to-groups-of-pages/)

    I added your code (thank you for writing it down) but I only see a white page afterwards.

    I added it to functions.php in wpcontent/themes/forum/ is it correct?

    Thank you,

    the Process

    #189404
    Pascal Casier
    Moderator

    Hi,

    This is a general WP question and would fit better on the general support pages on https://wordpress.org/support/

    But just give you a starting point for e.g. the archives, adding this in your functions.php might help:

    add_action( 'wp_head', 'casiepa_add_noindex' );
    function casiepa_add_noindex() {
      if ( is_archive() ) {
        echo '<meta name="robots" content="noindex,follow" />';
      }
    }
    #189394
    Pascal Casier
    Moderator

    Ciao @finar76,

    The shortcode [bbp-register] should remain [bbp-register]. They cannot be translated.

    Pascal.

    #189386
    arnosr
    Participant

    Hi !
    I recently add a custom notification system for alert of new messages if you add a topic to your favorite.
    For that I hook bp_notifications_get_registered_components, bp_notifications_get_notifications_for_user and bbp_new_reply.

    Everything work well but I have a last problem that I dont arrived to fixe : when I click on my new notifications they don’t disappear by her self. I use bbp_mark_read for generate my notification link but without sucess

    $topic_link = wp_nonce_url(
    add_query_arg(
    array(
    'action' => 'bbp_mark_read',
    'topic_id' => $topic_id
    ),
    bbp_get_reply_url( $item_id )
    ),
    'bbp_mark_topic_' . $topic_id
    );

    Any solution for fix that ?
    Thanks !

    #189379
    Stephen Edgar
    Keymaster

    As long as you have the IIS Rewrite Module it should work fine, it’s the equivalent of Apaches mod_rewrite module, it’s been a while since I’ve looked at IIS but that’s the only issue I’m aware of for for bbPress and IIS.

    #189362
    Robin W
    Moderator

    This is hopefully close to what you want – play with the numbers

    #bbp-forum-76 {
    	padding-top : 10px ;
    }
    
    #bbp-forum-76 li.bbp-forum-info a.bbp-forum-title::before {
    	font-family: FontAwesome;
    	content: '\f058';
    	color: #6190C3;
    	font-size: 50px;
    	padding-right: 30px;
    	position: relative;
    	top: 15px;
    }
    #189358
    Robin W
    Moderator

    ok, I worked out an easy way to do that

    create a directory on your theme called ‘bbpress’
    ie wp-content/themes/%your-theme-name%/bbpress

    where %your-theme-name% is the name of your theme

    find
    wp-content/plugins/bbpress/templates/default/bbpress/loop-single-reply.php
    Make a copy of this file, and put in in the directory called bbpress that you created above, so you end up with
    wp-content/themes/%your-theme-name%/bbpress/loop-single-reply.php
    bbPress will now use this template instead of the original
    and you can amend this

    so replace line 61 which reads

    <div class="bbp-reply-content">

    with

    <?php
    	//now check if it is the topic author
    		$author = bbp_get_reply_author_id(bbp_get_reply_id()) ;
    		$current_user = get_current_user_id() ;
    		if ($author == $current_user) {
    			echo '<div class="bbp-reply-content bbp-author">' ;
    		}
    		else echo '<div class="bbp-reply-content">' ;
    	?>
    

    then just add the bbp-author css styling to your theme’s custom css

    eg

    .bbp-author {
    background : green ;
    }

    you might require

    .bbp-author {
    background : green !important;
    }

    depending on where you put the css.

    #189352
    Robin W
    Moderator

    Stills shows under User Roll

    even after this ?

    Anywhere in your theme (i put on a custom page template), use this:

    $wp_roles = new WP_Roles();
    $wp_roles->remove_role("bbp_role");
    #189351

    In reply to: RKK Login Widget gone?

    Robin W
    Moderator

    I presume Rkk has deleted.

    my styles pack plugin has a shortcode

    [Profile label=’This is the label’] will show

    which will let you add that as a text box beneath the standard bbpress login.

    bbp style pack

    once installed and activated – go to

    dashboard>settings>bbp style pack>shortcodes to find what the options are

    #189350
    Robin W
    Moderator

    try

    #bbp-forum-9 li.bbp-forum-info a.bbp-forum-title:before {
    	font-family: FontAwesome;
    	content: '\f058';
    	color: #6190C3;
    	font-size: 30px;
     }	
    #189346
    TechHaus
    Participant

    Hello,

    I’ve read ALL of the bbpress docs on here, and a few months ago i installed the RKK Login Widget as suggested here:

    https://codex.bbpress.org/layout-and-functionality-examples-you-can-use/#3-adding-an-amend-profilepassword-to-the-login-widget

    It seems the github gist where that plugin was hosted is now gone.

    Is there any way to get this plugin still?

    Thank you.

    #189344
    adamorigin2
    Participant

    Thanks very much Stephen! It would be great if that table of emoticons could be included in the current forum GUI reply box. Even if it’s just a hover over a smiley image to show the complete list. Doesn’t need to be selectable, though that would be extra fancy.

    Is there a list of other other functionality not listed in quicktags. ie embedding videos when a youtube link is used. Tagging a forum user within a post with @username. Or have I listed all the hidden user-sided magic off bbPress now 🙂

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