Search Results for 'code'
-
AuthorSearch Results
-
June 7, 2015 at 4:01 am #162899
In reply to: Mentions sitewide
Robin W
ModeratorThe @ is simply text, it does nothing of itself.
It could be coded to do all you ask, but nothing exists that I know of
June 6, 2015 at 7:05 pm #162889In reply to: Topic excepts
Robkk
Moderatorhere is the code to display the topic excerpt, which i recommend so you would not have to display the whole description in a topic.
<?php bbp_topic_excerpt(); ?>June 6, 2015 at 6:36 pm #162888In reply to: Problems overwriting defaults
Robkk
ModeratorYou can use this for custom subscribe text
//custom text for subscribe links function rkk_subscribe_link() { $args['subscribe'] = esc_html__( 'Subscribe to this', 'rkk' ); $args['unsubscribe'] = esc_html__( 'Unsubscribe to this', 'rkk' ); return $args; } add_filter('bbp_before_get_forum_subscribe_link_parse_args', 'rkk_subscribe_link' ); add_filter('bbp_before_get_topic_subscribe_link_parse_args', 'rkk_subscribe_link' );June 6, 2015 at 5:29 pm #162885In reply to: Problems overwriting defaults
Robin W
Moderatortry adding
//This function changes the text wherever it is quoted function change_translate_text( $translated_text ) { if ( $translated_text == 'old text' ) { $translated_text = 'new text'; } if ( $translated_text == 'old text2' ) { $translated_text = 'new text2'; } return $translated_text; } add_filter( 'gettext', 'change_translate_text', 20 );to your functions file. The wording needs to be exact including caps and punctuation
June 6, 2015 at 7:15 am #162879boriskamp1991
Participanthi!
can I set the default behavior of the
Notify me of follow-up replies via emailbutton when posting to the forum or whatsoever?
I would like it to be checked by default.
Im pretty sure i could write some JS to do this on page load but was wondering if you guys have some built in solution for this?June 6, 2015 at 7:14 am #162878Topic: Mentions sitewide
in forum Requests & Feedbackboriskamp1991
ParticipantHi guys!
looking at these forums, I can see the @name name is printed beneath the profile picture.
How can I turn this on in my website?
I’ve uploaded a beta of my website hereIs there an auto suggestion option for the mentions?
example, if somebody starts typing@borhe/she will be suggested@boris-kamp?Thanks!
June 6, 2015 at 3:08 am #162877In reply to: Theme Conflict: Topics not appearing
Robin W
Moderatorwhich theme are you using?
Have you tried the two methods in 3
and looked at no. 8 in the same bit
June 5, 2015 at 4:33 am #162848mmice
ParticipantRaw SQL, yep.
Here it goes:EDIT: SQL code is now here https://gist.github.com/anonymous/8d1cb71e69d52ac69f5d
That’s not all, – i still have to implement a karma system to bbpress and also import it, and still have to import private messages. If you will be so kind to point me, what i’ve missed (and that cause error i’ve been experiencing), i appreciate it so much )
June 5, 2015 at 1:43 am #162845Chezzer
ParticipantI just figured out what I needed. It turns out bbp_get_forum_title() returns a string that I can actually compare and it seems to work perfect. So my issues in my last message can be ignored.
Just for clarity, this is what the final piece looks like:
<?php if (bbp_get_forum_title() !== "News") : ?>Then I just add the endif you suggested at the end and it works great.
Thanks again!
June 4, 2015 at 3:01 pm #162840In reply to: Custom CSS
jbeagley
ParticipantYou nailed, thank you!!! I was missing a } closing the previous CSS code.
June 4, 2015 at 2:47 pm #162839In reply to: Custom CSS
Robkk
ModeratorMake sure to wrap code with the code button on bbpress.org
I checked your custom CSS on your site.
Sometimes CSS after a CSS statement is not complete will not work.
For example make sure all of your statements have the
#selector .selector { <-- make sure you have this on all of your CSS statements property: value; } <-- make sure you have this on all of your CSS statements.June 4, 2015 at 1:18 pm #162836Topic: Custom CSS
in forum Troubleshootingjbeagley
ParticipantI have had no problem editing the appearance of the forum until I tried to change the background color of the current navigation link on the user details page… its the list of link including profile, topics started, replies created, etc…
I have been editing it with the ‘custom css’ feature of my theme… this is what I added
#bbpress-forums #bbp-single-user-details #bbp-user-navigation li.current a {
background-color: #12681A;
}I grabbed that code from the ‘inspector’ tool using F12 in my browser… just changed the color code… but is not affecting the page…
any suggestions why this particular element isn’t being affected?
wordpress 4.22
bbPress 2.5.7
http://hillberryfestival.com/forums/user/dhp/June 4, 2015 at 11:22 am #162834In reply to: Allow HTML from users
atsouf
ParticipantHello guys.
I had the same issue. I read all the topics and i managed to fix almost everything thanks to your posts
btw thans Edgar you saved my with your plugin.
My only issue is this: i have activated the video button on tinymce so peoepl can add video using the youtube or vimeo url.
I know that just pasting the link it will embed it but the issue is that you cant arranged width and height.
Although i tried and added more things to Edgar’s plugin when i try to add iframe code it nothing appears on the post
The code i added is:
// iframe
‘iframe’ => array(
‘src’ => true,
‘style’ => true,
‘width’ => true,
‘height’ => true,
‘scrolling’ => true,
‘marginwidth’ => true,
‘marginheight’ => true,
‘frameborder’ => true,
),any help is welcome.
Thanks in advance,
atsoufJune 4, 2015 at 10:55 am #162833In reply to: Display notifications on page
PinkishHue
ParticipantThis is an old topic but in case you’re still looking for help (or if helpful to someone else), this plugin allows you to use a shortcode to display a list of notifications (and other buddypress things) in a page or post:
June 4, 2015 at 10:41 am #162830In reply to: How to Create a "Sticky" and "Locked" button?
PinkishHue
ParticipantThis topic is a bit old now but if you’re still looking for an answer (or if helpful to other people)
Here’s some info that should help:
June 4, 2015 at 10:20 am #162822In reply to: How to get a feed of all activity
PinkishHue
ParticipantCool, I didn’t know that.
@shanesams There probably is a way to code this. I’m succesfully using the Ajax replies plugin mentioned here:So perhaps that could be customised to work with an activity style layout? Just needs someone with some bbpress smarts to take a look at it 🙂
June 4, 2015 at 9:54 am #162819PinkishHue
ParticipantIt does seem tricky to set this sort of thing up (hopefully to be improved in future versions of bbpress?).
One way to do this, although not the most robust option, would be to simply hide the new topic form for everyone but keymasters/admins when viewing that particular forum.
I will assume you are accessing your new topic form when viewing the individual forum (it’s trickier if you are using the new topic form where you choose which forum to post to instead of/as well as individual forms in each section. This is what’s used here on the bbpress.org forums for example. If you need a solution for this as well let us know, I’m sure someone can explain how to do that)
This is just off the top of my head and not tested (hopefully someone more experienced will be able to advise better) – in wp-content/your-theme/bbpress/form-topic.php (create this file if it’s not already in your theme, copy the original from wp-content/plugins/bbpress/templates/default/bbpress/
At the top of the file, after this code:
<?php /** * New/Edit Topic * * @package bbPress * @subpackage Theme */ ?>Add this code to check if you are in your news forum (here I’ve used forum id ‘5’ as an example, you’ll have to find the specific id for your forum) and if the user is an admin (there may be a better to do this using the keymaster role instead of the usual WP role but I don’t know about that):
<?php if ( bbp_is_single_forum( '5' ) && current_user_can( 'manage_options' )) : ?>Then at the very end of the file close the if statement by adding this:
<?php endif; ?>That should work as far as I know but I am still finding my way with bbpress so can’t say for definite. Good luck!
June 4, 2015 at 5:11 am #162809Topic: Topics and Replies ERROR : Are you sure to do that ?
in forum Troubleshootingoyeben6
ParticipantHello, this is my second ost in this forum. I install bbpress plugin in my wordpress website and when i want to post topics or replies in my Front-End i get
ERROR : Are you sure to do that ?.Please i need your help
Wordpress version: 4.2.2
bbPress version: 2.5.7
Template version : Dream theme The7.2June 4, 2015 at 2:20 am #162802In reply to: Show Parent Title of Parent Forum
quentinpotgieter
ParticipantOkay great, so all I really had to do is declare the variables first. So in future for everybody else, here is my solution:
<?php //parent variables $parent = get_post($post->post_parent); $parent_title = get_the_title($parent); $grandparent = $parent->post_parent; $grandparent_title = get_the_title($grandparent);?> <div id="a-<?php echo $grandparent_title; ?>">Thank you very much Rob for your guidance.
June 3, 2015 at 7:16 pm #162792Robkk
ModeratorThis plugins should help if you want more control.
https://wordpress.org/plugins/peters-login-redirect/
Without a Plugin you have to add this to your child themes functions.php
add_filter( 'login_redirect', 'rkk_login_redirect' ); function rkk_login_redirect() { // Change forums to whatever is your forum main page return home_url( '/forums' ); }June 3, 2015 at 6:47 pm #162791Stephen Edgar
KeymasterSo your importing from phpBB v1?
Indeed our importers only support phpBB 3.x for bbPress 2.5.x and phpBB v3.1 for bbPress 2.6
Did you write your own phpBB v1 importer or copy and modify the one that is included with bbPress?
There are also some fixes and improvements in our repair tools coming for bbPress 2.6 that hopefully will be released in the next couple of weeks.
I’m happy to take a look at the importer if you made one and/or some data examples, you can post code examples on GitHub here https://gist.github.com/ntwb
(If you added the raw MySQL data from a single forum, a topic of that forum, and a reply of that topic I could give you some tips on what the main issues are that your most likely having)
June 3, 2015 at 6:41 pm #162789Stephen Edgar
KeymasterWell, – forums are showing, so do topics, – when i click on “Replies” in admin – i get no response from server. Yep, there’re about 7,5M replies there, but i guess it has to work despite of that fact?
Those replies are shown in frontend and forums seem to work well.
This is because there is a slight data mismatch I expect, most likely around either
post_parentinwp_postsor some of the post meta relationships inwp_postmeta.And yes, even though they show on the front end correctly.
Another issue is: as i imported forums and topics to db – i could see them both listed at backend and frontend. But if i tried to come into the forum or topic on frontend i’ve got “not found”.
This is going to similar I think to the above, one or two of the meta relationships is not quite correct.
Open forum in backend, then just “save” helped that.
Bulk select topics, edit, changing nothing, just “save” helped that.The affect of doing this is that when saving/updating forums, topics, replies we have some error checking that will validate that the ID is indeed the correct type that is be saved, so be it a replies parent topic, or a topics parent forum etc these get validated upon saving.
Thus this is kind of working as a pseudo repair tool repairing that meta I mentioned above.
I’ll add another reply in a moment…
June 3, 2015 at 6:30 pm #162788In reply to: How to get a feed of all activity
PinkishHue
ParticipantOne way to achieve this sort of thing would be using the ‘Display Posts Shortcode’ plugin:
https://wordpress.org/plugins/display-posts-shortcode/
Once installed you can add a shortcode to a post or page to display a list of all topics and replies:
[display-posts post_type=”topic,reply”]
and there’s lots of different settings you can customise, see documentation here:
https://github.com/billerickson/display-posts-shortcode/wiki
You may just need to customise the look of it to be more like a normal ‘activity’ page as normally this will just give a plain text list of your posts, so it depends on your needs.
Hope that helps 🙂
eta: You would still have to click on the posts in the list and go to their own page to add a reply. I’m not sure if that’s something you are trying to avoid when you say “batch process my replying right there. no clicking to forums” I’m presuming you just mean no clicking to see the posts, not for replying.
June 3, 2015 at 6:04 pm #162787In reply to: First post not showing
PinkishHue
ParticipantHi Steven. I don’t know anything about that plugin (and still finding my feet with bbpress) but my first thought is that it might be a conflict with the ‘lead topic’ feature of bbpress which allows you to use a different theme template/styling for the first post in a topic.
Here’s some more info on that:
If this is enabled on your site I would try disabling it (removing that code from your functions.php/plugin/wherever it might be), or alternatively if it’s not enabled, try enabling it, and see if that does anything.
Also, let us know what theme you are using and does it have custom bbpress templates included in it?
Hope that helps a bit!
June 3, 2015 at 3:51 pm #162778In reply to: Show Parent Title of Parent Forum
Robkk
Moderatorsomething like this might work
get_the_title( $post->post_parent ); -
AuthorSearch Results