Search Results for 'code'
-
AuthorSearch Results
-
July 3, 2017 at 1:00 am #185311
In reply to: Blank and Broken Forum Index
ncrocketry
ParticipantAlso for reference, here is a page with the shortcode as described in the documentation to display a single forums topics. eg. [bbp-single-forum id=32].
July 3, 2017 at 12:47 am #185310In reply to: Blank and Broken Forum Index
ncrocketry
ParticipantI’ve tried to create pages with shortcodes, but the result is the same.
July 2, 2017 at 12:40 pm #185306In reply to: bbPress forum and topic menu
enacta2
Participant@robin-w I applied your CSS code for
rootandforumand it works well. But the top part of the box is missing. I tried to ‘fix’ the button so it’s whole, but I’m unable. I tried many different CSS lines, including the following, and none worked.Can you please tell me how to make the button so it’s complete?
I don’t have a live site with bbPress. It’s only on my localhost mirror for now, until I get it all setup the way I want.
/* Set breadcrumb from topic to its forum with blue button */ .bbp-breadcrumb-forum { background: #6D84B4; background-image: -webkit-linear-gradient(top, #6D84B4, #3B5998); background-image: -moz-linear-gradient(top, #6D84B4, #3B5998); background-image: -ms-linear-gradient(top, #6D84B4, #3B5998); background-image: -o-linear-gradient(top, #6D84B4, #3B5998); background-image: linear-gradient(to bottom, #6D84B4, #3B5998); -webkit-border-radius: 28; -moz-border-radius: 28; border-radius: 28px; -webkit-box-shadow: 0px 2px 0px #000000; -moz-box-shadow: 0px 2px 0px #000000; box-shadow: 0px 2px 0px #000000; font-family: Arial; color: #000000; font-size: 11px; padding: 7px 15px 7px 15px; text-decoration: none; } .bbp-breadcrumb-forum:hover { background: #AFBDE1; background-image: -webkit-linear-gradient(top, #AFBDE1, #6D84B4); background-image: -moz-linear-gradient(top, #AFBDE1, #6D84B4); background-image: -ms-linear-gradient(top, #AFBDE1, #6D84B4); background-image: -o-linear-gradient(top, #AFBDE1, #6D84B4); background-image: linear-gradient(to bottom, #AFBDE1, #6D84B4); text-decoration: none; } /* Set breadcrumb prepended text for button from topic to its forum */ .bbp-breadcrumb-forum::before { content: "Back to the "; } /* Set breadcrumb appended text for button from topic to its forum */ .bbp-breadcrumb-forum::after { content: " forum"; } /*-------------------------------------------------------------------------------------------*/ /* Set breadcrumb from forum to its root with blue button */ .bbp-breadcrumb-root { background: #6D84B4; background-image: -webkit-linear-gradient(top, #6D84B4, #3B5998); background-image: -moz-linear-gradient(top, #6D84B4, #3B5998); background-image: -ms-linear-gradient(top, #6D84B4, #3B5998); background-image: -o-linear-gradient(top, #6D84B4, #3B5998); background-image: linear-gradient(to bottom, #6D84B4, #3B5998); -webkit-border-radius: 28; -moz-border-radius: 28; border-radius: 28px; -webkit-box-shadow: 0px 2px 0px #000000; -moz-box-shadow: 0px 2px 0px #000000; box-shadow: 0px 2px 0px #000000; font-family: Arial; color: #000000; font-size: 11px; padding: 7px 15px 7px 15px; text-decoration: none; } .bbp-breadcrumb-root:hover { background: #AFBDE1; background-image: -webkit-linear-gradient(top, #AFBDE1, #6D84B4); background-image: -moz-linear-gradient(top, #AFBDE1, #6D84B4); background-image: -ms-linear-gradient(top, #AFBDE1, #6D84B4); background-image: -o-linear-gradient(top, #AFBDE1, #6D84B4); background-image: linear-gradient(to bottom, #AFBDE1, #6D84B4); text-decoration: none; }July 2, 2017 at 12:06 am #185295In reply to: Third-party shortcodes in bbPress posts
Martin
ParticipantHi @chadschulz. I Tried with that code but it didn’t work with [pgn] and the chessboard plugin.
@yo35 any Idea?Thanks a lot!
July 1, 2017 at 7:40 am #185290In reply to: Only the first user can write a tag?
lrmo
ParticipantI had only thought that this is perhaps a bug, or I did not see a setting. I then started with the adjustments, only I have determined, the adjustments take no end …
There are so many things missing – and so much code which must be added to make it “usable”.
The worst is the lack of proper moderation and the fast possibility to delete spam, as well as a fast support possibility. It is unfortunately not optimal always to be afraid I need help or not. Here is perhaps a payment support for bbpress optimal, which provides quick help.
That is why I have now decided to use Xenforo, which is good with Xenword in WordPress. Does not work with Buddypress, but this is not so bad.
Thanks for that I received at all from someone an answer ๐
And I know that the support does this in his spare time, so as I mentioned above perhaps a payment support set up!July 1, 2017 at 6:05 am #185283In reply to: Recent replies of particular forum
PinkishHue
Participant@lalitavalon I haven’t tested it but you could try the ‘display posts shortcode’ plugin, set the post type to replies and the category to the forum ID? Not sure if that would work exactly but worth a try.
July 1, 2017 at 6:03 am #185282In reply to: Shortcode to display the 50 most recent topics
PinkishHue
Participant@scottm-ldg Install the ‘bbp additional shortcodes’ plugin, that allows you to specify a different number of topics in the shortcode:
Hope that helps.
July 1, 2017 at 6:01 am #185281In reply to: Link to latest post
PinkishHue
ParticipantYou could install the ‘bbp additional shortcodes’ plugin, then use that to display just one topic
Then use ‘do shortcode’ if you want to place this in a template file, like:
// Use shortcodes in form like Landing Page Template. <?php echo do_shortcode( '[bbp-display-topic-index show='1']' ); ?>I think that should work for you.
June 30, 2017 at 12:09 pm #185268In reply to: Maximum number of subforums? (displayed)
Robin W
Moderatorsorry – I was half awake this morning
try
add_filter ('bbp_before_has_forums_parse_args', 'rew_show_all' ) ; function rew_show_all ($args) { $args['posts_per_page'] = -1 ; return $args ; }June 30, 2017 at 3:38 am #185263In reply to: Maximum number of subforums? (displayed)
Robin W
Moderatorthe code only shows 50
put this in your functions file (untested, but should work)
add_filter ('bbp_before_has_forums_parse_arguments', 'rew_show_all' ) : function rew_show_all ($args) { $args['posts_per_page'] = -1 ; return $args ; }June 30, 2017 at 3:30 am #185262Topic: Maximum number of subforums? (displayed)
in forum TroubleshootingPinkishHue
ParticipantJust wondering if anyone has come across this before – I’m attempting to create a subforum for every postcode district in the UK of which there are 2000+ (this may seem a bad idea but having considered many different options it seems the best/simplest for my use case at the moment)
I’ve imported the forums via the ‘WP CSV’ plugin, and they seem to have imported fine, but on the front end when viewing the full forum list it only shows the first 50. Is this by design? Or could it be something buggy I have done?
If it’s unavoidable I guess I can make them sub-subforums of a smaller number of postcode areas.
Thanks
June 30, 2017 at 2:41 am #185252In reply to: Multiple Forum Indexes
Robin W
ModeratorIf I understand what you want correctly, just set each ‘page’/index as a category and then the appropriate forums as belonging to that category.
Then set up a page for each and use a shortcodes to display the appropriate forums for that page
eg
[bbp-single-forum id=1]
[bbp-single-forum id=2]
[bbp-single-forum id=3]June 29, 2017 at 1:36 pm #185251In reply to: Importing messages into bbPress
itayasa
ParticipantI successfully managed to post messages into the forum by including WordPress in my php script and calling
bbp_insert_topic.
However, it seems like when I callbbp_insert_replybbPress actually inserts a topic parented to another topic and these appear like replies in the site itself.
Tried repairing the forums and it didn’t work.
Any idea why?June 28, 2017 at 4:50 pm #185232In reply to: Request: Restrict Topic Creation by Role
Robin W
Moderatorthis is doable, but you’ll need to modify the role
see
and
you’ll probably want to create a new role which just lets this role create and edit replies
June 28, 2017 at 5:45 am #185219In reply to: How do I remove the “topic type” and “topic status”
PinkishHue
ParticipantI see, to make the font on the sub-forums larger you can use:
.bbp-forums-list .bbp-forum a { font-size: 18px; }Also if you want an easier way to alter sizes and styles etc. you could try Robin’s handy plugin:
June 27, 2017 at 4:33 am #185185Topic: Link to latest post
in forum Troubleshootingtheredeclipse
ParticipantHello,
I’m trying to make a link to a latest topic in forum page. I achieved topic name by bbp_forum_last_topic_title function, but can’t figure out how to get a link for latest topic.
I’ve tried to pull out something like this, but it links to forum index.
<p><a href="<?php echo $link; ?>"><?php bbp_forum_last_topic_title(); ?></a></p>June 27, 2017 at 1:48 am #185182In reply to: Recalculate the position of each reply
sourfew
Participant95000 topics
750000 replies
25000 usersWhen I run the script several times I think all posts are recalculated but not really sure.
I have som other issues as well.
Imported users do not get a site role or forum role.
Users post count is zero.
Users do not show up in the memberslist (front end) and are not searchable. But I can access user profiles and the number of topics, replies ans mentions seems to be ok.Post quotes are not always converted the right way and sometimes even bbcode are parsed resulting in very small text.
I have tried the import on both an newer VPS with php 7 and a older one with php 5.4.
Vbulletin version 4.2.2June 26, 2017 at 7:48 pm #185176In reply to: How do I remove the “topic type” and “topic status”
locutus1
Participant1) Good to know. That solves that.
2) This worked but only partly. My terminology may be wrong. I have a menu item which is a category. If you click it, it lists 4 main forums each of which is also a category. Under each main forum are listed its sub-forums. The code you gave me made the main forums bigger – 18 pt is good – but the sub-forums are a little small. If you click a sub-forum then it becomes a main forum and it’s 18 pt. So the code affects main forums only. I don’t know if this is clear so look at this. This is what I see if I click the menu item.
Main forum1
(indented) sub-forum1, sub-forum2, sub-forum3, sub-forum4
Main forum2
Main forum3Each main forum is 18 pt. I understand the sub-forums should be smaller than the main forums but they’re a little too small. Can that be adjusted? It’s OK if it can’t be.
3) I’m still working on this one.
Thanks a lot. I have other questions but I’ll make a new post.
June 26, 2017 at 1:36 pm #185172In reply to: List subscribers of a forum
PinkishHue
Participant@casiepa Hi again, I don’t see an option to send you a private message but wanted to let you know I installed the plugin (thanks), but I’ve noticed it has altered the display of my subforums (removed the topic and voice counts, and made the font larger), even though I have not checked that option in the plugin settings.
Here’s the info from the plugin if it’s any help.
WP version 4.8
Theme Make (child theme) 1.1.0
PHP version 5.6.30
bbPress version 2.5.12-6148
site url (removed, on localhost XAMPP)
Active Plugins Name and Version
– p1 bbP Toolkit 1.0.10
– p2 bbP shortcodes 2.8
– p3 bbPress 2.5.12
– p4 BuddyPress 2.8.2
– p5 User Switching 1.0.9
– p6 WordPress Social Login 2.3.3June 26, 2017 at 10:26 am #185168In reply to: List subscribers of a forum
PinkishHue
ParticipantThanks for all the info above. I’ve added the ‘bbPress-Topic-Subscribers’ plugin and that works great.
To try and do the same for forum subscriptions I’ve copied the files and changed all instances of ‘topic’ to ‘forum’, and it’s listing the users fine, but when you click the unsubscribe link nothing happens.
Looking at the code, I think it must be something in this section that is not right:
$forum_id = bbp_get_forum_id(); if ( $forum_id && current_user_can( 'moderate' ) ){ $subscribers = bbp_get_forum_subscribers( $forum_id ); if ( $subscribers ){ echo '<table style="width: 100%">'; foreach ( $subscribers as $subscriber ){ $subscriber = get_user_by( 'id', $subscriber ); echo '<tr>'; // avatar echo get_avatar( $subscriber->ID, 45 ); echo ' '; //username echo $subscriber->user_login; echo ' '; // remove button echo bbp_get_forum_subscription_link( array( 'user_id' => $subscriber->ID ) );Specifically maybe the ‘bbp_get_forum_subscription_link’ area? Does anyone have any suggestions on why this wouldn’t work for forums in the same way as topics? Many thanks for any help you can give.
June 26, 2017 at 5:17 am #185166In reply to: Add Featured Image to New Topics in Frontend WYSWYG
Stagger Lee
ParticipantHere it is.
You hijacked topic a bit.
I still dont understand why you use bbPress as Blog/Posts tool when WordPress is made for this. Almost as you are not so good on theming, and looking for shortcuts.– Make own image size
– Change “slider” to name of own image size.
– There is a class to center image, give it maybe some gray background for smaller featured mages. fix margins and paddings, etc…function ntwb_bbpress_random_single_topic() { global $post; if ( has_post_thumbnail($post->ID) ) echo get_the_post_thumbnail($post->ID,'slider',array('class' => 'forum-topic-featured')); } // Hook into action add_action('bbp_template_before_lead_topic','ntwb_bbpress_random_single_topic');June 26, 2017 at 3:48 am #185162In reply to: Add Featured Image to New Topics in Frontend WYSWYG
kariellen35
ParticipantBy the way… what I did end up doing which has been a real good work-around, is use the bbp style pack single forum short code to show my forums as pages. This has been great, because it allows for much more modification! So I just added my featured image to each forum’s page.
June 26, 2017 at 3:20 am #185160In reply to: Add Featured Image to New Topics in Frontend WYSWYG
kariellen35
ParticipantThank you so much for your help @stagger-lee! This code did work, however, it seems to only be for forum lists, which is an option already included in the bbp style pack plugin. I am trying to get the featured image to show up on the forum’s page itself (like what they do in buddypress groups) I don’t have forum lists accessible on my site so it’s not relevant to what I am doing. Thanks again for taking the time to post this tho!
June 25, 2017 at 10:07 pm #185159In reply to: show only if it applies to reply author
andrew55
ParticipantI don’t mean to ramble, but I think the solution will be something such as:
if (Am_Lite::getInstance()->haveSubscriptions(364) && ($reply_user_id($topic_id) ))I just add bbpress statement to my already existing “if” statement using an “And” operator.
I’m just getting caught up on the bbpress part.
Any suggestions on what the bbpress code would be to โjust show for the author of this reply?โ
Thanks for any help.
June 25, 2017 at 8:36 pm #185158In reply to: show only if it applies to reply author
andrew55
ParticipantI seems like this should work, but it doesn’t:
<?php if (bbp_get_reply_author_id($reply_id)) { ?> my other code goes here <?php } ?>It seems like it should wrap my code with a statement of “show only for the author of this reply” but it’s not working like this.
Any suggestions on what the code would be to “just show for the author of this reply?”
Thanks for any help.
-
AuthorSearch Results