Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Programming Discussions
  #1  
Old 05-23-2008, 04:42 PM
geevest.com geevest.com is offline
 
Join Date: Apr 2006
Posts: 709
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Make popup always open the forum

anyone know how? in my forum, mostly user guest doesnt want to register. How to makes them to "want" to register?i want to make a popup that quiet big so every guest whos opened my forum there will be show up that popup and there is no choise for them to not register. is there any module like that? or anyone that have amy idea or suggestion how to makes guest to register?
Reply With Quote
  #2  
Old 05-24-2008, 02:21 AM
GameWizard's Avatar
GameWizard GameWizard is offline
 
Join Date: Apr 2004
Location: Vancouver, BC
Posts: 319
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Any standard popup code will work, simply search google for "Javascript Popup" or something along those lines. And if you want it to appear only for unresgistered, you will need use a conditional as follows:

<if condition="$show['guest']">
popup code
</if>

And if you want it to open up automatically you will need to add the javascript function to the body "onload". You can google this as well to know how to do it.
Reply With Quote
  #3  
Old 05-24-2008, 04:21 AM
veenuisthebest's Avatar
veenuisthebest veenuisthebest is offline
 
Join Date: Mar 2008
Location: India
Posts: 1,416
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
i want to make a popup that quiet big so every guest whos opened my forum there will be show up that popup
i think that won't be a nice thing to do so just to register on the website.. !! POPUP's are always irritating for anybody ..

Quote:
and there is no choise for them to not register.
but they still have a choice to leave !!

hey geevest , why not spend some time in creating a beautiful welcome header instead of thinking ways to forcefully get them registered. This would instead reduce your registration rates. People register only if they want to, and if they find it worth registering.. for this all you need is REAL CONTENT.
Reply With Quote
  #4  
Old 05-24-2008, 08:33 AM
geevest.com geevest.com is offline
 
Join Date: Apr 2006
Posts: 709
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by veenuisthebest View Post
i think that won't be a nice thing to do so just to register on the website.. !! POPUP's are always irritating for anybody ..



but they still have a choice to leave !!

hey geevest , why not spend some time in creating a beautiful welcome header instead of thinking ways to forcefully get them registered. This would instead reduce your registration rates. People register only if they want to, and if they find it worth registering.. for this all you need is REAL CONTENT.
im already made a beautiful words.to make them to register.but if u know.indonesian people mostly they just want to see the content,they where so lazy to type to do a register.i already do manythings to make them want to register but until now the result is still same.
maybe i have to use another facility like livepal (human speaking) but it was an animation.
but it was very expensive price for people like me who is started from the begining.
thank you very much.

--------------- Added [DATE]1211630047[/DATE] at [TIME]1211630047[/TIME] ---------------

im using popup automatic software.

the guide :
paste this code in to ur page before the </head> tag

<script src=http://www.namedomain.com/forum/popup/awesomepopup.js"></script>


paste this code in to ur body tag <body>
onLoad="checkCount(3)"

in forum home i put this code :
Code:
1="$vboptions[bbtitle]">$vbphrase[x_powered_by_vbulletin]</phrase></title>
<script src=http://www.namedomain.com/forum/popup/awesomepopup.js"></script>
</head>
in forumhome body :
Code:
<body onLoad="checkCount(3)">
but popup not show.anyone know?
Reply With Quote
  #5  
Old 06-02-2008, 05:22 AM
usertr usertr is offline
 
Join Date: May 2007
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What template(s) are you modifying to add the onload attribute to the body tag?
Reply With Quote
  #6  
Old 06-02-2008, 02:56 PM
geevest.com geevest.com is offline
 
Join Date: Apr 2006
Posts: 709
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Forumhome / header page.
Reply With Quote
  #7  
Old 06-02-2008, 05:57 PM
usertr usertr is offline
 
Join Date: May 2007
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The FORUM HOME would certainly be the right place to find the body tag for the main forum page. Deeper into the site, of course, you'd modify the body tag from a different template, like FORUMDISPLAY or SHOWTHREAD, for example.

You've got a reference to a .js file in your header template. I might have put it in my headinclude template, but it should work in the header template, just so long as it's in place before the body tag. However:

in this code:
Quote:
<script src=http://www.namedomain.com/forum/popup/awesomepopup.js"></script>
you are calling an external javascript file, namely awesomepopup.js in your forum/popup folder. This file has to be uploaded to that folder. (maybe you're way ahead of me on this) It should contain the javascript function specification for the "checkCount" function, which you call with a parameter of 3 in your body tag onload attribute (this is an event). Of course "namedomain.com" is your web site address.

Have you uploaded that file? Should be on the site where you got the code.
Reply With Quote
Reply

Thread Tools
Display Modes

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 07:46 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.03780 seconds
  • Memory Usage 2,218KB
  • Queries Executed 13 (?)
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
  • (2)bbcode_code
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (7)post_thanks_box
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (7)post_thanks_postbit_info
  • (7)postbit
  • (7)postbit_onlinestatus
  • (7)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_postinfo_query
  • fetch_postinfo
  • 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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete