Lavalair Greetings

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Lavalair Greetings

    Hey People...Can Anyone please tell me how i can make the Index page of the lavalair say GOODMORNING NICK!,GOOD AFTERNOON,GOOD EVENING NICK etc......instead of it saying HELLO NICK! eg: GOOD MORNING NETGUY! instead of HELLO NETGUY!.......Hope you understand me....i have searched this whole forum for it but i never got any good results.........PLEASE HELPPPPPPPPPPP




    Thanks In Advance...

    #2
    here mate use this time msg script if u know how to use php codes then figure out how to place this code if not ask ill help u out


    <?php

    $TimeZone="8"; ////Change the TimeZone accordingly!
    $New_Time = time() + ($TimeZone * 60 * 60);

    $show_date=date("D dS F, Y",$New_Time);
    $show_time=date("H:i",$New_Time);
    $Hour=date("G",$New_Time);

    echo $show_date;
    echo"
    ";
    echo $show_time;
    echo"
    ";


    ////////////////Here you can change the messages, add lines with different hours etc. You could even display a different message every hour.////////////////

    if ($Hour <= 4) { echo &#39;Hello night owl!&#39;; }

    else if ($Hour <= 11) { echo &#39;Good morning!&#39;; }

    else if ($Hour <= 12) { echo &#39;Enjoy your lunch!&#39;; }

    else if ($Hour <= 17) { echo &#39;Good afternoon!&#39;; }

    else if ($Hour <= 23) { echo &#39;Good Evening!&#39;; }

    ?>
    Failure is not when a girls leaves you, its only when you let her go virgin. heheh!!

    <span style="color:#9ACD32"><span style="font-size:36pt;line-height:100%">BEST MOBILE ADVERTISER</span></span>

    Comment


      #3
      Where am i gonna put this code?????? is it in Time.php or Index.php?????? i Use LAVALIR SCRIPT

      Comment


        #4
        in ur index replace it with these codes




        ////////////////////////////////////////MAIN PAGE
        if($action=="main")
        {
        addvisitor();
        addonline(getuid_sid($sid),"Forum Index","index.php?action=$action");
        //saveuinfo($sid);

        echo "<card id=\"main\" title=\"xxxx\">";
        echo "<p align=\"center\">";
        echo "<img src=\"images/logo.gif\" alt=\"*\"/>
        ";
        $TimeZone="8"; ////Change the TimeZone accordingly!
        $New_Time = time() + ($TimeZone * 60 * 60);

        $show_date=date("D dS F, Y",$New_Time);
        $show_time=date("H:i",$New_Time);
        $Hour=date("G",$New_Time);


        ////////////////Here you can change the messages, add lines with different hours etc. You could even display a different message every hour.////////////////

        if ($Hour <= 4) { echo &#39;Hello night owl!&#39;; }

        else if ($Hour <= 11) { echo &#39;Good morning!&#39;; }

        else if ($Hour <= 12) { echo &#39;Enjoy your lunch!&#39;; }

        else if ($Hour <= 17) { echo &#39;Good afternoon!&#39;; }

        else if ($Hour <= 23) { echo &#39;Good Evening!&#39;; }
        $nick = getnick_sid($sid);
        echo "$nick rules!
        ";
        $chs = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_chonline"));
        echo "<a href=\"index.php?action=chat&amp;sid=$sid\">»Chatr ooms($chs[0])</a>
        ";

        $fmsg = htmlspecialchars(getfmsg());

        $tmsg = getpmcount(getuid_sid($sid));
        $umsg = getunreadpm(getuid_sid($sid));
        //$new_gm = getnewgml(getuid_sid($sid));
        echo "<a href=\"inbox.php?action=main&amp;sid=$sid\">»Inbox ($umsg/$tmsg)«</a>
        ";

        echo "$fmsg
        ";
        echo "</p>

        <small>";
        Failure is not when a girls leaves you, its only when you let her go virgin. heheh!!

        <span style="color:#9ACD32"><span style="font-size:36pt;line-height:100%">BEST MOBILE ADVERTISER</span></span>

        Comment


          #5
          thx cro i&#39;ll try it now

          Comment


            #6
            it worked thnxxx but there&#39;s a problem....my time is not showing on that page again......please tell me how to add my time back )

            Comment


              #7
              here add this one


              ////////////////////////////////////////MAIN PAGE
              if($action=="main")
              {
              addvisitor();
              addonline(getuid_sid($sid),"Forum Index","index.php?action=$action");
              //saveuinfo($sid);

              echo "<card id=\"main\" title=\"xxxx\">";
              echo "<p align=\"center\">";
              //echo "".date("D d M y-H:i:s")."
              ";
              echo "".date("D d M y - ")."\n";
              echo "<a href=\"time.php?sid=$sid\">".date("H:i")."</a>
              ";
              echo "<img src=\"images/logo.gif\" alt=\"*\"/>
              ";
              $TimeZone="8"; ////Change the TimeZone accordingly!
              $New_Time = time() + ($TimeZone * 60 * 60);

              $show_date=date("D dS F, Y",$New_Time);
              $show_time=date("H:i",$New_Time);
              $Hour=date("G",$New_Time);


              ////////////////Here you can change the messages, add lines with different hours etc. You could even display a different message every hour.////////////////

              if ($Hour <= 4) { echo &#39;Hello night owl!&#39;; }

              else if ($Hour <= 11) { echo &#39;Good morning!&#39;; }

              else if ($Hour <= 12) { echo &#39;Enjoy your lunch!&#39;; }

              else if ($Hour <= 17) { echo &#39;Good afternoon!&#39;; }

              else if ($Hour <= 23) { echo &#39;Good Evening!&#39;; }
              $nick = getnick_sid($sid);
              echo "$nick rules!
              ";
              $chs = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_chonline"));
              echo "<a href=\"index.php?action=chat&amp;sid=$sid\">»Chatr ooms($chs[0])</a>
              ";

              $fmsg = htmlspecialchars(getfmsg());

              $tmsg = getpmcount(getuid_sid($sid));
              $umsg = getunreadpm(getuid_sid($sid));
              //$new_gm = getnewgml(getuid_sid($sid));
              echo "<a href=\"inbox.php?action=main&amp;sid=$sid\">»Inbox ($umsg/$tmsg)«</a>
              ";

              echo "$fmsg
              ";
              echo "</p>

              <small>";


              see if it works
              Failure is not when a girls leaves you, its only when you let her go virgin. heheh!!

              <span style="color:#9ACD32"><span style="font-size:36pt;line-height:100%">BEST MOBILE ADVERTISER</span></span>

              Comment


                #8
                let me try thnx learner

                Comment


                  #9
                  it should work if any error let me know ill be more than happy to help u out, im not one of the proud people here who can help but will not help
                  Failure is not when a girls leaves you, its only when you let her go virgin. heheh!!

                  <span style="color:#9ACD32"><span style="font-size:36pt;line-height:100%">BEST MOBILE ADVERTISER</span></span>

                  Comment


                    #10
                    THANKKKKSSSSSSSSS Learner but i have 1 little problem the time is not correct.....at present the time in my area is 10.54 AM but its saying 4.54 pls help.....

                    Comment


                      #11
                      where u from?
                      Failure is not when a girls leaves you, its only when you let her go virgin. heheh!!

                      <span style="color:#9ACD32"><span style="font-size:36pt;line-height:100%">BEST MOBILE ADVERTISER</span></span>

                      Comment


                        #12
                        Africa / Nigeria

                        Comment


                          #13
                          search on forums there is a way to change time zone in ur script i forgot what it was there is a code u need to put in config.php
                          Failure is not when a girls leaves you, its only when you let her go virgin. heheh!!

                          <span style="color:#9ACD32"><span style="font-size:36pt;line-height:100%">BEST MOBILE ADVERTISER</span></span>

                          Comment


                            #14
                            or put this in ur config file


                            putenv("TZ=Africa/Johannesburg");

                            i thnk its the same time zone as urs.....aaaaaaaaaaand maybe its not...lol



                            oh yeah, but then change it $TimeZone="8"; ////Change the TimeZone accordingly! <------ put "0"


                            and this will fix ur entire script time....forums, chat,shoutbox, etc....
                            sigpiceeeeerrr....

                            Comment

                            Working...
                            X