Facebook  Twitter 

SMFHacks.com

+- +-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 11790
Latest: ButtKoWitz
New This Month: 3
New This Week: 0
New Today: 0
Stats
Total Posts: 41408
Total Topics: 7255
Most Online Today: 80
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 2
Guests: 96
Total: 98

Author Topic: Adds social login icons to other pages  (Read 4935 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: 15662
    • 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: 15662
    • 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
23558 Views
Last post December 13, 2010, 01:03:18 pm
by SMFHacks
0 Replies
6538 Views
Last post February 12, 2012, 10:40:55 pm
by SMFHacks
2 Replies
2525 Views
Last post June 14, 2012, 12:37:12 am
by SMFHacks
3 Replies
2735 Views
Last post June 20, 2013, 10:13:55 am
by SMFHacks
3 Replies
6019 Views
Last post May 06, 2015, 08:14:03 am
by SMFHacks

+- Recent Topics

Import downloads by mickjav
September 25, 2021, 04:47:13 am

Errors with 5.0.6 version by Hatshepsut
September 24, 2021, 10:21:24 pm

Forum ToolBox by mickjav
September 23, 2021, 03:20:07 pm

Ads Description is running into Ad Location by Shades
September 23, 2021, 09:56:42 am

S3 System For SMF Attachments by SMFHacks
September 21, 2021, 05:46:38 pm

Boards Icon by mickjav
September 18, 2021, 02:13:43 pm

Search Word Limit by SMFHacks
September 17, 2021, 08:41:01 pm

Item not appearing in category by SMFHacks
September 17, 2021, 08:39:45 pm

Undefined index: gallery_ad_seller by Shades
September 17, 2021, 01:23:10 pm

What happens if? by SMFHacks
September 14, 2021, 10:25:07 pm

Powered by EzPortal