|
|
Due to the volume of spam happening on our forums, posting is now restricted to verified members only. If you're not verified, drop us a note with your username.
|
|
Home > FlexCMS Support Forum > User Help > General Support Requests > Missing time and Greeting info
FlexCMS Support Forum
Missing time and Greeting info Started September 23, 2005 @ 7:45pm by fstopusa
|
Post Message |
|
|
Missing time and Greeting info | September 23, 2005 @ 7:45pm | Ok, so now what have I done? My site no longer shows the date and time or the greeting at the top of the page. I just get ",fstopusa" and the links underneath that. No date and no "Good Evening", etc. I tend to believe it may have something to do with my logo that I changed because it happened around the same time that I changed the logo. You can see it at: http://ambassadors.lhstudio.com
Thanks,
Steve |
|
|
|
|
|
|
| |
otter Administrator
Posts: 177 |
|
|
| September 23, 2005 @ 7:56pm | Steve,
You probably stepped on some code. Here's the original block code as delivered. You can either rename your logo to logo.gif or modify the logo.gif in the block code to your file name. Just make sure you place the image in the template folder and you should be good to go.
Code
if ($LoggedIn == 'y') { if ($UserLevel > 1) { $NamePrint = $UserDisplayName.'!</b><br><font size="1" color="'.$Colors['BText'].'"> <A HREF="'.$MainURL.'/options.html" class="BlockColors"><font face="Arial" size="1"> Control Panel</font></A> | <A HREF="'.$MainURL.'/profile-edit.html" class="BlockColors"> <font face="Arial" size="1">Edit Profile</font></A> | <A HREF="'.$MainURL.'/logout.html" class="BlockColors"><font face="Arial" size="1">Logout</font></A><br></font>'; } else { $NamePrint = $UserDisplayName.'!</b><br><font size="1" color="'.$Colors['BText'].'"><A HREF="'.$MainURL.'/pages/licenses.html" class="BlockColors"><font face="Arial" size="1"> Manage Licenses</font></A> | <A HREF="'.$MainURL.'/profile-edit.html" class="BlockColors"> <font face="Arial" size="1">Edit Profile</font></A> | <A HREF="'.$MainURL.'/logout.html" class="BlockColors"><font face="Arial" size="1">Logout</font></A><br></font>'; } } else { $NamePrint = 'Guest!</b><br><font face="Arial" size="1" color="'.$Colors['BText'].'">Already a Member? <A HREF="'.$MainURL.'/login.html" class="BlockColors"><font face="Arial" size="1"> Login</font></A> or <a href="'.$MainURL.'/register.html" class="BlockColors">Register</a> .<br></font>'; }
print '<div align="center"> <center> <table border="0" cellspacing="1" width="100%"> <tr> <td width="50%"><a href="'.$IndexURL.'"><img src="'.$TemplateImagesURL.'/logo.gif" border="" alt=""></a></td> <td width="50%" valign="middle" align="center"><font size="2" color="'.$Colors['BText'].'"> <script language="JavaScript"><!-- var Today = 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 Year = Today.getYear(); if (Year < 1000) { Year += 1900; } var Day = Today.getDate(); var DateEnding = "th"; if (Day == 1 || Day == 21 || Day == 31) { DateEnding = "st"; } else if (Day == 2 || Day == 22) { DateEnding = "nd"; } else if (Day == 3 || Day == 23) { DateEnding = "rd"; } document.write( Days[Today.getDay()] + ", " + Months[Today.getMonth()] + " " + Day + DateEnding + ", " + Year ); //--></script><noscript></noscript><br><br> <b><script language="JavaScript"><!-- var Greeting = "Hello"; var Today = new Date(); var CurrentHour = Today.getHours(); if (CurrentHour < 12) { Greeting = "Good Morning"; } if (CurrentHour >= 12 && CurrentHour < 17) { Greeting = "Good Afternoon"; } if (CurrentHour >= 17) { Greeting = "Good Evening"; } document.write(Greeting); //--></script><noscript>Hello</noscript>, '.$NamePrint.'
</td> </tr> </table> </center> </div>'; |
|
Hope that helps, let us know if you need further assistance.
Kel
|
ONLINE TRAINING CLASSES FOR FLEXCMS IN MAY: FlexCMS Basics (101), Sat., May, 15, 2010 & FlexCMS Blocks (Mon., May 10, 2010). |
|
|
|
Last Edit: September 23, 2005 @ 10:59pm by otter | |
|
|
|
| |
|
|
| September 23, 2005 @ 9:54pm | Thanks, Kel. That did the trick. It looks perfect now. |
|
|
|
|
|
|
|
|
|
| MEMBERS
|
|
|