vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Mini Mods - Login Popup - Adds a DHTML popup login form w/ forgotten password & register links (https://vborg.vbsupport.ru/showthread.php?t=158473)

Bacon Butty 09-23-2007 11:42 PM

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 ?

ngham4host 09-24-2007 01:54 AM

thanks

AzaDiyaR 09-24-2007 01:56 AM

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

this workin for me thank you for this :D

Smoothie 09-24-2007 02:20 AM

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. :)

NoDRaC 09-24-2007 08:58 AM

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

Bacon Butty 09-24-2007 01:55 PM

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?

Analogpoint 09-24-2007 02:56 PM

Quote:

Originally Posted by Mrdby (Post 1345142)
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 (Post 1345624)
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 (Post 1345522)
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 (Post 1346024)
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.

Bacon Butty 09-24-2007 03:38 PM

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.
http://img523.imageshack.us/img523/332/94371542bv8.jpg

When the red square/image is clicked, the login box appears below the login text rather than below the red square
http://img515.imageshack.us/img515/23/65477701rj4.jpg

If its easier I could provide you with a login?

howiulf 09-24-2007 04:32 PM

another nice hack!

Thank you

Me klicks install! :up:

Smoothie 09-24-2007 08:20 PM

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.


All times are GMT. The time now is 02:50 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.01126 seconds
  • Memory Usage 1,751KB
  • 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
  • (3)bbcode_code_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete