Activity Stream
48,167 MEMBERS
6959 ONLINE
besthostingforums On YouTube Subscribe to our Newsletter besthostingforums On Twitter besthostingforums On Facebook besthostingforums On facebook groups

Results 1 to 7 of 7
  1.     
    #1
    ლ(ಠ益ಠლ)
    Website's:
    extremecoderz.com

    Default [phpbb3] New PM Customizeable lightbox

    This mod will create a "lightbox" New PM notification.

    NOTE: This modification requires that "notify me on new private messages" be enabled in your UCP.


    1) Download RokBox STANDALONE:
    2) Upload the folder "rokbox" from the zip file to your "public_html" root folder.

    3)

    IN: Overall_header.html

    Find and REMOVE:
    Code: 
        <!-- IF S_USER_PM_POPUP -->
            if ({S_NEW_PM})
            {
                var url = '{UA_POPUP_PM}';
                window.open(url.replace(/&amp;/g, '&'), '_phpbbprivmsg', 'height=225,resizable=yes,scrollbars=yes, width=400');
            }
        <!-- ENDIF -->
    Find:
    Code: 
    </head>
    Add BEFORE:
    Code: 
    <script type="text/javascript" src="rokbox/mootools-release-1.11.js"></script>
    
    <script type="text/javascript" src="rokbox/rokbox.js"></script>
    <link href="rokbox/themes/dark/rokbox-style.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="rokbox/themes/light/rokbox-config.js"></script>
    Find:
    Code: 
    <body
    In-Line, add After:
    Code: 
    onload="<!-- IF S_DISPLAY_PM -->clickElement('myclicker')<!-- ENDIF -->"
    Find:
    Code: 
    <div id="wrap">
    Add Before:
    Code: 
    <!-- IF S_DISPLAY_PM -->
    <a id="myclicker" rel="rokbox[320 40][module=privmsg]" href="#" title="" accesskey="l"></a>
    <!-- ENDIF -->
    IN: Overall_Footer.html

    Find:
    Code: 
    </body>
    Add BEFORE:
    Code: 
    <!-- IF S_DISPLAY_PM -->
    <!-- INCLUDE newPM.html -->
    
    <script type="text/javascript">
    function clickElement(elementid){
    if ({S_NEW_PM})
    {
    var e = document.getElementById(elementid);
        if (typeof e == 'object') {
            /*if(typeof e.click != 'undefined') {
                e.click();
                alert('click');
                return false;
            }
            else */
            if(document.createEvent) {
                var evObj = document.createEvent('MouseEvents');
                evObj.initEvent('click',true,true);
                e.dispatchEvent(evObj);
                return false;
            }
            else if(document.createEventObject) {
                e.fireEvent('onclick');
                alert('createEventObject');
                return false;
            }
            else {
                e.click();
                alert('click');
                return false;
            }
        }
    }
    }
    </script>
    <!-- ENDIF -->
    ok.
    Create a new file in /styles/myTemplate/template called "newPM.html" and paste the following

    into it, or create your own:

    Code: 
    <style type="text/css">
    #privmsg {display: none;}
    </style>
    
    <div id="privmsg">
    <center>
    <table border="0" cellspacing="0" cellpadding="0">
    <tr>
    <td valign="top" style="padding-left: 6px;">
    You have a new message. Would you like to read it?
    </td>
    </tr>
    </table>
    <br />
    <a href="ucp.php?i=pm&folder=inbox"><button type="button">Yes</button></a>
    &nbsp;&nbsp;
    <a href="#" onClick="javascript:rokbox.close()"><button type="button">No</button></a>
    </center>
    </div>
    PURGE CACHE. DONE.

    CUSTOMIZING:

    To change the color of the lightbox, the rokbox theme path must be changed:

    Dark:
    Code: 
    <link href="rokbox/themes/dark/rokbox-style.css" rel="stylesheet" type="text/css" />
    Light:
    Code: 
    <link href="rokbox/themes/light/rokbox-style.css" rel="stylesheet" type="text/css" />
    To change the layout of the alert, simply edit "/styles/myTheme/Template/newPM.html"

    This modification uses MooTools. More modifications will be added by me to further use these tools.
    jayfella Reviewed by jayfella on . [phpbb3] New PM Customizeable lightbox This mod will create a "lightbox" New PM notification. NOTE: This modification requires that "notify me on new private messages" be enabled in your UCP. http://imgcentre.com/img/uploads/big/39cf905e8f.png 1) Download RokBox STANDALONE: http://rocketwerx.com/products/rokbox/download2) Upload the folder "rokbox" from the zip file to your "public_html" root folder. 3) Rating: 5

  2.   Sponsored Links

  3.     
    #2
    Member
    Website's:
    wuploadlinks.net fileserve-movies.net fsdown.org
    Great mod mate...

    Please click the image above!

  4.     
    #3
    Member
    Nice work jay
    This is the staff, you have been banned

  5.     
    #4
    Banned
    Website's:
    seekingw.com uwddl.com generalgamers.co.uk motivatedgamerz.com
    Nice one

  6.     
    #5
    Banned
    Great Work As Usual

  7.     
    #6
    Member
    Website's:
    eih.bz pornDDL.me sexytattoochicks.tumblr.com
    bb2 please?

  8.     
    #7
    ლ(ಠ益ಠლ)
    Website's:
    extremecoderz.com
    i have no idea how to do it in bb2 m8. never used it in my life

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Text Lightbox
    By n4pst3r in forum Wordpress
    Replies: 2
    Last Post: 12th Jul 2011, 02:52 PM
  2. [Hiring] Lightbox for Text in Wordpress
    By haseeb221093 in forum Completed Transactions
    Replies: 0
    Last Post: 17th Jun 2011, 04:50 PM
  3. Colorbox/Lightbox and frames
    By snowmanrene in forum Web Development Area
    Replies: 1
    Last Post: 23rd Jan 2011, 05:35 PM
  4. [VB 3.8.x]WGTools iframe lightbox popup
    By patt1293 in forum Webmaster Resources
    Replies: 10
    Last Post: 18th Feb 2010, 02:27 AM
  5. [phpbb]WGTools iframe lightbox popup
    By shadow.prx in forum Webmaster Resources
    Replies: 8
    Last Post: 17th Feb 2010, 02:50 AM

Tags for this Thread

BE SOCIAL