Antworten: 14
Seite [1] |
|||||||
kor_jaw Rock the board Beiträge: 67 |
# Thema - 25.06.2009 um 22:57 Uhr
Hello, How can i make in "index.php?mod=members&action=teams" last match and last award for each division's ? I need too create ID for each DIV, click on picture (on the left) and then go to some division. WWW: http://www.stronatestowa.yoyo.pl/gfo/index.php?mod=members&action=teams Thx for help ! Best Regards ! |
||||||
Inaktiv |
|
||||||
kor_jaw Thread-Ersteller Rock the board Beiträge: 67 |
# Antwort: 1 - 29.06.2009 um 12:18 Uhr
Nobody can't help ? It's so hardcore :< ? |
||||||
Inaktiv |
|||||||
hajo VIP - Poster Herkunft: Barsbüttel Beiträge: 9411 |
# Antwort: 2 - 29.06.2009 um 17:09 Uhr
well, you have to select the last award and match in the php file mods/members/teams.php and then those possibilities must be ported to the themes/members/teams.tpl file could be a bit difficult if you don't know how try to ask the questions more in detail, maybe someone can help you better ------------------ ClanSphere - professional clan care starts here |
||||||
Inaktiv |
|||||||
kor_jaw Thread-Ersteller Rock the board Beiträge: 67 |
# Antwort: 3 - 29.06.2009 um 20:22 Uhr
Name of division has good link to division (Name - GFO.wc3 <- link to division GFO.wc3), but how make it with pictures ? Need make changed ID but i dont know how ; / http://www.stronatestowa.yoyo.pl/gfo/index.php?mod=squads&action=view&id=(HERE ID) ;/ Yeah, with last match and last award can be very hard : / |
||||||
Inaktiv |
|||||||
hajo VIP - Poster Herkunft: Barsbüttel Beiträge: 9411 |
# Antwort: 4 - 29.06.2009 um 20:36 Uhr
{squads:squads_id} doesn't work? ------------------ ClanSphere - professional clan care starts here |
||||||
Inaktiv |
|||||||
kor_jaw Thread-Ersteller Rock the board Beiträge: 67 |
# Antwort: 5 - 29.06.2009 um 21:18 Uhr
Nope, it doesn't work. |
||||||
Inaktiv |
|||||||
hajo VIP - Poster Herkunft: Barsbüttel Beiträge: 9411 |
# Antwort: 6 - 29.06.2009 um 21:42 Uhr
can you paste your theme file content? ------------------ ClanSphere - professional clan care starts here |
||||||
Inaktiv |
|||||||
kor_jaw Thread-Ersteller Rock the board Beiträge: 67 |
# Antwort: 7 - 29.06.2009 um 23:40 Uhr
u mean about *.tpl ? Members-teams.tpl: <table class="forum" cellpadding="0" cellspacing="{page:cellspacing}" style="width:{page:width}"> <tr> <td class="headb">{lang:mod_name} - {lang:head_list} </td> </tr> <tr> <td class="leftb">{lang:body}</td> </tr> </table> <br /> {loop:members} <table class="forum" cellpadding="0" cellspacing="{page:cellspacing}" style="width:{page:width}"> <tr> <td class="centerb" rowspan="4" style="width:30%"><a href="{url:squads_view:id=}">{members:pic}</ a></td> <td style="width:20%"><br />{lang:name}</td> <td><br />{members:icon} {members:name}</td> </tr> <tr> <td> {lang:members}</td> <td>{loop:squad_members}{squad_members:members}{s quad_members:dot}{stop:squad_members}</td> </tr> <tr> <td>{lang:match}</td> <td>here last match</td> </tr> <tr> <td>{lang:award}</td> <td>here last award</td> </tr> </table> {stop:members} Members-teams.php: <?php // ClanSphere 2009 - www.clansphere.net // $Id$ $clan_id = 1; $cs_lang = cs_translate('members'); $op_members = cs_sql_option(__FILE__,'members'); $squads_order = 'squads_order, squads_name'; $cs_squads = cs_sql_select(__FILE__,'squads','*','squads_own = \'1\'',$squads_order,0,0); $squads_loop = count($cs_squads); $data['lang']['mod_name'] = $cs_lang[$op_members['label']]; $data['lang']['body'] = sprintf($cs_lang['body_list'], $squads_loop); if(empty($squads_loop)) { $data['members'] = ''; } for($sq_run=0; $sq_run<$squads_loop; $sq_run++) { $select = 'mem.members_admin AS members_admin, mem.users_id AS users_id, usr.users_nick AS users_nick, usr.users_active AS users_active, usr.users_delete AS users_delete'; $from = 'members mem INNER JOIN {pre}_users usr ON mem.users_id = usr.users_id '; $where = "mem.squads_id = '" . $cs_squads[$sq_run]['squads_id'] . "'"; $order = 'mem.members_order ASC, usr.users_nick ASC'; $cs_members = cs_sql_select(__FILE__,$from,$select,$where,$order,0,0); $members_loop = count($cs_members); if(empty($cs_squads[$sq_run]['squads_picture'])) { $data['members'][$sq_run]['pic'] = $cs_lang['nopic']; } else { $place = 'uploads/squads/' . $cs_squads[$sq_run]['squads_picture']; $size = getimagesize($cs_main['def_path'] . '/' . $place); $data['members'][$sq_run]['pic'] = cs_html_img($place,$size[1],$size[0]); } $id = 'id=' . $cs_squads[$sq_run]['squads_id']; $squads_name = cs_secure($cs_squads[$sq_run]['squads_name']); $data['members'][$sq_run]['name'] = cs_link($squads_name,'squads','view',$id); if(!empty($cs_squads[$sq_run]['games_id'])) { if(file_exists('uploads/games/' . $cs_squads[$sq_run]['games_id'] . '.gif')) { $data['members'][$sq_run]['icon'] = cs_html_img('uploads/games/' . $cs_squads[$sq_run]['games_id'] . '.gif'); } else { $data['members'][$sq_run]['icon'] = ''; } $where = "games_id = '" . $cs_squads[$sq_run]['games_id'] . "'"; $cs_game = cs_sql_select(__FILE__,'games','games_name, games_id',$where); $id = 'id=' . $cs_game['games_id']; $data['members'][$sq_run]['game'] = ' ' . cs_link($cs_game['games_name'],'games','view',$id); } else { $data['members'][$sq_run]['game'] = ' - '; $data['members'][$sq_run]['icon'] = ''; } if(empty($members_loop)) { $data['loop']['squad_members'] = ''; $data['stop']['squad_members'] = ''; $data['squad_members']['members'] = ''; $data['squad_members']['dot'] = ''; } for($run=0; $run<$members_loop; $run++) { $users_nick = cs_secure($cs_members[$run]['users_nick']); $data['members'][$sq_run]['squad_members'][$run]['membe rs'] = cs_user($cs_members[$run]['users_id'], $users_nick, $cs_members[$run]['users_active'], $cs_members[$run]['users_delete']); if($run == ($members_loop - 1)) { $data['members'][$sq_run]['squad_members'][$run]['dot' ] = ''; } elseif(!empty($run)) { $data['members'][$sq_run]['squad_members'][$run]['dot' ] = ', '; } else { $data['members'][$sq_run]['squad_members'][$run]['dot' ] = ', '; } } } echo cs_subtemplate(__FILE__,$data,'members','teams'); Zuletzt editiert von kor_jaw am 29.06.2009 um 23:42 Uhr (2x Editiert) |
||||||
Inaktiv |
|||||||
hajo VIP - Poster Herkunft: Barsbüttel Beiträge: 9411 |
# Antwort: 8 - 30.06.2009 um 01:07 Uhr
<a href="{url:squads_view:id=}"> try there: <a href="{url:squads_view:id={members:squads_id}}"> and change $select = 'mem.members_admin AS members_admin, mem.users_id AS users_id, usr.users_nick AS users_nick, usr.users_active AS users_active, usr.users_delete AS users_delete'; to e.g. $select = 'mem.squads_id AS squads_id, mem.members_admin AS members_admin, mem.users_id AS users_id, usr.users_nick AS users_nick, usr.users_active AS users_active, usr.users_delete AS users_delete';
------------------ ClanSphere - professional clan care starts here |
||||||
Inaktiv |
|||||||
kor_jaw Thread-Ersteller Rock the board Beiträge: 67 |
# Antwort: 9 - 30.06.2009 um 09:21 Uhr
It doesn't work : / |
||||||
Inaktiv |
|||||||
hajo VIP - Poster Herkunft: Barsbüttel Beiträge: 9411 |
# Antwort: 10 - 30.06.2009 um 12:54 Uhr
error message? ------------------ ClanSphere - professional clan care starts here |
||||||
Inaktiv |
|||||||
kor_jaw Thread-Ersteller Rock the board Beiträge: 67 |
# Antwort: 11 - 30.06.2009 um 16:05 Uhr
i don't see any error message : P |
||||||
Inaktiv |
|||||||
hajo VIP - Poster Herkunft: Barsbüttel Beiträge: 9411 |
# Antwort: 12 - 30.06.2009 um 16:12 Uhr
umm that's bad try a bit to fix it please, else i'll see if i can help again ------------------ ClanSphere - professional clan care starts here |
||||||
Inaktiv |
|||||||
Popeye1001 Beginner Beiträge: 11 |
# Antwort: 13 - 03.07.2009 um 09:07 Uhr
Zuletzt editiert von Popeye1001 am 03.07.2009 um 09:08 Uhr (1x Editiert) |
||||||
Inaktiv |
|||||||
wÊs Rock the board Beiträge: 93 |
# Antwort: 14 - 05.07.2009 um 09:42 Uhr
The same i created in my current project =) past the code in "./mods/members/teams.php" after:
that it looks like:
In "./themes/<yourtheme>/members/teams.tpl" you now have to place only these Placeholders:
After that it can look like: http://www.kill-art.de/?section=roster hope that it helps you |
||||||
Inaktiv |
|||||||
Antworten: 14
Seite [1] |
Sie müssen sich registrieren, um zu antworten. |