News - Features - Downloads - Forum - Team - Support - Switch View: Screen
Login - Registrierung - Passwort vergessen

Antworten: 28
Seite < 1 [2]
Billbo
Thread-Ersteller


Try to beat me





Beiträge: 118
# Antwort: 21 - 15.08.2008 um 14:16 Uhr
um ehrlich zu sein, weiß ich nicht genau an welche Stelle das ganze muss, bzw. ob Elemente ersetzt werden müssen. *rotwerd*


Inaktiv
|
Jam2 ClanSphere Team


Highlander





Beiträge: 3291
# Antwort: 22 - 15.08.2008 um 14:25 Uhr
machs einfach mal unter den icq zeug xD


------------------
Gruß/ Best regards
Jam2

Nützliche Forumbeiträge/Codepastes: (Useful comments in our board / codepastes)
Template Switch for index.php
Board Navlist last posts

Edi: könnte man denn auch hier eine erweiterung einfügen?
Jam2: das web ist wie toyota.....
Edi: hö ?
Jam2: nichts ist unmöglich!


Inaktiv
|
Billbo
Thread-Ersteller


Try to beat me





Beiträge: 118
# Antwort: 23 - 15.08.2008 um 15:31 Uhr
Gut also beides eingefügt unter deinen icq Code...

leider keine Veränderung

Pfad und Dateiname stimmen!


Zuletzt editiert von Billbo am 15.08.2008 um 15:38 Uhr (1x Editiert)
Inaktiv
|
Jam2 ClanSphere Team


Highlander





Beiträge: 3291
# Antwort: 24 - 19.08.2008 um 14:52 Uhr
 
1.
2.
3.
4.
5.
6.
7.
8.
1. / 2. / ... 
       if(empty($data['squads'][$sq_run]['members'][$run]['users_picture'])) {
          
$data['squads'][$sq_run]['members'][$run]['users_bild'] = cs_html_img('uploads/test.gif');
        }
        else {
          
$place 'uploads/users/' $data['squads'][$sq_run]['members'][$run]['users_picture'];
          
$size getimagesize($cs_main['def_path'] . '/' $place);
          
$data['squads'][$sq_run]['members'][$run]['users_bild'] = cs_html_img($place,$size[1],$size[0]);
        } 


getestet - var: {members:users_bild}

und oben wie immer
usr.users_picture AS users_picture


------------------
Gruß/ Best regards
Jam2

Nützliche Forumbeiträge/Codepastes: (Useful comments in our board / codepastes)
Template Switch for index.php
Board Navlist last posts

Edi: könnte man denn auch hier eine erweiterung einfügen?
Jam2: das web ist wie toyota.....
Edi: hö ?
Jam2: nichts ist unmöglich!


Inaktiv
|
Billbo
Thread-Ersteller


Try to beat me





Beiträge: 118
# Antwort: 25 - 19.08.2008 um 16:36 Uhr
Also der Platz halter ist bei dem Code in uploads/test.gif richtig?

Code eingefühgt; "usr.users_picture AS users_picture" war schon drin - wenn user ein bild eingefügt hat funktioniert es ja.

Aber es kommt kein Bild wenn ein user kein Bild hochgeladen hat.


Inaktiv
|
Jam2 ClanSphere Team


Highlander





Beiträge: 3291
# Antwort: 26 - 19.08.2008 um 17:49 Uhr
"muss", was sagt die debug


also es muss gehn ich habs getestet o.O


------------------
Gruß/ Best regards
Jam2

Nützliche Forumbeiträge/Codepastes: (Useful comments in our board / codepastes)
Template Switch for index.php
Board Navlist last posts

Edi: könnte man denn auch hier eine erweiterung einfügen?
Jam2: das web ist wie toyota.....
Edi: hö ?
Jam2: nichts ist unmöglich!


Inaktiv
|
Billbo
Thread-Ersteller


Try to beat me





Beiträge: 118
# Antwort: 27 - 20.08.2008 um 11:36 Uhr
debug.php ausgeführt und heraus kam das...

mehr... +-

