Search Results for 'code'
-
AuthorSearch Results
-
March 1, 2018 at 2:26 pm #190720
In reply to: Freshness Date Format
Caroline Hehemann
Participant1. I’m using the code because I need the ‘d.m.y’ format.
2. Exactly.
I need both the date format filtered (date) and the original freshness function (‘since’) in the topic-single-loop.March 1, 2018 at 1:59 pm #190718In reply to: Placeholder in visual editor
Robin W
Moderatoryou would think that was easy – but placeholder is a concept for <input> and <textarea> tags, and wordpress doesn’t use that for then visual editor.
I found several bits of code that do this for posts and pages, but couldn’t get them to work on topics/replies – I haven’t yet worked out why.
I’ll have a further play later to see if I can work it out
Robin
March 1, 2018 at 11:03 am #190713In reply to: Freshness Date Format
Robin W
Moderator1. are you using code from above or my plugin https://wordpress.org/plugins/bbp-last-post/
2. so you want some as a date and some as ‘since’ ?
3. if so, which ones are whichMarch 1, 2018 at 7:33 am #190705In reply to: Text background
Robin W
Moderatortry
.bbp-the-content { background-image: url("paper.gif") !important; }ie add the !important bit
if that fails, then it is beyond general help !
March 1, 2018 at 7:31 am #190704In reply to: Text background
simondevries
ParticipantMarch 1, 2018 at 6:48 am #190697In reply to: Text background
Robin W
Moderatoryour css area is very picky, most just accept what they are given
try
.bbp-the-content { background-image: url("paper.gif"); }March 1, 2018 at 6:14 am #190689In reply to: How to solve “double” space issue with this theme?
Robin W
Moderatornot sure if it’s theme or plugin – maybe be a combination
anyway if you are happy not to have the avatar showing in that line, then this fixes
#bbpress-forums div.bbp-template-notice img.avatar { float: left; }add it to your custom css.
March 1, 2018 at 5:08 am #190683Yanur Islam Piash
ParticipantI am using [theme-my-login] shortcode in login and register button in the top bar. And a caldera form shortcode in “contact us” button in the footer.
You can see it here: https://www.bohubrihi.com/forum/support-forum/support-for-students/
March 1, 2018 at 4:46 am #190682In reply to: Text background
Robin W
Moderatoradd this to your custom css and alter the image to the one you want
#bbpress-forums div.bbp-the-content-wrapper textarea.bbp-the-content { background-image: url("paper.gif"); }March 1, 2018 at 4:23 am #190676Robin W
Moderatorwhat shortcodes are you using ?
March 1, 2018 at 3:54 am #190673Yanur Islam Piash
ParticipantHi,
No shortcodes are working in the bbpress pages. The shortcodes are runnng very well in all other pages of my site. Just not working on bbpress topics, forums and replies pages. So I guess the problem is within bbpress. I tried to find out plugin conflict but no conflict was found.
Here is one of my topic pages: click on the “Login” or “register” button in the top menu. A hover will appear where I put a shortcode that works well in any other pages. Also, you can click on “contact” in the footer to see another shortcode not working. No problem with the plugins created shortocode or the popup modal, as they are working just fine in all other pages.
All the plugins, themes and applications are updated.
February 28, 2018 at 11:26 am #190653In reply to: Disable Text Editor and use of HTML
Robin W
Moderatorsorry – it needs to go in your theme’s functions file
February 27, 2018 at 5:41 pm #190630In reply to: Where is this information saved
Robin W
Moderatorok, two wrong fixes, so I loaded it to my test site
This works for me
add_action ('bbp_theme_after_reply_author_admin_details', 'rew_add_email') ; function rew_add_email () { $email = get_post_meta ( bbp_get_reply_id () , '_bbp_anonymous_email', true ) ; if (!empty ($email)) echo '<p>'.$email ; }February 27, 2018 at 5:09 pm #190626In reply to: Disable Text Editor and use of HTML
Robin W
ModeratorThis should work
add_filter( 'bbp_after_get_the_content_parse_args', 'rew_disable_text_editor' ); //editor bbpress function rew_disable_text_editor( $args = array() ) { $args['tinymce'] = true; $args['quicktags'] = false; if( current_user_can('administrator')) $args['quicktags'] = true; return $args; }add this to your functions file
February 27, 2018 at 5:03 pm #190623In reply to: Where is this information saved
Robin W
Moderatorok, try this, if this fails I will load it to my test site and get it right for you
add_action ('bbp_theme_after_reply_author_admin_details', 'rew_add_email') ; function rew_add_email () { $email = bbp_get_author_email (bbp_get_reply_id () ) ; if (!empty ($email)) echo '<p>'.$email ; }February 27, 2018 at 3:25 pm #190618In reply to: Where is this information saved
Clivesmith
ParticipantThank you Robin for your help.
with your code I get the word Array under the IP address not the Email.
Clive
February 27, 2018 at 3:10 pm #190617In reply to: Where is this information saved
Robin W
Moderatoruntested (as I’ve not got anonymous set on my test site, and I’m on another project) but this should work
add_action ('bbp_theme_after_reply_author_admin_details', 'rew_add_email') ; function rew_add_email () { $email = get_post_meta ( bbp_get_reply_id () , '_bbp_anonymous_email' ) ; if (!empty ($email)) echo '<p>'.$email ; }Add this to your functions file.
This will put the email after the ip address on anonymous topics and replies for admins only
If it doesn’t work come back and I’ll do some testing
February 27, 2018 at 8:57 am #190612In reply to: Where is this information saved
Robin W
Moderatorok, do you know how to add code to your functions file if I give you some
February 24, 2018 at 6:33 pm #190577In reply to: Only social login members
Robin W
Moderatoradd_action( 'bbp_template_before_forums_index' , 'rew_shortcode' ) ; add_action( 'bbp_template_before_topics_loop' , 'rew_shortcode' ) ; function rew_shortcode() { echo '<div class="social_login" >' ; echo '<br>' ; echo 'Inicia sesión con su cuenta de redes sociales y participa en el foro' ; echo '</br><br>' ; echo do_shortcode('[wordpress_social_login]'); echo '</br>' ; echo '</div>' ; }February 24, 2018 at 2:47 pm #190574In reply to: Only social login members
principiante
ParticipantHi Robin,
That is perfect!
Please, how can I add text:
“Inicia sesión con su cuenta de redes sociales y participa en el foro”
before social login shortcode?
Thank you!February 24, 2018 at 2:15 pm #190573In reply to: How to add BBSpoiler button to TinyMCE?
themichaelglenn
Participant@crookie I’m having the same problem. The BBSpoiler button works if I’m editing a post or a page, but it doesn’t appear at all in tinyMCE in bbPress. I’ve tried using tinyMCE Advanced, and the standard WordPress tinyMCE, both with the same results.
I’m currently working on a bbPress tinyMCE plugin, to allow me to include specific buttons in the forum editor, and if I can figure out how to make that work with BBSpoiler I’ll post an update here.
I’ve tried to look through the code for BBSpoiler, and I’m guessing that it’s missing an action or a filter to hook into the bbPress tinyMCE (but I don’t honestly understand actions, filters or hooks, so I could be completely wrong.)
February 24, 2018 at 5:03 am #190560In reply to: bbp_reply_url not working for large topics
alriknijdam
ParticipantSorry for the late answer, I missed your last reply because I forgot the ‘notify me’ checkbox.
I took a look in phpMyAdmin and the menu_order is non of the above, it is
2
If you visit a topic you can also see that by looking at the$reply_position = get_post_field( 'menu_order', $reply_id );value 🙂February 24, 2018 at 1:22 am #190555Topic: Placeholder in visual editor
in forum Troubleshootingchumtarou
ParticipantFebruary 24, 2018 at 1:05 am #190553In reply to: Subscribe to topics not send email
liderxlt
ParticipantUpdate with more information, I am using the wpallimport plugin, it allows to use PHP functions.
Which allow to add hooks before, during and after importing.
All the information here >> http://www.wpallimport.com/documentation/advanced/action-reference/<?php add_action( 'pmxi_saved_post', 'soflyy_forum_data', 10, 3 ); function soflyy_forum_data( $post_id, $xml_record, $is_update ) { $exped = array('1','3','5','7','9','11');//ID OF THE FILE OF TOPIC $actualiz = array('2','4','6','8','10','12');//ID OF THE FILE OF REPLY $import_id = ( isset( $_GET['id'] ) ? $_GET['id'] : ( isset( $_GET['import_id'] ) ? $_GET['import_id'] : 'new' ) ); if ( in_array($import_id,$exped) ) { // Topics import - 1 esel id de la importacion $parent_forum = get_post_meta( $post_id, '_bbp_forum_id', true ); if ( $parent_forum != 0 ) { $args = array( 'ID' => $post_id, 'post_parent' => $parent_forum ); wp_update_post( $args ); update_post_meta( $post_id, '_bbp_topic_id', $post_id ); update_post_meta( $post_id, 'post_alter_id', $post_id ); update_post_meta( $post_id, '_bbp_last_active_time', date( "Y-m-d H:i:s", time() ) ); } } elseif ( in_array($import_id,$actualiz) ) { // Replies import - 2 esel id de la importacion $old_topic_id = get_post_meta( $post_id, '_bbp_topic_id', true ); $post = get_posts( array( 'post_type' => 'topic', 'meta_key' => '_old_topic_id', 'meta_value' => $old_topic_id ) ); if ( $post ) { $new_topic_id = $post[0]->ID; $args = array( 'ID' => $post_id, 'post_parent' => $new_topic_id ); wp_update_post( $args ); update_post_meta( $post_id, '_bbp_topic_id', $new_topic_id ); update_post_meta( $post_id, '_edit_last', 1 ); //wp_update_post( $post_id,'post_parent',$new_topic_id ); } } } ?>I have tried adding hooks like
add_action( 'pmxi_update_post_meta','bbp_notify_subscribers',10,3); add_action( 'bbp_new_reply','bbp_notify_topic_subscribers', 10, 3 ); add_action( 'bbp_new_reply','bbp_notify_topic_subscribers', 10, 3 );But without success.
I hope this information is useful.
regards…
February 23, 2018 at 6:21 pm #190552In reply to: Only social login members
Robin W
Moderatoradd this to your theme’s functions file
add_action( 'bbp_template_before_forums_index' , 'rew_shortcode' ) ; add_action( 'bbp_template_before_topics_loop' , 'rew_shortcode' ) ; function rew_shortcode() { echo '<div class="social_login" >' ; echo '<br>' ; echo do_shortcode('[wordpress_social_login]'); echo '</br>' ; echo '</div>' ; }It may not be perfect, but without seeing its effect on your theme, I can’t say, so come back when it is in if it needs tidying up
-
AuthorSearch Results

