Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 3,676 through 3,700 (of 32,481 total)
  • Author
    Search Results
  • #200896
    rpatwall1206
    Participant

    Wordpress v. 5.2.1; bbpress v. 2.5.14

    I would like to change my “bbpress forum” to another name so that it does not show up as “bbpress Forum” or Just “Forum” in my users profiles or elsewhere. I have seen several dated suggestions of how to do this but none have worked.

    I did not find any help here using the search option. So if this is a repeat question, Please accept my apologies and kindly direct me to the codex or other potentially successful answer.

    Thank you.

    #200843
    Tukaram
    Participant

    Sorry no, the edit option on this post – thus the double post (usually considered spammy).

    The posts on my forum are still displaying the weird code strings, though.

    Platoscave
    Participant

    We noticed that in topic.js, the Subscribe text is supposed to be changed to Unsubscribe after subscribing to a topic, but currently it is not.

    The problem is that the ajax call is wrong, the callback function not being called:

    $.post( bbpTopicJS.bbp_ajaxurl, $data, function ( response ) {
      ...
    });

    In our case the callback function is not called at all, the text not being updated.

    Perhaps adding a success() call or something similar will fix the problem.

    #200821
    oneskysandy
    Participant

    I am having this problem too. It looks like reply.js isn’t getting enqueued because bbp_is_single_topic is false.

    /wp-content/plugins/bbpress/templates/default/bbpress-functions.php

    if ( bbp_is_single_topic() ) {

    // Hierarchical replies

    if ( bbp_thread_replies() ) {
    $scripts[‘bbpress-reply’] = array(
    ‘file’ => ‘js/reply.js’,
    ‘dependencies’ => array( ‘jquery’ )

    This should be bbpress functionality, but I’m unsure how to fix this. Also, I checked the permission, and it looks okay.

    bleec
    Participant

    Hi,
    I’ve been reading other posts, and replies, but nothing seems to be working for me.
    It seems like it’s an ongoing issue, so posting a new topic is my last resort.

    My website is:
    http://www.mywebsite.com.au

    I have created a forum page within wordpress called “chat”:
    http://www.mywebsite.com.au/chat

    I have added the bbpress shortcode to display the bbpress forums here. That works fine.

    However when I click on anything that takes me 1 level deeper into the forums, the URL changes.
    For example… If I click on a sub-forum (using this website it would be like clicking on “Development & Updates” over on the left menu)… the Url changes to:
    http://www.mywebsite.com.au/forum/sub-forum-name/

    I want the …au/forum… to be be …au/chat/… so it remains consistent with the page I created in wordpress and where i added the shortcode. Otherwise what’s the point?? So is the shortcode just showing the forums, but not actually the forums? I want the ACTUAL forums to be placed using this shortcode – that’s what I thought it would do.

    That’s my main gripe. Please tell me there’s a workaround so the URL stays the same?

    In addition to that… when you click on a created post within a forum (like when you clicked to open my post), the URL is:
    http://www.mywebsite.com.au/topic/created-post-name/

    That doesn’t seem to be consistent either?
    I would think it should be:
    http://www.mywebsite.com.au/chat/sub-forum/created-post-name

    I hope I’m missing something and this can be resolved. Happy to listen to any advice. Thanks in advance.

    #200742

    In reply to: width not correct

    Robin W
    Moderator

    ok, your theme/caching is now doing this

    https://www.myplaystation.nl/wp-content/cache/fvm/1559213822/out/header-de476267.min.css

    you might need to clear cache to get style pack to take or put this in custom css

    #bbpress-forums li.bbp-forum-topic-count {
    	color: #000 !important;
    }
    #200732
    radgh
    Participant

    (@pdidee asked about this on a slack channel, thought I would leave my solution here)

    HTTP Post is basically the same thing as a form submission. Consider this example from the infusionsoft link you sent:

    HTTP Post form field example from infusionsoft

    That is basically like having a form that is submitted to your website at the URL you choose, with the field names (left) and values (right).

    Here is an example of what you should send from Infusionsoft:

    contactId = ~Contact.Id~
    access_key = [your access key]
    bbp_action = set_role
    bbp_role = cadet

    When your website gets that data, nothing happens. BBPress and WordPress do not know what to do with that data you came up with. You have to make that data do something.

    Here is an example that will handle that URL. It is not tested:

    https://gist.github.com/RadGH/38473c6ebcda730cedadd49de1ad0348

    You need to change the value of “$internal_access_key” to match your access key.

    You will probably also need to change the meta key used in the WP_User_Query which I set as “infusionsoft_contact_id”. I’m guessing infusionsoft does store that data on your users, but may be under a different key. Check the infusionsoft plugin documentation and hopefully you can find it there.

    #200730

    In reply to: _oembed_ good or bad ?

    Clivesmith
    Participant

    Hi,
    Sorry but just to continue this, I have been looking at the “odd” records with _oembed in the postmeta table, I am concerned that some of these are left over records from spam here is the contents of one.

    
       <blockquote>      <a href="https://www.reddit.com/r/FortniteBattleRoyale/comments/ah71o5/how_to_get_fortnite_skin_free_free_fortnite/?ref_source=embed&ref=share">How To Get Fortnite Skin FREE - FREE Fortnite Berserker Skin</a> from      <a href="https://www.reddit.com/r/FortniteBattleRoyale/">FortniteBattleRoyale</a>    </blockquote>    <script async src="https://embed.redditmedia.com/widgets/platform.js" charset="UTF-8"></script>
    

    why is this being left behind when I delete the spam reply ?

    zuroma
    Participant

    I turned on the visual editor via the bbp_after_get_the_content_parse_args filter.

    But when I try and paste in a URL copied from YouTube in Chrome, the editor turns it into a link instead of an embedded video.

    The same URL pasted into a blank post (with either block or classic editor) on the same site works. It’s only the bbPress editor turning it into a link. I turned off all plugins and switched the theme to twenty-seventeen.

    On Safari and Firefox, the URL is properly pasted as text and so is recognized and made into an embed.

    I’m wondering if anyone has a solution to this issue?

    I’ve tried removing the bbp_make_clickable filter and it has no effect. It seems to be only Chrome and bbPress visual editor together causing this issue.

    #200690

    In reply to: width not correct

    Robin W
    Moderator

    try this in your theme custom css area

    li.bbp-forum-topic-count, {
    	width: 12% !important;
    }
    #200671
    kjhjkhjk
    Participant

    I’m trying to add a specific class to the last topic in the forum because the class=”bbp-forum-freshness” it affects all the forum column entirely, so I just want to change the specific title of the topic.

    I identified the loop in the file loop-single-forum with this code

    <?php do_action( 'bbp_theme_before_forum_freshness_link' ); ?>

    How can I add a specific class to that code that loops the last topics?

    I tried to use bbp style pack too, but in the section Forum Index styling, number 9

    When I chose 9. Freshness Font BOLD, don’t work.

    So…thanks for reading.

    antonv
    Participant

    I am using below code for extra topic validation. Now if the validation fails, the page is reloaded but not scrolled down to the input form that shows that a validation error has occurred.

    Is there a fix for this?

    add_action('bbp_new_topic_pre_extras', 'my_extra_validation');
    function my_extra_validation( $reply_id ) {
       if ( $failed ) {
          bbp_add_error( 'invalid', '<strong>ERROR:</strong> Invalid input. Try again.' );       
       } 
    }
    #200652

    In reply to: list of all functions

    tapiohuuhaa
    Participant

    Because there seems not a complete list, is there for forum list page something like bbp_is_single_topic()

    I would like to add some conditional code for https://www.sanaristikkofoorumi.net/wordpress/forums/ .
    i quessed that it might be “bbp_is_forum_list()”

    #200615
    Barry
    Participant

    Just to note, is_user_logged_in() ships as part of WordPress itself, there’s generally no need to redefine it from your own code (unless you are perhaps reimplementing the login system).

    #200597
    abhipatodi
    Participant

    To check if the user is logged in, is_user_logged_in() is used:
    function is_user_logged_in() {
    $user = wp_get_current_user();
    return $user->exists();
    }
    True if user is logged in, false if not logged in.

    To obtain the default data (such as User ID, User Login, etc.)of the user try this code:

    global $bp;
    $the_user_id = $bp->loggedin_user->userdata->ID;
    $the_user_login = $bp->loggedin_user->userdata->user_login;

    To get data for the current logged in user, this this:
    `$the_first_name = bp_get_profile_field_data(‘field=First Name&user_id=’.bp_loggedin_user_id());

    Hope you find these code lines useful.

    #200596
    Barry
    Participant
    #200571
    9march
    Participant

    Hi robin,

    I have the same issue on my site, I added the code as it is but when i give a user the ‘tutor’ role, After saving the role disappears and the user has no bbpress role assigned to them.Even i i signup as a subscriber, If the default role is set to be ‘tutor’ The newly registered user ends up with no bbpress role.

    Thanks,

    #200569
    bdd
    Participant

    When members on my site are pasting text into a post, it’s showing up as a bunch of code with HTML tags. If I paste the same text as an admin, it shows up fine. I’d like it to either work for them like it works for me, or to at least strip out the tags and show plain text. Help? Thanks.

    For example, they paste text that shows up like this:

    <div class=”section-block” style=”margin: 0px 0px 30px; padding: 0px; border: 0px; outline: 0px; font-size: 13px; vertical-align: baseline; background: #fbfbfb; color: #222222; font-family: ‘Open Sans’, sans-serif;”>
    <h2 style=”margin: 0px 0px 10px; padding: 0px; border: 0px; outline: 0px; font-size: 20px; vertical-align: middle; background: transparent; color: #000000;”>Getting Started</h2>
    <p style=”margin: 0px 0px 10px; padding: 0px; border: 0px; outline: 0px; vertical-align: baseline; background: transparent;”>New to BuddyPress? Not sure where to begin? <i style=”margin: 0px; padding: 0px; border: 0px; outline: 0px; vertical-align: baseline; background: transparent;”>Getting Started</i> is here to help! Everything you need to know about setting up your new BuddyPress powered site is here from installing and activating to setting up Extended Profile fields.</p>
    
    </div>
    <div class=”section-block” style=”margin: 0px 0px 30px; padding: 0px; border: 0px; outline: 0px; font-size: 13px; vertical-align: baseline; background: #fbfbfb; color: #222222; font-family: ‘Open Sans’, sans-serif;”>
    <h2 style=”margin: 0px 0px 10px; padding: 0px; border: 0px; outline: 0px; font-size: 20px; vertical-align: middle; background: transparent; color: #000000;”>BuddyPress Features</h2>
    </div>

    And I paste it and it shows up as normal text (with proper styling/formatting):

    Getting Started
    New to BuddyPress? Not sure where to begin? Getting Started is here to help! Everything you need to know about setting up your new BuddyPress powered site is here from installing and activating to setting up Extended Profile fields.

    BuddyPress Features

    #200552
    abhipatodi
    Participant

    Just pick one out of blue
    <object width=”425″ height=”344″><param name=”movie” value=”http://www.youtube.com/v/WDT3JBgJn6M…</param><param name=”allowFullScreen” value=”true”></param><param name=”allowscriptaccess” value=”always”></param><embed src=”http://www.youtube.com/v/WDT3JBgJn6M&hl=en_US&fs=1&&#8221; type=”application/x-shockwave-flash” allowscriptaccess=”always” allowfullscreen=”true” width=”425″ height=”344″></embed></object>Change width and height in the embeded code

    This code is to change the size of youtube embedded videos

    #200542
    Robin W
    Moderator

    I am private groups author.

    Sorry but the plugin does not do that, and I don’t know of any code that does that

    #200521
    kjhjkhjk
    Participant

    In all the post of the forum in general

    I mean when someone uploads an image, automatically reduce the size of the youtube video embed content.

    For the images, I used this CSS code and works fine

    #bbpress-forums div.bbp-reply-content img, #bbpress-forums div.bbp-topic-content img {
    max-width: 500px;
    max-height:450px;
    height: auto;
    }

    But for the videos embed I still have the problem

    #200520
    spellman
    Participant

    That’s for popular bbcodes, but it doesn’t let you make your own. =(

    #200496
    fulviods
    Participant

    Hi,

    Is there a way to replace the username by the First/last name in the forums but also in the email notifications ?

    I found old topics with some code, but nothing work !

    Thanks for your help

    #200489
    Robin W
    Moderator
    #200488
    spellman
    Participant

    I’m trying to figure out how to add shortcodes/bbcode to my bbpress website. I used to do this a lot with phpbb, but I can’t figure out how to do it with bbpress.

    I want my users to be able to type in [card]Serra Angel[/card] and have the posted code be <div class=”card”>Serra Angel</div>.

    How can I add this? Ideally, it would reside in forum posts as button, much like the LINK IMG CODE etc buttons.

Viewing 25 results - 3,676 through 3,700 (of 32,481 total)
Skip to toolbar