Warning: cs_html_vote - Function goes away in next minor release, use themes instead
Warning: cs_html_div - Function goes away in next minor release, use themes instead
Warning: cs_html_span - Function goes away in next minor release, use themes instead
Warning: cs_html_table - Function goes away in next minor release, use themes instead
Warning: cs_html_roco - Function goes away in next minor release, use themes instead
SELECT options_name, options_value FROM cs_options WHERE options_mod = 'clansphere'
SELECT users_id, users_nick, users_lang, access_id, users_limit, users_view, users_timezone, users_dstime, users_pwd FROM cs_users WHERE users_id = 2 LIMIT 0,1
UPDATE cs_users SET users_laston='1219217127' WHERE users_id='2'
SELECT * FROM cs_access WHERE access_id = 5 LIMIT 0,1
SELECT COUNT(*) FROM cs_news WHERE news_publishs_at != 0 AND news_public = 0 AND news_publishs_at < 1219217127
SELECT options_name, options_value FROM cs_options WHERE options_mod = 'fckeditor'
SELECT count_id, count_time FROM cs_count WHERE count_ip = '80.142.179.251' ORDER BY count_id DESC LIMIT 0,1
UPDATE cs_count SET count_time='1219217127', count_location='news/recent' WHERE count_id='2655'
SELECT options_name, options_value FROM cs_options WHERE options_mod = 'counter'
SELECT options_name, options_value FROM cs_options WHERE options_mod = 'gallery'
SELECT options_name, options_value FROM cs_options WHERE options_mod = 'news'
SELECT * FROM cs_categories WHERE categories_mod = 'news' AND categories_access <= 5 ORDER BY categories_name
SELECT COUNT(DISTINCT news_id) FROM cs_news nws INNER JOIN cs_categories cat ON nws.categories_id = cat.categories_id WHERE nws.news_public > 0 AND cat.categories_access <= 5
SELECT nws.news_id AS news_id, nws.news_headline AS news_headline, nws.news_time AS news_time, nws.news_text AS news_text, nws.news_pictures AS news_pictures, nws.users_id AS users_id, usr.users_nick AS users_nick, nws.categories_id AS categories_id, cat.categories_picture AS categories_picture, cat.categories_name AS categories_name FROM cs_news nws INNER JOIN cs_users usr ON nws.users_id = usr.users_id INNER JOIN cs_categories cat ON nws.categories_id = cat.categories_id WHERE nws.news_public > 0 AND cat.categories_access <= 5 ORDER BY news_attached DESC, news_time DESC LIMIT 0,8
SELECT options_name, options_value FROM cs_options WHERE options_mod = 'abcode'
SELECT abcode_func, abcode_pattern, abcode_result, abcode_file FROM cs_abcode
SELECT COUNT(*) FROM cs_comments WHERE comments_mod = 'news' AND comments_fid = 27
SELECT COUNT(*) FROM cs_comments WHERE comments_mod = 'news' AND comments_fid = 26
SELECT COUNT(*) FROM cs_comments WHERE comments_mod = 'news' AND comments_fid = 20
SELECT metatags_id, metatags_name, metatags_content FROM cs_metatags WHERE metatags_active = 1 ORDER BY metatags_name
SELECT COUNT(*) FROM cs_messages WHERE users_id_to = '2' AND messages_show_receiver = 1 AND messages_view = 0
SELECT war.games_id AS games_id, war.wars_date AS wars_date, sqd.squads_name AS squads_name, cln.clans_name AS clans_name, war.wars_id AS wars_id FROM cs_wars war INNER JOIN cs_squads sqd ON war.squads_id = sqd.squads_id INNER JOIN cs_clans cln ON war.clans_id = cln.clans_id WHERE war.wars_date > '1219217127' AND war.wars_status = 'upcoming' ORDER BY war.wars_date ASC LIMIT 0,4
SELECT options_name, options_value FROM cs_options WHERE options_mod = 'wars'
SELECT war.games_id AS games_id, cln.clans_short AS clans_short, war.wars_score1 AS wars_score1, war.wars_score2 AS wars_score2, war.wars_id AS wars_id FROM cs_wars war INNER JOIN cs_categories cat ON war.categories_id = cat.categories_id INNER JOIN cs_clans cln ON war.clans_id = cln.clans_id WHERE war.wars_status = 'played' ORDER BY wars_date DESC LIMIT 0,4
SELECT options_name, options_value FROM cs_options WHERE options_mod = 'events'
SELECT users_age FROM cs_users WHERE users_age LIKE '%-08-%'
SELECT events_time FROM cs_events WHERE events_time >= '1217548800' AND events_time <= '1220227199'



