Facebook  Twitter 

SMFHacks.com

+- +-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 12399
Latest: SizofErsin
New This Month: 4
New This Week: 0
New Today: 0
Stats
Total Posts: 40599
Total Topics: 7132
Most Online Today: 104
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 1
Guests: 92
Total: 93

Author Topic: Adds social login icons to other pages  (Read 4683 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: 15285
    • 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: 15285
    • 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
23194 Views
Last post December 13, 2010, 01:03:18 pm
by SMFHacks
0 Replies
6466 Views
Last post February 12, 2012, 10:40:55 pm
by SMFHacks
2 Replies
2402 Views
Last post June 14, 2012, 12:37:12 am
by SMFHacks
3 Replies
2396 Views
Last post June 20, 2013, 10:13:55 am
by SMFHacks
3 Replies
5609 Views
Last post May 06, 2015, 08:14:03 am
by SMFHacks

+- Recent Topics

Gallery Pro v8.0 and PHP 7.4 by FJCC
Today at 09:35:06 pm

Forum ToolBox by Monocero
Today at 01:55:20 am

[Mod] Tagging System by SMFHacks
January 13, 2021, 08:43:33 pm

Using Alternate PayPal Address by KKOG
January 13, 2021, 07:24:46 pm

Assigning a BuyNow Button to a product by SMFHacks
January 12, 2021, 04:59:32 pm

SMF Links by Nicole
January 10, 2021, 12:02:39 pm

Error on the latest version by davejo
January 06, 2021, 08:04:05 am

Recent topics on board index by eugen
January 01, 2021, 11:08:16 am

Parser by swayforth
December 31, 2020, 12:24:23 am

Show Gallery in Users Profile by swayforth
December 29, 2020, 10:37:17 pm

Powered by EzPortal