Search Results for 'code'
-
AuthorSearch Results
-
November 15, 2015 at 12:45 am #169054
Robkk
ModeratorStill not entirely sure how this will rank image will function since I think you are just allowing users to input a custom image url, but here is an example using BuddyPress xprofile fields. It grabs the available field called “Rank” and displays the content after the reply author details.
function rkk_display_rank_image () { $user_rank = xprofile_get_field_data( 'Rank', ( bbp_get_reply_author_id ( bbp_get_reply_id() ) ) ); echo '<div class="bbp-rank-image">'; echo '' . $user_rank . ''; echo '</div>'; } add_action ('bbp_theme_after_reply_author_details', 'rkk_display_rank_image');November 14, 2015 at 11:10 pm #169053In reply to: Question about this site…
lissyhunnybee
ParticipantI use the bbp style pack plugin with this shortcode in a widget to display just like that:
[bsp-display-topic-index show='4' template = 'short']You can see on my home page how it displays. Mine is only set to show 4 but you can have it show however many you like.
November 14, 2015 at 10:05 pm #169051In reply to: Avatar Size
Robkk
ModeratorYou can customize the
<?php bbp_reply_author_link(); ?>and add more attributes to it like what is explained in this guide.The functions you found, show the default arguments set for the links.
November 14, 2015 at 8:55 pm #169049In reply to: bb-smilies doesn’t appears on edit-post pages
Robkk
ModeratorbbPress 1x standalone is not going to work with any new WordPress plugins, unless you use custom code to allow it to somehow.
The plugin list labeled Legacy on this site, is for plugins that with bbPress 1x. The plugins section on this site, pulls plugins that work with bbPress on wordpress.org, are plugins that work with the plugin version of bbPress 2.
Your users do not really have to type a code?? They just they could just type regular smilies in text and it would output to the icon.
:) :( :PAlso I just told you, WordPress has smilies and emojis that you can use. The bbPress plugin can use WordPress’s library too. SO you may not need a plugin.
I am guessing you want something like a custom quicktag button that will show a dropdown of the smiles on your site. I can create a ticket for this if you want, and then we can see what the devs think of trying to add this to core.
November 14, 2015 at 7:30 pm #169042In reply to: bb-smilies doesn’t appears on edit-post pages
deanhills
ParticipantApologies about bumping the thread. I was new to the forum. I tried BBPress as standalone first and that didn’t want to work with the WP plugins. I then made it part of a WP Website, and that didn’t work for the smiley plugin WP-Monalisa. Suggest that it should at the very least be removed from the bbPress list of plugins as it is listed here. AND it didn’t work for my stand alone Website.
I really don’t want my visitors to have to type a code first before I see the smiley. I want it as one would find everywhere else in real forums. Without a plugin. I also don’t want to code it. WordPress is supposed to be for people who don’t have to get under the dashboard, preferably stay out of it. I spent probably a few hours last night researching this and I know for a fact I’m not the only one asking WordPress and especially bbPress to add smileys to people who make posts without having to load a plugin for it – or in the very least create a dedicated plugin by the developer of the bbPress that works at the time of downloading the stand alone software or WP Plugin.
November 14, 2015 at 6:55 pm #169040In reply to: Question about this site…
Robkk
ModeratorNot entirely sure what the exact code is.
I think it is caching the forums using the transient api. That plugin I mentioned definitely has this type of feature though, uses a custom query I think.
November 14, 2015 at 10:41 am #169016Momshof
ParticipantHello Robkk. Thank you for responding. I am fairly new to creating a site & do not have the knowledge base yet to create the code for this to happen. I was hoping someone more knowledgeable than I may have already written this code for their site & would share the info.
I am running Divi by ET which allows me to insert code into an epanel so I would not have to dig into files & take the risk of destroying anything for that end.
Thank you for the link. I had not come across that tutorial info before.
November 14, 2015 at 2:43 am #168994In reply to: Avatar Size
lissyhunnybee
ParticipantI have found that the following files have functions that might be making the size stick no matter what
From bbpress\includes\topics\template.php
function bbp_get_topic_author_link( $args = '' ) { // Parse arguments against default values $r = bbp_parse_args( $args, array( 'post_id' => 0, 'link_title' => '', 'type' => 'both', 'size' => 80, 'sep' => ' ', 'show_role' => false ), 'get_topic_author_link' );And from bbpress\includes\replies\template.php
function bbp_get_reply_author_link( $args = '' ) { // Parse arguments against default values $r = bbp_parse_args( $args, array( 'post_id' => 0, 'link_title' => '', 'type' => 'both', 'size' => 80, 'sep' => ' ', 'show_role' => false ), 'get_reply_author_link' );If someone could write me a function for just the size part perhaps that would work? I don’t know enough to be able to write one myself lol
November 14, 2015 at 2:19 am #168993In 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. -
AuthorSearch Results