Facebook  Twitter 

SMFHacks.com

+-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 4255
Latest: andreios
New This Month: 3
New This Week: 1
New Today: 0
Stats
Total Posts: 43259
Total Topics: 7518
Most Online Today: 202
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 193
Total: 193

Author Topic: Adds social login icons to other pages  (Read 6200 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: 16436
    • 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: 16436
    • 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
26642 Views
Last post December 13, 2010, 01:03:18 pm
by SMFHacks
0 Replies
7357 Views
Last post February 12, 2012, 10:40:55 pm
by SMFHacks
2 Replies
3582 Views
Last post June 14, 2012, 12:37:12 am
by SMFHacks
3 Replies
4264 Views
Last post June 20, 2013, 10:13:55 am
by SMFHacks
3 Replies
8147 Views
Last post May 06, 2015, 08:14:03 am
by SMFHacks

+- Recent Topics

No thumbnails on new uploads by SMFHacks
March 27, 2024, 02:10:41 pm

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

an idea for new mod (( content type with different display )) by SMFHacks
February 27, 2024, 01:36:27 pm

[Mod] RSS Feed Poster by SMFHacks
February 27, 2024, 11:57:18 am

find duplicate pictures by fvlog19
February 14, 2024, 02:22:40 pm

Error uploading video. by SMFHacks
February 08, 2024, 02:04:16 pm

Gallery icon as last added image by fvlog19
February 01, 2024, 01:04:56 pm

Powered by EzPortal