Forum Replies Created

Viewing 15 replies - 16 through 30 (of 70 total)
  • Sim2K

    (@sim2k)

    When I revert back to the previous build (1.7.15.2), it works fine.

    Sim2K

    (@sim2k)

    I get similar issue after upgrade …

    Fatal error: Cannot redeclare class ReCaptchaResponse in /home/user/website.com/wp-content/plugins/paid-memberships-pro/includes/lib/recaptchalib.php on line 37

    Reverting back to previous plugin build fixes the problem but cant use the latest recapture.

    Create a new plugin or add to functions file ….

    Registration points ….

    function new_user_setup($user_id)
    {
        global $wpdb;
    
        //Set welcome points to be 99 karma points
        $Points_Add_Register = 99;
    
        //user info
        $user = get_userdata($user_id);
    
        //Give the new member 99 points
        update_user_meta($user_id, "jrp__dpa_points", Points_Add_Register);
    
    }
    add_action("user_register", "new_user_setup");

    Login points ….

    function login_points($user_login, $user) {
    
                //20 points a day for logging in.
                $Points_Login = 20;
    
                //Set welcome points to be 99 karma points
                $Points_Add_Register = 99;
    
                //Get logged in user ID
                $user_id2 = get_userdatabylogin($user_login);
                $user_id = $user_id2->ID;
    
                $timeStamp = get_user_meta($user_id, "sim2k_ach_login", true);//When they last logged in.
                $timeStamp2 = date('Ymd');
    
        //see if the date they logged in is today and if they are admin with usr ID 1. If so its a no go!
        if ( $timeStamp != $timeStamp2 && $user_id != 1 ){
    
            $user_point_count = get_user_meta($user_id, "jrp__dpa_points", true);//Get the users points
    
                    // && $user_id != 0 - might not be needed but i got it in anyway
                    if(!$user_point_count && $user_id != 0)
                    {
                        //need to set points to 99 for registering if they have already registerd a while back
                        update_user_meta($user_id, "jrp__dpa_points", $Points_Add_Register);
                        $user_point_count = get_user_meta($user_id, "jrp__dpa_points", true);
                    }
    
            //Update user for logging in
            $user_point_count = $user_point_count + $Points_Login;
            update_user_meta($user_id, "jrp__dpa_points", $user_point_count);
    
            //Update the last time they logged in
            update_user_meta($user_id, "sim2k_ach_login", $timeStamp2);
    
        }
    
    }
    add_action('wp_login', 'login_points', 999, 2);

    Swap “jrp_” for your table prefix. Hope its not wp_ as thats a security issue.

    Just putting the word out there that its possible to give multiple points.

    If anyone is interested, I can share the code for the logging in points and registration points.

    Thanks.

    What plugin do you use to create the group page?

    I have made changes to the code!

    When the user now registers, they now get their own personal page as a child of a page called ‘me’ as before. I have installed a plugin that lists pages belonging to the user on the user front end. It only shows their one page they own. They have an edit button allowing them to change their page content.

    I’ve edited your code so anyone inside or outside the site can view the users page.

    So as a user, I register, get my own page (not a post, which is set to published) , a table showing my page with an edit button allowing me to edit the page and it’s setup so outsiders can view my page that I can edit. I can promote my page to my friends with address http://www.website.com/me/BPusername. My page also appears on a page on the site listing all user pages for the whole site.

    Ok. I thought the plugin gave the users access to one page that they could edit to show other users/guests a bit about them in a personalised way. Stick pics on there, poetry, what they love doing, etc. A page THEY can edit.

    Can you suggest a way they can get access to edit this page?

    OOh boi .. I updated to this plugin and the tried to roll back to the one you made for me a while back and now that does not work.

    Well it works fine on the user profile, but back-end there are a still a few problems …

    Verified Users

    Warning: Missing argument 2 for wpdb::prepare(), called in /dir/website/wp-content/plugins/BuddyVerified-master/includes/buddypress-verified-admin.php on line 53 and defined in /dir/website/wp-includes/wp-db.php on line 992
    
    Warning: Missing argument 2 for wpdb::prepare(), called in /dir/website/wp-content/plugins/BuddyVerified-master/includes/buddypress-verified-admin.php on line 48 and defined in /dir/website/wp-includes/wp-db.php on line 992

    Users Marked as Spam

    Warning: Missing argument 2 for wpdb::prepare(), called in /dir/website/wp-content/plugins/BuddyVerified-master/includes/buddypress-verified-admin.php on line 103 and defined in /dir/website/wp-includes/wp-db.php on line 992
    
    Warning: Missing argument 2 for wpdb::prepare(), called in /dir/website/wp-content/plugins/BuddyVerified-master/includes/buddypress-verified-admin.php on line 109 and defined in /dir/website/wp-includes/wp-db.php on line 992

    —————————————————-

    An idea …

    Maybe have a version for 1.8.x and one for 2.0 as many cant update to 2.0 just yet due to the themes they are using.

    Is this an easy fix?

    Can an extra page be added that requests the users email address if connecting with twitter for the 1st time

    Sim2K

    (@sim2k)

    Can you give me a head start on where to look for this particular file so I can copy and edit it to create a cricket version?

    Is another file required to be edited to see the cricket file?

    Thanks for the feedback so far. 🙂

    Sim2K

    (@sim2k)

    Can you give me a head start on where to look for this particular file so I can copy and edit it to create a cricket version?

    Is another file required to be edited to see the cricket file?

    Thanks for the feedback so far. 🙂

    Sim2K

    (@sim2k)

    Thanks for the reply.

    Does this plugin facilitate the creation of this specific cricket sports file?

    I am having the same issue … infinite loading gif .. which is why I was asking what is the “Redirect URIs” to put into google?

    is it

    http://www.Site.com

    or

    http://www.Site.com/wp-content/plugins/super-socializer/

    Which one ?? Would be good to have the exact link.

    Hi All

    It is possible to upload video straight from WordPress to YouTube and put the video ID on your post.

    I did it for my website http://www.SquareVisualHomes.co.uk but its done outside of the WordPress Admin so it is possible.

Viewing 15 replies - 16 through 30 (of 70 total)