Stelle noch mal meine list.php und tpl rein. Aber du musst dir des nun nicht antuen Jam2^^ ich meine du hast ja schon die Finger wund geholfen

Auszug der list.php +-
 
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.
49.
50.
51.
52.
53.
54.
55.
56.
57.
58.
59.
60.
61.
62.
63.
64.
65.
66.
67.
68.
69.
70.
71.
72.
73.
74.
75.
76.
77.
78.
79.
80.
81.
82.
83.
84.
85.
86.
87.
88.
89.
90.
91.
92.
93.
94.
95.
96.
97.
98.
99.
100.
101.
102.
103.
104.
105.
106.
107.
108.
109.
110.
111.
112.
113.
114.
1. / 2. / ... 
<?php 
<?php  
  
if(!empty($cs_squads[$sq_run]['games_id'])) {
    
$data['squads'][$sq_run]['gameicon'] = cs_html_img('uploads/games/' $cs_squads[$sq_run]['games_id'] . '.gif');
  }
  else {
    
$data['squads'][$sq_run]['gameicon'] = '';
  }

  if(!empty(
$cs_squads[$sq_run]['squads_picture'])) {
    
$data['squads'][$sq_run]['picture'] =  $cs_squads[$sq_run]['squads_picture'];
  }
  else {
    
$data['squads'][$sq_run]['squads_picture'] = '';
  }
  
  
$clipfunktion $op_members['clip_funktion'];
   
$sq $cs_squads[$sq_run]['squads_id'];
   
   if(empty(
$clipfunktion)) { 
   
$data['clip']['funktion'] = 'none'
   
$data['squads'][$sq_run]['beginn'] = '<a href="javascript:cs_squad('."'squad_$sq'".')">';
   
$data['squads'][$sq_run]['end'] = '</a>';
   }
   
   if(
$clipfunktion == '1') { 
   
$data['clip']['funktion'] = 'none';  
   
$data['squads'][$sq_run]['beginn'] = '<a href="javascript:cs_squad('."'squad_$sq'".')">';
   
$data['squads'][$sq_run]['end'] = '</a>';
   }

   if(
$clipfunktion == '2') {
   
$data['clip']['funktion'] = 'block'
   
$data['squads'][$sq_run]['beginn'] = '';
   
$data['squads'][$sq_run]['end'] = '';
   }
  
$data['squads'][$sq_run]['id'] = cs_secure($cs_squads[$sq_run]['squads_id']);
  
$data['squads'][$sq_run]['name'] = cs_secure($cs_squads[$sq_run]['squads_name']);
  
