Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Login Popup - Adds a DHTML popup login form w/ forgotten password & register links Details »»
Login Popup - Adds a DHTML popup login form w/ forgotten password & register links
Version: 1.0.0, by Analogpoint Analogpoint is offline
Developer Last Online: Dec 2007 Show Printable Version Email this Page

Category: Mini Mods - Version: 3.6.x Rating:
Released: 09-21-2007 Last Update: Never Installs: 63
Uses Plugins Template Edits
 
No support by the author.

I'm releaseing another mod I made for my boards, if it's useful to anyone else, that's great!

This adds a DHTML popup menu with the login form, a link to the register form and a link to recover a password. This product degrades gracefully: if DHTML popups are not available, or you disable the product, it reverts to the default vB login form in the navbar.



There are admin options to enable/disable the product, and to auto display the popup or not (auto display will only work in vB 3.6.8 +).

The product adds a phrase, two temlpates and the admin options.

Installation
- Import the XML file in the Product Manager.
- One template edit is necessary to hide the default vB login form, instructions are included in the download.

History:
v. 1.0.0 initial release.

Supporters / CoAuthors

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 09-23-2007, 11:42 PM
Bacon Butty Bacon Butty is offline
 
Join Date: Jun 2005
Posts: 309
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks. I installed it and it works great, however would it be possible to make the pop up menu work when an image is clicked, rather than the text 'Log In'

I intend on creating an image map at the top of my forums and would be ideal if I could create a 'login' image which when clicked causes the DHTML popup login form to appear.

I'd assume I need to figure out how to image hyperlink $loginlink ?
Reply With Quote
  #13  
Old 09-24-2007, 01:54 AM
ngham4host ngham4host is offline
 
Join Date: May 2007
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks
Reply With Quote
  #14  
Old 09-24-2007, 01:56 AM
AzaDiyaR AzaDiyaR is offline
 
Join Date: Oct 2006
Posts: 84
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

http://www.azadiyar.com/Forum/index.php?langid=1

this workin for me thank you for this
Reply With Quote
  #15  
Old 09-24-2007, 02:20 AM
Smoothie Smoothie is offline
 
Join Date: Oct 2001
Location: New York
Posts: 1,834
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ok, it's me again. LOL I added this and it works great. But, since it's in my header and I need to add the | between the links and I don't want the | to show when the login popup isn't there, like when you are actually logged in. Where in the code could I add this to accomplish this? Hope you understand the jibberish I just wrote.
Reply With Quote
  #16  
Old 09-24-2007, 08:58 AM
NoDRaC's Avatar
NoDRaC NoDRaC is offline
 
Join Date: Feb 2006
Posts: 44
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hi thanks this is good hack for my desing i am changing header system. I will setup this hack this night.
www.arkasokak.net/forum.html
Reply With Quote
  #17  
Old 09-24-2007, 01:55 PM
Bacon Butty Bacon Butty is offline
 
Join Date: Jun 2005
Posts: 309
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I've just photo shopped what it is I need to achieve because I dont think I explained it to well earlier.

http://img517.imageshack.us/img517/7...otoshopqf8.jpg

When the 'login' image is clicked i'd like the login DHTML menu to open, could anyone tell me how to achieve this?
Reply With Quote
  #18  
Old 09-24-2007, 02:56 PM
Analogpoint's Avatar
Analogpoint Analogpoint is offline
 
Join Date: Feb 2007
Posts: 656
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Mrdby View Post
Can you make a pop up messages for all guest too?
That's not really in the scope of this modification, although if you take another stab at explaining exactly what it is you want to accomplish, I'll reconsider.

Quote:
Originally Posted by Smoothie View Post
ok, it's me again. LOL I added this and it works great. But, since it's in my header and I need to add the | between the links and I don't want the | to show when the login popup isn't there, like when you are actually logged in. Where in the code could I add this to accomplish this? Hope you understand the jibberish I just wrote.
Hey, nice to see ya. Here you go: Edit the login_popup_link template, which has the following contents, the pipe is shown in red. (right after the link).
Code:
<if condition="$show[guest]">
<if condition="$vboptions[login_popup_autodisplay]">
	<td class="vbmenu_control">
