Lavalair Greetings

Started on the old forum in July 2007 · view the original in the archive · old links redirect here

13 replies · 1,132 views · started 19 years ago · 1 min read

2 participants
Guest #1

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...

learner Lead · 587 posts #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 'Hello night owl!'; } else if ($Hour <= 11) { echo 'Good morning!'; } else if ($Hour <= 12) { echo 'Enjoy your lunch!'; } else if ($Hour <= 17) { echo 'Good afternoon!'; } else if ($Hour <= 23) { echo 'Good Evening!'; } ?>

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

BEST MOBILE ADVERTISER

External image (may be gone)

Guest #3

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

learner Lead · 587 posts #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 " "; 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 'Hello night owl!'; }

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

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

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

else if ($Hour <= 23) { echo 'Good Evening!'; } $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&sid=$sid">»Chatrooms($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&sid=$sid">»Inbox($umsg/$tmsg)«</a> ";

echo "$fmsg"; echo "

";

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

BEST MOBILE ADVERTISER

External image (may be gone)

Guest #6

it worked thnxxx but there's a problem....my time is not showing on that page again......please tell me how to add my time back External image (may be gone))

learner Lead · 587 posts #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 " "; //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 'Hello night owl!'; }

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

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

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

else if ($Hour <= 23) { echo 'Good Evening!'; } $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&sid=$sid">»Chatrooms($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&sid=$sid">»Inbox($umsg/$tmsg)«</a> ";

echo "$fmsg"; echo "

";

see if it works

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

BEST MOBILE ADVERTISER

External image (may be gone)

Guest #8

let me try thnx learner

learner Lead · 587 posts #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!!

BEST MOBILE ADVERTISER

External image (may be gone)

Guest #10

THANKKKKSSSSSSSSS Learner External image (may be gone) 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.....

Guest #12

Africa / Nigeria

alesh Lead · 604 posts #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....

eeeeerrr....

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close