Raised This Month: $ Target: $400
 0% 

Style the MOTD window


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
dEMolite
Member
Join Date: Feb 2006
Old 10-06-2006 , 15:34   Re: Style the MOTD window
Reply With Quote #5

When u don't understand it here is a littel snippet from my top15 list:
Code:
public show_top15_climbers( id ) {     if( !climbtimer_on )         return PLUGIN_HANDLED           //new buffer[2048]     new line[256]         new motd[2048]         add(motd,2048,"<html><head><style>")     add(motd,2048,"body { background-color:#182030; font-family:verdana; font-size:10px; color:#FFFFFF; }")     add(motd,2048,".tabel { background-color: #182030; border-style:solid; border-width:1px; border-color:#416782; font-family:verdana; font-size:10px; color:#e7e7e7; }")     add(motd,2048,".header { background-color:; font-family:verdana; font-size:10px; color:#FFFFFF; font-weight:800; }")     add(motd,2048,"</style></head><body>")     add(motd,2048,"<div align=center><img src=http://www.climbers-germany.de/top15log.jpg> </div>")     new len = add(motd,2048,"<table border=0 cellspacing=0 cellpadding=1 width=90% align=center class=tabel background=http://climbers-germany.de/e107_themes/cg2k6/images/boxbg.png>")         len += add(motd[len],2048-len,"<tr><td class=header>#</td><td class=header>Name</td><td class=header>Time</td></tr>")     for(new i = 0; i < 15; ++i) {         if( top15_times[i] == CT_MAX_TIME )         {             format(line,255,"<tr><td> %d. <td> %s <td> %s", (i+1), "&lt;----------&gt;", "&lt;not set&gt;")         }         else{             format(line,255,"<tr><td> %d. <td> %s <td> (%d:%02d)", (i+1), top15_names[i], (top15_times[i]/60) , (top15_times[i]%60))         }                         len += add(motd[len], 2048-len, line )     }         format(line, 255, "</table>" )     len += format( motd[len], 2048-len, line )     add(motd,2048,"</body></html>")     show_motd( id, motd, "CG-Climbers")     return PLUGIN_HANDLED   }
dEMolite is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 04:57.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode