Welcome, Guest. Please Login or Register.
November 06, 2024, 07:39:53 PM
Home Help Search Log in Register
News: SMF is the next generation in forum software, almost completely re-written from the ground up, make sure you don't fall for cheap imitations that suffer from feature bloat!

YaBB SE Community  |  Development  |  Completed mods  |  [Done 1.x.x] Welcome Message mod « previous next »
Pages: [1] Reply Ignore Print
Author Topic: [Done 1.x.x] Welcome Message mod  (Read 2242 times)
Webby
Beta Tester
YaBB God
*****
Posts: 829


Some mistakes are too funny to make only once.

ICQ - 9814812webby@salesplaza.nl WWW
[Done 1.x.x] Welcome Message mod
« on: May 09, 2003, 06:11:06 AM »
Reply with quote

THis one is an old mod I completely forgot about I've ever made it for v1.3.0.......... But I made it slightly better and bugfree.  

There are also 3 translations in the package (german : thanx to Horseman who also reminded me of this mod ;), englisch and dutch).

It requires only a change in the xxxxx.lng.

My swedish, italian, etc. isn't that good, so I skipped them  ;D

I took just a few events as an example, you can add your own events ofcourse if you want to !

What it does ?

Well, look at the attachment  :D

Where can I get it ?

Click HERE !

Version 1.0  ;)
« Last Edit: May 09, 2003, 06:11:58 AM by Webby » Logged

Webby of salesplaza.nl
The YaBBSE buttongenerator : Click HERE !
Coyote
YaBB God
*****
Posts: 702


I love YaBB SE!

Re:[Done 1.x.x] Welcome Message mod
« Reply #1 on: June 03, 2003, 06:38:40 PM »
Reply with quote

Hi Webby,

I hope you dont mind, but I have worked on the spelling in the English part of the mod.


<id>
Welcome Message
</id>

<name>
Welcome Message Mod
</name>

<version>
All versions (YaBBSE)
</version>

<mod info>
Shows special days / events on top of the board instead of the standard welcome message.
</mod info>

<author>
Marco van Veelen
</author>

<homepage>
http://www.salesplaza.nl
http://www.salesplaza.nl/forum
</homepage>


<edit file>
english.lng
</edit file>

<search for>
$txt[247] = 'Hey,';
</search for>

<replace>
$txt[w01] = "Good night";
$txt[w02] = "Good morning";
$txt[w03] = "Good afternoon";
$txt[w04] = "Good evening";
$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 > 17) {greet = \"$txt[w04] \"}
document.write(greet)
// -->
</SCRIPT>";

$txt[d01] = "New Years Day";
$txt[d02] = "Valentine's day";
$txt[d03] = "St. Patrick's day";
$txt[d04] = "April Fool's Day";

$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) ? \"\" : \"\")+ now.getDate();
vandaag = date + \" \" + months[now.getMonth()]
weekdag = \", \" + days[now.getDay()]
document.write(\"It is \" + vandaag)
groet = weekdag

if (vandaag == \"1 April\") {groet = \", or : <b>$txt[d04] !!</b>\"}
if (vandaag == \"17 March\") {groet = \", or : <b>$txt[d03] !!</b>\"}
if (vandaag == \"14 February\") {groet = \", or : <b>$txt[d02] !!</b>\"}
if (vandaag == \"1 January\") {groet = \", or : <b>$txt[d01] !!</b>\"}
document.write(groet)
//--></SCRIPT>";

$txt[247] = "$weetikveel2. <br>$weetikveel";
</replace>
Logged

To the world - you are just one person, but to one person you are the world!
Coyote
YaBB God
*****
Posts: 702


I love YaBB SE!

Re:[Done 1.x.x] Welcome Message mod
« Reply #2 on: June 03, 2003, 06:54:34 PM »
Reply with quote

Although I cant get it to work :D

I will have a play with it later
Logged

To the world - you are just one person, but to one person you are the world!
Coyote
YaBB God
*****
Posts: 702


I love YaBB SE!

Re:[Done 1.x.x] Welcome Message mod
« Reply #3 on: June 03, 2003, 07:30:01 PM »
Reply with quote

Cool, it works fine ;) it was my mistake  :o

Logged

To the world - you are just one person, but to one person you are the world!
Webby
Beta Tester
YaBB God
*****
Posts: 829


Some mistakes are too funny to make only once.

ICQ - 9814812webby@salesplaza.nl WWW
Re:[Done 1.x.x] Welcome Message mod
« Reply #4 on: June 03, 2003, 08:13:07 PM »
Reply with quote

Thanx.

I've updated the file :)
Logged

Webby of salesplaza.nl
The YaBBSE buttongenerator : Click HERE !
Pages: [1] Reply Ignore Print 
YaBB SE Community  |  Development  |  Completed mods  |  [Done 1.x.x] Welcome Message mod « 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.080 seconds with 21 queries.