|
Forum > Presales for Products
Adds social login icons to other pages
(1/1)
sungsunclub:
How to add SLP icon to other pages (for example abc.com/forum is place for my forum and I need to put button on abc.com also).
Thank you in advance for your instruction or advise ^^
SMFHacks:
What SMF Version are you using?
sungsunclub:
SMF 1.1.15
SMFHacks:
Two ways to do it either PHP or HTML
If the site is php based add this to the top of index.php or other php page after <?php Add the following assumes that the path SSI is in the forum folder
--- Code: ---require 'forum/SSI.php';
--- End code ---
And then in the next area on the site using php that you have for display call the following
--- Code: ---global $boardurl, $modSettings;
echo ' <!-- socialize.js script should only be included once --> <script type="text/javascript" src="http://cdn.gigya.com/js/socialize.js?apiKey=' . $modSettings['slp_apikey'] . '"></script> <script type="text/javascript"> var conf= { APIKey: \'' . $modSettings['slp_apikey'] . '\' ,enabledProviders: \'' . $modSettings['slp_enabledProviders'] . '\' } </script>
<script type="text/javascript"> var login_params= { useHTML: \'true\' ,showTermsLink: \'false\' ,height: ' . $modSettings['slp_registerheight'] . ' ,width: ' . $modSettings['slp_registerwidth'] . ' ,containerID: \'componentDiv\' ,redirectURL: \'' . $boardurl. '/gigya.php\' } </script> <div id="componentDiv"></div> <script type="text/javascript"> gigya.services.socialize.showLoginUI(conf,login_params); </script> ';
--- End code ---
If you don't have php access or can't get it to work.
We can do an HTML based solution which is easy to do Send me a link to a page to the social login pro login or registration and we can grab the code from there.
sungsunclub:
Thank you for your reply, I'll try. ;)
Navigation
[0] Message Index |
Please Help!
by SMFHacks
April 17, 2024, 08:04:55 am
|
Rate own images
by fvlog19
April 11, 2024, 10:56:53 am
|
Tidy Child Boards on 2.1.4
by SMFHacks
April 04, 2024, 03:54:12 pm
|
Problems SMF 2.0.19 > 2.1.4 SMF Gallery Pro - Recents Images to overall header
by Michel68
March 30, 2024, 12:41:08 pm
|
Can't DROP 'id_member'; check that column/key exists Datei:
by SMFHacks
March 30, 2024, 11:58:20 am
|
No thumbnails on new uploads
by Tonyvic
March 29, 2024, 06:26:18 am
|
Display the Contact Page for guests
by SMFHacks
March 27, 2024, 10:55:43 am
|
is it possible to add support for odysee.com
by fvlog19
March 21, 2024, 08:47:51 am
|
Request for admin notification
by davejo
March 10, 2024, 01:31:59 am
|
I need help with torrent upload
by Ineedsmfhelp
March 09, 2024, 10:01:13 pm
|
|
|