Register / login floating notification

Looking for a MOD? Have a MOD request? Post here for help. (Note: This forum is community supported; phpBB does not have official MOD authors)
Scam Warning
Locked
User avatar
zigic
Registered User
Posts: 169
Joined: Tue Dec 25, 2012 7:15 pm

Register / login floating notification

Post by zigic » Tue Nov 12, 2013 9:47 pm

Im looking for a float notification for users to register or login. Something like this one here:
http://www.thejokersclan.net/forum

User avatar
Lumpy Burgertushie
Registered User
Posts: 66324
Joined: Mon May 02, 2005 3:11 am
Contact:

Re: Register / login floating notification

Post by Lumpy Burgertushie » Tue Nov 12, 2013 9:54 pm

I did a search here for login popup and found this:
viewtopic.php?p=12847620#p12847620

luck,
robert
I'm baaaaaccckkkk. still doing work on donation basis. PM your needs.

Premium phpBB 3.2 Styles by PlanetStyles.net

If a tree falls in the forest and nobody is there, does it make a sound?

User avatar
zigic
Registered User
Posts: 169
Joined: Tue Dec 25, 2012 7:15 pm

Re: Register / login floating notification

Post by zigic » Thu Nov 14, 2013 3:32 pm

Tnx Lumpy, but I couldn't get that to work properly.

Anyway, I believe this must be some kind of a mod since I found the same one here:
http://help.forumotion.com/forum

User avatar
Lumpy Burgertushie
Registered User
Posts: 66324
Joined: Mon May 02, 2005 3:11 am
Contact:

Re: Register / login floating notification

Post by Lumpy Burgertushie » Thu Nov 14, 2013 5:03 pm

zigic wrote:Tnx Lumpy, but I couldn't get that to work properly.

Anyway, I believe this must be some kind of a mod since I found the same one here:
http://help.forumotion.com/forum
the first site you linked and that one are both forumotion boards . that popup is apparently something custom made for forumotion. you can turn it on or off from your forumotion board admin panel.

I found most of the code for it but not all because I can't get it to work in my test board.

robert
I'm baaaaaccckkkk. still doing work on donation basis. PM your needs.

Premium phpBB 3.2 Styles by PlanetStyles.net

If a tree falls in the forest and nobody is there, does it make a sound?

User avatar
FranckTH
Registered User
Posts: 361
Joined: Thu Jul 28, 2011 12:14 pm
Location: France
Name: Franck
Contact:

Re: Register / login floating notification

Post by FranckTH » Thu Nov 14, 2013 5:53 pm

Hi,

Upload "popup.js" in your styles/prosilver/template/popup.js
popup.zip

Open file styles/prosilver/theme/content.css

At the end, add :

Code: Select all

#login_popup {
   display:none;
   padding:6px;
   position:absolute;
   z-index:10000;
}

#login_popup .h3 {
   margin:0 0 6px;
   padding:0 0 6px;
}

#login_popup_buttons {
   bottom:6px;
   text-align: center;
   right:6px;
}

#login_popup_buttons input {
   margin-left:6px;
   margin-bottom: 6px;
}
Open file styles/prosilver/template/overall_header.html

Find :

Code: Select all

</head>
Before add :

Code: Select all

<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js" type="text/javascript"></script>
<script src="{T_SUPER_TEMPLATE_PATH}/popup.js" type="text/javascript"></script>
<script type="text/javascript">
//<![CDATA[
var logInPopUpLeft, logInPopUpTop, logInPopUpWidth = 350, logInPopUpHeight = 250, logInBackgroundResize = true, logInBackgroundClass = false;

$(document).ready( function() {
   $(window).resize(function() {
      var windowWidth = document.documentElement.clientWidth;
      var popupWidth = $("#login_popup").width();
      var mypopup = $("#login_popup");
      $("#login_popup").css({"left": windowWidth/2 - popupWidth/2});
   });
});
//]]>
</script>
Find :

Code: Select all

<body id="phpbb" class="section-{SCRIPT_NAME} {S_CONTENT_DIRECTION}">
Add after :

