vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   "Express" Registration (https://vborg.vbsupport.ru/showthread.php?t=27372)

LanciaStratos 09-05-2001 12:26 AM

I'd like to make a request of sorts, but I don't believe this hack would require too much...

I want unregistered/not logged in visitors to receive a small pop-up window every time they visit a page in my forums. Inside of this window, a small, stripped-down registration form would be displayed with only the essential fields. Hopefully, after a few page views, they would be annoyed enough to go ahead and fill it in or log in.

Can anyone tell me how to do this?

FreshFroot 09-05-2001 11:36 AM

This is a really great idea...surprised it hasn't been mentioned before. Maybe if we're lucky, someone will pull through.

Admin 09-05-2001 12:11 PM

The page itself is very easy, you don't need help with that (or do you?).

I can help you with the poping the page if the user isn't loggedin though:
In global.php add
PHP Code:

if ($bbuserinfo['userid']==0) {
  eval(
"\$headexpressreg = \"".gettemplate('head_expressreg')."\";");


right after
PHP Code:

  $newpmmsg=1;
  eval(
"\$headnewpm = \"".gettemplate('head_newpm')."\";");


now create a new template, head_newpm, and put this in it:
Code:

<script language="javascript"><!--
window.open('http://www.yoursite.com/forum/file.php');
// --></script>

This will pop file.php up.

LanciaStratos 09-05-2001 07:34 PM

Quote:

The page itself is very easy, you don't need help with that (or do you?).
Well, actually, I do. I can make the form of course, but how do I create it so that it adds a member to the database?

FreshFroot 09-05-2001 07:55 PM

Almost there :)

Admin 09-06-2001 10:45 AM

[QUOTE]Originally posted by LanciaStratos
Well, actually, I do. I can make the form of course, but how do I create it so that it adds a member to the database?

Joe 09-06-2001 03:24 PM

Visit automotiveforums.com, guests will get the pop-up box. I think igor did it with a javascript and cookie (i posted that code earlyer), so the guest will only get the pop-up once, or whatever you set the cookie too... Anyhow, view source of the pop-up, you get the idea :)

FreshFroot 09-06-2001 05:40 PM

Quote:

Originally posted by Joe
Visit automotiveforums.com, guests will get the pop-up box. I think igor did it with a javascript and cookie (i posted that code earlyer), so the guest will only get the pop-up once, or whatever you set the cookie too... Anyhow, view source of the pop-up, you get the idea :)
That's exactly what I'm looking for, but I'd rather have it pop up everytime until they're registered as Lancia suggested.

Joe 09-06-2001 05:49 PM

What do you mean everytime? Once a day? Once per session? Once per page view? FireFly's way will pop up on every page view, as far as i can tell, I woudlnt view many pages if i got a pop-up on each and every one! I think once per day would be fine, you can do that by setting the cookie timeout to 24hrs.

You can find the code anywhere on the net, i posted it in one of Igor's threads when he was reciving hundreds of guests from a a magazine artical...

FreshFroot 09-08-2001 01:55 AM

The pop up in this case would pop up ever time only until the register. Seeing how it's a pop up form, most people would probably register the first time the see the pop up. If they don't hopfully they'll get the picture after the second or third time.

The condensed registration form from the automotiveforums.com site is perfect. I think we might see something from FireFly :)


All times are GMT. The time now is 07:33 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.01172 seconds
  • Memory Usage 1,738KB
  • 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
  • (1)bbcode_code_printable
  • (2)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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