How do i make Corp name green
How do i make Corp name green
So in the kill summary when u have say 500 pilots on field how to i make it so my corp highlights green?
Re: How do i make Corp name green
in kill_detail_inv.tpl
find
replace with
Where it says my corp name insert your corp
example
find
Code: Select all
<tr class="{cycle name="ccl"}">
<td><a href="{$i.corpURL}">{$i.corpName}</a></td>
</tr>
Code: Select all
<tr class="{cycle name="ccl"}">
{if $i.corpName == "my corp name"}
<td class="kb-table-row-dropped"><a href="{$i.corpURL}">{$i.corpName}</a></td>
{else}
<td><a href="{$i.corpURL}">{$i.corpName}</a></td>
{/if}
</tr>
example
Re: How do i make Corp name green
Blake wrote:in kill_detail_inv.tpl
findreplace withCode: Select all
<tr class="{cycle name="ccl"}"> <td><a href="{$i.corpURL}">{$i.corpName}</a></td> </tr>
Where it says my corp name insert your corpCode: Select all
<tr class="{cycle name="ccl"}"> {if $i.corpName == "my corp name"} <td class="kb-table-row-dropped"><a href="{$i.corpURL}">{$i.corpName}</a></td> {else} <td><a href="{$i.corpURL}">{$i.corpName}</a></td> {/if} </tr>
example
And how can i make alliance name green?

Re: How do i make Corp name green
in same file look for lines like above but with the word alliance instead 

Re: How do i make Corp name green
Blake wrote:in same file look for lines like above but with the word alliance instead

