Security

Reply
Aruba
Posts: 1,537
Registered: ‎06-12-2012

Social Media Tips #1 Social Media Button

I know a few of you have been waiting for this feature and until we can get a page and document published I will post a few of the key points.

 

Social Media Buttons

There is very little GUI for the social logins at the moment. In the Header HTML or Footer HTML of the login pages and registrations simply put:

 

{nwa_social_logins}

The following parameters can be passed:

  • vertical=1 to display vertical over horizontal.
  • notext=1 to only display icons.
  • noicons=1 to only display text.
  • noself=1 to suppress logic to include self-registration interlinking.
  • prefix='Login with ' to include a prefix on all the labels.
  • suffix=' and have fun' to include a suffix at the end of all the labels.
  • class=YourClass to give the wrapping div a class a specific class.
  • style='color:blue;' to give the wrapping div specific styles.

For example:

{nwa_social_logins vertical=1 noicons=1 prefix='Login with ' suffix=' and have fun'}

You are free to look at the URL themselves and use your own custom images and styles. You simply append ?oauth_init=1&oauth=KEY to your page name.

<a class="twitter" href="{$script_name|escape}.php?oauth_init=1&oauth=twitter">Login with Twitter</a>



Thank You,
Troy

--Give Kudos: found something helpful, important, or cool? Click Kudos Star in a post.

--Problem Solved? Click "Accepted Solution" in a post.
Aruba
Posts: 1,537
Registered: ‎06-12-2012

Re: Social Media Tips #1 Social Media Button

Ok so I thought I would put an update up for this. One question that was recently posted was on how to hide the Self-Reg.

 

There is an argument in the social button that is noself=. What that is used for is to remove the link to a local login page. For example if you have a user that you wanted to create an account for them instead of using the social login you can have a link that points to the page where they can put in the username and password. 

 

 

You will need to go to your self-reg and click on advance editor.

 

Screen Shot 2014-10-12 at 11.53.48 PM.png

 

 

You need to make sure you edit both the Register page and the Login page if you want the social to show up on both pages.

 

In the reg page you need to add the {nwa_social_logins} and you can add the above arguments. If you want to hide the local self-reg you need to checkmark the box in the bottom "Do not include guest registration form contents" 

 

Screen Shot 2014-10-08 at 11.40.28 PM.png

 

 

There is also the noself= argument and what that does is removes the button to local login. Remember that if you also need to remove the code in the footer to remove the link also.

 

 

Screen Shot 2014-10-12 at 11.51.04 PM.png

 

 

With no local login and no self-reg

 

Screen Shot 2014-10-12 at 11.41.38 PM.png

 

 

With local login button enabled noself=0

 

Screen Shot 2014-10-12 at 11.49.26 PM.png

 

Both self-reg and login local

 

Screen Shot 2014-10-12 at 11.51.49 PM.png

Thank You,
Troy

--Give Kudos: found something helpful, important, or cool? Click Kudos Star in a post.

--Problem Solved? Click "Accepted Solution" in a post.
Search Airheads
Showing results for 
Search instead for 
Did you mean: