Forum Replies Created

Viewing 40 posts - 1 through 40 (of 93 total)
  • Author
  • in reply to: Custom Page Templates #19558
     frien337
    Participant

    I found it!!!! Well, I found out how it works. The template a page uses is different than the members page, profile page etc. A quick fix was to add my custom sidebar to the part parts called ‘before’ and ‘after’

    in reply to: Hide Members Without Avatars #16233
     frien337
    Participant

    Thanks Abe, it works wonderfully 🙂 One good feature to have (for the future) would be to allow a user to choose to show all profiles regardless of there being a photo or not – it could be good for people who want to see more members in the members list area.

    in reply to: Hide Members Without Avatars #12996
     frien337
    Participant

    Np’s Abe, by when do you guys reckon you’ll have it tested?

    in reply to: Hide Members Without Avatars #12656
     frien337
    Participant

    Thanks Abe. As Home Simpsonm says: “Doh!!!”. It works fine now but there is an issue with the activity wall. As gcarlos8377 mentioned, it stops it from showing any updates.

    Does anyone know anything about this?

    Thanks

    in reply to: Hide Members Without Avatars #12536
     frien337
    Participant

    I just tried this too and it breaks my site 🙁

    in reply to: Plugins used by other members #10541
     frien337
    Participant

    hmm… I should get Skype first 😉 Sounds good though, I’ll definitely be up for starting a pool – I’d love to have a “Who Viewed Me” widget that I can put on any page.

    in reply to: Plugins used by other members #10527
     frien337
    Participant

    I’d also like these details… wonder if CSME will post them.. 🙂

    in reply to: Sweetdate WP Showcase #10352
     frien337
    Participant

    Hi macdaddy88, glad you liked it 🙂

    The first thing I did was remove the sidebar from the page. To do this, go and edit the page you created and set the “Template” option (right-hand side of screen) to “Full-width Page Template, No Sidebar”.
    Once I removed, just use some HTML to create a new layout for your page. I have two columns, one smaller one on the left (contains the user options, quick-links, etc.) and a main column that contains all of the other stuff (newest members, latest forum posts, etc.).


    <div id="col1">
    ** smaller left column **
    </div>

    <div id="col2">
    ** main column to the right**
    </div>

    Just use some CSS to set the width of each column. All the modules (newest members, latest discussions, etc.) have been called in using a plugin called “amr shortcode any widget“. It allows you to call in plugins from your widgets screen using a shortcode.

    You will notice that there are some dynamic links on my home page (edit profile, change photo, etc.). Each of these links contain the logged in user’s name; for example, the edit profile link “www.yoursite.com/members/USERNAME/profile/edit”. I was not able to add php directly to a page so I used a plugin called “Allow PHP in Posts and Pages“. You simply add the PHP to the plugin and it creates a shortcode that you can add to your page. I added the following PHP to the plugin to get the logged in user’s name:


    global $current_user;
    if ( isset($current_user) ) {
    echo $current_user->user_login;
    }

    It gave me the shortcode “[php function=1]” to use wherever I want to call in the user’s name. So, to add it to the URL I simply did this:

    http://www.youriste.come/members/%5Bphp function=1]/profile/edit

    That’s it’s basically. The layout, style design, etc. depends on you and I hope that this post helps you get that done. Let me know if you get stuck anyway 🙂

    in reply to: Total Member Number Mismatch #10351
     frien337
    Participant

    Hi Abe,

    This is working now, and there was no need to use your function in my child theme’s functions.php file 🙂 I was being some what of an idiot and I only replaced one of the bp_get_total_member_count() functions with bp_core_get_total_member_count() and not all three that are on the bp-functions.php file.

    Thanks again for all of your help
    Ryan

    in reply to: Xprofile Fields Plugin Compatability with Sweet date #10137
     frien337
    Participant

    Hi Abe,

    I found a new problem with this plugin, unfortunately it doesn’t allow users to edit their profile. The user can access the edit profile page, can save his changes, but then they don’t appear when his profiled is viewed.
    Do you have more ideas on what to do? Or even how to get the standard birthday field to show the user’s age instead of the full birthdate (like the members directory does).

    Thanks,
    Ryan

    in reply to: Profile Edit Problems #10136
     frien337
    Participant

    Thanks Andrew,

    Your method helped me find what was causing the problem; the extended profile fields plugin. Abe already helped make this plugin compatible with your theme (good for the birthdate field) however, one part that doesn’t work is editing a profile. If a user has uses the extended xprofile plugin for birthdates, then it stops them from editing there profile. I will get back to Abe to see what he can do – this topic is located at: https://archived.seventhqueen.com/forums/topic/xprofile-fields-plugin-compatability-with-sweet-date

    Thanks,
    Ryan

    in reply to: Profile Edit Problems #10062
     frien337
    Participant

    Hi Andrew,

    Thanks for getting back to me.

    It works perfectly on a new install and the problem only happens when I point the new install to my existing database – this leads me to believe that there is something wrong with my database. Also, no cache is enabled.

    This is obviously not a theme problem so I won’t harass you any further. however, if anyone has any suggestions then let me know.

    Best regards,
    Ryan

    in reply to: Total Member Number Mismatch #10055
     frien337
    Participant

    Thanks Abe! I gave it a shot and it didn’t change, unfortunately :(. Any other ideas?

    in reply to: User Count and Deleted Members #9986
     frien337
    Participant

    Ignore this. I am using WordPress Multisite and I forgot that I had to also delete the user from Network Admin 🙂

    in reply to: Total Member Number Mismatch #9982
     frien337
    Participant

    Hi Support,

    I did some more investigations and I found the issue – just need you to advise on how I can fix it 😉

    So, the total men/women signed up show those who have activated their account through the email they get sent when they first register.
    The Total Members number only shows those that have activated their account AND logged into the site.

    What are you ideas about this?

    in reply to: Change Avatar Button Profile Page #9981
     frien337
    Participant

    Thanks Abe – yeah, that makes much more sense 😉

    in reply to: Edit 404 page #9945
     frien337
    Participant

    Thanks Abe, I too was looking in the wrong place 😉 what is the use of the 404 page template in our template’s folder?

    Thanks,
    Ryan

    in reply to: Edit 404 page #9883
     frien337
    Participant

    I also have this same problem. Support, how do we edit our 404 pages? 🙂

    in reply to: Change Avatar Button Profile Page #9859
     frien337
    Participant

    Thanks Abe,

    I didn’t see the point of installing a new plugin to only change one line of text. So, if anyone wants to do the same, I found a way – however, it involves changing the core files. The file is called bp-xprofile-loader.php and can be found under this path:

    Http;//www.yoursite.com/wp-content/plugins/buddypress/bp-xprofile

    Around line 204 and 259 you will find the text “Change Avatar”, I simply replaced both with “Change Profile Photo”.

    in reply to: Sweetdate WP Showcase #9807
     frien337
    Participant

    Hi CSME, glad you liked it – there’s a tidied up version coming out in the next few days. 🙂

    Sure, I can share this with you. I just used a bit of CSS to re-arrange the way in which the member blocks are showing. Here’s all the CSS that I have used on that page:


    #search-bar {background:transparent;}
    .directory .header-bg {height:15.5em;}
    .directory #main-content {margin:-4.7em auto 0;}
    #horizontal_search .current {background:#fff;border:1px solid #D4D4D4;border-radius:0.2em;box-shadow:0 1px 4px rgba(0, 0, 0, 0.13) inset;}
    #horizontal_search .selector {border:none;}
    .directory .two .button {float:none;}
    .directory .item-list-tabs,.bp-member-dir-buttons .icon-angle-right,.directory .search-body {display:none;}
    .directory .member-block {background:#F2F2F2;border:1px solid #E6E6E6;border-radius:0.2em;float:left;height:9.5em;margin:0.7em;padding:1em;text-align:left;width:31.3%;}
    .directory .avatar {float:left;}
    .directory #member-meta {float:left;padding:0 0 0 1em;width:64%;}
    .directory #member-meta h5 {float:left;margin:0 0 0.4em;width:100%;}
    .directory #member-meta h5 a {color:#EF6A8A !important;font-weight:bold;}
    .directory .bp-member-dir-buttons {float:left;margin:1.6em 0 0 1em;width:62%;}
    .directory .block-button,.directory .button,.directory .send-message {float:left;}
    .bp-member-dir-buttons div.generic-button a,.bp-member-dir-buttons .button {background:#49AAD0;border:1px solid #49AAD0;border-radius:4px;color:#fff !important;font-size:11px;font-weight:bold; line-height:1em;margin:0 0.4em 0 0;padding:0.5em 0.9em;width:auto;}
    .bp-member-dir-buttons div.generic-button a:hover,.bp-member-dir-buttons .button:hover {background:#ccc;border:1px solid #ccc;}
    .directory .online,.directory .offline {border:0.2em solid #fff !important;height:1em !important;width:1em !important;left:0.3em;position:relative !important;top:-7.2em !important;}
    .directory .offline {background:#FF7F00 !important;}
    .directory #search-bar {margin:0 auto;width:70em;}
    .directory #search-bar .two {width:20%;}

    There’s probably some redundant CSS there that needs to be cleaned up and you may need to tweak it to match your colour shceme. Anyway, if you past that in your childtheme’s style.css file then you should get something similar to mine.

    I also removed the “Add Friend” button by adding this code to my child theme’s function.php file:


    /* REMOVE FRIENDSHIP BUTTONS FROM MEMEBERS PAGE */
    function remove_friendship_button() {
    remove_filter( 'bp_directory_members_item_last','kleo_bp_member_dir_friend_button', 11);
    }
    add_action( 'bp_directory_members_item_last', 'remove_friendship_button' );

    The “Block” button came by default after installing the BuddyBlock plugin (http://www.philopress.com/products/buddyblock/). Let me know if you get stuck and I’ll try to help out 🙂

    in reply to: Match Percentage #9769
     frien337
    Participant

    I could be wrong, but I don’t think you can add the bp-functions.php file to a child theme. Instead, you should add the changes to your functions.php file in your child theme. I wanted to add the percentage sign next to the number in the match and this is what I added to my functions.php file in the child theme:


    /* PROFILE PAGE MATCH FEATURE - ADD PERCENTAGE */
    function kleo_bp_compatibility_match()
    {
    global $bp;
    if ( is_user_logged_in() && !bp_is_my_profile() ):
    echo '<div class="circular-item" title="'.__("Compatibility match", 'kleo_framework').'">';
    echo '<small class="icon strong">Match</small>';
    echo '<span class="greenCircle">' . compatibility_score($bp->loggedin_user->id,bp_displayed_user_id()) . '%</span>';
    echo '<span class="hearts"></span>';
    echo '</div>';
    endif;
    }

    I had to edit the css to re-align the number in the match circle. Add this to your style.css file in your child theme:


    .greenCircle {
    margin-top:27px !important;
    }

    There is probably a better way to do this, however, I had to settle on doing it this way because I am not good with PHP.

    in reply to: BP-Album Upload Code #9716
     frien337
    Participant

    Thanks Abe,

    That worked perfectly 🙂

    in reply to: BP-Album Upload Code #9714
     frien337
    Participant

    Hi Abe,

    I did some more testing and I found that it does work for me if I edit a picture, however, the options still show when I want to upload a new picture (see url “members/admin/album/upload/”). which bit of code handles the uploading of a photo?

    Thanks,
    Ryan

    in reply to: Match Percentage #9713
     frien337
    Participant

    Thanks Abe! 🙂

    in reply to: Total Men and Women Numbers #9665
     frien337
    Participant

    obviously copy and paste the code with out the < code> and < /code> tags 🙂

    in reply to: Total Men and Women Numbers #9664
     frien337
    Participant

    Thanks Abe. I wanted to still have the same icons that show for the member stats on the welcome page (Members in total, Men online, etc.).

    I figured out a way how to do this but it may be a bit of a dirty workaround as it involves editing one of the core files, so let me know if there is a better way. If anyone wants to know, the way I got Total Men and Total Woman (signed up, not online) to show in the Welcome page’s icons is by doing this:

    1:Open the bp-functions.php file (ftp://yoursite.com/wp-content/themes/sweetdate/custom_buddypress/bp-functions.php) and find this bit of code:

    COPY CODE
    
    if (!function_exists('kleo_member_stats')) {
        function kleo_member_stats( $atts, $content = null ) {
    		extract(shortcode_atts(array(
    			'field' => '',
    			'value' => ''
    	    ), $atts));
            
            return bp_member_statistics($field, $value);
        }
        add_shortcode('kleo_member_stats', 'kleo_member_stats');
    }
    

    Cut it out of the document and past it above this bit of code:

    COPY CODE
    
    if (!function_exists('kleo_status_icon')) {
    	function kleo_status_icon( $atts, $content = null ) {
    
    		extract(shortcode_atts(array(
    			'type' => 'total',
    			'image' => '',
    			'subtitle' => '',
    			'class' => ''
    	    ), $atts));
    
    		switch ($type) {
    

    Scroll down and find this bit of code:

    COPY CODE
    
    			case 'women_online':
    				$image = ($image == '')? get_template_directory_uri().'/assets/images/icons/steps/status_03.png' : $image;
    				$number = bp_get_online_users("Woman");
    

    And replace it with:

    COPY CODE
    
    			case 'women_online':
    				$image = ($image == '')? get_template_directory_uri().'/assets/images/icons/steps/status_03.png' : $image;
    				$number = do_shortcode('[kleo_member_stats field="I am a" value="Woman"]');
    				$subtitle = 'Total Women';
    

    The field must match your user profile fields. So, for the bit of text above ” field=”I am a” value=”Woman” “, the “field” refers to the name of your sex field (e.g.: “I am a” or “sex”) and the “value” refers to the value of your sex field (e.g.: male or female). The $subtitle = ‘Total Women’; is the label of the statistic on the welcome page with ‘Total Women’ being the text that is displayed.

    We need to do the same for the total of men that have signed up. Find this bit of code:

    COPY CODE
    
    			case 'men_online':
    				$image = ($image == '')? get_template_directory_uri().'/assets/images/icons/steps/status_04.png' : $image;
    				$number = bp_get_online_users("Man");
    

    And replace it with:

    COPY CODE
    
    			case 'men_online':
    				$image = ($image == '')? get_template_directory_uri().'/assets/images/icons/steps/status_04.png' : $image;
    				$number = do_shortcode('[kleo_member_stats field="I am a" value="Man"]');
    				$subtitle = 'Total Men';
    

    Save the file and refresh your home page and you will now see those icon stats showing total members, total men, total women, and total members online.

    in reply to: Sweetdate WP Showcase #9649
     frien337
    Participant

    Hi djtreble12,

    I’m keeping track of my members by watching the “Members in total” icon on the welcome screen. The moment it reaches 1000 (give or take) I will switch it over to a payment model. As for the bot problem, the solution that has worked for me is to use the following two plugins:

    http://www.pixeljar.net/2012/09/19/eliminate-buddypress-spam-registrations/
    http://bungeshea.com/plugins/bp-security-check/

    I’ve used them for the last few weeks and I haven’t even had one bot sign-up yet 🙂

    in reply to: Sweetdate WP Showcase #9646
     frien337
    Participant

    @nusolutions – forgot to mention that I like your site; especially what you did with the icons that shows the total members, number of woman, men online 🙂 One thing, would you not consider hiding the admin toolbar for standard users? For me, not having this, gives the site a better and cleaner feel.
    (see “WordPress > Sweetdate > Miscellaneous > Admin Toolbar” to disable)

    in reply to: Sweetdate WP Showcase #9645
     frien337
    Participant

    Thanks nusolutions.

    Hope you get it working too 🙂

    I think 1000 members is a good number before I start to charge people. Reason being is that I couldn’t imagine anyone subscribing to my site if I only had very few members.

    I’ve never used the BuddyPress Login Redirect plugin before, but when I look at the plugin’s details it sounds as if it only allows you to redirect a user to a choice of four pages (profile, activity, etc.) whereas the plugin I use, Peter’s Login Redirect, actually allows you to paste in the URL of the page you want to direct a user to – so basically any page on your site 🙂

    Here’s an example of my home page:
    https://www.dropbox.com/s/migrzhteg95tpox/screenshot-homepage.PNG
    I am still working on adding a few more things so excuse the blank areas 🙂 That page was s standard page in WordPress (with no sidebar) and I simply added in some widgets. To add the widgets, I used a plugin called “AMR Shortcode Any Widget” (http://webdesign.anmari.com/1649/shortcode-any-widget/) – it basically allows you to call in any widget with a shortcode.

    in reply to: Name Field on Register Form #9643
     frien337
    Participant

    Thanks Abe, however, I don’t think that is the problem because I still get the same result when using your code.

    Is there any other ideas that you may have?

    Thanks,
    Ryan

    in reply to: Private Messages #9642
     frien337
    Participant

    You’re welcome Mikemus. 🙂

    in reply to: BP-Album Upload Code #9608
     frien337
    Participant

    HI Abe,

    I tried to edit that file but i don’t see any changes taking place on the front-end. For example, I removed the ability to set the privacy by deleting this code:


    <p>
    <label><?php _e('Visibility','bp-album') ?></label>

    <?php foreach($priv_str as $k => $str){
    if($limit_info[$k]['enabled']) { ?>

    <label><input type="radio" name="privacy" value="<?php echo $k ?>" <?php
    if($limit_info[$k]['current']) echo 'checked="checked" ';
    if (!$limit_info[$k]['current'] && !$limit_info[$k]['remaining'])
    echo 'disabled="disabled" />'.$str.' '.__( '(limit reached)', 'bp-album' );
    else
    echo '/> '.$str;
    ?></label>

    <?php }} ?>
    </p>

    However, the options still show on my page. All caches are disabled/cleared, etc.

    Thanks,
    Ryan

    in reply to: Private Messages #9563
     frien337
    Participant

    I have done this on my site by using a bit of a workaround. I don’t know how to do it from Paid Membership Pro (cant use because of conflicts) but with the Memberships plugin (https://premium.wpmudev.org/project/membership/) you can create URL groups that only certain membership levels can access.
    With this in mind, I simply set the plugin to block the compose message url for all standard members. This allowed my standard members to view any message they received, but the moment they clicked on reply, the Membership plugin blocked them from accessing the compose message url and sent them to another page where they can sign up. It only blocked it for standard members, so my premium members are still able to message anyone – regardless of the level that the recipient is on.

    For anyone who uses the same membership plugin as I, you will need to use some regex in the url to get it working. If you look at the compose message url that you want to block:

    e.g.: http://www.yoursite.com/members/USERNAME/messages/compose/

    You will notice that the user’s username is in the url. If you block the url as is, then you will only block sending messages to that user whose user name is in the url. In order to block it for all users you need to replace USERNAME with some regex like so:

    http://www.yoursite.com/members/(.*)/messages/compose/

    Doing this will ensure that a standard member cannot send a message to any other users. As I said before, I wasn’t able to use Paid Memberships Pro, but maybe someone at SweetDate can tell you how to do this.

    in reply to: 2.3.1 Issues #9562
     frien337
    Participant

    I got the redirects on my site working with a plugin:

    http://wordpress.org/plugins/peters-login-redirect/

     frien337
    Participant

    I had the same issue and I have actually disabled them on the members page and only left the button to show on the profile page. To do so add this to your functions.php file in your child theme directory:


    function remove_friendship_button() {
    remove_filter( 'bp_directory_members_item_last','kleo_bp_member_dir_friend_button', 11);
    }
    add_action( 'bp_directory_members_item_last', 'remove_friendship_button' );

    in reply to: Name Field on Register Form #9560
     frien337
    Participant

    Just realised my 2nd reply messed up when I pasted the code into this forum; it should have liked this:


    <script>
    var url = document.location.href;
    jQuery(document).ready(function() {
    //copy profile name to account name during registration
    if (url.indexOf("register/") >= 0) {
    jQuery('label[for=field_1],#field_1, #field-visibility-settings-toggle-1').css('display','none');
    jQuery('#signup_username').blur(function(){
    jQuery("#field_1").val(jQuery("#signup_username").val());
    });
    }
    });
    </script>

    in reply to: Name Field on Register Form #9558
     frien337
    Participant

    Hi Abe,

    It doesn’t seem to be working 100% correctly. That bit of code has hidden the full name field just fine but when I try to register I still get a message saying “This is a required field” where the name field is hidden. any more ideas? 🙂

    If you need to see my registration page you can do so at:
    http://www.friendsireland.com/niam/
    This is the default page without the code you have provided me with.

    Thanks,
    Ryan

    in reply to: Plugins used by other members #9556
     frien337
    Participant

    Hi Adam,

    Any ideas on how I can get the Recent Profile Visitors (http://buddydev.com/buddypress/buddypress-recent-profile-visitors-plugin/) plugin to show on another page other than the profile page?

    I would love to have this on my home page so that my users can see who has viewed them, like most dating sites have on theirs today 🙂

    Thanks,
    Ryan

    in reply to: Plugins used by other members #9555
     frien337
    Participant

    Hello everyone,

    Two great plugins that have stopped bots from signing up on my website are:

    http://www.pixeljar.net/2012/09/19/eliminate-buddypress-spam-registrations/
    http://bungeshea.com/plugins/bp-security-check/

    Those two plugins, with email verification, have worked wonders. I havent seen one bot sign up for almost 3 weeks now 🙂

    in reply to: Sweetdate WP Showcase #9554
     frien337
    Participant

    The Members Home Page I was talking about is the “Home” page a user sees when he logs into my site. It basically just shows stuff like the newest members, latest forum pasts, as well as some important links like editing a profile, changing an avatar, account settings etc.
    Create an account an my site and you will see what I mean.

    To create this page, simply create a new page in WordPress (“Pages > Add New”) with the content you want on the site’s home/member page. Once saved, you will need to get a plugin that re-directs the user to this page instead of the default profile page. The plugin I used for this is Peter’s Login Redirect (http://wordpress.org/plugins/peters-login-redirect/). Once installed, you simply paste the link that you want the user to be re-directed to you in the plugin’s settings (“Settings > Login/login Redirects”). It also also useful because you can create a good bye page too and redirect the user to this page when he logs out. When you’re on the plugin’s settings page you will see that you have many options for redirects based on specific roles, users, etc. I just added in my redirect URLs to the option called “All other users”.

    One thing I noticed when using this plugin is that if you try to log in to your admin panel/dashboard, it will redirect you to the page you want all users re-directed to. This is not a problem and once re-directed/logged in, type the admin dashboard URL (www.yoursite.com/wp-admin) into the same browser.

    All the best with your site 🙂

Viewing 40 posts - 1 through 40 (of 93 total)

Log in with your credentials

Forgot your details?