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)

Analogpoint 09-25-2007 12:35 AM

Quote:

Originally Posted by Bacon Butty (Post 1346094)
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.

Bacon Butty 09-25-2007 09:02 AM

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.

Analogpoint 09-25-2007 01:58 PM

Quote:

Originally Posted by Bacon Butty (Post 1346665)
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.)

yoyoyoyo 09-25-2007 03:37 PM

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.

Bacon Butty 09-25-2007 03:53 PM

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

Fantastic mod. *clicks to nominate for mod of the month*

Analogpoint 09-25-2007 04:34 PM

Quote:

Originally Posted by Bacon Butty (Post 1346885)
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;" />

Bacon Butty 09-25-2007 07:43 PM

Thanks again Analog. Support you have provided is fantastic.

Feel free to use my site as an example of whats possible with the mod.

zero_ZX 12-30-2007 08:41 AM

cant get this to work :( now it doesnt even show the login box or the popup login :(

dartho 01-21-2008 05:28 AM

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' ?

jGas 03-06-2008 04:05 PM

many thanks..i'm testing it right now and it works great!


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.01247 seconds
  • Memory Usage 1,740KB
  • 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
  • (5)bbcode_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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