Search Results for 'theme'
-
AuthorSearch Results
-
August 2, 2016 at 7:06 am #257166
buddycore
ParticipantI’m sorry,
groups_is_user_admin()is the wrong function, you need something more like thiscurrent_user_can('editor') || current_user_can('administrator'). That needs to be wrapped in an IF statement.You would put that in
your-theme/buddypress/activity/post-form.php.August 1, 2016 at 9:40 am #257146buddycore
ParticipantI believe this is the default functionality of a BuddyPress powered site.
Your theme may be hijacking this, I’d look in the theme files first for a template.
July 31, 2016 at 4:34 pm #257136In reply to: Groups creation
sharmavishal
ParticipantTry with 2016 wp theme should work fine
July 31, 2016 at 4:33 pm #257135In reply to: Remove some tabs
sharmavishal
ParticipantThe crappy stuff is not bp related it is kleo theme related you need to ask them
July 29, 2016 at 1:43 pm #257113In reply to: Login Redirect
Earl_D
ParticipantDon’t know if it will work with your theme but you may want to look at the code snippets here
July 29, 2016 at 8:05 am #257107In reply to: [Resolved] Warning: reset() error message
LavishDhand
Participant@onyx808 my theme developer says, BP 2.6 is a major update and they will soon update the theme that should fix this error.
As a temporary solution, I have added the following to my child theme’s function.php. Following code will only stop the php warning from being displayed.
ini_set(‘display_errors’, 0);
error_reporting(0);July 29, 2016 at 6:02 am #257105In reply to: Login Redirect
coffeywebdev
ParticipantYou could try using the WordPress API, there is a function called
login_redirect()/** * Redirect user after successful login. * * @param string $redirect_to URL to redirect to. * @param string $request URL the user is coming from. * @param object $user Logged user's data. * @return string */ function my_login_redirect( $redirect_to, $request, $user ) { //is there a user to check? if ( isset( $user->roles ) && is_array( $user->roles ) ) { //check for admins if ( in_array( 'administrator', $user->roles ) ) { // redirect them to the default place return $redirect_to; } else { return home_url(); } } else { return $redirect_to; } } add_filter( 'login_redirect', 'my_login_redirect', 10, 3 );You need to add something like the code above your child theme functions.php file, or you can create a plugin and add this code to it.
https://codex.wordpress.org/Plugin_API/Filter_Reference/login_redirect
July 29, 2016 at 5:57 am #257104In reply to: Login Redirect
sharmavishal
Participantyou need to check with lifterlms on this…as its a custom theme
July 29, 2016 at 3:07 am #257102In reply to: Several bad links. (I’m at a loss)
mgenjoker
ParticipantI found the issue it looks like at some point a bit of code changed from:
<?php
add_action( ‘wp_enqueue_scripts’, ‘theme_enqueue_styles’ );
function my_theme_enqueue_styles() {
wp_enqueue_style( ‘parent-style’, get_template_directory_uri() . ‘/style.css’ );}
?>
to
<?php
add_action( ‘wp_enqueue_scripts’, ‘my_theme_enqueue_styles’ );
function my_theme_enqueue_styles() {
wp_enqueue_style( ‘parent-style’, get_template_directory_uri() . ‘/style.css’ );}
?>July 28, 2016 at 9:49 pm #257099In reply to: [Resolved] Warning: reset() error message
Marcos Nobre
ParticipantHi, this started to happen to me with the latest buddypress update, I have a buddypress folder in my theme with my customizations, so I tried renaming that folder so it won’t be used, however the issue still occurs…
the php error is the following
[error] 10524#0: *41486276 FastCGI sent in stderr: “PHP message: PHP Warning: reset() expects parameter 1 to be array, boolean given in /var/www/website.com/wp-content/plugins/buddypress/bp-core/bp-core-template.php on line 3048” while reading response header from upstream, client: 74.130.56.345, server: website.com, request: “GET /members/meinhardt/media/604/ HTTP/1.1”, upstream: “fastcgi://unix:/var/run/php5-fpm.sock:”, host: “www.website.com”, referrer: “http://www.website.com/activity/“
July 28, 2016 at 2:43 pm #257092Henry Wright
ModeratorThe only thing I haven’t done is strip everything down; deactivate all the plugins and switch to default theme. I could do that, but do I lose configuration I already did to my theme now?
In theory you should be able to switch theme without problems, but unfortunately this isn’t always the case. My advice would be to set up a testing install (a copy of your existing files and database) where you can try out the default theme, deactivate plugins without fear of losing anything etc.
July 28, 2016 at 11:41 am #257086In reply to: Change Registration Confirmation Text
thilina82
ParticipantOops sorry…. I found the error.
I have changed the wrong register.php
Earlier I have changed “/public_html/wp-content/plugins/buddypress/bp-themes/bp-default/registration/register.php”
Changing the text in the following register.php solved the problem
“/public_html/wp-content/plugins/buddypress/bp-templates/bp-legacy/buddypress/members/register.php“.
July 28, 2016 at 9:11 am #257082Henry Wright
ModeratorCan you list the plugins you’re using? The likely cause is either a) a plugin b) your theme or c) some code snippet you have in bp-custom.php.
July 28, 2016 at 2:41 am #257076buddycore
ParticipantI use a shared hosting environment and performance is sluggish at best and I’ve taken a lot of time to develop a theme that is barebones with regard to what WordPress and BuddyPress both give you.
So, you may want to setup in an environment where you can be provisioned for more hardware resources or better hardware.
Like Paul says though, there are many successful sites out there. I’d do your research and speak with the host.
I’m not savvy in this area, only speaking from experience,
July 27, 2016 at 9:20 pm #257073In reply to: How to get buddypress to work with my theme ?
July 27, 2016 at 7:56 pm #257072In reply to: How to get buddypress to work with my theme ?
madmarc
ParticipantI am no expert but have you tried copying the BP legacy theme files to your theme/child theme directory?
No I haven’t. I’m not an expert either. How do I do that ?
July 27, 2016 at 4:29 pm #257068In reply to: How to get buddypress to work with my theme ?
Henry Wright
ModeratorTry asking the theme author to add BuddyPress support. It’s easy for themes to support BuddyPress ever since the template hierarchy went live in BP 1.7.
July 27, 2016 at 3:26 pm #257065In reply to: How to get buddypress to work with my theme ?
sharmavishal
ParticipantGet a bp supported theme!!!
July 27, 2016 at 2:43 pm #257064In reply to: How to get buddypress to work with my theme ?
Earl_D
ParticipantI am no expert but have you tried copying the BP legacy theme files to your theme/child theme directory?
July 27, 2016 at 5:12 am #257050In reply to: Redirect site title when clicked
things15
ParticipantThanks for a quick turn-around. I implemented your solution by creating a new header.php in my child theme containing only the above code & now my site is blank. Do I need to copy the entire code of parent theme’s header.php file to the child’s header.php or do I need to add it as a function as far as I’m aware with functions.php we use filters/actions(no idea how it works though).
Please guide me on where exactly the code will go. Below header.php code for site-title:
<?php if ( is_front_page() || is_home() ) : ?> <h1 id="site-title"> <a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a> </h1> <?php else : ?> <h3 id="site-title"> <a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a> </h3> <?php endif; ?>July 26, 2016 at 8:41 am #257028In reply to: Public posts
NicolasGruwe
ParticipantNo I don’t want to set them private I want them to be public.
I’ll relook in my theme but I didn’t find anything like that
July 26, 2016 at 7:08 am #257026sharmavishal
Participantyou need to ask this at wooffice theme support
July 25, 2016 at 2:26 pm #257016In reply to: How to stop Topic Creation for Groups
magicvish
ParticipantHey @sharmavishal
“forum.php of your theme file in child theme which u are using and remove
<?php post_form(); ?>
also edit, in both forum.php and front-page.php
<th><?php _e(‘Topic’); ?> — <?php bb_new_topic_link(); ?></th>
to become
<th><?php _e(‘Topic’); ?></th>”
it is not forums though
July 25, 2016 at 10:58 am #257007In reply to: Public posts
buddycore
ParticipantSounds like you’re using a theme that’s stopping this or when you publish a post you have it set to private.
It’s more for WordPress forums given posts are a WordPress feature and not a BuddyPress one.
Look at your theme files, index.php and look for anything that looks like it’s making those posts only accessible to logged in users. Something like
is_user_logged_in().July 24, 2016 at 10:37 am #256981In reply to: How to stop Topic Creation for Groups
sharmavishal
Participantforum.php of your theme file in child theme which u are using and remove
<?php post_form(); ?>
also edit, in both forum.php and front-page.php
<th><?php _e(‘Topic’); ?> — <?php bb_new_topic_link(); ?></th>
to become
<th><?php _e(‘Topic’); ?></th>
-
AuthorSearch Results