Saturday, September 26, 2015

Altering the wordpress Users Ultra Membership Plugin

The frontend user management plugin User ultra, Its well-made plugin with good options. But it is having lots of unwanted options like videos, photo gallery etc.
But it is having post management option for frontend users, in very efficient way. I wanted the plugin that allow user to submit their new posts, so i don't want even orders option in that.
Will remove unwanted things from Userultra

Altering User Ultra Dashboard (account page)

First find the php file
>wp-content/plugin/user-ultra/template/basic/dashboard.php
open it with any editor, preferably the Notepad++
From line number 188, The dashboard section will start.
User ultra untouched

To remove messages on dashboard

Begins from line number 202 (starts like this<?php if(!in_array("photos",$modules)){?>)
Remove that codes from line 299 to 217. codes shown below

To remove photos on dashboard

Find and remove these much codes as below

To remove My orders module

Remove these codes in dashboard.php

To remove My purchase

Remove these codes

To remove My friends

Remove these codes

To remove photos and videos

Remove these codes

To use shortcodes in dashboard

just put 
<?php echo do_shortcode('[your_short_code]'); ?>
whare you have removed message and photo box in the dashboard.
This will display

one of my customization with shortcode ultimate, my cred plugins



with codes:

Adding Social login to use ultra form

If you are using social login plugin, User ultra won't includes it in it's login option. For that you need to tweak something here.

Open the php file @  wp-content/plugins/user-ultra/xooclasses/xoo.userultra.class.php with notepad++

Login form


  • find (Ctrl+F)  rememberme_
  • you will get  rememberme_ and </div>
  • after that div tag put this code (my case line no:1982)
    <div style="    height: 165px; margin-left: -50px; width: 500px;">'.do_shortcode('[oa_social_login]').'</div>
Register Form
  • find for xoouserultra-seperator-requiredfields xoouserultra-edit xoouserultra-edit-show
  • find the </div> in same line remove the '; at the end.
  • in next new line add <div style="height: 165px;">'.do_shortcode('[oa_social_login]').'</div>';
Before edit
After edit (Im running in localhost, social login icons not working)

Save and enjoy.
If you find difficulty to edit, Get the xoo.userultra.class.php file from my githib account here and replace it with original of your's.

Stuck with any problems?, Comment below.


Friday, September 25, 2015

Hiding Social login credits in Wordpress [Solution]

Social Login trick

social login

It may be not a legal post but still I'm posting it. Because so many users are using this plugin but it includes plugin vendor name and even its link. It looks kind of advertising. So I came up with new idea to hide the dirty credits below the social icons.
note: It may not work for wp-login page, (I'm not allowing to load wp-admin in my wp site, so I don't know)

Trick

There are 2 types of icons are available to select for free version of social login at vendor's (oneall) dashboard. Codes for both are attached below.
In your childtheme's(preferred) or Theme's style.css, Paste the code snippet shown below.
This code will help you to hide the credits.

For icon type 1

social icon 1

For icon type 2

social icon 2
these are the codes you need to add. if still showing credits, inspect the element select the social banner, set the height as per the requirement.

And of-course feel free to ask question ;)