Search Results for 'code'
-
AuthorSearch Results
-
November 14, 2015 at 2:19 am #168993
In reply to: Avatar Size
lissyhunnybee
ParticipantI tried looking at those files but they don’t have the same code for the avatar size as the other two I edited, so I don’t know where to do from there lol
This forum looks to have a similar issue, the avatar for the first post has an 80px image scaled up to 100px whereas the replies are fine.
I guess I am stuck with it for the time being lol
November 14, 2015 at 1:15 am #168978In reply to: Change wording: posts & freshness
Robkk
ModeratorCopy the bbPress templates into your child theme in a folder called bbpress.
The files you may need to edit are in
loop-forums.php loop-topics.php loop-replies.phpFor widgets I think that would only be in the widget settings, and not really a frontend thing. You may need to create a new widget with your own terms if it bugs you too much in the backend.
November 14, 2015 at 1:08 am #168975Robkk
ModeratorThat crashed my sight for some reason. Any thoughts?
Did you place the code snippet I placed earlier correctly?? It seems to work fine on my test site.
Same thing goes for @pinkishhueβs code.
These both work if you want to show only 1 revision log on the Frontend of your forums.
But first, is there going to be an update to bbpress that will remove the extra revision statements? If so, any thoughts on when this will be ready?
Not really remove the statements, but just make 1 visible. Have no idea when @netweb’s code will make it into core.
Do you want them all gone?? This topic is all about just having one visible on the frontend.
Also there might be a bug about the revisions somewhere I think. Haven’t fully checked that one out though.
But you can always disable the revision logging from being displayed in the forums in Settings > Forums, there will still be revisions on the edits in the backend though, since it is a post type in WordPress. And hide the existing revisions with CSS using the first half of pinkishhue’s code.
There is a way to limit the total number of revisions kept per post though in WordPress.
But if you do want to completely remove the revisions you can use a plugin that @casiepa listed, but this may remove ALL revisions of any post or plugin using the revision system in WordPress. Some custom css plugins may use it, and clearing the revisions may lose all your saved styles.
November 14, 2015 at 12:25 am #168972Robkk
ModeratorGoodNews (actual), purchased from CodeCanyon.
Which one there are three different types of themes from themeforest with this name.
November 14, 2015 at 12:20 am #168970Robkk
ModeratorDid you make your forums hidden? Hidden forums are only seen by admins and mods
Did you clear any cache/do you think you set up caching correctly? Caching is a common issue that could cause issues for beginners?
Could there be a plugin/php code snippet you may have activated that may be causing this issue? A plugin/custom php code snippet could conflict with bbPress somehow.
November 14, 2015 at 12:03 am #168969In reply to: smiley emoticons
Robkk
ModeratorI have just tried to load the wp-monalisa plugin and it turned everything in my Forums OFF.
What exactly did it turn off?? I have an issue where the smiley code won’t paste and that is it.
Was a bit disconcerting as when I logged into the Forum the forum index did not show and the links to the Forum would not work, nor the pages.
Link to your forum so I could see this. It may just be a bbPress theme compat/theme issue.
There must be a hick up somewhere as I donβt have anything special β just the BBPress Forum plugin and the Ultimate Member plugin.
I could replicate an issue a little with using a default theme and while having TinyMCE activated, and the default toolbar editor tab is the HTML one it doesn’t seem to work unless I switch to TinyMCE and back.
It does work with bbPress and how its default quicktags editor though.
November 13, 2015 at 11:40 pm #168968In reply to: bb-smilies doesn’t appears on edit-post pages
Robkk
ModeratorFirst don’t bump up 7 year old topics, it is annoying.
Second that bbPress in this topic was a standalone forum software and is entirely different from the plugin version now.
bbPress can use WordPress’s supplied smilies.
https://codex.wordpress.org/Using_Smilies
π π π
And even its emojis
https://codex.wordpress.org/Emoji
π π» π½ πΊ πΈ πΉ π» πΌ π½ π πΏ πΎ π π π π π
November 13, 2015 at 9:23 pm #168963In reply to: Question about this site…
Robkk
ModeratorThere is a plugin called bbp style pack that has a shortcode that basically outputs the same thing.
November 13, 2015 at 9:14 pm #168960kiss_the_sky
ParticipantGoodNews (actual), purchased from CodeCanyon.
November 13, 2015 at 7:12 pm #168953Robkk
ModeratorA. image upload option to tool bar
You can use the simple external link image button and oembed for images hosted on imgur.
There are two plugins that can add image uploading in bbPress though.
gd bbPress attachments for file attachments upload is not through the toolbar though
BuddyPress Forum editor which adds a TinyMCE upload image button, but requires BuddyPress, and I am not sure how this could work with TinyMCE Advanced.
B. video upload option to tool bar
oembed will you embed youtube videos automatically by placing the url of the video straight into the forum post.
C. more options (font size, family, remove formatting, et etc) to the tool bar
You would need to enable tinymce in bbPress either through a plugin like the bbPress enable visual tab plugin or by adding the code snippet in this guide.
To have the extra buttons, the plugin TinyMCE Advanced would help, as long as you have teeny mode set to false in code snippet or enable the extra buttons through the bbPress visual tab plugin.
November 13, 2015 at 4:13 am #168921In reply to: Missing Post Notifications & Users
Pascal Casier
ModeratorHi, let me try to cut these questions in different parts.
I only get email notifications on some new topics and replies.
Some basic things: You need to subscribe to the forum to get new topics. You need to subscribe to the topic to get the replies. You will not get notifications for your own topics that you post.
Said that, it seems that on some forums there are issues in getting out the emails. You could try by installing a plugin like https://wordpress.org/plugins/asyncronous-bbpress-subscriptions/ and I would also suggest to use an SMTP tool (like postman smtp or other) that has good logs so you can find out what is happening.
I canβt find the setting to ensure I get notified whenever a new post is added.
As you are on the bbPress forum, I suppose you talk about ‘topic’ and not ‘post’ ? If you talk about new topics, you need to be sure to be subscribed to the forum. You could use a plugin e.g bbP Manage Subscriptions to have the overview of who is subscribed to what forum.
I cannot find their emails or names at all in my user tab of my wordpress adminβ¦.
If you just use bbPress on WordPress, you have to find them there. If not, you will have to ask in a pure wordpress forum. If you would also use BuddyPress, then it’s better to ask in their forum.Hope it gives you some directions.
Pascal.November 12, 2015 at 10:25 am #168915In reply to: right to left directtion
Pascal Casier
ModeratorI must admit I’m not an expert in RTL…
I would propose you start from here: https://codex.bbpress.org/getting-started/bbpress-in-your-language/persian-%D9%BE%D8%A7%D8%B1%D8%B3%DB%8C-fa_ir/
Pascal.
November 12, 2015 at 6:02 am #168907Topic: how to display get topic of 2 forum?
in forum ThemesMaxPeerawat
Participanthow to display get topic of 2 forum?
I want to get display topic of freshy(forum) .
How to ?
Now I used ” do_shortcode(‘[bbp-single-forum id=648]‘); ” but it’s show all.
How to get topic from freshy(forum)?November 12, 2015 at 4:29 am #168901In reply to: Avatar Size
lissyhunnybee
ParticipantI managed to fix my original issue which was caused by a social login plugin creating default avatars from facebook profile pictures, however I have come round full circle lol
I decided I wanted the avatar on the topic page larger and so changed the sizes from 80 to 120 in the only files I can find the code in, loop-single-topic.php and loop-single-forum.php
This has successfully changed the image sizes in the listings (kept to 50px via css) but has had no effect on the topic page. I have searched and searched and feel like I am banging my head on a brick wall lol
November 12, 2015 at 3:30 am #168900LikeBtn
ParticipantHere is the hack we are using to make our custom filter work:
<?php function likebtn_notifications_get_notifications_for_user($action, $item_id, $secondary_item_id, $total_items, $format = 'string') { global $wp_filter; $return = ''; if (count($m) == 3) { // Do something here // We modify global wp_filter to call our bbPress wrapper function if (isset($wp_filter['bp_notifications_get_notifications_for_user'][10]['bbp_format_buddypress_notifications'])) { $wp_filter['bp_notifications_get_notifications_for_user'][10]['bbp_format_buddypress_notifications']['function'] = 'likebtn_bbp_format_buddypress_notifications'; } return $return; } return $action; } // bbPres has a bug: // https://bbpress.org/forums/topic/return-value-in-bbp_format_buddypress_notifications/ // https://buddypress.trac.wordpress.org/ticket/6669 // Filter must be called before corresponding bbPress filter add_filter('bp_notifications_get_notifications_for_user', 'likebtn_notifications_get_notifications_for_user', 5, 5); // Wrapper for bbp_format_buddypress_notifications function as it is not returning $action function likebtn_bbp_format_buddypress_notifications($action, $item_id, $secondary_item_id, $total_items, $format = 'string') { $result = bbp_format_buddypress_notifications($action, $item_id, $secondary_item_id, $total_items, $format); if (!$result) { $result = $action; } return $result; }November 11, 2015 at 4:20 pm #168894Topic: No forums, Only Topics
in forum Troubleshootingiexperience
ParticipantHello community,
My requirement is that I need just a single forum. So ive created a forum and now I have to create topics and assign it to that forum. The name of the forum comes in the slug.
Is there anyway I dont have to create this forum. How about siteurl/bbpressslug/ simply lists all the topics and these topics dont have any assigned forum. What is the shortest way to accomplish this.
Also in that case, how do I use shortcodes like the following
[bbp-topic-form forum_id='$forum_id']Thanks
November 11, 2015 at 4:07 pm #168890Pascal Casier
ModeratorWell, if you have a good backup of your database, you can always launch this query:
DELETE FROM wp_posts WHERE post_type = "revision";
Pascal.November 11, 2015 at 4:04 pm #168889In reply to: Plugin to show user IP and current date
Pascal Casier
ModeratorFor the current time of where the user is (so NOT where the server is), you can only do it with javascript to my knowledge. Start from this:
<script language="javascript"> ourDate = new Date(); document.write("The time and date at your computer's location is: " + ourDate.toLocaleString() + ".<br/>"); document.write("The time zone offset between local time and GMT is " + ourDate.getTimezoneOffset() + " minutes.<br/>"); document.write("The time and date (GMT) is: " + ourDate.toGMTString() + ".<br/>"); </script>Pascal.
November 11, 2015 at 3:35 pm #168887In reply to: Plugin to show user IP and current date
Pascal Casier
ModeratorFor the current ip, you can add this function to your child theme or have it in a plugin:
function get_the_user_ip() { if ( ! empty( $_SERVER['HTTP_CLIENT_IP'] ) ) { //check ip from share internet $ip = $_SERVER['HTTP_CLIENT_IP']; } elseif ( ! empty( $_SERVER['HTTP_X_FORWARDED_FOR'] ) ) { //to check ip is pass from proxy $ip = $_SERVER['HTTP_X_FORWARDED_FOR']; } else { $ip = $_SERVER['REMOTE_ADDR']; } return apply_filters( 'wpb_get_ip', $ip ); } add_shortcode('show_ip', 'get_the_user_ip');Then use a shortcode [show_ip] where needed
November 11, 2015 at 12:42 pm #168873Topic: Change background/container colors
in forum Requests & FeedbackMomshof
ParticipantHi. I am hoping someone can assist me with this request.
I have installed BBPress and have created forums for my site.
http://dtcdancecentral.com/DTCTest/forums/
My background is dark on every page of the site, but I want to make the forums (once you drill down into a specific forum page & topics index page & replies page) white.
The problem I am having is that these pages are not actual pages – I have no idea where they are. I thought I would find them in my pages but the only thing there is the Forum page I created and inserted the BBPress forum shortcode.
I tried using the following code in the Divi Theme options & it worked; however, it changed all my backgrounds in all my other pages that I do not want touched :
For these types of pages :
1.http://dtcdancecentral.com/DTCTest/foru … community/
2.http://dtcdancecentral.com/DTCTest/foru … ic-2-test//*BBPress each indiv forum background – drill down 1*/
#main-content .container {
background: #ffffff !important
}/*BBPress each topic/reply background – drill down 2*/
#main-content {
background: #ffffff !important
}Thanks so much for any assistance you can provide.
November 11, 2015 at 11:46 am #168872In reply to: form to post multiple inputs into post_content
rbfkak
ParticipantHi Robin W,
Is there a way to include make these fields available to the get_available_tags function in bbpress-notify-nospam/bbpress-notify-nospam.php. Basically I’m trying to display these fields in the email notification area. Listed is the code for the get_available_tags function… Any input would be greatly appreciated. Many thanks.
public function get_available_tags( $tags='' ) { $tags = '[blogname], [topic-title], [topic-content], [topic-excerpt], [topic-url], [topic-replyurl], [topic-author]'; $extra_tags = apply_filters( 'bbpnns_extra_topic_tags', null ); if ( $extra_tags ) $tags .= ', '. $extra_tags; return $tags; }November 11, 2015 at 9:59 am #168868In reply to: Customizer doesn’t save correctly
Robkk
ModeratorAfter debugging everything, set WP_Debug to false.
Here is a post explaining the bbp_setup_current_user was called incorrectly error.
November 10, 2015 at 7:07 pm #168854Momshof
ParticipantThanks so much! I appreciate your assistance.
I added the code to my Divi Theme customizer & it took care of the lines – π
I wish I knew today how to use the page builder with BBPress. If it is not Divi – I have not learned how. Another item to research & learn.
Is there a file or code I could add that would “hide” the reply text box & create a new topic text box all together from the forum pages until a user actually clicks on “reply” or “Create a Topic”?
Do I need to create a new topic for this as it is still dealing with the “look”? If so – please let me know.
November 10, 2015 at 6:41 pm #168852Robkk
Moderator@tallsam Its not really an issue since it should show a list of items in the latest version of bbPress and since Stephen’s ticket he linked to has not been committed yet.
IF @pinkishhue’s Custom CSS code does not work after you placed it in your child themes style.css file and have also tried adding !important on the end, you can try my custom php code snippet.
Make sure to place this into your child themes functions.php file in your child theme.
// Only return one entry for revision log otherwise it gets cluttered function bbp_trim_revision_log( $r='' ) { $arr = array( end( $r )); reset( $r ); return( $arr ); } add_filter( 'bbp_get_reply_revisions', 'bbp_trim_revision_log', 20, 1 ); add_filter( 'bbp_get_topic_revisions', 'bbp_trim_revision_log', 20, 1 );November 10, 2015 at 5:29 pm #168850Robkk
ModeratorThis is how you remove the line.
#main-content .container:before { display: none !important; }Also I updated this bbpress.php a little more, as I do not think you will be using page builder with bbPress pages.
-
AuthorSearch Results