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
  #22  
Old 09-25-2007, 12:35 AM
Analogpoint's Avatar
Analogpoint Analogpoint is offline
 
Join Date: Feb 2007
Posts: 656
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Bacon Butty View Post
Thanks very much for trying to help but I dont seem to be having much luck.

snip
Put the div before the image:

Code:
<div id="alt_login_link" style="border:1px solid red;float:right;width:300px;height:90px;">
&nbsp;
</div>
<img src="http://www.grandoldteam.com/images/topbar.png" border="0">
As for the login popup showing up under the navbar link, that's where it will be. Clicking the div just does the same as clicking the log in link in the navbar. Give it a try and see what you think.
Reply With Quote
  #23  
Old 09-25-2007, 09:02 AM
Bacon Butty Bacon Butty is offline
 
Join Date: Jun 2005
Posts: 309
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Still no luck Analog,

http://img101.imageshack.us/img101/2118/topsx7.jpg

Hmm, all I want is for a login image (probably imagemapped) to either link to an actual login page or more ideally prompt a login box.

Thanks for helping, much appreciated.
Reply With Quote
  #24  
Old 09-25-2007, 01:58 PM
Analogpoint's Avatar
Analogpoint Analogpoint is offline
 
Join Date: Feb 2007
Posts: 656
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Bacon Butty View Post
Still no luck Analog,

http://img101.imageshack.us/img101/2118/topsx7.jpg

Hmm, all I want is for a login image (probably imagemapped) to either link to an actual login page or more ideally prompt a login box.

Thanks for helping, much appreciated.
I haven't worked with imagemaps before, so can't give you any advice about them. What I would do for this is slice your image in 2 pieces. #1 the left 3/4 of the current image, with the register link in the middle, #2 the right 1/4 of the image with the word login. Then put them in a table:

Code:
<table border="0" cellpadding="0" cellspacing="0" width="100%">
  <tr>
    <td>
      <img src="left-side.png" border="0" />
    </td>
  </tr>
  <tr>
    <td>
      <img src="right-side.png" border="0" id="alt_login_link" />
    </td>
  </tr>
</table>
Have the id="alt_login_link" on the right hand image, so clicking it will activate the login box.

I would also wrap the whole shebang in a conditional:

Code:
<if condition="$show[guest]">
  <table border="0" cellpadding="0" cellspacing="0" width="100%">
    <tr>
      <td>
        <img src="left-side.png" border="0" />
      </td>
    </tr>
    <tr>
      <td>
        <img src="right-side.png" border="0" id="alt_login_link" />
      </td>
    </tr>
  </table>
<else />
 // show a different image to logged in members
</if>
So it only gets show to people who aren't logged in. You could make another image to show to logged-in users (maybe with links to their profile or something.)
Reply With Quote
  #25  
Old 09-25-2007, 03:37 PM
yoyoyoyo's Avatar
yoyoyoyo yoyoyoyo is offline
 
Join Date: Dec 2004
Location: USA
Posts: 1,612
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I had problems with this hack in vbadvanced when trying to login from the portal index page, but I fixed it by adding my forum url to the 2 instances of login.php in the product. So, if anyone is having the same problems there is a quick fix.
Reply With Quote
  #26  
Old 09-25-2007, 03:53 PM
Bacon Butty Bacon Butty is offline
 
Join Date: Jun 2005
Posts: 309
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Works a treat!, thanks a lot for your help.

Fantastic mod. *clicks to nominate for mod of the month*
Reply With Quote
  #27  
Old 09-25-2007, 04:34 PM
Analogpoint's Avatar
Analogpoint Analogpoint is offline
 
Join Date: Feb 2007
Posts: 656
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Bacon Butty View Post
Works a treat!, thanks a lot for your help.

Fantastic mod. *clicks to nominate for mod of the month*
I just visited your forum and there's one last thing I would do. Add the following to the right hand image, so that the mouse pointer will change to a hand over the image.

Code:
style="cursor:pointer;"
Like this:
Code:
<img src="right-side.png" border="0" id="alt_login_link" style="cursor:pointer;" />
Reply With Quote
  #28  
Old 09-25-2007, 07:43 PM
Bacon Butty Bacon Butty is offline
 
Join Date: Jun 2005
Posts: 309
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks again Analog. Support you have provided is fantastic.

Feel free to use my site as an example of whats possible with the mod.
Reply With Quote
  #29  
Old 12-30-2007, 08:41 AM
zero_ZX zero_ZX is offline
 
Join Date: Sep 2007
Posts: 29
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

cant get this to work now it doesnt even show the login box or the popup login
Reply With Quote
  #30  
Old 01-21-2008, 05:28 AM
dartho dartho is offline
 
Join Date: Sep 2005
Location: Australia
Posts: 2,303
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This looks good!

You should probably say "install it, test it and you will find out" (which I will likely do before you reply anyway) but what screen appears when it 'degrades' ?
Reply With Quote
  #31  
Old 03-06-2008, 04:05 PM
jGas jGas is offline
 
Join Date: May 2007
Posts: 172
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

many thanks..i'm testing it right now and it works great!
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:54 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.04955 seconds
  • Memory Usage 2,311KB
  • 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
  • (5)bbcode_code
  • (3)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
  • (4)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