WebsiteBaker 2.13.9 is now available!
R.I.P Dietmar (luisehahne) and thank you for all your valuable work for WBhttps://forum.websitebaker.org/index.php/topic,32355.0.html
global $database, $wb;if (PAGE_ID>0) { $query=$database->query("SELECT modified_when FROM ".TABLE_PREFIX."pages where page_id=".PAGE_ID); $mod_details=$query->fetchRow(); return "This page was last modified on ".date("d/m/Y",$mod_details[0]). " at ".date("H:i",$mod_details[0]).".";}
$return_value .= '<h2>'.$TEXT['LOGIN'].'</h2>'; $return_value .= $TEXT['USERNAME'].':<input type="text" name="username" style="text-transform: lowercase;" /><br />'; $return_value .= $TEXT['PASSWORD'].':<input type="password" name="password" /><br />'; $return_value .= '<input type="submit" name="submit" value="'.$TEXT['LOGIN'].'" class="dbutton" /><br />'; $return_value .= '<a href="'.FORGOT_URL.'">'.$TEXT['FORGOT_DETAILS'].'</a><br />';
Admin -> Droplets -> edit e.g. ModifiedWhen.You will see this:Code: [Select]global $database, $wb;if (PAGE_ID>0) { $query=$database->query("SELECT modified_when FROM ".TABLE_PREFIX."pages where page_id=".PAGE_ID); $mod_details=$query->fetchRow(); return "This page was last modified on ".date("d/m/Y",$mod_details[0]). " at ".date("H:i",$mod_details[0]).".";}Guess what you need to change ... last line.
LoginBox is a bit different: here the entries in the selected language are used to make the form (see also the Droplet source as described above, e.g. in the linesCode: [Select]$return_value .= '<h2>'.$TEXT['LOGIN'].'</h2>'; $return_value .= $TEXT['USERNAME'].':<input type="text" name="username" style="text-transform: lowercase;" /><br />'; $return_value .= $TEXT['PASSWORD'].':<input type="password" name="password" /><br />'; $return_value .= '<input type="submit" name="submit" value="'.$TEXT['LOGIN'].'" class="dbutton" /><br />'; $return_value .= '<a href="'.FORGOT_URL.'">'.$TEXT['FORGOT_DETAILS'].'</a><br />';the code $TEXT[..] gets the content from the languages/*.php file.
Yes, I alos thought it was obvious. So I changed it and it never came thru.
OK, thanks. I will check that file.
QuoteYes, I alos thought it was obvious. So I changed it and it never came thru.You're sure you used the right droplet? There is also a SiteModified ...QuoteOK, thanks. I will check that file.In your case it must be the NL.php ... I'd surprised if this is not translated right. Or do you have another language configured for this page?