Demo

Probiere ClanSphere aus und teste daran herum. Demo


Antworten: 3
Seite [1]
gent0s


Try to beat me




Beiträge: 138
# Thema - 16.05.2010 um 17:37 Uhr
Hi,

hab ein Problem und zwar wollte ich bei uns in der Memberansicht das so haben, dass wenn man auf den Banner des Teams klickt,
die Memberliste ausfährt. Allerdings sollen die Member nicht als Liste ausfahren sondern es soll die Bildansicht ausfahren. Das Modul für die Klappfunktion habe ich hier nämlich nur für die list.php gefunden... Bei www.voodoogaming.de hab ich das nämlich gesehen und ich finde es sieht richtig geil aus. Wäre cool wenn mir jemand die pictured.php so bearbeiten könnte wie bei voodoogaming.de
Hoffe ihr versteht was ich meine^^.

thx,
gent0s


------------------
Inaktiv
VooDooAlex


Poststar




Herkunft: Coburg
Beiträge: 691
# Antwort: 1 - 16.05.2010 um 18:27 Uhr
Hier die Dateien von VooDooGaminG:

pictured.php +-
<?php
// ClanSphere 2009 - www.clansphere.net
// $Id: pictured.php 2417 2009-03-27 13:21:33Z GaHero $

$cs_lang = cs_translate('members');
$data = array();

$op_members = cs_sql_option(__FILE__,'members');
$op_squads = cs_sql_option(__FILE__,'squads');

$tables = 'squads sq INNER JOIN {pre}_clans cln ON sq.clans_id = cln.clans_id';
$cells = 'sq.squads_id AS squads_id, sq.games_id AS games_id, sq.squads_name AS squads_name, ';
$cells .= 'sq.clans_id AS clans_id, cln.clans_tagpos AS clans_tagpos, ';
$cells .= 'cln.clans_tag AS clans_tag, sq.squads_picture AS squads_picture';
$cs_squads = cs_sql_select(__FILE__,$tables,$cells,'squads_own = \'1\'','squads_order, squads_name',0,0);
$data['squads'] = cs_sql_select(__FILE__,$tables,$cells,'squads_own = \'1\'','squads_order, squads_name',0,0);
$squads_loop = count($data['squads']);

$data['head']['mod'] = $cs_lang[$op_members['label']];
$data['head']['body'] = sprintf($cs_lang['body_pictured'], $squads_loop);


for($sq_run=0; $sq_run<$squads_loop; $sq_run++) {

$select = 'mem.members_admin AS members_admin, mem.members_task AS members_task, ';
$select .= 'mem.members_since AS members_since, mem.users_id AS users_id, usr.users_nick AS users_nick, ';
$select .= 'usr.users_name AS users_name, usr.users_surname AS users_surname, usr.users_profil AS users_profil,usr.users_sex AS users_sex, ';
$select .= 'usr.users_age AS users_age, usr.users_place AS users_place, usr.users_country AS users_country, ';
$select .= 'usr.users_picture AS users_picture, usr.users_active AS users_active, usr.users_hidden AS users_hidden, 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 = '" . $data['squads'][$sq_run]['squads_id'] . "'";
$order = 'mem.members_order ASC, usr.users_nick ASC';

$data['squads'][$sq_run]['members'] = cs_sql_select(__FILE__,$from,$select,$where,$order,0,0);
$members_loop = count($data['squads'][$sq_run]['members']);

$data['squads'][$sq_run]['squad_name'] = cs_secure($data['squads'][$sq_run]['squads_name']);
$data['squads'][$sq_run]['count_members'] = $members_loop;
//###### Diese Spalte ist f�r den Slider in der Memberansicht
$data['squads'][$sq_run]['id'] = cs_secure($cs_squads[$sq_run]['squads_id']);
//#######
$data['squads'][$sq_run]['squads_picture'] = cs_html_img('uploads/squads/'.$cs_squads[$sq_run]['squads_picture ']);

if(empty($members_loop)) {
$data['squads'][$sq_run]['members'] = array();
}

$tr = 0;
for($run=0; $run<$members_loop; $run++) {

$members = $data['squads'][$sq_run]['members'];

$hidden = explode(',',$members[$run]['users_hidden']);
$allow = $members[$run]['users_id'] == $account['users_id'] OR $account['access_users'] > 4 ? 1 : 0;

if(empty($members[$run]['users_picture'])) {
$members[$run]['picture'] = $cs_lang['nopic'];
} else {
$place = 'uploads/users/' . $members[$run]['users_picture'];
$size = getimagesize($cs_main['def_path'] . '/' . $place);
$members[$run]['picture'] = cs_html_img($place,$size[1],$size[0]);
}

$url = 'symbols/countries/' . $members[$run]['users_country'] . '.png';
$members[$run]['country'] = cs_html_img($url,11,16) . ' ';

$members[$run]['nick'] = $data['squads'][$sq_run]['clans_tagpos'] == 1 ? $data['squads'][$sq_run]['clans_tag'] . ' ' : '';
$members[$run]['nick'] .=
cs_user($members[$run]['users_id'],$members[$run]['users_nick' ], $members[$run]['users_active'], $members[$run]['users_delete']);
$members[$run]['nick'] .= $data['squads'][$sq_run]['clans_tagpos'] == 2 ? ' ' . $data['squads'][$sq_run]['clans_tag'] : '';

$users_name = !in_array('users_name',$hidden) || !empty($allow) ? $members[$run]['users_name'] : '';
$users_surname = !in_array('users_surname',$hidden) || !empty($allow) ? $members[$run]['users_surname'] : '';
$members[$run]['surname'] = empty($users_name) && empty($users_surname) ? ' - ' : $users_name . ' ' . $users_surname;

$users_profil = !in_array('users_profil',$hidden) || !empty($allow) ? $members[$run]['users_profil'] : '';
$members[$run]['profil'] = empty($users_profil) ? ' - ' : cs_secure($users_profil,1,1);

$members[$run]['task'] = cs_secure($members[$run]['members_task']);
$since = empty($members[$run]['members_since']) ? '-' : cs_date('date',$members[$run]['members_since']);
$members[$run]['since'] = $since;

$tr++;
$members[$run]['if']['td'] = FALSE;
$members[$run]['if']['end_row'] = FALSE;

if(($tr %2 != 0) && ($tr == $members_loop)) {
$members[$run]['if']['td'] = TRUE;
} elseif (($tr %2 == 0) && ($tr != $members_loop)) {
$members[$run]['if']['end_row'] = TRUE;
}

$data['squads'][$sq_run]['members'] = $members;
}

}
echo cs_subtemplate(__FILE__,$data,'members','pictured');

