Search Results for 'code'
-
AuthorSearch Results
-
October 2, 2015 at 1:06 pm #167347
In reply to: Login, Register, Lost Password links
mica123
Participant@robkk I have now tried your code and it works beautifully. The links show up in the sub-header-menu. The login and logout redirect works too. As I am trying this out on my local computer I don’t know if the reset and lost password redirect would work as well?
There is another problem: if I click on login or reset or lost password button without giving a user name and password, it goes to the standard WordPress login page which is not good at all. Can this be remedied? We are almost there.
Many, many thanks.October 1, 2015 at 10:26 pm #167328In reply to: bbPress Search Bar – Changing Color
GreatOldiesDJ
ParticipantHi and thanks for that update. I saw that little icon but I didn’t realize what it was. Your code change took care of it.
October 1, 2015 at 9:29 pm #167325In reply to: How to change log in text
Robkk
ModeratorI think you just copied
form-user-register.phpinto your theme and added that text, not entirely sure though.October 1, 2015 at 4:49 pm #167318In reply to: bbPress Search Bar – Changing Color
Robkk
ModeratorUse background: none; in the submit buttons CSS. The little icon image is showing.
I edited the other reply I posted code, so you can just copy over the code over again.
October 1, 2015 at 3:53 pm #167316In reply to: Add/Remove from TinyMCE
tkse
ParticipantWow, I’m sorry. I didn’t realize I had forgotten this line.
I noticed the second line I had in my code was to disable the HTML editor, not teeny. However, is it possible to display the HTML editor only for moderators and above?
October 1, 2015 at 3:27 pm #167314In reply to: bbPress Search Bar – Changing Color
GreatOldiesDJ
ParticipantHi again. This code worked perfectly. Thanks you very much for your help!
October 1, 2015 at 3:17 pm #167313In reply to: bbPress Search Bar – Changing Color
Robkk
ModeratorHere try some of this custom CSS, put it in your child theme or in a custom css plugin.
This is for the submit button
#bbpress-forums #bbp-search-form input[type=submit], #bbpress-forums #bbp-search-form input[type=submit] { text-indent: 0; background: none; background-color: #3F51B5; color: #fff; width: auto; height: auto; border-radius: 0; margin-top: 0; }This is for the search input.
#bbpress-forums #bbp-search-form input[type=text], #bbpress-forums #bbp-search-form input[type=text] { border: 1px solid #3F51B5; }October 1, 2015 at 3:04 pm #167312In reply to: Add/Remove from TinyMCE
Robkk
ModeratorYou did add this argument right?? Having this at false shows the full editor. Some button may be not usuable for the forums though, so you need to move them around in the TinyMCE advanced plugin settings.
$args['teeny'] = false;October 1, 2015 at 10:31 am #167309In reply to: Problems with Forum Rating not working
BewitchingFiction
ParticipantAs a minor update, even the word cocktails appears to be blacklisted though I have no idea WHERE this blacklist is – is it possible to just remove that ‘check blacklist’ code from BBPress because it’s ridiculous – I don’t want it to check something that I have no control over just because, especially when I don’t even know where this list is.
October 1, 2015 at 7:17 am #167306In reply to: Add replies (or topic) count to menu
project_subdomain
Participantthanks @robkk. makes sense, think it’s not in the codex.
I’ve got a navigation menu with links to specific topics (made with the backend’s customizer). Would like to add the correct count to each navigation menu link.Suppose that it would be easier to create a new custom navigation menu via functions as it’s not that easy to target the specific locations, right?
But in case you have an idea how to target those customizer created links to add a count, this surely would help for many other things as well.
October 1, 2015 at 3:34 am #167290In reply to: Problems with Forum Rating not working
Robkk
ModeratorHere is the code for that exact error notice. bbp_check_for_blacklist is checking the comment blacklist in Settings > Discussion. Since you said that you do not have anything in the blacklist do you have another plugin with a blacklist that could be hooking into the default comment blacklist??
/** Reply Blacklist *******************************************************/ if ( ! bbp_check_for_blacklist( $anonymous_data, $reply_author, $reply_title, $reply_content ) ) { bbp_add_error( 'bbp_reply_blacklist', __( '<strong>ERROR</strong>: Your reply cannot be created at this time.', 'bbpress' ) ); }October 1, 2015 at 3:05 am #167280nikhilnaik
ParticipantHello @8ball106,
I was looking for this code! I want to know the forums that user is subscribed to! Can you tell me how do I use this code to view the user’s subscribed forums?
October 1, 2015 at 2:21 am #167278Topic: Theme Parts from twenty fifteen
in forum Themesiron_cP
ParticipantHello to ALL!
First, my English is not perfect. But i hope some people understand my problem.
I use the Theme great! But the this theme make same troubble with bbpress. The Answers will displayed in the top of Page, behind the Black Admin Bar. If i change the Theme to Twenty Fifteen it Looks fine! In the Documentation i read, i have to move a page to bbpess.php .. but it will not work .. can anyone tell me what i have to do. i only want the twenty Fifteen Forum Theme code use in my Great! Theme !
Thanks and greets!
IRoN
October 1, 2015 at 1:25 am #167275In reply to: Remove “Link to Existing Content”?
Robkk
ModeratorYou can use this CSS to remove it. Add the CSS where you can add custom css.
.bbpress p.howto { display: none; }October 1, 2015 at 1:22 am #167274In reply to: Remove author column
Robkk
ModeratorWell you can easily customize bbPress by creating a child theme and placing the bbPress templates into that child theme and edit them with no worries.
The author column should be in the loop templates, for example loop-single-reply.php for replies of course. It should be in a div with the class bbp-reply-author. It would be bbp-topic-author if you have are editing the loop-single-topic.php template and so on.
October 1, 2015 at 1:18 am #167273In reply to: Change meta/page title for user pages
Robkk
ModeratorWait the original code really still doesn’t work.
It really did work for me, and I have the latest version of WP too.
October 1, 2015 at 1:02 am #167271In reply to: forums redirected to 404 page
Robkk
ModeratorSorry I missed your reply.
The bbPress error is displayed when there is another plugin causing it.
It is detailed here.
You did to see if was a cache, theme, and plugin issue right, and received no resolutions?
Can you tell me the url you are being directed to instead of the topic pages?? Can you check in your browsers dev tools to tell me the url in the link?
You are experiencing this issue as a logged in registered user right??
Did you try reinstalling bbPress as a last resort?? It is possible for an issue to happen during installation because of some server hiccup.
Has bbPress worked fine before, then it just broke all of a sudden, or was it just broken during a fresh installation??
October 1, 2015 at 12:48 am #167269In reply to: Add replies (or topic) count to menu
Robkk
ModeratorThis is more suited for topics.
bbp_topic_reply_count()Not entirely sure what you are going for to really help more.
October 1, 2015 at 12:45 am #167268In reply to: style my forum like yours
Robkk
ModeratorThe reply form border styles is inherited from your theme.
Do you want to remove the topic and forum descriptions too??
This php code snippet will remove the descriptions. Place this code snippet in your child themes functions.php or in a functionality plugin.
add_filter( 'bbp_get_single_forum_description', 'ja_return_blank' ); add_filter( 'bbp_get_single_topic_description', 'ja_return_blank' ); function ja_return_blank() { return ''; }October 1, 2015 at 12:01 am #167261In reply to: Code to find the user subscribed topics
Robkk
ModeratorThis user said they got forums, but not topics from forums with the code posted in this topic.
How to query recently active topics from user subscribed forums?
Thanks for sometimes helping out here in the forums.
September 30, 2015 at 11:56 pm #167260In reply to: Users’ Profile page is a 404 page
Robkk
ModeratorDid you try some troubleshooting to see if it could be a possible theme issue. Some theme frameworks do not play nice with bbPress’s theme compatibility, so try to check in a default theme to see if it works fine.
I guess you can also ask these questions too.
Did you import any users?
Are you allowing users to register with their email?September 30, 2015 at 11:26 pm #167254In reply to: user profile link giving a 404 error
Robkk
ModeratorHow about having a shortcode that just does it?
Won’t work since profiles are dynamic public pages, might work if it was private profile pages though.
I didn’t see a bbpress ‘users’ shortcode amongst those listed in the documentation.
Because there is none.
@joopstringer where do I add the code you suggested?
His code is SQL query code that you input into phpMyAdmin.
I’m setting up a site and only my admin user page comes up, all others are 404 pages.
It could be many possibilities but I will explain that in your other topic.
September 30, 2015 at 11:13 pm #167252In reply to: [HELP] How to Add/Edit Role – Ranks by Post
Robkk
ModeratorIt might be possible to use some code to calculate the posts like this or wait til 2.6 adds this feature.
https://wordpress.org/plugins/bbp-topic-count/
Then I guess setting the role using the code below when they reach the count. I am not sure entirely though, I have never tried something like this yet.
bbp_set_user_role();Right now this is most likely custom development and you may need to hire a developer to create this for you.
September 30, 2015 at 10:26 pm #167249In reply to: Add/Remove from TinyMCE
Robkk
ModeratorIn the guide it does say this.
—-
Use this function below instead with new argument added to be able to add new media like the emoticon button.
function bbp_enable_visual_editor( $args = array() ) { $args['tinymce'] = true; $args['teeny'] = false; return $args; } add_filter( 'bbp_after_get_the_content_parse_args', 'bbp_enable_visual_editor' );Please note that if you disable the teeny mode in the visual editor and allow other media buttons through the TinyMCE Advanced plugin, you will probably need to add on to this function and put it into your child theme functions.php file to allow your users to use some of the buttons like the table button.
September 30, 2015 at 10:23 pm #167248Robkk
ModeratorWhen I was talking about User ID, I was talking about a number not the name.
Here is an example on the other site I mentioned. The users username is 谢益辉 but the user profile shows the users ID in their profile url.
cos.name/cn/profile/1/
The plugin I mentioned will just help if you do not want the chinese characters in the urls of your forum posts it will just show the ID instead of the name. It is just a helpful plugin that might be useful, it won’t really help you with the profile issue though.
I do see that the profile page url is filterable and I could possibly make it the users ID instead, so I might try to fool with this. I post a snippet later If I can get it to work, and if it does work might suggest the plugin author of the plugin I listed earlier to add it to their plugin as it might be helpful.
You can also try switching to the default permalinks to see if that would help, because bbPress by default displays the profile links to be
?bbp_user=1, with the number being the ID which bypasses using the chinese characters completely. See if that works. -
AuthorSearch Results