chaaampy
Forum Replies Created
-
Btw I build a custom shortcode to add some spoiler in my bbPress forum, some classic stuff like this :
// [spoiler] shortcode function shortcodeSpoiler($params = array(), $content) { // default parameters extract(shortcode_atts(array( 'type' => '' ), $params)); // create spoiler return '<button class="btn spoiler-button mt-2 mb-2" type="button" data-toggle="collapse" data-target="#collapseExample" aria-expanded="false" aria-controls="collapseExample"' . ($type ? " class=\"$type\"" : '') . '>Spoiler</button> <div class="collapse spoiler-content mb-2" id="collapseExample"> <div class="card card-body"> '. do_shortcode($content) .' </div> </div>'; } add_shortcode('spoiler', 'shortcodeSpoiler');
And when I post a YT video into it, I had to whitelist the action again …
Hi Dave,
So did you find something ?
Regards,Tony.
Forum: Plugins
In reply to: [Members - Membership & User Role Editor Plugin] completely UnistallI’ll check that plugin, thanks for the reply !
Forum: Plugins
In reply to: [User Role Editor] How to add custom post type conditionHi,
Thanks for the reply, for the moment Im just using the remove_menu_page() function to build a custom plugin.
Cheers,Chaaampy.
Hey Dave !
Thanks for your support / time.
Btw Im not sure that this is no longer caused by Wordfence since when I tried (as an admin) to edit my forum message with a video, I were asking to whitelist the action (well that’s what I remember).
Let me know if you need more information.Tony.
Btw, one of my users just told me that solution didnt work when he was editing one of his own original post on the forums …
Forum: Plugins
In reply to: [Members - Membership & User Role Editor Plugin] completely UnistallHi,
Same question there, could someone answer please ?
Hi Dave !
Sorry I couldn’t answer you before today.
Your snippet is working like a charm, you made my day mate !
Cheers !Chaaampy.
Hi Dave,
Thanks for the answer.
After following your steps, I tried to post some video again with a classic user account and … I got literally nothing. I mean, nothing is printed, neither code nor text.I really don’t understand that issue …
And btw, that modification will be erased while the next update of bbPress plugin right ?
Chaaampy.
Hi Dave,
Sorry I didn’t get a mail for your reply.
After following what you said, I don’t get a 403 anymore, but … my iframe is not displayed properly.I just get it as some text, so for example :
1. I put my video in my topic / reply
2. I get the right previsualisation in the tinyMCE editor
3. When I post it, I just get the code printed like this <iframe src= ?//www.youtube.com/embed/FPE3IuTD_Ck ? width= ?560″ height= ?314″ allowfullscreen= ?allowfullscreen ?></iframe>, but as a simple text.Any idea about that ?
Cheers,Chaaampy.