1. Madde
  2. Support
  3. Thursday, April 07 2016, 12:53 PM
Hey,

When I'm on login form, I want to edit the facebook login button, where can I found the code?

Best Regards,
Miguel
Accepted Answer
admin Accepted Answer
Admin
Hi,
sorry this is not possible, we use oauthpopup, so in mobile sites you will see another window.
Anyway this is a good feature, using redirect instead popup, I will add this in our TODO list

The code is into file /plugins/jsn/socialconnect/socialconnect.php you can search by "oauthpopup" word to find position of code.
  1. more than a month ago
  2. Support
  3. # Permalink
admin Accepted Answer
Admin
Hi,
this stringe is defined in language constant, you can override this vale from Administration->Extensions->Languages->Overrides (left menu)

the constant is: COM_JSN_LOGINWITH
default value is: "Login with %s"

NOTE:
this string is written in JavaScript code, so if you have some char like ' then you need to quote with \'
  1. more than a month ago
  2. Support
  3. # 1
Madde Accepted Answer
Pro
Content Protected
  1. more than a month ago
  2. Support
  3. # 2
Madde Accepted Answer
Pro
Hey,

Thanks, yeah it would be a nice feature. I will try to edit the oauthpopup "somehow".

Thanks,
Miguel InĂ¡cio
  1. more than a month ago
  2. Support
  3. # 3
admin Accepted Answer
Admin
Hi,
seems easy, try to replace from line 1153 to line 1166 with this:
$script= "jQuery(document).ready(function(){jQuery('.socialconnect').append('<div><a href=\"https://www.facebook.com/dialog/oauth?" . addslashes( implode( '&', $urlParams ) ) . "\" class=\"facebook_button facebook zocial\">".$button_text."</a></div>') ; } ) ; " ;


This will works for Facebook
  1. more than a month ago
  2. Support
  3. # 4
Madde Accepted Answer
Pro
Content Protected
  1. more than a month ago
  2. Support
  3. # 5
  • Page :
  • 1


There are no replies made for this post yet.
However, you are not allowed to reply to this post.