Welcome, Guest. Please Login or Register.
May 06, 2024, 11:30:11 AM
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 7981 times)
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 #15 on: April 30, 2002, 09:40:24 AM »
Reply with quote

 :-[

changed that.

I was translating and posting at the same time at that moment  ;D
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 #16 on: April 30, 2002, 10:04:54 AM »
Reply with quote

Ooops!
The JScript seems to appear in the welcome-mail sent out to new users!!
How can i avoid that?

Found it! $txt[248] is used twice in register.php!
      sendmail($member['email'],"$txt[700] $mbname", "$txt[248] $member[user]!\n\n$txt[719]...
 
I changed it to $txt[201]  (=Welcome)
« Last Edit: April 30, 2002, 10:10:46 AM by joker » 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 #17 on: April 30, 2002, 10:27:32 AM »
Reply with quote

The line is there twice, so I indeed had to change that.

Thanx for pointing that out !
Logged

Webby of salesplaza.nl
The YaBBSE buttongenerator : Click HERE !
Boudewijn
Noobie
*
Posts: 14


Re:[DONE] Welcome text "extra"
« Reply #18 on: April 30, 2002, 02:31:29 PM »
Reply with quote

Quote from: boyzie on April 29, 2002, 05:47:11 PMYour avatar would look better transparent Boudewijn


Thx boyzie!
Logged

Well know of YaBB.nl.. :)
Compuart
Quality, Quality, Quality!
YaBB God
*****
Posts: 1283


ICQ - 8801024Compuart@hotmail.com WWW
Re:[DONE] Welcome text "extra"
« Reply #19 on: May 17, 2002, 05:35:29 PM »
Reply with quote

Script looks nice. Still have a question: wouldn't it be more desirable to use a here-doc statement for these multi-line string asignments? Not only would it make my language editor work better ;), it would also be more in line with our PHP Coding guidelines. Besides there is no need for escaping characters.

The code would then look like this:
$txt[w01] = "Goodnight";
$txt[w02] = "Goodmorning";
$txt[w03] = "Goodafternoon";
$txt[w04] = "Goodevening";
$weetikveel = <<<EOT
 <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>
EOT;

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

$weetikveel2 = <<<EOT
 <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>"}
  document.write(groet)
 //--></SCRIPT>
EOT;

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

kaposvar
Noobie
*
Posts: 7


Re:[DONE] Welcome text "extra"
« Reply #20 on: May 17, 2002, 08:56:36 PM »
Reply with quote

Would it be possible to show the time as well?

Logged
tazthedev
Full Member
***
Posts: 161


I'm a llama!

Re:[DONE] Welcome text "extra"
« Reply #21 on: May 18, 2002, 03:41:37 AM »
Reply with quote

it is such a great mod... but i need an information about it...

Which hour the function GetHours use ? The server's hour or the user's hour ?
Logged
kaposvar
Noobie
*
Posts: 7


Re:[DONE] Welcome text "extra"
« Reply #22 on: May 18, 2002, 07:42:12 PM »
Reply with quote

The Server's hour
Logged
tazthedev
Full Member
***
Posts: 161


I'm a llama!

Re:[DONE] Welcome text "extra"
« Reply #23 on: May 19, 2002, 02:03:59 AM »
Reply with quote

:(
Logged
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.022 seconds with 19 queries.