Antworten: 4
Seite [1] |
|
LoooooooooL Beginner Beiträge: 16 |
# Thema - 14.10.2010 um 21:37 Uhr
Hello Everyone !! I dont speak english very well, but i will try explain my idea. I have a navlist.tpl from war module. <table style="width:100%; overflow:hidden" cellpadding="0" cellspacing="0"> {loop:wars} <tr> <td class="left">{wars:game_icon}</td> <td class="left">{wars:enemy}</td> <td class="right">{wars:wars_score1}</td> <td class="center">:</td> <td class="left">{wars:wars_score2}</td> <td class="left">{wars:icon}</td> </tr> {stop:wars} </table> and i want insert a flag enemy in <td class="left">{wars:enemy}</td> , i checken in other files and exist a {enemy:country} is possible make this : <td class="left">{enemy:country}{wars:enemy}</td > REGARDS |
Inaktiv |
|
hajo VIP - Poster Herkunft: Barsbüttel Beiträge: 9411 |
# Antwort: 1 - 30.11.2010 um 02:47 Uhr
you may want to alter the $select variable inside the navlist.php file that belongs to that tpl file and add the enemy clan country in it (content to add follows, i hope you understand a bit sql to do the rest yourself) cln.clans_country AS clans_country,
------------------ ClanSphere - professional clan care starts here Zuletzt editiert von hajo am 30.11.2010 um 02:49 Uhr (1x Editiert) |
Inaktiv |
|
LoooooooooL Thread-Ersteller Beginner Beiträge: 16 |
# Antwort: 2 - 30.11.2010 um 15:36 Uhr
thanks, i will test and i give a feedback. well.. this is what i do. NAVLIST.PHP $select = 'war.games_id AS games_id, cln.clans_country AS clans_country, cln.clans_short AS clans_short, war.wars_score1 AS wars_score1, ' NAVLIST.TPL <td class="left">{wars:enemy}</td> <td class="left">{enemy:country}</td> <td class="right">{wars:wars_score1}</td> <td class="center">:</td> <td class="left">{wars:wars_score2}</td> <td class="right">{wars:icon}</td> im doing anything wrong? Zuletzt editiert von zGt.Chambo am 30.11.2010 um 16:29 Uhr (1x Editiert) |
Inaktiv |
|
hajo VIP - Poster Herkunft: Barsbüttel Beiträge: 9411 |
# Antwort: 3 - 03.12.2010 um 03:23 Uhr
well enemy:country does not exist so far, i've just shown you how to add the clan country to the sql statement, so you can use it inside the tpl file like e.g. <td class="left">
<img src="symbols/countries/{clans:country}.png" alt="{clans:country}" /> {clans:short} </td> ------------------ ClanSphere - professional clan care starts here Zuletzt editiert von hajo am 03.12.2010 um 03:24 Uhr (1x Editiert) |
Inaktiv |
|
LoooooooooL Thread-Ersteller Beginner Beiträge: 16 |
# Antwort: 4 - 03.12.2010 um 13:59 Uhr
This solution doenst work.. thank you anyway |
Inaktiv |
|
Antworten: 4
Seite [1] |
Sie müssen sich registrieren, um zu antworten. |