How do i make Corp name green

Discuss/Upload themes created for EDK here.
Post Reply
Plain213
Greenhorn
Posts: 34
Joined: Thu May 19, 2011 00:44

How do i make Corp name green

Post by Plain213 » Wed Mar 07, 2012 21:40

So in the kill summary when u have say 500 pilots on field how to i make it so my corp highlights green?

Blake
Someday Author
Posts: 88
Joined: Sat Jan 24, 2009 20:53

Re: How do i make Corp name green

Post by Blake » Thu Mar 08, 2012 02:35

in kill_detail_inv.tpl

find

Code: Select all

<tr class="{cycle name="ccl"}">

			<td><a href="{$i.corpURL}">{$i.corpName}</a></td>

		</tr>
replace with

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>
Where it says my corp name insert your corp

example
Image

Narzis
Greenhorn
Posts: 22
Joined: Mon Oct 18, 2010 23:31

Re: How do i make Corp name green

Post by Narzis » Sun Jun 10, 2012 01:59

Blake wrote:in kill_detail_inv.tpl

find

Code: Select all

<tr class="{cycle name="ccl"}">

			<td><a href="{$i.corpURL}">{$i.corpName}</a></td>

		</tr>
replace with

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>
Where it says my corp name insert your corp

example

And how can i make alliance name green? :D

Blake
Someday Author
Posts: 88
Joined: Sat Jan 24, 2009 20:53

Re: How do i make Corp name green

Post by Blake » Sun Jun 10, 2012 11:26

in same file look for lines like above but with the word alliance instead :roll:
Image

Narzis
Greenhorn
Posts: 22
Joined: Mon Oct 18, 2010 23:31

Re: How do i make Corp name green

Post by Narzis » Sun Jun 10, 2012 12:06

Blake wrote:in same file look for lines like above but with the word alliance instead :roll:

:) Thank you for the help!
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?

Khi3l
Apprentice
Posts: 63
Joined: Sat Jun 12, 2010 14:02

Re: How do i make Corp name green

Post by Khi3l » Sun Jun 10, 2012 13:01

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>
example

Narzis
Greenhorn
Posts: 22
Joined: Mon Oct 18, 2010 23:31

Re: How do i make Corp name green

Post by Narzis » Sun Jun 10, 2012 17:46

Khi3l wrote:

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>
example
Great, thanks. So i need to insert this code instead of the first i tried?

User avatar
Vec
Apprentice
Posts: 55
Joined: Fri Jul 15, 2011 05:44

Re: How do i make Corp name green

Post by Vec » Sun Jun 10, 2012 18:17

yep.

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>
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

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

Narzis
Greenhorn
Posts: 22
Joined: Mon Oct 18, 2010 23:31

Re: How do i make Corp name green

Post by Narzis » Sun Jun 10, 2012 19:33

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.

vbdata
Greenhorn
Posts: 14
Joined: Sat Nov 05, 2011 20:06

Re: How do i make Corp name green

Post by vbdata » Mon Jul 21, 2014 16:46

Thx Khi3l

Post Reply

Return to “Theming”

Who is online

Users browsing this forum: No registered users and 4 guests