Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'theme'

Viewing 25 results - 4,201 through 4,225 (of 31,071 total)
  • Author
    Search Results
  • #257166
    buddycore
    Participant

    I’m sorry, groups_is_user_admin() is the wrong function, you need something more like this current_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.

    buddycore
    Participant

    I 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.

    #257136

    In reply to: Groups creation

    sharmavishal
    Participant

    Try with 2016 wp theme should work fine

    #257135

    In reply to: Remove some tabs

    sharmavishal
    Participant

    The crappy stuff is not bp related it is kleo theme related you need to ask them

    #257113

    In reply to: Login Redirect

    Earl_D
    Participant

    Don’t know if it will work with your theme but you may want to look at the code snippets here

    Login redirects not working

    #257107
    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);

    #257105

    In reply to: Login Redirect

    coffeywebdev
    Participant

    You 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

    #257104

    In reply to: Login Redirect

    sharmavishal
    Participant

    you need to check with lifterlms on this…as its a custom theme

    #257102
    mgenjoker
    Participant

    I 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’ );

    }
    ?>

    #257099
    Marcos Nobre
    Participant

    Hi, 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/“

    Henry Wright
    Moderator

    The 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.

    #257086
    thilina82
    Participant

    Oops 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“.

    Henry Wright
    Moderator

    Can 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.

    buddycore
    Participant

    I 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,

    #257073
    Earl_D
    Participant
    #257072
    madmarc
    Participant

    I 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 ?

    #257068
    Henry Wright
    Moderator

    Try 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.

    #257065
    sharmavishal
    Participant

    Get a bp supported theme!!!

    #257064
    Earl_D
    Participant

    I am no expert but have you tried copying the BP legacy theme files to your theme/child theme directory?

    #257050
    things15
    Participant

    Thanks 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; ?>
    #257028

    In reply to: Public posts

    NicolasGruwe
    Participant

    No 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

    sharmavishal
    Participant

    you need to ask this at wooffice theme support

    #257016
    magicvish
    Participant

    Hey @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

    #257007

    In reply to: Public posts

    buddycore
    Participant

    Sounds 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().

    #256981
    sharmavishal
    Participant

    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>

Viewing 25 results - 4,201 through 4,225 (of 31,071 total)
Skip to toolbar