Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 09-05-2001, 12:26 AM
LanciaStratos's Avatar
LanciaStratos LanciaStratos is offline
 
Join Date: Oct 2001
Location: somewhere you're not
Posts: 221
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #2  
Old 09-05-2001, 11:36 AM
FreshFroot
Guest
 
Posts: n/a
Default

This is a really great idea...surprised it hasn't been mentioned before. Maybe if we're lucky, someone will pull through.
Reply With Quote
  #3  
Old 09-05-2001, 12:11 PM
Admin's Avatar
Admin Admin is offline
Coder
 
Join Date: Oct 2023
Location: Server
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #4  
Old 09-05-2001, 07:34 PM
LanciaStratos's Avatar
LanciaStratos LanciaStratos is offline
 
Join Date: Oct 2001
Location: somewhere you're not
Posts: 221
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #5  
Old 09-05-2001, 07:55 PM
FreshFroot
Guest
 
Posts: n/a
Default

Almost there
Reply With Quote
  #6  
Old 09-06-2001, 10:45 AM
Admin's Avatar
Admin Admin is offline
Coder
 
Join Date: Oct 2023
Location: Server
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

[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?
Reply With Quote
  #7  
Old 09-06-2001, 03:24 PM
Joe Joe is offline
 
Join Date: Oct 2001
Posts: 75
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #8  
Old 09-06-2001, 05:40 PM
FreshFroot
Guest
 
Posts: n/a
Default

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.
Reply With Quote
  #9  
Old 09-06-2001, 05:49 PM
Joe Joe is offline
 
Join Date: Oct 2001
Posts: 75
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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...
Reply With Quote
  #10  
Old 09-08-2001, 01:55 AM
FreshFroot
Guest
 
Posts: n/a
Default

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
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:29 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.04745 seconds
  • Memory Usage 2,264KB
  • Queries Executed 12 (?)
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
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_code
  • (2)bbcode_php
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (6)postbit_onlinestatus
  • (10)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