?>


pictured.tpl +-
 
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
16.
17.
18.
19.
20.
21.
22.
23.
24.
25.
26.
27.
28.
29.
30.
31.
32.
33.
34.
35.
36.
37.
38.
39.
40.
41.
42.
43.
44.
45.
46.
47.
48.
1. / 2. / ... 
 <table class="forum" style="width:{page:width}" cellpadding="0" cellspacing="{page:cellspacing}">
<
tr>
<
td class="headb" colspan="2">{head:mod} - {lang:head_pictured}</td>
</
tr>
<
tr>
<
td class="leftb">{head:body}</td>
<
td class="rightb"><a href="/index/members/list" >Liste</a></td>
</
tr>
</
table>

{
loop:squads}
<
table class="forum" style="width:{page:width}" cellpadding="0" cellspacing="{page:cellspacing}">
<
tr>
<
td id="toggle{squads:id}" class="members" colspan="3">
<
div align="center">{squads:squads_picture}</div>
</
td>
</
tr>
<
tr>
<
td class="head2" colspan="3">
<
div style="float:left"> {squads:squad_name}</div>
<
div style="float:right">{squads:count_members} {lang:members} </div>
</
td>
</
tr>
</
table>
<
div id="squad{squads:id}">
<
table class="forum" style="width:{page:width}" cellpadding="0" cellspacing="1">
<
tr>
{
loop:members}
<
tr>
<
td class="centerb" style="width:25%">
{
members:picture}
</
td>
<
td class="leftc" style="width:25%">
{
members:country} {members:nick}<br />
<
br />
{
members:surname}<br />
<
br />
{
lang:task}: {members:task}<br />
<
br />
{
lang:since}: {members:since}
</
td>
<
td class="centerb" style="width:50%">{members:profil}</td>
</
tr>
{
stop:members}
</
table>
</
div>
<
br />
{
stop:squads}


{members:profil} wird aber bei dir Probleme machen, da nicht vorhanden.


------------------




Inaktiv
|
gent0s
Thread-Ersteller


Try to beat me




Beiträge: 138
# Antwort: 2 - 16.05.2010 um 19:28 Uhr
Vielen dank, mal gucken wie ich das mit {members:profil} mache


------------------


Inaktiv
|
ArMyHuHn


Wannabe poster




Beiträge: 37
# Antwort: 3 - 25.05.2010 um 19:17 Uhr
Sowas in der Richtung suche ich auch allerdings als Modul weiss jemand ob es das hier gib ?


Inaktiv
|
Antworten: 3
Seite [1]


Sie müssen sich registrieren, um zu antworten.