Search Results for 'code'
-
AuthorSearch Results
-
December 1, 2020 at 5:11 pm #216315
In reply to: Any shortcodes in footer breaks on pages of bbpress
Robin W
Moderatorjust tried a shortcode in the footer of my test site running twentyten, and it works on both bbpress and non bbpress pages using the text widget
December 1, 2020 at 3:24 pm #216313In reply to: Any shortcodes in footer breaks on pages of bbpress
archux
ParticipantThe function is_bbpress() is for any page of bbpress
Does not matter, it is account or forum or topic… on all pages…
Footer is built with visual composer…If i use a shortcode to display forum index, the footer works fine. as soon i click into form:
https://<domain>/forums/forum/<forum name>/ footer breaks
https://<domain>/forums/topic/<topic name>/ footer breaks
https://<domain>/forums/user/<user name>/ footer breaksIt becomes as: [vc_row full_width=”stretch_row” css=”…” ….]…….[/vc_row]
Looks like on those page the WordPress function do_shortcode is disabled/unactivated…
Do this make more clear on what pages and what happens with footer?
December 1, 2020 at 3:05 pm #216312In reply to: Any shortcodes in footer breaks on pages of bbpress
Robin W
Moderatorcan you give an example – eg of a footer shortcode that breaks and what bbpress page
December 1, 2020 at 2:13 pm #216305Topic: Any shortcodes in footer breaks on pages of bbpress
in forum Troubleshootingarchux
ParticipantHi
This is a major issue with bbpress and I could not find a resolution to it. I found couple of similar requests but no one have full resolution.
Basically, if page can be recognized as is_bbpress() true than the footer shortcodes breaks.
How to fix that? Is there some patch?
November 30, 2020 at 6:07 pm #216273In reply to: BBpres isnt really responssive with my theme
akira010203
ParticipantI dit the trick with some CSS improvments :
width: 100px;
padding: 2px;@media(max-width:580px) { div#bbpress-forums { overflow: visible !important; } #bbpress-forums span.bbp-admin-links a, #bbpress-forums span.bbp-admin-links { width: 100px; padding: 2px; color: grey; } }
November 29, 2020 at 3:22 pm #216252In reply to: Topics browser not working
LBandy
ParticipantNo worries Robin, I appreciate you are trying to help!
Your question raises a very valid point – I didn’t think it could be related. I currently have my Forums page set up like this:
Recent topics [bbp-topic-index] All topics [bbp-forum-index]
November 29, 2020 at 1:32 pm #216249In reply to: Is there an easy way to download all forum posts?
uscjohn
ParticipantNovember 29, 2020 at 1:17 pm #216247In reply to: Topics browser not working
Robin W
Moderatorsorry, working across many things and missed that.
so that page is made up of ‘all topics’ and ‘recent topics’ – are these shortcodes on a page, or how is this page content created?
November 28, 2020 at 8:58 pm #216241In reply to: Can AJAX be enabled for bbPress?
berry metal
ParticipantOh and I forgot to mention that I did test it by deactivating plugins and changing theme. The issue persists, when the shortcode is used.
Is AJAX enabled for the buttons if the Subscribe and Favorite buttons are used within the Replies shortcode?November 28, 2020 at 2:05 pm #216239In reply to: Forum theme only works “backwards”
flamuren
ParticipantMany thanks I will give it a try. However there is so many things that is not working properly so its starting to become a case for some freelancer site. I dont really know what I am doing 🙂
I read your guide: https://codex.bbpress.org/step-by-step-guide-to-setting-up-a-bbpress-forum/
But I cant get the forum to display using method 1 in the above guide. And method 2 is the one I have done from the start but cant get to look the way i want.
If the plugin “bbp style pack” fix the design, there is still the issue with weird menus and different urls within the forum etc. Could it be that I created the forum before changing WP-theme? Could it help to remove BB-press and then reinstall it from the ground up?
November 27, 2020 at 7:47 am #216226In reply to: Add custom tab to profile page
Babak Fakhamzadeh
ParticipantYeah, that should be fine, @neon67.
In my point 4, above, you would add a tab for your private chats and then just include the shortcode via a print do_shortcode().
November 27, 2020 at 4:48 am #216224In reply to: Content filter not working
Robin W
Moderatorif within content you can use
but if at the bottom of ‘bbpress’ pages, then there are a bunch of actin hooks you can link to
do_action( 'bbp_template_after_forums_index' ); do_action( 'bbp_template_after_topics_loop' ); do_action( 'bbp_template_after_replies_loop' ); do_action( 'bbp_template_after_user_profile' ); do_action( 'bbp_template_after_search_results_loop' );
should get you most of the way there
November 27, 2020 at 2:01 am #216220In reply to: Add custom tab to profile page
neon67
ParticipantHello! I want to add a new tab to the User profile with the “private messages” shortcode (separate plugin). In order for users to be able to operate with their message box inside the profile.
May be done by @mastababa way?
Where need to put the message-shortcode at the last stage of example coding (or first make a page with a shortcode and then insert it?)November 26, 2020 at 3:37 pm #216211Topic: Autoptimize and bbpress
in forum TroubleshootingLars Henriksen
ParticipantHello,
I would like to use autoptimize on a site with bbpress, but aggregating Js-files breaks the bbpress editor.
By searching the forum I found this topic, but maybe more files have to be excluded in 2.6?
Does anyone here aggregate bbpress js succesfully – if so, how?
Thanks, Lars
November 25, 2020 at 10:01 am #216189In reply to: @mention functionality on forums
Robin W
Moderatorthe setting is ‘bmen_mute’ and if present then email not sent. If absent, then email sent
so
$do_not_send = get_user_meta ($user_id, 'bmen_mute' , true) ; if (empty ($do_not_send)) { //then send } else { //do not send }
November 25, 2020 at 9:00 am #216185In reply to: @mention functionality on forums
defiance12
Participant/** add field to bbp edit **/ public function peditField() { $opt = $this->settings(); ?> <div> <label for=""><?php echo apply_filters('bmen_pedit_field_header', __('Email notifications', $this->text_domain)); ?></label> <label> <input type="checkbox" name="bmen_notify" style="width: auto;" <?php checked( $this->canNotify( bbp_get_displayed_user_field('ID') ) ); ?> /> <?php echo $opt['label']; ?> </label> </div> <?php
Think the custom field for the checkbox for email notifications for @mentions is bmen_notify
November 25, 2020 at 9:00 am #216184In reply to: Submit Button Editing
Robin W
Moderatorgenerally the styling is part of the theme – the ‘submit’ button has classes of ‘submit’ and ‘button’, so see if you theme lets you change this.
if not try
http://css3buttongenerator.com
this will give you code you can put in your themes custom css area
just change
.btn {
to
.button {
and
.btn:hover {
to
.button:hover {
before you paste the code
November 25, 2020 at 8:51 am #216182In reply to: How to insert short codes under topic pages?
Robin W
Moderatoradd_action( 'bbp_template_before_topics_loop' , 'rew_add_shortcode3'); function rew_add_shortcode3 () { echo do_shortcode( '[shortcode here]' ); }
November 25, 2020 at 8:48 am #216180In reply to: @mention functionality on forums
Robin W
Moderatorif you mean the bits in dashboard>settings>bbp mentions they are in the options table under ‘bmen_settings’
so
get_option('bmen_settings', null)
November 25, 2020 at 5:39 am #216178In reply to: How to insert short codes under topic pages?
truth4vahid
ParticipantCould you give me another code to put shortcode in this area under lables:
November 24, 2020 at 8:40 am #216160In reply to: Format of the bbPress topic links
Robin W
ModeratorCoding to do ID’s is possible I suspect, but I have no idea how to do that 🙂
This article suggests that urls are used for seo ranking
and says
A well-crafted URL provides both humans and search engines an easy-to-understand indication of what the destination page will be about.
Although URLs can include ID numbers and codes, the best practice is to use words that people can comprehend.
Just a thought.
November 24, 2020 at 4:53 am #216152In reply to: bbpress topics for posts
bodybyloud
Participant@robin-w Sorry but that bit of code created a fatal error when I used it in the plugin. Please let me know if you’re available to custom code it for me.
November 24, 2020 at 3:41 am #216149In reply to: bbpress topics for posts
bodybyloud
Participant@robin-w Thanks so much for the code. I think I’ll try to implement it with the code snippet plugin, I’m not familiar with adding code to files. One thing, the custom post type is actually called “job-listing” is it ok to change the term in the code snippet you provided?
November 23, 2020 at 4:52 am #216132In reply to: bbpress topics for posts
Robin W
Moderator@bodybyloud the old version might work for you if you are not using blocks if you add this
add_filter( 'bbppt_eligible_post_types', 'rew_add_types' ) ; function rew_add_types () { $types = array( 'post', 'page', listings' ) ; return $types ; }
Put this in your child theme’s function file –
ie wp-content/themes/%your-theme-name%/functions.php
where %your-theme-name% is the name of your theme
or use
November 22, 2020 at 1:45 pm #216107defiance12
ParticipantOMG you are awesome thanks so much! did a new reply and it worked!
<meta property="og:title" content="Reply to:Some New Cyberpunk 2077 Gameplay">
Just one small detail, how do I add a space between the Reply to:Some New Cyberpunk 2077 Gameplay
-
AuthorSearch Results