$data['squads'][$sq_run]['squads_picture'] = cs_html_img('uploads/squads/'.$cs_squads[$sq_run]['squads_picture']);
  
  
$data['squads'][$sq_run]['members'] = !empty($cs_members) ? $cs_members : array();
  
  for(
$run 0$run $members_loop$run++) {
    
$url 'symbols/countries/' $cs_members[$run]['users_country'] . '.png';
    
$data['squads'][$sq_run]['members'][$run]['country'] = cs_html_img($url,11,16);
    
$plaza 'uploads/users/' $cs_members[$run]['users_picture'];



    
$data['squads'][$sq_run]['members'][$run]['picture'] = cs_html_img($plaza);


    
    
$nick_secure cs_secure($cs_members[$run]['users_nick']);
    
$data['squads'][$sq_run]['members'][$run]['nick']  = $cs_squads[$sq_run]['clans_tagpos'] == ?
        
$cs_squads[$sq_run]['clans_tag'] . ' ' '';
    
$data['squads'][$sq_run]['members'][$run]['nick'] .=
        
cs_link($nick_secure,'users','view','id='.$cs_members[$run]['users_id']);



    
$data['squads'][$sq_run]['members'][$run]['nick'] .= $cs_squads[$sq_run]['clans_tagpos'] == ?
        
' ' $cs_squads[$sq_run]['clans_tag'] : '';
    
$data['squads'][$sq_run]['members'][$run]['task']  = cs_secure($cs_members[$run]['members_task']);
    
$data['squads'][$sq_run]['members'][$run]['since'] = empty($cs_members[$run]['members_since']) ? '-'
      
cs_date('date',$cs_members[$run]['members_since']);
    
$on_now cs_time() - 300
    
$on_week cs_time() - 604800;
    
$on_now <= $cs_members[$run]['users_laston'] ? $icon 'green' $icon 'grey';
    if(
$on_week >= $cs_members[$run]['users_laston']) {
      
$icon 'red';
    }
    
$data['squads'][$sq_run]['members'][$run]['status'] = cs_html_img('symbols/clansphere/' $icon '.gif',8,8);
    
$data['squads'][$sq_run]['members'][$run]['users_name'] = 
      empty(
$data['squads'][$sq_run]['members'][$run]['users_name']) ? '' 
      
$data['squads'][$sq_run]['members'][$run]['users_name'];
    
$data['squads'][$sq_run]['members'][$run]['users_surname'] = 
      empty(
$data['squads'][$sq_run]['members'][$run]['users_surname']) ? '' 
      
$data['squads'][$sq_run]['members'][$run]['users_surname'];
        empty(
$data['squads'][$sq_run]['members'][$run]['users_email']) ? '' 
      
$data['squads'][$sq_run]['members'][$run]['users_email'];

$data['squads'][$sq_run]['members'][$run]['users_icq'] = empty($data['squads'][$sq_run]['members'][$run]['users_icq']) ? 'keine Angaben' $data['squads'][$sq_run]['members'][$run]['users_icq'];


if(empty(
$data['squads'][$sq_run]['members'][$run]['users_picture'])) {
          
$data['squads'][$sq_run]['members'][$run]['users_bild'] = cs_html_img('uploads/test.gif');

        }
        else {
          
$place 'uploads/users/' $data['squads'][$sq_run]['members'][$run]['users_picture'];
          
$size getimagesize($cs_main['def_path'] . '/' $place);
          
$data['squads'][$sq_run]['members'][$run]['users_bild'] = cs_html_img($place,$size[1],$size[0]);
        }



if (!empty(
$data['squads'][$sq_run]['members'][$run]['users_age'])) {
          
$birthday cs_date('date',$data['squads'][$sq_run]['members'][$run]['users_age']);
        
$birth explode ('-'$data['squads'][$sq_run]['members'][$run]['users_age']);
        
$age cs_datereal('Y') - $birth[0];
        if(
cs_datereal('m')<=$birth[1]) { $age--; }
        if(
cs_datereal('d')>=$birth[2] AND cs_datereal('m')==$birth[1]) { $age++; }
      
    }
      
$data['squads'][$sq_run]['members'][$run]['users_birthday'] = empty($birthday) ? 'keine Angaben' $birthday;    
    
$data['squads'][$sq_run]['members'][$run]['users_age'] = empty($data['squads'][$sq_run]['members'][$run]['users_age']) ? 'keine Angaben' $age;

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

?> ?>


Inaktiv
|
Jam2 ClanSphere Team


Highlander





Beiträge: 3291
# Antwort: 28 - 31.08.2008 um 10:20 Uhr
auf ein neues xD

Schreib mich im ICQ an (nummer per pn)


------------------
Gruß/ Best regards
Jam2

Nützliche Forumbeiträge/Codepastes: (Useful comments in our board / codepastes)
Template Switch for index.php
Board Navlist last posts

Edi: könnte man denn auch hier eine erweiterung einfügen?
Jam2: das web ist wie toyota.....
Edi: hö ?
Jam2: nichts ist unmöglich!


Inaktiv
|
Antworten: 28
Seite < 1 [2]


Sie müssen sich registrieren, um zu antworten.


ClanSphere Project - Mailus - Imprint - Disclaimer - Scriptinfo