Welcome, Guest. Please Login or Register.
May 06, 2024, 09:47:56 PM
Home Help Search Log in Register
News: If you are still using YaBB SE, please consider upgrading to SMF as soon as possible.

YaBB SE Community  |  Development  |  Completed mods  |  [DONE] Welcome text "extra" « previous next »
Pages: [1] 2 Reply Ignore Print
Author Topic: [DONE] Welcome text "extra"  (Read 7987 times)
Webby
Beta Tester
YaBB God
*****
Posts: 829


Some mistakes are too funny to make only once.

ICQ - 9814812webby@salesplaza.nl WWW
[DONE] Welcome text "extra"
« on: April 28, 2002, 07:46:01 PM »
Reply with quote

When you want to greet people in a slightly other way, and want to display special days on your board, replace $txt[247] AND $txt[248] in the English.lng by :

$txt[w01] = "Goodnight";
$txt[w02] = "Goodmorning";
$txt[w03] = "Goodafternoon";
$txt[w04] = "Goodevening";
$weetikveel = "<SCRIPT LANGUAGE=\"JavaScript\"><!--
today = new Date()
x = today.getHours()
if (x < 12) {greet = \"$txt[w02] \"}
if (x < 6) {greet = \"$txt[w01] \"}
if (x > 11) {greet = \"$txt[w03] \"}
if (x > 18) {greet = \"$txt[w04] \"}
document.write(greet)
// -->
</SCRIPT>";

$txt[d01] = "Newyearsday";
$txt[d02] = "Valentinesday";
$txt[d03] = "Independance day";

Fill in as much days as you like !

$weetikveel2 = "<SCRIPT LANGUAGE=\"Javascript\"><!--
var now = new Date();
var days = new Array('sunday','monday','tuesday','wednesday','thursday','friday','saturday');
var months = new Array('january','february','march','april','may','june','july','august','september','october','november','december');
var date = ((now.getDate()<10) ? \"0\" : \"\")+ now.getDate();
vandaag = date + \" \" + months[now.getMonth()]
weekdag = \", \" + days[now.getDay()]
document.write(\"It is \" + vandaag)
groet = weekdag

if (vandaag == \"4 july\") {groet = \", so it is : <b>$txt[d03] !!</b>\"}
if (vandaag == \"14 february\") {groet = \", so it is : <b>$txt[d02] !!</b>\"}
if (vandaag == \"1 january\") {groet = \", so it is : <b>$txt[d01] !!</b>\"}

Fill in as much days as you like, but beware of the numbers !!

document.write(groet)
//--></SCRIPT>";
$txt[247] = "$weetikveel2. <br>$weetikveel";
$txt[248] = "$weetikveel2. <br>$weetikveel";

I made this mod in Dutch, so I had to translate some things......
You even have to change the way the date's are displayed, but I think you all know how you can do this ?

So, the only thing you have to do, is replace 2 lines with this whole piece of code.....

Note : I removed the <yabb time> from my template, because this mod also shows the date......

Let me know what you think of it.....it is my first (the first piece, with : goodevening etc. isn't my doing, that was done by Axplosion)
« Last Edit: April 30, 2002, 09:39:50 AM by Webby » Logged

Webby of salesplaza.nl
The YaBBSE buttongenerator : Click HERE !
Eric
Noobie
*
Posts: 23


www.leeghwaterlaan.nl

ICQ - 35352567ebd.focus@home.nl WWW
Re:[DONE] Welcome text "extra"
« Reply #1 on: April 28, 2002, 09:54:06 PM »
Reply with quote

Great Job Webby  ;D

it works great, now also available in English!
who's doing the german version?  ;)
Logged

Regards, Eric
Boudewijn
Noobie
*
Posts: 14


Re:[DONE] Welcome text "extra"
« Reply #2 on: April 29, 2002, 12:40:19 PM »
Reply with quote

Indeed, good job!!

Well, way to go Eric?  :) hehe..
Logged

Well know of YaBB.nl.. :)
boyzie
Jr. Member
**
Posts: 63


Ya ever think your goin round in circles?

Re:[DONE] Welcome text "extra"
« Reply #3 on: April 29, 2002, 05:47:11 PM »
Reply with quote

Your avatar would look better transparent Boudewijn

Logged

boyzie
Jr. Member
**
Posts: 63


Ya ever think your goin round in circles?

Re:[DONE] Welcome text "extra"
« Reply #4 on: April 29, 2002, 05:48:18 PM »
Reply with quote

Specially on blue


PS Webby great mod......
« Last Edit: April 29, 2002, 05:51:47 PM by boyzie » Logged

Ironman
Guest
Re:[DONE] Welcome text "extra"
« Reply #5 on: April 29, 2002, 06:01:41 PM »
Reply with quote

$txt[w01] = "Gute Nacht";
$txt[w02] = "Guten Morgen";
$txt[w03] = "Guten Tag";
$txt[w04] = "Guten Abend";
$weetikveel = "<SCRIPT LANGUAGE=\"JavaScript\"><!--
today = new Date()
x = today.getHours()
if (x < 12) {greet = \"$txt[w02] \"}
if (x < 6) {greet = \"$txt[w01] \"}
if (x > 11) {greet = \"$txt[w03] \"}
if (x > 18) {greet = \"$txt[w04] \"}
document.write(greet)
// -->
</SCRIPT>";

$txt[d01] = "Neujahr";
$txt[d02] = "Valentinstag";
$txt[d03] = "Muttertag";

$weetikveel2 = "<SCRIPT LANGUAGE=\"Javascript\"><!--
var now = new Date();
var days = new Array('Sonntag','Montag','Dienstag','Mittwoch','Donnerstag','Freitag','Samstag');
var months = new Array('Januar','Februar','March','April','Mai','Juni','Juli','August','September','October','November','Dezember');
var date = ((now.getDate()<10) ? \"0\" : \"\")+ now.getDate();
vandaag = date + \" \" + months[now.getMonth()]
weekdag = \", \" + days[now.getDay()]
document.write(\"Es ist \" + vandaag)
groet = weekdag

if (vandaag == \"12 Mai\") {groet = \", heute ist: <b>$txt[d03] !!</b>\"}
if (vandaag == \"14 Februar\") {groet = \", heute ist: <b>$txt[d02] !!</b>\"}
if (vandaag == \"1 Januar\") {groet = \", heute ist: <b>$txt[d01] !!</b>\"}

document.write(groet)
//--></SCRIPT>";
$txt[247] = "$weetikveel2. <br>$weetikveel";
$txt[248] = "$weetikveel2. <br>$weetikveel";

So here's the german Translation. In Translations I'm not a noobie, but where do I have to put This pretty thing now?
« Last Edit: April 30, 2002, 10:15:36 PM by Ironman » Logged
Ironman
Guest
Re:[DONE] Welcome text "extra"
« Reply #6 on: April 29, 2002, 06:33:52 PM »
Reply with quote

Sorry, for this question -I'm only german- Do I have to put the whole thing above in my Language File?
Logged
Webby
Beta Tester
YaBB God
*****
Posts: 829


Some mistakes are too funny to make only once.

ICQ - 9814812webby@salesplaza.nl WWW
Re:[DONE] Welcome text "extra"
« Reply #7 on: April 29, 2002, 06:46:20 PM »
Reply with quote

Just replace the two lines mantioned above with the complete code.

You can see the example here :

http://www.salesplaza.nl/dutch.txt
Logged

Webby of salesplaza.nl
The YaBBSE buttongenerator : Click HERE !
Ironman
Guest
Re:[DONE] Welcome text "extra"
« Reply #8 on: April 29, 2002, 06:50:25 PM »
Reply with quote

Thx and ignore the IM I sent...  8)
Logged
Daniel D.
Mod Team
YaBB God
*****
Posts: 2935


Re:[DONE] Welcome text "extra"
« Reply #9 on: April 29, 2002, 10:03:37 PM »
Reply with quote

Quote from: Ironman on April 29, 2002, 06:33:52 PM...I'm only german...

Ich kenne da auch so einen ;) !

Thx for the answer - it was a little bit unbelievable, code in the lng file.
Logged

Robbie
Noobie
*
Posts: 48


Trendhost.net

ICQ - 54598099deloodgieter@wanadoo.nl WWW
Re:[DONE] Welcome text "extra"
« Reply #10 on: April 30, 2002, 12:33:24 AM »
Reply with quote

Ok i have installed thisone and i have 1 thing:

if (x > 18) {greet = \"$txt[w04] \"}
should be

if (x > 17) {greet = \"$txt[w04] \"}
because otherwise it's stil afternoon at 18.45 hour ??

correct me if i'am wrong (also with my bad english , sorry)
Logged

Webby
Beta Tester
YaBB God
*****
Posts: 829


Some mistakes are too funny to make only once.

ICQ - 9814812webby@salesplaza.nl WWW
Re:[DONE] Welcome text "extra"
« Reply #11 on: April 30, 2002, 07:52:22 AM »
Reply with quote

True  :-[
Logged

Webby of salesplaza.nl
The YaBBSE buttongenerator : Click HERE !
joker
Jr. Member
**
Posts: 85


Fanatiker sind zu allem fähig, sonst aber zu nix!

Re:[DONE] Welcome text "extra"
« Reply #12 on: April 30, 2002, 09:18:18 AM »
Reply with quote

This part:
$weetikveel = "<SCRIPT LANGUAGE=\"JavaScript\"><!--
today = new Date()
x = today.getHours()
if (x < 12) {greet = \"$txt[w02] \"}
if (x < 6) {greet = \"$txt[w01] \"}
if (x > 11) {greet = \"$txt[w03] \"}
if (x > 18) {greet = \"$txt[w04] \"}
document.write(greet)
// -->
</SCRIPT>";
appears twice. Is this needed?
Logged

MfG joker ;)
Webby
Beta Tester
YaBB God
*****
Posts: 829


Some mistakes are too funny to make only once.

ICQ - 9814812webby@salesplaza.nl WWW
Re:[DONE] Welcome text "extra"
« Reply #13 on: April 30, 2002, 09:21:46 AM »
Reply with quote

Where does it appear twice ?

Not in my dutch.lng !

So : no, just use it once.....
Logged

Webby of salesplaza.nl
The YaBBSE buttongenerator : Click HERE !
joker
Jr. Member
**
Posts: 85


Fanatiker sind zu allem fähig, sonst aber zu nix!

Re:[DONE] Welcome text "extra"
« Reply #14 on: April 30, 2002, 09:34:09 AM »
Reply with quote

Quote from: Webby on April 30, 2002, 09:21:46 AMWhere does it appear twice ?
In your initial post (here).
Thanks anyway.
Logged

MfG joker ;)
Pages: [1] 2 Reply Ignore Print 
YaBB SE Community  |  Development  |  Completed mods  |  [DONE] Welcome text "extra" « previous - next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 0.169 seconds with 19 queries.