</if>
		<a id="navbar_login" href="$vboptions[forumhome].php$session[sessionurl_q]">$vbphrase[log_in]</a> | <script type="text/javascript"> vbmenu_register("navbar_login"); </script>
<if condition="$vboptions[login_popup_autodisplay]">
	</td>
</if>
</if>
Quote:
Originally Posted by Bacon Butty View Post
Thanks. I installed it and it works great, however would it be possible to make the pop up menu work when an image is clicked, rather than the text 'Log In'

I intend on creating an image map at the top of my forums and would be ideal if I could create a 'login' image which when clicked causes the DHTML popup login form to appear.

I'd assume I need to figure out how to image hyperlink $loginlink ?
Quote:
Originally Posted by Bacon Butty View Post
I've just photo shopped what it is I need to achieve because I dont think I explained it to well earlier.

http://img517.imageshack.us/img517/7...otoshopqf8.jpg

When the 'login' image is clicked i'd like the login DHTML menu to open, could anyone tell me how to achieve this?
I think I understand what you want...

#1 - Add a div element to your header or navbar template, wherever you have the image that says register in the middle and login on the right. The div element you add will be something like this:

Code:
<div id="alt_login_link" style="border:1px solid red;float:right;width:300px;height:90px;">
&nbsp;
</div>
It's just an empty div that's going to float over the top of where the image says 'login'. Right now it has a red border so you can see where it is, and you can adjust the height and width to what you want so it is centered over the word 'login', then you can remove the red border by removing border:1px solid red;.

#2 - Add the following javascript the the very bottom of your footer template: This makes the above div clickable.

Code:
<script type="text/javascript">

var alt_login_link = document.getElementById('alt_login_link');
alt_login_link.onclick = function(e)
{
	var menuid = 'navbar_login';
	var menuel = document.getElementById('navbar_login');
	if(typeof do_an_e == 'function')
	{
		do_an_e(e);
		if(vBmenu.activemenu == null || vBmenu.menus[vBmenu.activemenu].controlkey != menuid)
		{
			vBmenu.menus[menuid].show(menuel);
		}
		else
		{
			vBmenu.menus[menuid].hide();
		}
	}
}

</script>
That should do it for you, I just tested it on a new installation of vB 3.6.8.
Reply With Quote
  #19  
Old 09-24-2007, 03:38 PM
Bacon Butty Bacon Butty is offline
 
Join Date: Jun 2005
Posts: 309
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks very much for trying to help but I dont seem to be having much luck.

I have inserted the footer code but I think my problem lies with the DIV code am entering. Am not entirely sure how to display it so that it covers the image correctly. At the moment the div code am using below forces the image out of place

Currently the code I have on the FORUMHOME template is;
<div id="alt_login_link" style="border:1px solid red;float:right;width:300px;height:90px;">
&nbsp;
<img src="img" border="0">
</div>

The above code causes this...

The whole image is hyperlinked and forced out, when I remove the div code the image sits comfortably at the top.


When the red square/image is clicked, the login box appears below the login text rather than below the red square


If its easier I could provide you with a login?
Reply With Quote
  #20  
Old 09-24-2007, 04:32 PM
howiulf howiulf is offline
 
Join Date: Jul 2007
Location: Germany, NRW
Posts: 19
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

another nice hack!

Thank you

Me klicks install! :up:
Reply With Quote
  #21  
Old 09-24-2007, 08:20 PM
Smoothie Smoothie is offline
 
Join Date: Oct 2001
Location: New York
Posts: 1,834
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Analogpoint,

Thank you, works perfectly. I asked the same question regarding the pipe not showing in your other mod, the forumjump menu. Maybe when you have time you could let me know what I need to edit.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:56 PM.


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.04854 seconds
  • Memory Usage 2,316KB
  • Queries Executed 26 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (3)bbcode_code
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete