Forum Replies Created

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
  • in reply to: Profile image tabs revisit #40877
     nusolutions
    Participant

    Nope! Keeping it simple and only using About, Favorites, Photos. I’ve attached a screenshot of my profile fields and pasted code from child functions page below. Please tell me what specifically needs to be changed as I still can’t get this to work.

    COPY CODE
    <?php
    /**
     * @package WordPress
     * @subpackage Sweetdate
     * @author SeventhQueen <themesupport@seventhqueen.com>
     * @since Sweetdate 1.0
     */
    
    /**
     * Sweetdate Child Theme Functions
     * Add extra code or replace existing functions
    */ 
    
    //Profile tabs
     
    add_action('after_setup_theme','kleo_my_custom_tabs');
    function kleo_my_custom_tabs() 
    {
        global $bp_tabs;
        $bp_tabs = array();
    
        $bp_tabs['About'] = array(
                'type' => 'regular',
                'name' => __('About', 'kleo_framework'),
                'group' => 'About',
                'class' => 'regulartab'
        );
    
        $bp_tabs['Favorites'] = array(
                'type' => 'cite',
                'name' => __('Favorites', 'kleo_framework'),
                'group' => 'Favorites',
                'class' => 'citetab'
        );
    
                
        /* rtMedia tab - only if plugin installed */
        if (class_exists('RTMedia')) 
        {
            $bp_tabs['rtmedia'] = array(
                    'type' => 'rt_media',
                    'name' => __('Photos', 'kleo_framework'),
                    'class' => 'mySlider'
            );
        }
     
        /* Bp-Album tab - only if plugin installed */
        elseif (function_exists('bpa_init')) {
            $bp_tabs['bp-album'] = array(
                    'type' => 'bp_album',
                    'name' => __('My photos', 'kleo_framework'),
                    'class' => 'mySlider'
            );
        }    
        
    }
    
    ?>

    tia

    in reply to: Adding extra tabs _ stuck (sos)! #19661
     nusolutions
    Participant

    Sooo I went and created some additional profile groups each with their own set of questions:

    About
    Biker Profile
    Features
    Photos
    Seeking

    So instead of listing all of these I only want to display one additional tab: My photos. So here’s what I ended up with which works exactly as I want it:

    COPY CODE
    /**
     * Sweetdate Child Theme Functions
     * Add extra code or replace existing functions
    */ 
    
    //my changes to profile tabs 
    
    add_action('after_setup_theme','kleo_my_custom_tabs');
    function kleo_my_custom_tabs()
    {
        global $bp_tabs;
        $bp_tabs = array();
    
     
        $bp_tabs['base'] = array(
                'type' => 'regular',
                'name' => "About",
                'group' => 'Base',
                'class' => 'regulartab'
        );
     
        /* rtMedia tab - only if plugin installed */
        if (class_exists('RTMedia'))
        {
            $bp_tabs['rtmedia'] = array(
                    'type' => 'rt_media',
                    'name' => __('My photos', 'kleo_framework'),
                    'class' => 'mySlider'
            );
        }
     
        /* Bp-Album tab - only if plugin installed */
        elseif (function_exists('bpa_init')) {
            $bp_tabs['bp-album'] = array(
                    'type' => 'bp_album',
                    'name' => __('My photos', 'kleo_framework'),
                    'class' => 'mySlider'
            );
        }
    
    }
    
    ?>

    Again, awesome support!

    in reply to: A Splash or Landing page Only! #19659
     nusolutions
    Participant

    Line 20 for me shows <head> and line 116 shows logo as so:

    COPY CODE
    <!-- Logo -->
    				<div class="four columns">
    					<h1 id="logo"><?php bloginfo('name'); ?>
    						<img id="logo_img" src="<?php echo sq_option('logo',get_template_directory_uri().'/assets/images/logo.png'); ?>" width="294" height="108" alt="<?php bloginfo('name'); ?>"></a>
    					</h1>
    				</div>
    				<!--end logo-->

    And end up with the following:

    COPY CODE
    <!-- Logo -->
    				<div class="four columns">
    					<h1 id="logo"><?php
    if ( is_user_logged_in() ) {
    ?>
    <a href="http://singleryders.com/welcome/"><img id="logo_img" src="<?php echo sq_option('logo',get_template_directory_uri().'/assets/images/logo.png'); ?>" width="294" height="108" alt="<?php bloginfo('name'); ?>"></a>
    <?php
    } else {
    ?>
    <a href="<?php echo get_home_url(); ?>"><img id="logo_img" src="<?php echo sq_option('logo',get_template_directory_uri().'/assets/images/logo.png'); ?>" width="294" height="108" alt="<?php bloginfo('name'); ?>"></a>
    <?php
    };
    ?></a>
    					</h1>
    				</div>
    				<!--end logo-->

    BAM!
    BAM!
    BAM! BAM! BAM!

    It works!!!
    Awesome! Awesome Indeed!

    in reply to: A Splash or Landing page Only! #19413
     nusolutions
    Participant

    So I’m looking at this code:

    COPY CODE
    <!-- Logo -->
    				<div class="four columns">
    					<h1 id="logo"><?php bloginfo('name'); ?>
    						<img id="logo_img" src="<?php echo sq_option('logo',get_template_directory_uri().'/assets/images/logo.png'); ?>" width="294" height="108" alt="<?php bloginfo('name'); ?>"></a>
    					</h1>
    				</div>
    				<!--end logo-->

    I don’t see where to add this as I’m talking about the site logo and having it point to the correct page. So if clicked while logged in it points to the welcome page, which has a different layout, http://mysite.com/welcome. If not logged in when clicked the logo points to the Home page. The way I have it right now the image isn’t linked or clickable.

    thanks

    in reply to: Adding extra tabs _ stuck (sos)! #19409
     nusolutions
    Participant

    In addition I create the following Field Groups
    Base
    Looking for
    About me
    My photos
    Social

    I have RTMedia installed and activated. Nothing.

    I try the other suggestion:
    1. Delete all profile fields/tabs except Base.
    2. Create new Test & More profile fields.
    3. Add this code to sweetdate-child/functions.php

    COPY CODE
    <?php
    /**
     * @package WordPress
     * @subpackage Sweetdate
     * @author SeventhQueen <themesupport@seventhqueen.com>
     * @since Sweetdate 1.0
     */
    
    /**
     * Sweetdate Child Theme Functions
     * Add extra code or replace existing functions
    */ 
    
    add_action(‘after_setup_theme’,’kleo_my_actions’);
    
    function kleo_my_actions()
    {
    global $bp_tabs;
    
    $bp_tabs['more'] = array(
    ‘type’ => ‘regular’,
    ‘name’ => __(‘More’, ‘kleo_framework’),
    ‘class’ => ‘regulartab’
    );
    
    $bp_tabs['test'] = array(
    ‘type’ => ‘regular’,
    ‘name’ => __(‘Test’, ‘kleo_framework’),
    ‘class’ => ‘regulartab’
    );
    
    }
    ?>

    4. Add info to fields in each tab.

    When viewing the profile I can see the fields below but nothing changes up top in the member profile area.

    Not getting it!!!!

    in reply to: A Splash or Landing page Only! #19217
     nusolutions
    Participant

    Revisit. Revisit. I see where the ability to enable/disable Breadcrumbs was added so thanks for that! In regards to the logo image I see and locate this inside of header.php:

    COPY CODE
    
    <!-- Logo -->
    				<div class="four columns">
    					<h1 id="logo"><?php bloginfo('name'); ?>
    						<a>"><img />" width="294" height="108" alt="<?php bloginfo('name'); ?>"></a>
    					</h1>
    				</div>
    				<!--end logo-->
    
    In my search I come across this: 
    
    <?php
    if ( is_user_logged_in() ) {
    
    } else {
        <a href="http://yoursite.com">Sign Up</a>
    };
    ?>
    
    What I find is that I can simply remove: 
    
    <a>"> 
    

    and the image is simply not clickable! Done!

    What I’d like to know if it’s possible to have the image to link to a different URL depending on whether the user is logged in or not?

Viewing 6 posts - 1 through 6 (of 6 total)

Log in with your credentials

Forgot your details?