CTA Login

CTA Login 1.0.1

No permission to download

Paul B

XenForo moderator
Staff member
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...
 
this ok but it doesnt show on one of my themes
6GPfH.png


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>
 
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.
 
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?
 
?

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.
 
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
 
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.
 
The code is the same as the core Twitter code from the login handle.

So the error lies elswhere, not with this add-on.
 
@Brogan I'm missing the Google and Twitter icons. Am I missing somthing? :unsure:

upload_2014-3-11_19-28-38.webp


I noticed that you forum is also missing Google's icon. Or is it just me? :unsure:
 
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.
 
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?
 
Back
Top Bottom