Raised This Month: $ Target: $400
 0% 

How to insert html & css in code?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Shockblade
Member
Join Date: Dec 2012
Old 12-21-2012 , 13:19   How to insert html & css in code?
Reply With Quote #1

Hello,
can u tell me how to insert html & css in code ?
__________________
Spoiler
Shockblade is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 12-22-2012 , 01:08   Re: How to insert html & css in code?
Reply With Quote #2

Quote:
Originally Posted by Shockblade View Post
Hello,
can u tell me how to insert html & css in code ?
What are you trying to do?
__________________
fysiks is offline
Shockblade
Member
Join Date: Dec 2012
Old 12-22-2012 , 03:21   Re: How to insert html & css in code?
Reply With Quote #3

Motd window.
__________________
Spoiler
Shockblade is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 12-22-2012 , 14:26   Re: How to insert html & css in code?
Reply With Quote #4

You simply format the html/css into a string and show it with show_motd().
__________________
fysiks is offline
Shockblade
Member
Join Date: Dec 2012
Old 12-22-2012 , 14:35   Re: How to insert html & css in code?
Reply With Quote #5

can u show me?
__________________
Spoiler
Shockblade is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 12-22-2012 , 14:35   Re: How to insert html & css in code?
Reply With Quote #6

Quote:
Originally Posted by Shockblade View Post
can u show me?
There are many plugins that do this already. Look at how they do it.
__________________
fysiks is offline
rastafari
Senior Member
Join Date: May 2011
Old 12-22-2012 , 14:42   Re: How to insert html & css in code?
Reply With Quote #7

An example from Mifuntm's (Alka's) New Rank Style plugin
PHP Code:
static motd[1501], len;
    
    
len format(motd1500,"<body bgcolor=#000000><font color=#87cefa><pre>");
    
len += format(motd[len], 1500-len,"<center><img src=^"http://alkazone.freehostia.com/rank_stats.png^"></center></img>");
    
len += format(motd[len], 1500-len,"<center><h4><font color=^"blue^"> You'r statistics in '%s' </font></h4></center>"host_name);
    
len += format(motd[len], 1500-len,"<left><font color=^"red^"><B>Rank :</B> <font color=^"white^">%d / %d</color></left>^n"rank_posmax_rank);
    
    
show_motd(idmotd"You'r Rank"); 
__________________

Last edited by rastafari; 12-22-2012 at 14:42.
rastafari is offline
Shockblade
Member
Join Date: Dec 2012
Old 12-22-2012 , 15:57   Re: How to insert html & css in code?
Reply With Quote #8

A, how can I use css for the html code?
__________________
Spoiler
Shockblade is offline
rastafari
Senior Member
Join Date: May 2011
Old 12-22-2012 , 16:58   Re: How to insert html & css in code?
Reply With Quote #9

That's not amxx related. Search on google.
__________________
rastafari is offline
tyin
Member
Join Date: Jun 2011
Location: Macedonia
Old 12-22-2012 , 17:41   Re: How to insert html & css in code?
Reply With Quote #10

As rastafari said just add this line
PHP Code:
len += format(motd[len], 1500-len,"<link rel="stylesheet" href="link_here.css" type="text/css" />"); 
tyin is offline
Reply



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:01.


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