Search Results for 'code'
-
AuthorSearch Results
-
August 8, 2015 at 9:45 pm #165193
In reply to: Not getting forum notifications
Robkk
ModeratorOkay for some reason I am having trouble getting Forum notifications on my test site to any user except the blog owner like you said, I may have to report a bug or do more testing/discuss with the devs. And I might have also found another bug messing with this too.
The topic subscriptions work well though when I tested them.
Did you try some troubleshooting already to see if there could be another thing causing the issue?? I want to make sure before I report any kind of bug.
Just to make sure you are using the latest WordPress and bbPress?
Did you use the plugin mentioned above, Asychronous subscriptions, abd see if it fixed it?
Do other emails work on your site like new user registration, new comment, etc. ?I have an email address for the website via a Bluehost mailbox and I have one email forwarder from that box to my home email client.
Is this something you did recently, or was it always set up like this for 2 years.
I want double notification for the moderators and I don’t mind getting triple notification.
This might be custom development.
August 8, 2015 at 7:25 pm #165191In reply to: Merge Topics Problem
Robkk
ModeratorMerging topics still works for me when I tested it with the latest version of bbPress and WordPress.
If merging topics doesn’t work for a specific forum, you may need to repair your forums possibly??
You may also need to find and see if there is a plugin or theme issue too.
If merging forums does not work at all on your site try this with some troubleshooting also.
Create a hidden forum so it would only be visible to Keymasters and MOderators, then create a few topics and try merging them together.
August 8, 2015 at 7:12 pm #165190In reply to: Very hard to see text in the bbpress forum plugin
Robkk
ModeratorThis is because your font color of your site is white for the content, and bbPress forums are white and gray by default making your font invisible.
You can copy the
bbpress.cssfrom the bbPress plugin into your child theme into a folder called bbpress and customize the styles of your site.Or you can install a plugin like this, and put
transparentfor any background colors.August 8, 2015 at 6:28 pm #165189In reply to: Not-logged user experience
Robkk
Moderatordid you customize the bbPress templates by copying them into your theme??
Try switching to a default theme to see if the issue persists.
August 8, 2015 at 5:46 pm #165186In reply to: Moderating new subscribers
Robkk
ModeratorI’m just not entirely sure if it’s more time and effort to write the above than it is to manually delete spam messages
I was basically saying you do not need to manually delete every spam post, but you can bulk delete and auto delete spam posts. With Akismet installed it marks registered users posts that may be from spammers as spam, using the comment blacklist (bbPress uses this too) will put posts as pending as review. So that may help keep spam to a minimum.
I tested bbPress moderation, and it seems to work fine when I tested it.
I tried guest posting, registred member posting, and it seems to put the posts into moderation as pending.
You set up bbPress moderation in settings > bbPress moderation in the WordPress backend. I had everything enabled just so I can test anonymous posting too.
I received emails immediately for any posts pending moderation. I had checked that the respective posts were shown in the WordPress backend in the posts section (Either Topics or Replies in All Topics or All Replies), and when you see the pending action link all the posts in moderation should be there. To approve a reply the plugin author lists it here https://wordpress.org/plugins/bbpressmoderation/faq/.
If you are 100% percent sure that it does not work, try some troubleshooting to find any possible plugin conflicts. I had a simple test site with bbPress and bbPress moderation only, and it worked fine.
Also know that some of the bbPress moderation functionality is set for core, and might be in the plugin next big release, but like I said before the plugin works fine for now, but there could be a possible plugin conflict with another plugin.
August 8, 2015 at 4:48 pm #165179In reply to: how to disable Author information for users
Robkk
ModeratorIt is part of your set of editable templates from bbPress. Like I said copy the file into a child theme in a folder called bbpress.
The directory “wp-content/plugins/bbpress/templates/default/” contains the directories “bbpress”, “css”, “extras”, and “js”, and the file “bbpress-functions.php”.
The “bbpress” directory contains template parts. Copy any of them into a directory named “bbpress” in your themes root, so it looks like: /wp-content/themes/%your-theme%/bbpress/
August 8, 2015 at 4:44 pm #165178In reply to: Not getting forum notifications
Robkk
ModeratorIf you still have double notifications still, try some troubleshooting first. I think it could be a possible plugin issue, maybe plugins that might do the same thing like maybe BuddyPress Group Email Subscription. I also saw possible issues with wp-cron and duplicate emails, but try the troubleshooting first.
August 8, 2015 at 3:47 am #165168In reply to: link admin bar change
cocolabombe0
Participantfunction my_admin_bar_render() { if (! is_super_admin() ) { global $wp_admin_bar; $wp_admin_bar->remove_menu('site-name'); } } add_action( 'wp_before_admin_bar_render', 'my_admin_bar_render' );This code is ok.
August 7, 2015 at 6:50 pm #165161In reply to: add profile fields profile, topic
cocolabombe0
ParticipantWell, I still just solved my problem by French text.
Everything is starting coding lol.<?php $roles_site = $user_info->roles; $roles_forum = $user_info->roles; foreach ($roles_site as $key => $valeur) { if ($valeur == 'admin_bureau') { $roles_site[$key] = 'admin bureau'; } if ($valeur == 'administrator') { $roles_site[$key] = 'administrateur'; } if ($valeur == 'subscriber') { $roles_site[$key] = 'utilisateur'; } if ($valeur == 'webmaster') { $roles_site[$key] = 'webmaster '; } if ( ($valeur == 'bbp_blocked') || ($valeur == 'bbp_keymaster') || ($valeur == 'bbp_moderator') || ($valeur == 'bp_participant') || ($valeur == 'bbp_spectator') ){ unset($roles_site[$key]); } } foreach ($roles_forum as $key => $valeur) { if (($valeur == 'admin_bureau') || ($valeur == 'administrator') || ($valeur == 'subscriber') || ($valeur == 'webmaster') ){ unset($roles_forum[$key]); } if ($valeur == 'bbp_blocked') { $roles_forum[$key] = 'bannis'; } if ($valeur == 'bbp_keymaster') { $roles_forum[$key] = 'Administrateur'; } if ($valeur == 'bbp_moderator') { $roles_forum[$key] = 'modérateur'; } if ($valeur == 'bp_participant') { $roles_forum[$key] = 'utilisateur'; } if ($valeur == 'bbp_spectator') { $roles_forum[$key] = 'spectateur'; } } ?> <p class="bbp-user-forum-role"><?php echo 'Roles sur le site: ' . implode(', ', $roles_site) . "\n";?></p> <p class="bbp-user-forum-role"><?php echo 'Roles sur le Forum: ' . implode(', ', $roles_forum) . "\n";?></p>August 7, 2015 at 12:03 pm #165159In reply to: link admin bar change
cocolabombe0
ParticipantI found better. How to tell the function that the visitor and the user can not see the site-name.
/** * Add the "Site Name" menu. * * @since 3.3.0 * * @param WP_Admin_Bar $wp_admin_bar */ function wp_admin_bar_site_menu( $wp_admin_bar ) { // Don't show for logged out users. if ( ! is_user_logged_in() ) return; // Show only when the user is a member of this site, or they're a super admin. if ( ! is_user_member_of_blog() && ! is_super_admin() ) return;In the code, “simply remove the code ! is_user_member_of_blog() &&” but how to write a function.
f ( ! is_super_admin() ) return;August 7, 2015 at 11:23 am #165157In reply to: link admin bar change
cocolabombe0
Participantnow I have other worries.
I want to change the display of links for users and not for admins.
But I did not find what id done that?
On the site title (just left of the toolbar), what is the code that I redo a function?August 7, 2015 at 9:12 am #165149In reply to: link admin bar change
cocolabombe0
ParticipantProblèm ok
function edit_url_profil_bar_admin( $wp_admin_bar ) { global $current_user; $wp_admin_bar->add_node( array( 'id' => 'my-account', 'href' => ('/forums/membre/'. $current_user->user_login), ) ); $wp_admin_bar->add_node( array( 'id' => 'user-info', 'href' => ('/forums/membre/'. $current_user->user_login), ) ); $wp_admin_bar->add_node( array( 'id' => 'edit-profile', 'href' => ('/forums/membre/'. $current_user->user_login .'/edit/'), ) ); } add_filter( 'admin_bar_menu', 'edit_url_profil_bar_admin' );with this code, I have exactly what I wanted.
I helped myself this http://www.geekpress.fr/wordpress/tutoriel/modifier-howdy-admin-bar-1102/ code to make the change. In addition, I took a piece of their code as I removed the greeting. I just put the code to change the links.August 7, 2015 at 1:37 am #165129In reply to: Importing from WBB4
sammmmy
ParticipantIn the
poststable, subject is a seperately post title and totally unnecessary…
In thepoststable, message is the reply content.
In thethreadstable, topic Is this is the thread title.That’s a little messed up…
August 6, 2015 at 4:59 pm #165123In reply to: Hook into bbPress teeny MCE?
Robkk
ModeratorYeah I think this is the filter.
apply_filters( 'bbp_get_teeny_mce_buttons', $buttons );Any javascript you would need for the buttons you may need to copy
editor.jsin your child theme in a folder called js so that your code is enqueued.August 6, 2015 at 4:41 pm #165121In reply to: List subscribers of a forum
Robkk
ModeratorAnd the answer was … ?
How, as a wordpress admin, can I find a list of all the users that subscribed to new topics in a forum ? Any specific page ? Or even a SQL statement to the DB ?
Every user has a list of their subscriptions in their profile. You can show the user that if they want to unsubscribe, or you can switch to them and do it yourself.
I had thoughts that listing users subscribed to a forum in a widget or an alternative, may be resource intensive.
In phpMyAdmin, in the usermeta table normally called wp_usermeta with the meta-key wp__bbp_subscriptions.
if a user has an ID of 3, and was subscribed to topics 10, 12 and 15, and forums 1, 3 and 6, you would see
user_id 3 meta_key wp__bbp_subscriptions meta_value 1,3,6,10,12,15August 6, 2015 at 3:49 pm #165117Topic: Add new login widget via functions.php
in forum TroubleshootingJld142
ParticipantHello,
I am trying to create my own login widget. The reason for this is that i want to add more links and features that just the standard login picture and logout URL.
I have a child theme and am trying to add a new widget in the functions.php file.
Can anyone assist me with this ? What code do i need to add to get a new widget up and running ?August 6, 2015 at 3:36 pm #165114In reply to: Search redirects to home page…
Robkk
ModeratorIdk why that would cause an issue in your theme. Try out just “s” and see if that causes an issue still.
You can also try some troubleshooting to see if it just your theme causing the issue.
August 6, 2015 at 2:54 pm #165111In reply to: ERR_TOO_MANY_REDIRECTS
Robkk
ModeratorDo some troubleshooting. See if it could be a plugin/theme issue or that a redirect function was set up incorrectly.
August 6, 2015 at 2:21 pm #165105In reply to: how to disable Author information for users
Robkk
ModeratorIF you are talking about this kind of profile information.
Forum Role: Participant Topics Started: 4 Replies Created: 11you can edit/remove it by copying the template
user-profile.phpAugust 6, 2015 at 2:09 pm #165101In reply to: Change role title
Robkk
ModeratorIt is listed how to do it here.
August 6, 2015 at 1:56 pm #165100In reply to: Replies not displayed
Robkk
ModeratorTry some troubleshooting, see if this only happens in a certain theme that you may have placed code snippets, cache needs to be cleared, or that a plugin is causing an issue.
August 6, 2015 at 10:21 am #165096Topic: Change role title
in forum TroubleshootingRinuko
ParticipantHello
I’m using latest version of WP and BBPress.
I’m looking for a away to change my role titles in BBPress but can’t find anything.
I’ve looked here and google’d but all end to plugins thats not available anymore or edit code but those lines don’t seem to exsist in present version (unless i missed something).August 6, 2015 at 8:30 am #165094In reply to: link admin bar change
cocolabombe0
ParticipantIt is these values but I tried to create a function to replace values but I do not know it at all.
I try to put code in my function.php not affect my wordpress (update)August 6, 2015 at 4:29 am #165093In reply to: SMF Import to bbPress
Stephen Edgar
Keymaster@donchulio Thanks, strange the collation isn’t there, but anyway, I’ll create an SMF test site using
latin1and see what results I get 🙂August 6, 2015 at 3:53 am #165088In reply to: bbp-header background doesn't change
Robkk
ModeratorSorry for the super duper late reply, your post was marked as spam and had to be approved by a moderator.
You can run PHP in CSS unless you put your styles in a PHP function and added the code to the header using the wp_head hook.
https://codex.wordpress.org/Plugin_API/Action_Reference/wp_head
-
AuthorSearch Results