vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   How Can I Acheve This? [Login Pop Up] (https://vborg.vbsupport.ru/showthread.php?t=158449)

Bacon Butty 09-22-2007 10:06 AM

How Can I Acheve This? [Login Pop Up]
 
Could anyone tell me how I can achieve this? - Its something i have been trying to achieve for quite some time.

Basically when a user clicks 'login' a login box pops up prompting a login.

http://img241.imageshack.us/img241/9409/loginhr5.jpg

http://img241.imageshack.us/img241/1250/login2ay7.jpg

Any help greatly appreciated

Dismounted 09-22-2007 10:39 AM

That looks neat. Very neat, I must say. It should be just some CSS involved, although I don't know what CSS exactly.

Analogpoint 09-22-2007 04:27 PM

This mod might help you, but it's not quite the same. Take a look at greybox too.

Bacon Butty 09-23-2007 11:40 PM

Quote:

Originally Posted by Analogpoint (Post 1344665)
This mod might help you, but it's not quite the same. Take a look at greybox too.

Thanks. Its not exactly what am looking for but it'll do :)

Dismounted 09-25-2007 12:19 PM

Heh. I had a crack at this on my test forums, and I've got the box and all. All I need to do now is to create an image and create a fall-back for those without Javascript.

Analogpoint 09-25-2007 01:41 PM

For the fallback, just use vB's $show[popups] and if false don't even run your code, just show the default login box.

Dismounted 09-26-2007 11:27 AM

Done. You can see it in action on my website (signature). I may release this if I can get the instructions together :p.

Analogpoint 09-26-2007 02:07 PM

Quote:

Originally Posted by Dismounted (Post 1347430)
Done. You can see it in action on my website (signature). I may release this if I can get the instructions together :p.

Nice :) Did you use code from the greybox package? Also, you might want to have it downgrade gracefully. As of now, if you have JS turned off (NoScript in Firefox for me:)) then you simply can't log in.

Dismounted 09-27-2007 05:32 AM

Quote:

Originally Posted by Analogpoint (Post 1347520)
Nice :)

Thanks.
Quote:

Originally Posted by Analogpoint (Post 1347520)
Did you use code from the greybox package?

No, it was all my own coding.
Quote:

Originally Posted by Analogpoint (Post 1347520)
Also, you might want to have it downgrade gracefully. As of now, if you have JS turned off (NoScript in Firefox for me:)) then you simply can't log in.

I am aware of this. It seems $show['popups'] is always true regardless if JS is enabled or not. I tested it myself yesterday.

Analogpoint 09-27-2007 03:18 PM

Quote:

Originally Posted by Dismounted (Post 1347993)
I am aware of this. It seems $show['popups'] is always true regardless if JS is enabled or not. I tested it myself yesterday.

$show['popups'] is working fine for me. I tested it just not. It's false when I disable JS in my browser.

Dismounted 09-28-2007 07:05 AM

It's always true for me. You even saw on my forum, I've got the conditional in there.

Dismounted 09-28-2007 11:05 AM

Coded the fallback, I set the login prompt link as non-displaying. Then I used JS to make it display. :)

Analogpoint 09-28-2007 01:50 PM

Quote:

Originally Posted by Dismounted (Post 1348880)
Coded the fallback, I set the login prompt link as non-displaying. Then I used JS to make it display. :)

Good job. It looks great!


All times are GMT. The time now is 01:10 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01227 seconds
  • Memory Usage 1,736KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (13)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete