• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.
CTA Login

CTA Login 1.0.1

No permission to download
Add Facebook, Twitter, and Google logins to the sidebar

Brogan

XenForo moderator
Staff member
#1
Brogan submitted a new resource:

CTA Login - Add Facebook, Twitter, and Google logins to the sidebar

A simple template modification which adds Facebook, Twitter, and Google logins to the sidebar.

View attachment 66140

Each respective link will only appear if the services have been configured in the ACP.

The styling can be changed to suit by editing the cta_login.css template, or by using the following classes in EXTRA.css:
  • .ctaLoginFacebook
  • .ctaLoginTwitter
  • .ctaLoginGoogle
Read more about this resource...
 

XxUnkn0wnxX

Active member
#5
this ok but it doesnt show on one of my themes


Code:
<div class="sidebar">
<div>
<label id="SignupButton" for="LoginControl"><a class="inner" href="login/"><img data-cfsrc="styles/fusiongamer/xenforo/images/signupnow.png" src="http://portalcentric.net/forums/styles/fusiongamer/xenforo/images/signupnow.png"></a></label>
</div>
i cannot find the div class side bar any where i found the css for it but i cannot find that line of code i obtained using html editor any where not in page container no where

best i get is this in side page container

Code:
<xen:if is="{$sidebar}"></div>
                </div>
              
                <!-- sidebar -->
                <aside>
                    <div class="sidebar">
                        <xen:hook name="page_container_sidebar">
                        <xen:include template="ad_sidebar_top" />
                        <xen:if is="!{$noVisitorPanel}"><xen:include template="sidebar_visitor_panel" /></xen:if>
                        {xen:raw $sidebar}
                        <xen:include template="ad_sidebar_bottom" />
                        </xen:hook>
                    </div>
                </aside>
            </xen:if>
i have spent hours looking for this and trying to place this modified code every where including extra.css file and it not working

Code:
<div class="section loginButton">
<div class="secondaryContent">
<div class="ctaLoginFacebook">
<a class="fbLogin" href="register/facebook?reg=1"><span>Login with Facebook</span></a>
</div>
 

Russ

Well-known member
#6
You could try reverting the sidebar visitor panel template and using this again. I used an image for the sign up now and coded in the template directly.

Next version of fusion gamer the image is gone it has no edits and uses a gradient there. Ironically we added this modification into our framework when 1.3 was releaded(our version), so these logins will be on the style your referring to unknown.
 

XxUnkn0wnxX

Active member
#7
You could try reverting the sidebar visitor panel template and using this again. I used an image for the sign up now and coded in the template directly.

Next version of fusion gamer the image is gone it has no edits and uses a gradient there. Ironically we added this modification into our framework when 1.3 was releaded(our version), so these logins will be on the style your referring to unknown.
?

so these mods wont show till you guys release new version of fusion gamer?

also i have designers on my site that modify the styles

so i have the default fusion gamer theme and i import the modded version as a child node to the updated version does this mean the previous modded xml the 1 version below the new one will have the old template mods?

New fusion gamer with latest mods -- > Old modded fusion gamer xml imported as child. <-- does the child get the new modded templates and keep the modded looks?, or i have to find the new moded templates from the new parent updated style and implement them into the old modded fusion gamer one?
 

Russ

Well-known member
#8
?

so these mods wont show till you guys release new version of fusion gamer?

also i have designers on my site that modify the styles

so i have the default fusion gamer theme and i import the modded version as a child node to the updated version does this mean the previous modded xml the 1 version below the new one will have the old template mods?

New fusion gamer with latest mods -- > Old modded fusion gamer xml imported as child. <-- does the child get the new modded templates and keep the modded looks?, or i have to find the new moded templates from the new parent updated style and implement them into the old modded fusion gamer one?
Well that's best for another discussion and specifically when it gets released.

However I just meant to get Brogans template mod to work, it's probably looking for the default login part in the sidebar panel, so for it to find it you'd need to revert your sidebar_visitor_panel for fusion gamer. Make a backup of it first of course. Or you may need to modify how it's finding the html.

If you PM me a link with access I can help you debug it.
 

XxUnkn0wnxX

Active member
#9
is there a way i can have these mods now thx? well just the template mods and files?
Well that's best for another discussion and specifically when it gets released.

However I just meant to get Brogans template mod to work, it's probably looking for the default login part in the sidebar panel, so for it to find it you'd need to revert your sidebar_visitor_panel for fusion gamer. Make a backup of it first of course. Or you may need to modify how it's finding the html.

If you PM me a link with access I can help you debug it.
ok nm i fixed it i wonder y that happened.. but when i reverted it started working
 

Brogan

XenForo moderator
Staff member
#10
ok nm i fixed it i wonder y that happened.. but when i reverted it started working
It worked because you reverted the template to the original code.

If the template has been edited and the section of code which the find and replace is carried out on is different, the template modification will fail.
 

Brogan

XenForo moderator
Staff member
#12
The code is the same as the core Twitter code from the login handle.

So the error lies elswhere, not with this add-on.
 

Martok

Well-known member
#18
I assume this is depreciated with the release of 1.3 final?
Not at all, this add-on is only compatible with Xenforo 1.3. It adds login buttons for Facebook, Twitter, and Google logins to the sidebar. Without the add-on, there aren't any social media login buttons there, only in the sign-up/login dropdown at the top of the forum.
 

RO.

New member
#19
I can't see any problems with this gents. The problem I'm having is with Facebook. It's a site I don't like so I don't really wanna open an acct just to get this log-in function. But when I go here:

https://developers.facebook.com/docs/facebook-login

... I'm chasing my tail. There's no mention of forums and I cant see any functions to just generate the keys. Twitter make it pretty easy. Would anyone be able to direct me better please?