Jump to content

twitter login panel


sijad

Recommended Posts

Thanks for the mod smile.png

I have a little issue, when I enable this hook, doesn´t appear my google login icon on the top on main page. Can you solve it? THANKS!

sijad, could you please use some js to add a class/affect the stock form html, or do some string opts on the stock through replaceOutput or skin overload? smile.png

You are very basically giving other login methods not IPB internal on the form a nice wave goodbye in using a whole different template, hooked in or even stock. pinch.png

I understand just by looking that would be... a rather not fun js rewrite... but it currently adversely affects one of my mod's directly by doing this, and fb/twitter connect.

Link to comment
Share on other sites

sijad, could you please use some js to add a class/affect the stock form html, or do some string opts on the stock through replaceOutput or skin overload? smile.png

You are very basically giving other login methods not IPB internal on the form a nice wave goodbye in using a whole different template, hooked in or even stock. pinch.png

I understand just by looking that would be... a rather not fun js rewrite... but it currently adversely affects one of my mod's directly by doing this, and fb/twitter connect.

if i change "twerod-tggle" id to "sign_in" it's ok?

Link to comment
Share on other sites

if i change "twerod-tggle" id to "sign_in" it's ok?

Maybe? I assume you speak of axing the custom form altogether and targeting with js/string opts.

<if test="registerServices:|:IPSLib::loginMethod_enabled('facebook') || IPSLib::loginMethod_enabled('twitter') || IPSLib::loginMethod_enabled('live')">
				<div class='ipsBox_notice'>
					<ul class='ipsList_inline'>
						<if test="facebook:|:IPSLib::loginMethod_enabled('facebook')">
							<li><a href="{parse url="app=core&amp;module=global&amp;section=login&amp;serviceClick=facebook" base="public"}" class='ipsButton_secondary'><img src="{$this->settings['img_url']}/loginmethods/facebook.png" alt="Facebook" /> &nbsp; {$this->lang->words['use_facebook']}</a></li>
						</if>
						<if test="twitterBox:|:IPSLib::loginMethod_enabled('twitter')">
							<li><a href="{parse url="app=core&amp;module=global&amp;section=login&amp;serviceClick=twitter" base="public"}" class='ipsButton_secondary'><img src="{$this->settings['img_url']}/loginmethods/twitter.png" alt="Twitter" /> &nbsp; {$this->lang->words['use_twitter']}</a></li>
						</if>
						<if test="haswindowslive:|:IPSLib::loginMethod_enabled('live')">
							<li><a href='{parse url="app=core&amp;module=global&amp;section=login&amp;do=process&amp;use_live=1&amp;auth_key={$this->member->form_hash}" base="public"}' class='ipsButton_secondary'><img src="{$this->settings['img_url']}/loginmethods/windows.png" alt="Windows Live" /> &nbsp; {$this->lang->words['use_live']}</a></li>
						</if>
					</ul>
				</div>
			</if>

This functionality(the hook points, that a developer depends on when hooking into inlineLogin in the first place) you cannot replicate using a custom template, every mod author's login module would need custom code specifically for compatibility with this mod.

I am suggesting by using the stock template you sidestep much headache in regards to compatibility. smile.png

(side note, you could in fact overload ipb.global.inlineSignin if you *really* had to in order to use it directly with the stock sign in button, however, that would be a bit of brute force when you can just unbind sign_in and remap the click event to your handler)

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...