|
|
|
|
WordPress PluginFrom $1Table of contents
Gigya's WordPress plugin is a powerful addition to any WordPress blog or site, enabling a wide range of features that are fully configurable using the WordPress Administration Panels. Prominent features supported by the plugin include:
Installing the Socialize WordPress PluginInstalling the Socialize WordPress plugin is quick and easy (takes about 15 minutes) and does not require any programming skills. Everything works out-of-the-box and the plugin is fully configurable through WordPress's Administration Panels. Installation Steps
Configuring the Plugin
Additional Configuration Steps (Optional)Language SupportThe WordPress plugin supports localization. Gigya's default language is English. You may change the language to one of the supported languages by changing the string language code in the 'Language' field. For a complete list of supported languages, please click here. Post Login RedirectYou can choose to what page your users will be redirected after logging in. To redirect to your blog's home page, please enter http://localhost/wordpress. For your blog admin page, enter http://localhost/wordpress/wp-admin/. SharingYou can easily integrate the Gigya Share Bar in your WordPress blog by enabling it in the Settings>Gigya page. You can choose whether to place it at the top or bottom (or both) of each post, and select the share providers you would like to have by writing them in the 'Share Providers' field, separated by a comma. If you would like to read further on the Gigya Share Bar, please click here. CommentsIn order to integrate the Comments plugin, please follow the instructions on this page. After setting up the comments configuration on Gigya.com, please check the 'Enable Gigya Comments' box and copy your 'Comments category name' from Gigya to the 'Comments Category ID' field in the WordPress plugin configuration page (Settings>Gigya). Configuring the Design of Gigya Login PluginYou can configure the look-and-feel of the Gigya plugin displayed in the Wordpress Login and Register pages.
After copying the code from Gigya's website, go to your WordPress Administration Panel (in Settings>Gigya ) and paste the copied code into the compatible text-area (see screenshot below) to apply your preferred configuration. Note: you do not need to paste the entire code copied from Gigya's widget designers. Please follow these instructions: You should enter the definition of the login_params object from the code you have obtained in Gigya's Login Plugin designer. The code you paste into the "Sign in component" text-areas should look similar to the following example var login_params=
{
height:400,
width:200,
containerID:'componentDiv',
UIConfig:'<config><body><captions background-color="#919148"></captions><texts color="#C876FF"></texts>
<background background-color="#FF6D6D" frame-color="#A4FFFF"></background></body></config>'
};
Click the "Save Changes" button (at the bottom) when done. Adding a Sidebar Widget to Your BlogYou can add a sidebar widget to your WordPress blog. The Sidebar Widget includes a login block. To add the Sidebar Widget to your WordPress blog, go to your Administration Panels, click Appearance>Widgets and drag the "Gigya Social Optimization" widget to the sidebar. You may configure and edit the Sidebar Widget's texts and appearance according to your preferences:
JQuery ScriptsThe plugin contains an updated version of the JQuery and JQuery UI. You can choose to include the script from the site or from Google CDN by selecting the desired option from the drop down menu. Hooks - Actions and Filters - AdvancedIf you would like to extend the Gigya functionality, you can use your own actions and filters for the plugin and place them in the 'functions.php' or 'gigya-custom.php' files. The complete list of actions is:
You can use the actions as shown in the example below: function custom_gigya_add_comment($comment) {
#comment (array)
# $comment[] = comment_post_ID,comment_contentcomment_parent,user_id,comment_date,comment_approved (this is are the array keys)
}
add_action("gigya_add_comment","custom_gigya_add_comment");
The following list contains the filters you can use:
For example: function custom_notify_login_user_info($userInfo,$userId) { #userInfo (object) # ->nickname # ->emai # ->firstName
# ->lastName # ->profileURL # -> photoURL return $userInfo; } add_filters('notify_login_user_info','custom_notify_login_user_info');
ShortcodeIf you would like to place the Gigya Login plugin in a different location on your site, please put the following code in the desired location in one of your theme's .php files: render_login_plugin(array("header_text"=>"dddddd","width"=>"","height"=>"",button_size=>"",enabledProviders=>"",bgColor=>""));
SupportIf you have any questions, please feel free to contact your Gigya account manager or contact us by filling in a support form on our site. You can also access the support page by clicking "Support" on the upper menu of Gigya's site.
Tags:
|
||||
|