(#1)
c0rrupt Offline
Administrator
 
Posts: 201
Join Date: Mar 2010
Location: Canada
change colors of categories - 05-03-2010, 12:09 AM

how to change colors of categories.


open index.php

find:

Code:
<?=$dl['type']?>
replace with:

Code:
		<font color="<?php
            if($dl[type]==movie){echo '#00CCFF';}
            elseif($dl[type]==app){echo '#00CC00';}
            elseif($dl[type]==game){echo '#FF6600';}
            elseif($dl[type]==music){echo '#0000FF';}
            elseif($dl[type]==xxx){echo '#FF66FF';}
	    elseif($dl[type]==tv){echo '#996600';}
	    elseif($dl[type]==ebooks){echo '#CCCCCC';}
            elseif($dl[type]==template){echo '#000000';}
            elseif($dl[type]==script){echo '#0000FF';}
            elseif($dl[type]==other){echo '#FF3300';}
            else{echo '#0099FF';}
            ?>"><?=$dl['type']?></font>
save--upload--done


Before doing any edits to your DDL Site always make a BACKUP first.
(#2)
nirav5300 Offline
Probationary Member
 
Posts: 7
Join Date: Apr 2010
Re: change colors of categories - 05-28-2010, 12:43 PM

thanks we just need to edit the types same as wcfg..

nice share
(#3)
jomasaco Offline
Probationary Member
 
Posts: 21
Join Date: May 2010
Re: change colors of categories - 06-06-2010, 07:11 PM

or in css
.app { color:#3BB9FF !important; }
.game { color:#4CC417 !important; }
.movie { color:#FF0000 !important; }
.music { color:#FF00FF !important; }
.tv { color:#FFFF00 !important; }
.ebook { color:#005A86 !important; }
.script { color: #FF6600; }
.template { color:#D17B07 !important; }
.other { color:#696A6E !important; }
.xxx { color:#E2007F !important;}
.mobile { color:#8D38C9 !important;}

and when you want show
<span class="<?=strtolower($dl['type'])?>"><?=ucfirst($dl['type'])?></span>

Bookmarks

Tags
categories, change, colors

Thread Tools
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are On




Powered by vBulletin


Content Relevant URLs by vBSEO