Facebook  Twitter 

SMFHacks.com

+- +-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 12369
Latest: Dwaynee
New This Month: 9
New This Week: 2
New Today: 1
Stats
Total Posts: 40207
Total Topics: 7080
Most Online Today: 89
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 32
Total: 32

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

0 Members and 1 Guest are viewing this topic.

Offline sungsunclub

  • Newbie
  • *
  • 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: 15104
    • 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

  • Newbie
  • *
  • 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: 15104
    • 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

  • Newbie
  • *
  • 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
22521 Views
Last post December 13, 2010, 01:03:18 pm
by SMFHacks
0 Replies
6363 Views
Last post February 12, 2012, 10:40:55 pm
by SMFHacks
2 Replies
2284 Views
Last post June 14, 2012, 12:37:12 am
by SMFHacks
3 Replies
2282 Views
Last post June 20, 2013, 10:13:55 am
by SMFHacks
3 Replies
5161 Views
Last post May 06, 2015, 08:14:03 am
by SMFHacks

+- Recent Topics

Font question by SMFHacks
May 27, 2020, 08:15:26 am

Error message with latest SMF 2.1 Github build by Hatshepsut
May 25, 2020, 01:43:26 am

smfblog not working on 2.0.17 by tech9
May 20, 2020, 01:44:34 pm

Copyright removal by stbc
May 18, 2020, 01:27:57 am

Mod Verified User i can't square the image by Rock Lee
May 07, 2020, 07:56:10 pm

SMF4Mobile 2.0 released for SMF 2.0.x by SMFHacks
May 06, 2020, 12:13:14 pm

SMF Social Login Pro - Discontinued? by Nicole
May 02, 2020, 05:47:04 pm

Likes by SMFHacks
April 30, 2020, 09:50:35 pm

Upgrade Issue - by SMFHacks
April 28, 2020, 12:40:13 pm

Issues regarding Licenses and Domain by SMFHacks
April 28, 2020, 10:59:41 am

Powered by EzPortal