Login (popup) Guest engage registration attempt

After a period of 15seconds while guest are browsing your site (per page), they are presented with the standard Login box, in an attempt to gain their registration. DEMO -> HERE just wait 15seconds LOL

 

Place the following in templates/yourTemplate/_sub_footer.html file, right at the end, after everything else.

 

<?php
if(isMember()){}else{?>
<script>
setTimeout(function(){
$(showPopupLoginForm)
}, 15000); // 15 seconds
</script>
<?php } ?>

 

That's it...

 

PS: Would love to hear your opinions on this idea.

17 May 2013

Just a followup... it was noted elsewhere that the above script would pop on the registration page ( join.php ) so use this code instead to avoid that, which insures a faultless registration from your new member.

 

<?php
if (!isMember() || strpos($_SERVER['REQUEST_URI'],'join') !== false ){}else{?>
<script>
setTimeout(function(){
$(showPopupLoginForm)
}, 15000); // 15 seconds
</script>
<?php } ?>

 

Place the code to a footer file after everything else and clear your cache

That's it...

29 May 2013

Okay, its breaking my site, how to remove. I looked where I put it and its not there. So where to look? What happens in my situation is after 15 seconds no matter what page your on it redirects back to home page with form hidden in the background. I see the side background changing. Please help.

Vunderba..... Challenge Yourself to be the Best...... Hosting from Zarconia.net
30 May 2013

Fixed found and removed, my mistake put in sub header instead of footer. Can you be more clear on the placement of the mod. Is it after the last /div or before?

Vunderba..... Challenge Yourself to be the Best...... Hosting from Zarconia.net
30 May 2013

Sorry for any misunderstanding....

 

To avoid any confusion I have created a module for this so its easily activated through Modules Administration

Go to this post -> http://www.boonex.com/forums/topic/-NEW-Login-popup-Guest-engage-registration.htm

30 May 2013

Locked to avoid confusion.  In the future, however, please stick to one topic.

BoonEx Certified Host: Zarconia.net - Fully Supported Shared and Dedicated for Dolphin
30 May 2013
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.