Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 76 through 100 (of 32,313 total)
  • Author
    Search Results
  • delaitec
    Participant

    Hello. I hope you are well!

    When using jetpack link shortener feature “wp.me”, this feature does not work with jetpack link sharer (whatsapp, facebook, etc)

    This was solved with the plugin: “Shortlinks for Jetpack sharing buttons” by Jeremy Herve.
    See here:
    https://br.wordpress.org/plugins/jetpack-shortlinks-for-sharing-buttons/

    However, the plugin only works natively on standard WordPress posts and pages, on custom post types like Woocommerce, it does not work.

    Here’s a way to fix this:
    https://jetpack.com/support/wp-me-shortlinks/
    As the post type for woocommerce products is “product”, the code looked like this:

    add_action( 'init', function () {
    add_post_type_support( 'product', 'shortlinks' );
    });

    It is now possible to share woocommerce products with shortened links using jetpack share buttons.

    I would like to know if BBPress is compatible with Jetpack’s sharing feature, and what type of post should I use so that shares can be made using the link shortener as I did above in Woocommerce.

    Grateful.

    #241087
    Robin W
    Moderator
    #241078
    neon67
    Participant

    Great idea, close everything in css.
    I first tried your option – so far it’s not working. This can’t happen? I added it’s important! No result. I looked in the code – it’s super-sticky. No again. I set the class-dot and it worked. This is what works for me:
    .hiddensticky .super-sticky {
    display: none;
    }
    An entry about sticks in the shortcode is not needed.

    Thank you very much for your help.😍

    #241077
    Robin W
    Moderator

    ok, so before the shortcode block, add a custom html block saying

    <div class="my-block-name">

    then your block with the shortcode you dont want the sticky to show in

    then another custom html block with

    </div>

    then use

    .my-block-name sticky {
    display : none ;
    }
    #241076
    neon67
    Participant

    Еverything according to the recipes bbP shortcodes 2.8 – works. Stickies are always shown if they are marked by the admin.
    There were several layers in my CSS code – I need to figure it out. I just wanted to make sure that everyone’s bbP shortcodes 2.8 is working properly.

    #241039
    neon67
    Participant

    Thanks for your feedback!
    I use the bbP shortcodes 2.8 plugin only, don’t have the style pack plugin. The bbp-display-topic-index shortcode works great with both double or single quotes—everything! except for sticker management. In the web code, the line that I want to disable is written as .bbp-topics ul.super-sticky, .bbp-topics-front ul.super-sticky – this is all standard, I didn’t change anything.

    Maybe the problem is the shortcode is used twice on the page? I plan to allow stickers in one block, but prohibit them in the second – other forums and stickers are not appropriate there.

    #241038
    Robin W
    Moderator

    I think you are using the style pack plugin shortcodes, in which case it is bsp not bbp.

    Also the above is using the wrong apostrophies, it may be because you pasted without using the code button

    This should work

    [bsp-display-topic-index show="6" forum ="2692,2696,2697,2698,2700,2702" show_stickies="false"]

    If not come back

    #241028
    Ketil Ervik
    Participant

    In css of the style pack plugin. But i have try also try it on theme’s custom codes, but nothing happen!

    #241026
    Robin W
    Moderator

    yes, but WHERE did you put this code?????

    Custom css of the style pack plugin, your theme’s custom code or elsewhere?

    #241025
    neon67
    Participant

    Hi. I use a shortcode from bbP shortcodes like [bbp-display-topic-index show=’6′ forum =’2692,2696,2697,2698,2700,2702′ show_stickies=’false’] Question about Stickies – the display does not depend on this records – false or true. I even tried to write no – it doesn’t help either, the topics are always shown at the top.
    BBpress 2.6.11
    How is this solved?

    #241023
    Ketil Ervik
    Participant

    .bbp-forum-content ul.sticky, .bbp-topics ul.sticky, .bbp-topics ul.super-sticky, .bbp-topics-front ul.super-sticky {
    background-color: rgb(36, 37, 37) !important;
    }
    .bbp-template-notice, div.indicator-hint {
    background-color: rgb(45, 46, 46);
    border-color: rgb(93 93 93);
    color: rgb(229, 224, 216);
    }

    You se the first code come true and chage the color
    But the secend

    .bbp-template-notice, div.indicator-hint {
    background-color: rgb(45, 46, 46);
    border-color: rgb(93 93 93);
    color: rgb(229, 224, 216);
    }

    dont change anything!

    #241018
    Ketil Ervik
    Participant

    I changed the color visually via the web browser and then copied the code into Custom CSS, but when I then refresh the page, it again shows the color I wanted to change, so this didn’t help! See the image of the code I wrote in Custom CSS

    What am I doing wrong here, why didn’t the color change? See the image of the code I pasted into Custom CSS

    I use bbPress Version 2.6.11 and wp version: 6.6.1.
    I am also using bbp style pack Version 6.0.6.

    https://drive.google.com/file/d/10K7mu5ipMPwsPtfEneTZ5PpmRjq4Ilhn/view?usp=sharing

    #240992

    In reply to: Email template edit

    chauhangarima
    Participant

    Okay, so how can we override the code for sending emails?
    Any filter or hook that can we use.

    #240991

    In reply to: Email template edit

    Milan Petrovic
    Participant

    Since bbPress sends emails in ‘bulk,’ every recipient gets the same message; there is no way around that. There was some discussion of changing how emails are sent, but that is a very complex issue right now.

    The only way to resolve this is to override the bbPress code for sending emails and write a new one to do what you need. But, that needs to be custom-coded, and it would not be cheap to do.

    #240985

    In reply to: Email template edit

    chauhangarima
    Participant

    How can i get the Recipient Email in New Reply Email Body just like the other code e.g {site_title} in this bbp style pack plugin. Can you please help me out.

    #240954
    Robin W
    Moderator

    It would probably take me a day to extract the relevant code.

    The style pack plugin is designed to only run what is necessary, so files are pretty much only loaded as needed. If you are only running for FSE suppprt, I suspect that you would struggle to see any difference in site load time.

    #240909
    Robin W
    Moderator

    care to share the code?

    #240899
    terrenuit
    Participant

    Hi,
    I setup another new forum( two different forums on my site), his name is Aid,
    my short code is:
    [bbp-single-forum id=$forum_Aid]
    but it doesn’t work,

    #240875
    Robin W
    Moderator

    Maybe create a forum called say ‘announcements’
    Then create a page called whatever you wish
    Into that page put the following shortcode
    [bbp-single-forum id=$forum_id]
    Where $forum_id is the forum id

    enkoes
    Participant

    @houd, thanks for your help.

    I tried your code but the ‘span’ tag does not work as expected.
    Strangely, I think the code itself is correct because ‘strong’ tag (bold text) does work when I added it in the code for testing purpose. Like this:

    function wp_bbpress_allow_tags(){
        return array(
            'span'=> array(
                'class'     => true,
                'style'     => true,
            ),
            'strong'     => array(),
        );
    }
    add_filter('bbp_kses_allowed_tags', 'wp_bbpress_allow_tags');

    Don’t know what go wrong.

    houd
    Participant

    You need to pick the allowed html tags that the users can use in your “functions.php”, like so:

    function wp_bbpress_allow_tags(){
        return array(
            'span'=> array(
                'class'     => true,
                'style'     => true,
            ),
    	// add other tags to allow here
        );
    }
    add_filter('bbp_kses_allowed_tags', 'wp_bbpress_allow_tags');

    Keep in mind the tags you pick here are the only tags that will be allowed, so list all of them here.

  • Don’t ask me why the default allowed tags are different than the default shown TinyMCE buttons.
#240830

Topic: View the topic title

in forum Themes
simsdreams
Participant

Hello ,
I hope I can explain clearly what I want.
The topic title from the last post should be displayed

As can be seen in the following picture:
Bild 1
this picture is from my Woltlab forum. I specifically mean what I marked yellow!
I would like to have the same thing in the bbPress forum!
At the point I marked in the following picture.
bild 2
So the name of the last topic is displayed above the date and time.
What should the code look like here?

I hope you can help me .

greetings from simsdreams

#240828
soniyabajoria
Participant

Security risk: privesc. It could be possible to elevate a user’s privileges to a higher permission level.

Severity: critical

Fixed in: 2.6.5

Security risk: privesc. It could be possible to elevate a user’s privileges to a higher permission level.

Severity: high

Fixed in: 2.6.5

Security risk: xss. Data from an attacker could be interpreted as code by site visitors’ web browsers. The ability to run code in another site visitors’ browser can be abused to steal information, or modify site configuration.

Severity: medium

Fixed in: 2.6.0

Security risk: xss. Data from an attacker could be interpreted as code by site visitors’ web browsers. The ability to run code in another site visitors’ browser can be abused to steal information, or modify site configuration.

Severity: medium

Fixed in: 2.6.5

Security risk: sqli. The plugin contains a vulnerability wherein unauthenticated visitors could inject SQL statements into WordPress. SQL injection could allow an attacker to gain control of your site.

Severity: low

Fixed in: 2.0

Security risk: xss. Data from an attacker could be interpreted as code by site visitors’ web browsers. The ability to run code in another site visitors’ browser can be abused to steal information, or modify site configuration.

Severity: low

Fixed in: 2.5.9

Security risk: sqli. The plugin contains a vulnerability wherein unauthenticated visitors could inject SQL statements into WordPress. SQL injection could allow an attacker to gain control of your site.

Severity: low

Fixed in: 2.0

Security risk: xss. Data from an attacker could be interpreted as code by site visitors’ web browsers. The ability to run code in another site visitors’ browser can be abused to steal information, or modify site configuration.

Severity: low

Fixed in: 2.5.10

Security risk: sqli. The plugin contains a vulnerability wherein unauthenticated visitors could inject SQL statements into WordPress. SQL injection could allow an attacker to gain control of your site.

Severity: low

Fixed in: 2.5.13

#240806

If anyone out there needs to quickly do an emergency fix to their live site before updating to 2.6.11, here are the changed lines of code between 2.6.10 and 2.6.11:

https://bbpress.trac.wordpress.org/changeset/7272

I’m not advocating for hacking on weird files on live sites, but I understand everyone’s situations are different, and thought maybe this could be helpful to see.

#240798

2.6.11 is out!

Blog post imminent.

Changelog code page updated.

Sorry everyone 😔

Viewing 25 results - 76 through 100 (of 32,313 total)
Skip to toolbar