abdfahim Well-known member Dec 12, 2016 #1 Is it possible to add the standard sign up button (of the visitor panel) in a notice? Apparently, copy-paste does not work .
Is it possible to add the standard sign up button (of the visitor panel) in a notice? Apparently, copy-paste does not work .
P Paul B XenForo moderator Staff member Dec 12, 2016 #2 Yes, it's possible (I used to have a notice like that), but you will need to ensure the HTML and CSS is correct. Upvote 0 Downvote
Yes, it's possible (I used to have a notice like that), but you will need to ensure the HTML and CSS is correct.
Nuno Well-known member Dec 12, 2016 #3 What about a button with a link to name.tld/login/login ? Upvote 0 Downvote
abdfahim Well-known member Dec 12, 2016 #4 Nuno said: What about a button with a link to name.tld/login/login ? Click to expand... Yes, I ended up doing like that. But I was hoping to use the usual XF structure {xen:link ....} ... Last edited: Dec 13, 2016 Upvote 0 Downvote
Nuno said: What about a button with a link to name.tld/login/login ? Click to expand... Yes, I ended up doing like that. But I was hoping to use the usual XF structure {xen:link ....} ...
P Paul B XenForo moderator Staff member Dec 12, 2016 #5 Code: <a href="{xen:link login}"> Upvote 0 Downvote
abdfahim Well-known member Dec 13, 2016 #6 Well, I tried below code inside a notice, but it resulted the text "{xenhrase sign_up_now}" linked to "website.com/{xen:link login}" ! Code: <div><a href="{xen:link login}">{xen:phrase sign_up_now}</a></div> Upvote 0 Downvote
Well, I tried below code inside a notice, but it resulted the text "{xenhrase sign_up_now}" linked to "website.com/{xen:link login}" ! Code: <div><a href="{xen:link login}">{xen:phrase sign_up_now}</a></div>
OUTL4W Active member Dec 13, 2016 #7 try Code: <a class="button" href="{xen:link 'register'}">Register Now!</a>OR<a class="button" href="{xen:link login}"><span style="font-weight:bold;">Log-In</span></a> this should show a button for either to register or to login Upvote 0 Downvote
try Code: <a class="button" href="{xen:link 'register'}">Register Now!</a>OR<a class="button" href="{xen:link login}"><span style="font-weight:bold;">Log-In</span></a> this should show a button for either to register or to login
abdfahim Well-known member Dec 13, 2016 #8 OUTL4W said: try Code: <a class="button" href="{xen:link 'register'}">Register Now!</a>OR<a class="button" href="{xen:link login}"><span style="font-weight:bold;">Log-In</span></a> this should show a button for either to register or to login View attachment 145020 Click to expand... Doesn't work as above (pictures below). It works if I write as below, but I loose the login overlay functionality. Code: <a class="button" href="register/">Sign Up For Free</a><a class="button" href="login/">Log In</a> Upvote 0 Downvote
OUTL4W said: try Code: <a class="button" href="{xen:link 'register'}">Register Now!</a>OR<a class="button" href="{xen:link login}"><span style="font-weight:bold;">Log-In</span></a> this should show a button for either to register or to login View attachment 145020 Click to expand... Doesn't work as above (pictures below). It works if I write as below, but I loose the login overlay functionality. Code: <a class="button" href="register/">Sign Up For Free</a><a class="button" href="login/">Log In</a>
Steve F Well-known member Dec 13, 2016 #9 Notices do not allow that type of syntax ({xen:link...}). Code: <a class="button" href="register/">Register Now!</a>OR<a class="button" href="login/"><span style="font-weight:bold;">Log-In</span></a> Upvote 0 Downvote
Notices do not allow that type of syntax ({xen:link...}). Code: <a class="button" href="register/">Register Now!</a>OR<a class="button" href="login/"><span style="font-weight:bold;">Log-In</span></a>
abdfahim Well-known member Dec 13, 2016 #10 I thought so. Thanks for confirming. Is there any way I can open the login overlay on clicking login button in the notice? Upvote 0 Downvote
I thought so. Thanks for confirming. Is there any way I can open the login overlay on clicking login button in the notice?
Steve F Well-known member Dec 13, 2016 #11 Yes. Add the bit in red Rich (BB code): <a class="button" href="register/">Register Now!</a>OR<a class="button OverlayTrigger" href="login/"><span style="font-weight:bold;">Log-In</span></a> Add this to the EXTRA.css template Code: .xenOverlay #pageLogin { background: rgba(0, 0, 0, 0.75); color: #ffffff; padding: 20px; border: 20px solid rgba(0, 0, 0, 0.25); border-radius: 20px; box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5); } Upvote 0 Downvote
Yes. Add the bit in red Rich (BB code): <a class="button" href="register/">Register Now!</a>OR<a class="button OverlayTrigger" href="login/"><span style="font-weight:bold;">Log-In</span></a> Add this to the EXTRA.css template Code: .xenOverlay #pageLogin { background: rgba(0, 0, 0, 0.75); color: #ffffff; padding: 20px; border: 20px solid rgba(0, 0, 0, 0.25); border-radius: 20px; box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5); }
abdfahim Well-known member Dec 13, 2016 #12 Perfect, thanks a lot. Really appreciate it. Upvote 0 Downvote
OUTL4W Active member Dec 13, 2016 #13 abdfahim said: Doesn't work as above (pictures below). It works if I write as below, but I loose the login overlay functionality. Code: <a class="button" href="register/">Sign Up For Free</a><a class="button" href="login/">Log In</a> View attachment 145024 View attachment 145026 View attachment 145025 Click to expand... Ahhh...guess I was a little confuzzled...I got xF notice confused with @Steve F version of stylized notice https://pixelexit.com/resources/welcome-notice-general-banner.18/ Upvote 0 Downvote
abdfahim said: Doesn't work as above (pictures below). It works if I write as below, but I loose the login overlay functionality. Code: <a class="button" href="register/">Sign Up For Free</a><a class="button" href="login/">Log In</a> View attachment 145024 View attachment 145026 View attachment 145025 Click to expand... Ahhh...guess I was a little confuzzled...I got xF notice confused with @Steve F version of stylized notice https://pixelexit.com/resources/welcome-notice-general-banner.18/