Code: Select all

    <!-- IF not S_USER_LOGGED_IN and (SCRIPT_NAME == 'index' || SCRIPT_NAME == 'viewforum' || SCRIPT_NAME == 'viewtopic') -->
    <div id="login_popup">
       <div class="panel">
          <div class="inner"><span class="corners-top"><span></span></span>
             <div class="h3">{L_WELCOME_TITLE} {SITENAME}</div>
             <p style="text-align: justify;">{SITE_DESCRIPTION}</p>
             <p style="text-align: justify;">{L_WELCOME_MESSAGE}</p>
             <br />
             <div id="login_popup_buttons">
                <form action="{S_LOGIN_ACTION}" method="post">
                   <input type="submit" class="button1" value="{L_LOGIN}" onclick="parent.location='{U_LOGIN_ACTION}';" />
                   <input type="button" class="button1" value="{L_REGISTER}" onclick="parent.location='{U_REGISTER}';" />
                   <input id="login_popup_close" type="button" class="button2" value="{L_DONT_DISPLAY_AGAIN}" />
                </form>
             </div>
          <span class="corners-bottom"><span></span></span></div>
       </div>
    </div>
    <!-- ENDIF -->
Open file language/en/common.php

Find :

Code: Select all

?>
Before add :

Code: Select all

$lang = array_merge($lang, array(
    'DONT_DISPLAY_AGAIN'    => 'Do not display again',
    'WELCOME_MESSAGE'        => 'To take full advantage of everything offered by our forum, please log in if you are already a member or join our community if you’re not yet....',
    'WELCOME_TITLE'            => 'Welcome on ',
)); 
Credit : thanks Dakin ;)
Last edited by FranckTH on Thu Nov 14, 2013 8:04 pm, edited 1 time in total.
Free Flash & HTML5 Games for Phpbb 3.2.2 + Extension Relax Arcade Pro
Free Flash & HTML5 Games for Relax Arcade Pro

User avatar
Tigerman75
Registered User
Posts: 84
Joined: Wed Jan 25, 2012 6:52 am
Location: {postrow.U_DELETE}---->Italy
Name: Tiger
Contact:

Re: Register / login floating notification

Post by Tigerman75 » Thu Nov 14, 2013 7:23 pm

Thanks FranckTH :) ;) Very good. ;)

A small bug ,on language replace for this code:

Code: Select all

$lang = array_merge($lang, array(
    'DONT_DISPLAY_AGAIN'    => 'Do not display again',
    'WELCOME_MESSAGE'        => 'To take full advantage of everything offered by our forum, please log in if you are already a member or join our community if you’re not yet....',
    'WELCOME_TITLE'            => 'Welcome on ',
));
forbidden ' in
'DONT_DISPLAY_AGAIN' => Do not display again',

And
'WELCOME_MESSAGE' => 'To take full advantage of everything offered by our forum, please log in if you are already a member or join our community if you're not yet....',

if you're
replace:
if you’re

Thanks for sharing this mod. ;)
The war to be continues.

User avatar
FranckTH
Registered User
Posts: 361
Joined: Thu Jul 28, 2011 12:14 pm
Location: France
Name: Franck
Contact:

Re: Register / login floating notification

Post by FranckTH » Thu Nov 14, 2013 7:27 pm

thanks and sorry for this error ;)
Free Flash & HTML5 Games for Phpbb 3.2.2 + Extension Relax Arcade Pro
Free Flash & HTML5 Games for Relax Arcade Pro

User avatar
Tigerman75
Registered User
Posts: 84
Joined: Wed Jan 25, 2012 6:52 am
Location: {postrow.U_DELETE}---->Italy
Name: Tiger
Contact:

Re: Register / login floating notification

Post by Tigerman75 » Thu Nov 14, 2013 8:05 pm

FranckTH wrote:thanks and sorry for this error ;)
No problem FranckTH,thanks you very macht for sharing this code. ;)
The war to be continues.

User avatar
zigic
Registered User
Posts: 169
Joined: Tue Dec 25, 2012 7:15 pm

Re: Register / login floating notification

Post by zigic » Fri Nov 15, 2013 12:26 am

Perfect!!! Thank you soooo much :D

Marco_l87
Registered User
Posts: 20
Joined: Thu Feb 19, 2015 11:27 am

Re: Register / login floating notification

Post by Marco_l87 » Tue Mar 10, 2015 10:47 am

FranckTH wrote:Hi,
Upload "popup.js" in your styles/prosilver/template/popup.js
popup.zip
The download link is broken, could you re-upload?
Thanks!

User avatar
FranckTH
Registered User
Posts: 361
Joined: Thu Jul 28, 2011 12:14 pm
Location: France
Name: Franck
Contact:

Re: Register / login floating notification

Post by FranckTH » Thu May 14, 2015 10:16 am

popup.zip

sorry for the long time...
Free Flash & HTML5 Games for Phpbb 3.2.2 + Extension Relax Arcade Pro
Free Flash & HTML5 Games for Relax Arcade Pro

Locked

Return to “[3.0.x] MOD Requests”