Search Results for 'code'
-
AuthorSearch Results
-
October 10, 2015 at 6:44 pm #167685
In reply to: style my forum like yours
Robkk
ModeratorYou can try this instead. This hides the “this forum contains … topics… and” description that is blue on top of forums.
add_filter( 'bbp_get_single_forum_description', '__return_false' ); add_filter( 'bbp_get_single_topic_description', '__return_false' );You can try this CSS for the reply/topic form text areas.
#bbpress-forums fieldset.bbp-form textarea { border: 1px solid #ccc; }Anything else you want on this site I am sure there has already been a topic about so searching the forums might be best.
October 10, 2015 at 4:47 pm #167679Robkk
ModeratorI am starting to think that filter may not be the best way to translate content. It was widely used though and was recommend a few times in these forums.
While trying to find the bbPress string swap plugin that was a bbPress plugin that use to do this exact thing fine. I came upon this that lead me to find the alternative to the gettext filter and using
global $l10n;https://github.com/justintadlock/hybrid-core/issues/49
Here is an example with BuddyPress and I am sure there is a way to make this kind of thing work with bbPress.
October 10, 2015 at 3:58 pm #167676Robkk
ModeratorTry to ask Robin for the code snippet he uses in the plugin. He had a separate plugin that did it, but I am not entirely sure it still works.
October 10, 2015 at 3:56 pm #167675Robkk
ModeratorThis might be custom development for now. You may need to hire a developer for this type of functionality.
Here is a guide to help people create custom user roles with custom capabilities.
The whole each user gets a private forum thing could be possible in the plugin bbPress Private Groups but I am not entirely sure. Having specific roles have their own forum is possible with the plugin though, a group of users not sure about just 1 specific user to each forum.
Upgrading the role after they have done something is custom development also.
October 10, 2015 at 3:47 pm #167674In reply to: Reply text area
Robkk
ModeratorDoes this CSS help any?? If it doesn’t add !important to it.
#bbpress-forums div.bbp-the-content-wrapper textarea.bbp-the-content { max-width: 100%; height: auto; }October 10, 2015 at 3:47 pm #167673In reply to: Bulk-move bbPress topics
Pascal Casier
ModeratorFor this ticket, I have the logic on paper what is needed and part of the code already in one of my projects. But need to finish some stuff for the association first.
For the participation part, I’m helping in the forum and will stick to that for now. But any bbPress developer can have a look at my code of course to get inspiration 🙂
But we can have a chat about it, no problem.
Pascal.October 10, 2015 at 3:32 pm #167671In reply to: Bulk-move bbPress topics
Robkk
ModeratorAny contributions to that ticket would be much appreciated.
Any other participation in the bbPress project would be much appreciated also.
October 10, 2015 at 3:27 pm #167670In reply to: Adding a border to topic and rply text boxes.
Robkk
ModeratorYou can also try something like this too.
#bbpress-forums fieldset.bbp-form textarea, #bbpress-forums fieldset.bbp-form select, #bbpress-forums fieldset.bbp-form input { border: 1px solid #ccc; }October 10, 2015 at 3:25 pm #167669In reply to: URGENT – Freshness Name doesn’t update
Robkk
ModeratorWhat does the plugin do?
You can send me the plugin in a zip to my email so I can see what the actual code does, and see if there is a possible fix for it too.You can send the plugin to the email listed here.
October 9, 2015 at 1:10 pm #167652Topic: Not able to open sticky post in new forum
in forum Troubleshootingtrusso
ParticipantSite: http://www.levelupsolutionscenter.com
Theme: ZippyCourses by Social Trigger
Wordpress: Latest release
bbforums: 2.5.8 (Latest)I have installed the plugin for bbforums. No issues setting it up. I have created a post that I want to remain at the top of the forum. It is titled, Getting Started. I made it ‘sticky’ believing that this would allow it to be there at the top regardless of what others put in the forum.
When I go in to test as a user who has purchased a course, the user can get to the forum but cannot see the sticky post content. Just the listing in the forum. I set access to participant and open, with automatic membership.
I read your documentation and created a forum registration page and put in your shortcode.
Do users need to register with the forum first to see the content of a post?
If they do and I have the registration page, I can put it in the menu. Is that what I need to do to get registration to people? Is there anything special I need to know to make registration go through and access be granted? Special in setting up the access page?Question really is: how does a user of the educational material get to see the forum questions/posts?
Thank you!
October 9, 2015 at 11:17 am #167645In reply to: You must be logged in to reply to this topic
mica123
ParticipantJust to let you know that I was testing it all day. I removed Robkk’s redirect code to see if there would be the same problem with Peter’s Redirect plugin and it is the same. So I am at my wits’ end.
October 9, 2015 at 10:24 am #167642guillaumemolter
ParticipantAn even better solution is to use WordPress built-in return false shortcut, this way you don’t have to create a empty function each time.
add_filter( 'bbp_get_single_forum_description', '__return_false' ); add_filter( 'bbp_get_single_topic_description', '__return_false' );October 9, 2015 at 9:01 am #167640In reply to: Remove NoFollow from BBPress Posts
DevynCJohnson
Participant@Robkk , not necessarily. The “fix” is not 100% perfect because it removes “nofollow”s that I intend to keep for external domains/links. Also, if I were to write an article about nofollow, then any code examples I give will lose
rel="nofollow"The fix I provided is a poor fix. True, it solves my problem at the cost of a much lesser evil (in my opinion). I still hope that someone can provide a real solution or explain where the nofollow is coming from. Until then, at least I have a fix which is better than no fix.
Considering that I commented out those lines in the bbPress plugin, one would think that that would fix everything.
October 9, 2015 at 6:44 am #167631Robkk
ModeratorAre you talking about running the purge previous import tool having an issue or really in the reset forums area.
It is best to run the purge previous import after importing a forum and failing.
Use this if an import failed and you want to remove that incomplete data.
IF the reset forums tool does not do it, I guess you can try some SQL code in phpMyAdmin.
You can try to see if @netwebs commment can help you
https://bbpress.org/forums/topic/post-import-cleanup-help-needed/#post-133482
Also if you regularly backup your site, you can just revert to a previous backup before you did the import. You should make regular backups if you are not doing so already too.
October 9, 2015 at 6:43 am #167630Pascal Casier
ModeratorIf it’s really not working anymore, you could delete directly forums, topics and replies from the DB and then run the reset again.
USE WITH CAUTION
DELETE a,b,c FROM wp_posts a LEFT JOIN wp_term_relationships b ON (a.ID=b.object_id) LEFT JOIN wp_postmeta c ON (a.ID=c.post_id) WHERE a.post_type IN ('forum', 'topic', 'reply')USE WITH CAUTION
October 9, 2015 at 6:35 am #167627Pascal Casier
ModeratorFirst of all, a good database/site backup is always a starting point of course.
Then I suppose you followed the steps for the data cleanup here: https://codex.bbpress.org/getting-started/installing-bbpress/deleting-bbpress/ ?Is your WordPress still working fine since the cleanup that ‘failed’ ?
Pascal.
October 9, 2015 at 5:52 am #167618In reply to: Count topic’s favorites
Robkk
ModeratorGlad you found the solution to your issue. Sorry i wasn’t much help, it is hard to know every single function in the plugin. I am digging in the code more and more though.
October 9, 2015 at 5:41 am #167617In reply to: Count topics with specific tag
Pascal Casier
ModeratorHi,
If it can help, check shortcodes. The 2nd one could be your starting point:
[bbp-topic-tags] – Display a tag cloud of all topic tags.
[bbp-single-tag id=$tag_id] – Display a list of all topics associated with a specific tag. eg. [bbp-single-tag id=64]See https://codex.bbpress.org/features/shortcodes/
Pascal.
October 9, 2015 at 5:23 am #167614In reply to: You must be logged in to reply to this topic
mica123
ParticipantI don’t think this is the local caching problem because I tested it on both my laptop and netbook at home. I don’t have this problem when I test it on my site which I set up locally on my computer in xampp. This happens only on the live site.
I don’t think this is related to your redirect code. So this is a huge unexpected setback – what a shame! It doesn’t seem there is an easy solution and that I have to battle it out with the webhost provider who may not be knowledgeable about this at all.October 9, 2015 at 5:21 am #167613In reply to: Doubled title issue
Pascal Casier
ModeratorBuongiorno Rendall,
I quickly had a check in the sourcecode of the page and it seems the RT Theme is doubling the information. I also saw that your forum is cut on the right side of the screen.
Any possibility to switch to a more standard theme to make sure the theme is not to blame ?How did you setup the forum ? Using a shortcut ? Any extra plugins concerning bbPress installed ?
A presto,
Pascal.October 9, 2015 at 5:00 am #167608In reply to: You must be logged in to reply to this topic
Robkk
ModeratorJust making sure. It just something a user may not know at first.
I don’t think there is a caching problem during logins?? Maybe you just refreshed a page a few times and the cache recollected again.
I don’t really have a cache plugin to recommend, I guess just make sure that they are popular and have great support for any issues that may come up, other than that make sure they fit your needs.
It depends on your webhost really if you rather use their caching system, some hosts like WP engine strongly encourage users to use their system, and it is pretty good.
If you really think my login redirect code I gave you is causing the issue, you can remove it while you are trying to find this cache issue.
October 9, 2015 at 3:44 am #167596In reply to: Count topics with specific tag
Robkk
ModeratorI think bbPress just uses the code from WordPress since the topic tag clouds code is close to WordPress’s version for regular posts.
You can see the tag cloud on hover displays the number of topics.
I tried searching what it was, but couldn’t really pinpoint the exact function.
October 9, 2015 at 3:22 am #167592In reply to: forums/users/ only for logged in users?
Robkk
ModeratorYou can use this php Code function instead if you are not using BuddyPress. Make sure to place it in your child themes functions.php file or in a functionality plugin.
What it does is redirect non-logged in users from see user profile pages to the default WordPress login page.
You can change the page by editing
site_url('wp-login.php');to something like this if you have a yoursite.com/login page instead.
site_url('/login/');function rkk_restrict_bbp_user_pages() { if ( ! is_user_logged_in() ) { if ( bbp_is_single_user() ) { $url = site_url('wp-login.php'); // Send them to the new URL wp_redirect( $url ); exit; } } } add_action( 'template_redirect', 'rkk_restrict_bbp_user_pages');October 9, 2015 at 2:53 am #167589In reply to: Login, Register, Lost Password links
Robkk
ModeratorTo enqueue files in your child theme use get_stylesheet_directory_uri.
Put the custom login stylesheets into your child theme named style-login.css or whatever you want to call it, and in the function use get_stylesheet_directory_uri instead of template_directory.
https://codex.wordpress.org/Function_Reference/get_stylesheet_directory_uri
Will check out the other topic in a minute.
October 9, 2015 at 2:07 am #167582In reply to: forums/users/ only for logged in users?
laberkopp
ParticipantThanks casiepa!
I hoped for a solution without coding, but it seems I need to start digging into the fundaments of WP and bbpress.
I will go for the @robin-w solution first, as from the other one I didn’t even get where to put the code and what kleo should be.
So thanks again, I will get back here as soon as I have something to report.
Best wishes,
Sascha -
AuthorSearch Results