It works, but i have a small problem.
http://nma.net16.net/?a=kill_detail&kll_id=1545
The code makes the text background green, wich makes the text unreadable for me. How can i change the color?
Re: How do i make Corp name green
Code: Select all
<td class="kb-table-cell" style="padding-top: 1px; padding-bottom: 1px;{if $i.corpName == "Your corp name"} background-color: #3F3333;{/if}"><a href="{$i.corpURL}">{if $i.corpName == "Your corp name"}<font color="#dddddd">{$i.corpName}</font>{else}{$i.corpName}{/if}</a></td>
Re: How do i make Corp name green
Great, thanks. So i need to insert this code instead of the first i tried?Khi3l wrote:exampleCode: Select all
<td class="kb-table-cell" style="padding-top: 1px; padding-bottom: 1px;{if $i.corpName == "Your corp name"} background-color: #3F3333;{/if}"><a href="{$i.corpURL}">{if $i.corpName == "Your corp name"}<font color="#dddddd">{$i.corpName}</font>{else}{$i.corpName}{/if}</a></td>
Re: How do i make Corp name green
yep.
kill_detail_inv.tpl
Change #FFFFFF for what you want as the bg and #000000 for what you want as text.
Or with a red background and light text:
kill_detail_inv.tpl
kill_detail_inv.tpl
Code: Select all
{cycle reset=true print=false name=ccl values="kb-table-row-even,kb-table-row-odd"}
<div class="kl-detail-inv">
<table class="kb-table">
<col class="logo" />
<col class="logo" />
<col class="attribute-data" />
{foreach from=$involved key="key" item="i"}
<tr class="{cycle name="ccl"}">
<td rowspan="5" class="logo">
<a href="{$i.pilotURL}">
<img {if $i.finalBlow} class="finalblow" {/if} src="{$i.portrait}" alt="inv portrait" />
</a>
</td>
<td rowspan="5" class="logo">
{if $i.shipURL}<a href="{$i.shipURL}">{/if}
<img {if $i.finalBlow} class="finalblow"{/if} src='{$i.shipImage}' alt='{$i.shipName}' title='{$i.shipName}' />
{if $i.shipURL}</a>{/if}
</td>
<td><a href="{$i.pilotURL}">{$i.pilotName}</a></td>
</tr>
<tr class="{cycle name="ccl"}">
<td><a href="{$i.corpURL}">{$i.corpName}</a></td>
</tr>
<tr class="{cycle name="ccl"}">
{if $i.alliName == "H0RR0R VACUI"}
<td class="kb-table-cell" style="background-color: #FFFFFF"><a href="{$i.alliURL}"><font color="#000000">{$i.alliName}</font></a></td>
{else}
<td><a href="{$i.alliURL}">{$i.alliName}</a></td>
{/if}
</tr>
<tr class="{cycle name="ccl"}">
{if $i.shipURL}<td><a href="{$i.shipURL}">{$i.shipName}</a> ({$i.shipClass})</td>
{else}<td>{$i.shipName}</td>{/if}
</tr>
<tr class="{cycle name="ccl"}">
<td>{if $i.weaponID}<a href="{$i.weaponURL}">{$i.weaponName}</a>{else}{$i.weaponName}{/if}</td>
</tr>
<tr class="{cycle name="ccl"}">
<td colspan="2">Damage done:</td><td>{$i.damageDone} {if $victimDamageTaken > 0}({($i.damageDone/$victimDamageTaken*100)|string_format:"%.2f"}%){/if}</td>
</tr>
{/foreach}
{if $limited}<tr class="{cycle name="ccl"}">
<td colspan="3">{$moreInvolved} pilot{if $moreInvolved > 1}s{/if} not shown. <a href="{$unlimitURL}">Show all involved pilots</a></td>
</tr>
{/if}
</table>
</div>
Or with a red background and light text:
kill_detail_inv.tpl
Code: Select all
{cycle reset=true print=false name=ccl values="kb-table-row-even,kb-table-row-odd"}
<div class="kl-detail-inv">
<table class="kb-table">
<col class="logo" />
<col class="logo" />
<col class="attribute-data" />
{foreach from=$involved key="key" item="i"}
<tr class="{cycle name="ccl"}">
<td rowspan="5" class="logo">
<a href="{$i.pilotURL}">
<img {if $i.finalBlow} class="finalblow" {/if} src="{$i.portrait}" alt="inv portrait" />
</a>
</td>
<td rowspan="5" class="logo">
{if $i.shipURL}<a href="{$i.shipURL}">{/if}
<img {if $i.finalBlow} class="finalblow"{/if} src='{$i.shipImage}' alt='{$i.shipName}' title='{$i.shipName}' />
{if $i.shipURL}</a>{/if}
</td>
<td><a href="{$i.pilotURL}">{$i.pilotName}</a></td>
</tr>
<tr class="{cycle name="ccl"}">
<td><a href="{$i.corpURL}">{$i.corpName}</a></td>
</tr>
<tr class="{cycle name="ccl"}">
{if $i.alliName == "H0RR0R VACUI"}
<td class="kb-table-row-even summary totalloss"><a href="{$i.alliURL}"><font color="#dddddd">{$i.alliName}</font></a></td>
{else}
<td><a href="{$i.alliURL}">{$i.alliName}</a></td>
{/if}
</tr>
<tr class="{cycle name="ccl"}">
{if $i.shipURL}<td><a href="{$i.shipURL}">{$i.shipName}</a> ({$i.shipClass})</td>
{else}<td>{$i.shipName}</td>{/if}
</tr>
<tr class="{cycle name="ccl"}">
<td>{if $i.weaponID}<a href="{$i.weaponURL}">{$i.weaponName}</a>{else}{$i.weaponName}{/if}</td>
</tr>
<tr class="{cycle name="ccl"}">
<td colspan="2">Damage done:</td><td>{$i.damageDone} {if $victimDamageTaken > 0}({($i.damageDone/$victimDamageTaken*100)|string_format:"%.2f"}%){/if}</td>
</tr>
{/foreach}
{if $limited}<tr class="{cycle name="ccl"}">
<td colspan="3">{$moreInvolved} pilot{if $moreInvolved > 1}s{/if} not shown. <a href="{$unlimitURL}">Show all involved pilots</a></td>
</tr>
{/if}
</table>
</div>
Vecati
Re: How do i make Corp name green
Thanks, works like a charm. Still i don't know what I'm doing, but but i want to learn. I have some ideas to our board.
Re: How do i make Corp name green
Thx Khi3l