Facebook  Twitter 

SMFHacks.com

+-

SMFHacks.com

+- User Information

Welcome, Guest.
Please login or register.
 
 
 
Forgot your password?

+- Forum Stats

Members
Total Members: 4257
Latest: Alex998.
New This Month: 1
New This Week: 0
New Today: 0
Stats
Total Posts: 43294
Total Topics: 7523
Most Online Today: 118
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 116
Total: 116

Author Topic: Adds social login icons to other pages  (Read 6211 times)

0 Members and 1 Guest are viewing this topic.

Offline sungsunclub

  • Member
  • *
  • Posts: 4
    • View Profile
Adds social login icons to other pages
« on: February 21, 2012, 08:05:24 am »
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  ^^

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16451
    • View Profile
Re: Adds social login icons to other pages
« Reply #1 on: February 21, 2012, 08:10:35 am »
What SMF Version are you using?
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline sungsunclub

  • Member
  • *
  • Posts: 4
    • View Profile
Re: Adds social login icons to other pages
« Reply #2 on: February 21, 2012, 08:14:41 am »
SMF 1.1.15

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16451
    • View Profile
Re: Adds social login icons to other pages
« Reply #3 on: February 21, 2012, 08:27:04 am »
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: [Select]
require 'forum/SSI.php';


And then in the next area on the site using php that you have for display call the following
Code: [Select]
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>
';



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.
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline sungsunclub

  • Member
  • *
  • Posts: 4
    • View Profile
Re: Adds social login icons to other pages
« Reply #4 on: February 21, 2012, 08:30:38 am »
Thank you for your reply, I'll try.  ;)

 

Related Topics

  Subject / Started by Replies Last post
61 Replies
26742 Views
Last post December 13, 2010, 01:03:18 pm
by SMFHacks
0 Replies
7367 Views
Last post February 12, 2012, 10:40:55 pm
by SMFHacks
2 Replies
3591 Views
Last post June 14, 2012, 12:37:12 am
by SMFHacks
3 Replies
4277 Views
Last post June 20, 2013, 10:13:55 am
by SMFHacks
3 Replies
8170 Views
Last post May 06, 2015, 08:14:03 am
by SMFHacks

+- Recent Topics

Please Help! by fmofmpls
Today at 01:47:09 pm

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

Powered by EzPortal