Antworten: 15
Seite [1] |
Radiate
King for a day
Beiträge: 293 |
# Thema - 10.01.2008 um 17:29 Uhr
Hallo,
hier erstmal mein Code
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.
| 1. / 2. / ...
<?php
$pointstotal = $cs_user['users_points'] + $cs_user['users_pointsboard'] + $cs_user['users_pointsshoutbox'] + $cs_user['users_pointsnewscom'] + $cs_user['users_pointschangenick'];
$boardtotal = $cs_user['users_boardposts'];
$img_10 = cs_html_img('symbols/medals/1.0/unknow.png',95,130);
$img_20 = cs_html_img('symbols/medals/1.0/unknow.png',95,130);
$img_30 = cs_html_img('symbols/medals/1.0/unknow.png',95,130);
$img_40 = cs_html_img('symbols/medals/1.0/unknow.png',95,130);
$img_50 = cs_html_img('symbols/medals/1.0/unknow.png',95,130);
$img_60 = cs_html_img('symbols/medals/1.0/unknow.png',95,130);
$img_70 = cs_html_img('symbols/medals/1.0/unknow.png',95,130);
$img_80 = cs_html_img('symbols/medals/1.0/unknow.png',95,130);
$img_90 = cs_html_img('symbols/medals/1.0/unknow.png',95,130);
$txt_10 = $cs_lang['awardreached_10'];
$txt_20 = $cs_lang['awardreached_20'];
$txt_30 = $cs_lang['awardreached_30'];
$txt_40 = $cs_lang['awardreached_40'];
$txt_50 = $cs_lang['awardreached_50'];
$txt_60 = $cs_lang['awardreached_60'];
$txt_70 = $cs_lang['awardreached_70'];
$txt_80 = $cs_lang['awardreached_80'];
$txt_90 = $cs_lang['awardreached_90'];
### Points 500 ###
if($pointstotal < 50) {
$data['users']['awardimg_points500'] = $img_10;
$data['users']['awardtxt_points500'] = $txt_10;
}
elseif($pointstotal < 100) {
$data['users']['awardimg_points500'] = $img_20;
$data['users']['awardtxt_points500'] = $txt_20;
}
elseif($pointstotal < 150) {
$data['users']['awardimg_points500'] = $img_30;
$data['users']['awardtxt_points500'] = $txt_30;
}
elseif($pointstotal < 200) {
$data['users']['awardimg_points500'] = $img_40;
$data['users']['awardtxt_points500'] = $txt_40;
}
elseif($pointstotal < 250) {
$data['users']['awardimg_points500'] = $img_50;
$data['users']['awardtxt_points500'] = $txt_50;
}
elseif($pointstotal < 300) {
$data['users']['awardimg_points500'] = $img_60;
$data['users']['awardtxt_points500'] = $txt_60;
}
elseif($pointstotal < 350) {
$data['users']['awardimg_points500'] = $img_70;
$data['users']['awardtxt_points500'] = $txt_70;
}
elseif($pointstotal < 400) {
$data['users']['awardimg_points500'] = $img_80;
$data['users']['awardtxt_points500'] = $txt_80;
}
elseif($pointstotal < 450) {
$data['users']['awardimg_points500'] = $img_90;
$data['users']['awardtxt_points500'] = $txt_90;
}
elseif($pointstotal > 499) {
$data['users']['awardimg_points500'] = cs_html_img('symbols/medals/1.0/points500.png',95,130);
$data['users']['awardtxt_points500'] = $cs_lang['awardtxt_points500'];
}
### Points 1000 ###
if($pointstotal < 100) {
$data['users']['awardimg_points1000'] = $img_10;
$data['users']['awardtxt_points1000'] = $txt_10;
}
elseif($pointstotal < 200) {
$data['users']['awardimg_points1000'] = $img_20;
$data['users']['awardtxt_points1000'] = $txt_20;
}
elseif($pointstotal < 300) {
$data['users']['awardimg_points1000'] = $img_30;
$data['users']['awardtxt_points1000'] = $txt_30;
}
elseif($pointstotal < 400) {
$data['users']['awardimg_points1000'] = $img_40;
$data['users']['awardtxt_points1000'] = $txt_40;
}
elseif($pointstotal < 500) {
$data['users']['awardimg_points1000'] = $img_50;
$data['users']['awardtxt_points1000'] = $txt_50;
}
elseif($pointstotal < 600) {
$data['users']['awardimg_points1000'] = $img_60;
$data['users']['awardtxt_points1000'] = $txt_60;
}
elseif($pointstotal < 700) {
$data['users']['awardimg_points1000'] = $img_70;
$data['users']['awardtxt_points1000'] = $txt_70;
}
elseif($pointstotal < 800) {
$data['users']['awardimg_points1000'] = $img_80;
$data['users']['awardtxt_points1000'] = $txt_80;
}
elseif($pointstotal < 900) {
$data['users']['awardimg_points1000'] = $img_90;
$data['users']['awardtxt_points1000'] = $txt_90;
}
elseif($pointstotal > 999) {
$data['users']['awardimg_points1000'] = cs_html_img('symbols/medals/1.0/points1000.png',95,130);
$data['users']['awardtxt_points1000'] = $cs_lang['awardtxt_points1000'];
}
?> |
Die Zweite Auszeichnung ist davon abgesehen das sie eine weitere ist, vom Code her identisch, wieso aber wird diese nicht angezeigt?
Hier habt ihr ein Beispiel: Schaut unter Auszeichnungen
Kann mir da jemand helfen woran das liegen könnte das er bei der zweiten nur die Platzhalter angibt und diese nicht auch ersetzt durch das was da eigentlich folgen sollte?
Danke für jede Hilfe im voraus!
MFG Radiate
------------------
Clansphere 2008.0
Zuletzt editiert von Radiate am 10.01.2008 um 17:31 Uhr (2x Editiert)
|
|
|
|
TeQu!La
Specialist
Herkunft: Grevenbroich
Beiträge: 2142 |
# Antwort: 1 - 10.01.2008 um 17:41 Uhr
[offtopic]sehr geil, was du bis jetzt aus clansphere gemacht hast und das medals modul ala esl [/offtopic]
------------------
ClanSphere - professional clan care starts here
|
|
| |
|
Fr33z3m4n
Medal of Honor
Herkunft: Hamm
Beiträge: 11094 |
# Antwort: 2 - 10.01.2008 um 19:53 Uhr
hmm wieso so kompliziert ?
1.
2.
3.
4.
| 1. / 2. / ...
elseif($pointstotal < 100) {
$data['users']['awardimg_points500'] = $img_20;
$data['users']['awardtxt_points500'] = $txt_20;
} |
ist die gleiche Abfrage wie
1.
2.
3.
4.
| 1. / 2. / ...
if($pointstotal < 100) {
$data['users']['awardimg_points1000'] = $img_10;
$data['users']['awardtxt_points1000'] = $txt_10;
} |
pack es doch zusammen
1.
2.
3.
4.
5.
6.
| 1. / 2. / ...
elseif($pointstotal < 100) {
$data['users']['awardimg_points500'] = $img_20;
$data['users']['awardtxt_points500'] = $txt_20;
$data['users']['awardimg_points1000'] = $img_10;
$data['users']['awardtxt_points1000'] = $txt_10;
} |
so machst du das bei jeder gleichen if abfrage.
------------------
mfg
Patrick "Fr33z3m4n" Jaskulski
Antoine de Saint-Exupéry: Wenn Du ein Schiff bauen willst, so trommle nicht Männer zusammen, um Holz zu beschaffen, Aufgaben zu verteilen, sondern lehre die Männer die Sehnsucht nach dem endlosen weiten Meer.
Zuletzt editiert von Fr33z3m4n am 10.01.2008 um 19:53 Uhr (1x Editiert) |
|
| |
|
Zage
King for a day
Beiträge: 283 |
# Antwort: 3 - 10.01.2008 um 21:36 Uhr
jo, wirklich gute arbeit
------------------
<- Mein Counterstrike Video ->
|
|
| |
|
|
Zage
King for a day
Beiträge: 283 |
# Antwort: 5 - 11.01.2008 um 02:17 Uhr
das wär echt klasse. freu mich jetzt schon
------------------
<- Mein Counterstrike Video ->
|
|
| |
|
Fr33z3m4n
Medal of Honor
Herkunft: Hamm
Beiträge: 11094 |
# Antwort: 6 - 11.01.2008 um 02:33 Uhr
so mein ich das
einige Abfragen gespart
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.
115.
116.
117.
118.
119.
120.
121.
122.
123.
124.
125.
126.
127.
128.
129.
130.
131.
132.
133.
134.
135.
136.
137.
138.
139.
140.
141.
142.
143.
144.
145.
146.
147.
148.
149.
150.
151.
152.
153.
154.
155.
156.
157.
158.
159.
| 1. / 2. / ...
<?php
$pointstotal = $cs_user['users_points'] + $cs_user['users_pointsboard'] + $cs_user['users_pointsshoutbox'] + $cs_user['users_pointsnewscom'] + $cs_user['users_pointschangenick'];
$boardtotal = $cs_user['users_boardposts'];
$img_10 = cs_html_img('symbols/medals/1.0/unknow.png',95,130);
$img_20 = cs_html_img('symbols/medals/1.0/unknow.png',95,130);
$img_30 = cs_html_img('symbols/medals/1.0/unknow.png',95,130);
$img_40 = cs_html_img('symbols/medals/1.0/unknow.png',95,130);
$img_50 = cs_html_img('symbols/medals/1.0/unknow.png',95,130);
$img_60 = cs_html_img('symbols/medals/1.0/unknow.png',95,130);
$img_70 = cs_html_img('symbols/medals/1.0/unknow.png',95,130);
$img_80 = cs_html_img('symbols/medals/1.0/unknow.png',95,130);
$img_90 = cs_html_img('symbols/medals/1.0/unknow.png',95,130);
$txt_10 = $cs_lang['awardreached_10'];
$txt_20 = $cs_lang['awardreached_20'];
$txt_30 = $cs_lang['awardreached_30'];
$txt_40 = $cs_lang['awardreached_40'];
$txt_50 = $cs_lang['awardreached_50'];
$txt_60 = $cs_lang['awardreached_60'];
$txt_70 = $cs_lang['awardreached_70'];
$txt_80 = $cs_lang['awardreached_80'];
$txt_90 = $cs_lang['awardreached_90'];
if($pointstotal < 50) {
$data['users']['awardimg_points500'] = $img_10;
$data['users']['awardtxt_points500'] = $txt_10;
}
if($pointstotal < 100) {
$data['users']['awardimg_points500'] = $img_20;
$data['users']['awardtxt_points500'] = $txt_20;
$data['users']['awardimg_points1000'] = $img_10;
$data['users']['awardtxt_points1000'] = $txt_10;
}
if($pointstotal < 150) {
$data['users']['awardimg_points500'] = $img_30;
$data['users']['awardtxt_points500'] = $txt_30;
}
if($pointstotal < 200) {
$data['users']['awardimg_points500'] = $img_40;
$data['users']['awardtxt_points500'] = $txt_40;
$data['users']['awardimg_points1000'] = $img_20;
$data['users']['awardtxt_points1000'] = $txt_20;
$data['users']['awardimg_points2000'] = $img_10;
$data['users']['awardtxt_points2000'] = $txt_10;
}
if($pointstotal < 250) {
$data['users']['awardimg_points500'] = $img_50;
$data['users']['awardtxt_points500'] = $txt_50;
}
if($pointstotal < 300) {
$data['users']['awardimg_points500'] = $img_60;
$data['users']['awardtxt_points500'] = $txt_60;
$data['users']['awardimg_points1000'] = $img_30;
$data['users']['awardtxt_points1000'] = $txt_30;
}
if($pointstotal < 350) {
$data['users']['awardimg_points500'] = $img_70;
$data['users']['awardtxt_points500'] = $txt_70;
}
if($pointstotal < 400) {
$data['users']['awardimg_points500'] = $img_80;
$data['users']['awardtxt_points500'] = $txt_80;
$data['users']['awardimg_points1000'] = $img_40;
$data['users']['awardtxt_points1000'] = $txt_40;
$data['users']['awardimg_points2000'] = $img_20;
$data['users']['awardtxt_points2000'] = $txt_20;
$data['users']['awardimg_points4000'] = $img_10;
$data['users']['awardtxt_points4000'] = $txt_10;
}
if($pointstotal < 450) {
$data['users']['awardimg_points500'] = $img_90;
$data['users']['awardtxt_points500'] = $txt_90;
}
if($pointstotal > 499) {
$data['users']['awardimg_points500'] = cs_html_img('symbols/medals/1.0/points500.png',95,130);
$data['users']['awardtxt_points500'] = $cs_lang['awardtxt_points500'];
}
if($pointstotal < 500) {
$data['users']['awardimg_points1000'] = $img_50;
$data['users']['awardtxt_points1000'] = $txt_50;
}
if($pointstotal < 600) {
$data['users']['awardimg_points1000'] = $img_60;
$data['users']['awardtxt_points1000'] = $txt_60;
$data['users']['awardimg_points2000'] = $img_30;
$data['users']['awardtxt_points2000'] = $txt_30;
}
if($pointstotal < 700) {
$data['users']['awardimg_points1000'] = $img_70;
$data['users']['awardtxt_points1000'] = $txt_70;
}
if($pointstotal < 800) {
$data['users']['awardimg_points1000'] = $img_80;
$data['users']['awardtxt_points1000'] = $txt_80;
$data['users']['awardimg_points2000'] = $img_40;
$data['users']['awardtxt_points2000'] = $txt_40;
$data['users']['awardimg_points4000'] = $img_20;
$data['users']['awardtxt_points4000'] = $txt_20;
}
if($pointstotal < 900) {
$data['users']['awardimg_points1000'] = $img_90;
$data['users']['awardtxt_points1000'] = $txt_90;
}
if($pointstotal > 999) {
$data['users']['awardimg_points1000'] = cs_html_img('symbols/medals/1.0/points1000.png',95,130);
$data['users']['awardtxt_points1000'] = $cs_lang['awardtxt_points1000'];
}
if($pointstotal < 1000) {
$data['users']['awardimg_points2000'] = $img_50;
$data['users']['awardtxt_points2000'] = $txt_50;
}
if($pointstotal < 1200) {
$data['users']['awardimg_points2000'] = $img_60;
$data['users']['awardtxt_points2000'] = $txt_60;
$data['users']['awardimg_points4000'] = $img_30;
$data['users']['awardtxt_points4000'] = $txt_30;
}
if($pointstotal < 1400) {
$data['users']['awardimg_points2000'] = $img_70;
$data['users']['awardtxt_points2000'] = $txt_70;
}
if($pointstotal < 1600) {
$data['users']['awardimg_points2000'] = $img_80;
$data['users']['awardtxt_points2000'] = $txt_80;
$data['users']['awardimg_points4000'] = $img_40;
$data['users']['awardtxt_points4000'] = $txt_40;
}
if($pointstotal < 1800) {
$data['users']['awardimg_points2000'] = $img_90;
$data['users']['awardtxt_points2000'] = $txt_90;
}
if($pointstotal > 1999) {
$data['users']['awardimg_points2000'] = cs_html_img('symbols/medals/1.0/points2000.png',95,130);
$data['users']['awardtxt_points2000'] = $cs_lang['awardtxt_points2000'];
}
if($pointstotal < 2000) {
$data['users']['awardimg_points4000'] = $img_50;
$data['users']['awardtxt_points4000'] = $txt_50;
}
if($pointstotal < 2400) {
$data['users']['awardimg_points4000'] = $img_60;
$data['users']['awardtxt_points4000'] = $txt_60;
}
if($pointstotal < 2800) {
$data['users']['awardimg_points4000'] = $img_70;
$data['users']['awardtxt_points4000'] = $txt_70;
}
if($pointstotal < 3200) {
$data['users']['awardimg_points4000'] = $img_80;
$data['users']['awardtxt_points4000'] = $txt_80;
}
if($pointstotal < 3600) {
$data['users']['awardimg_points4000'] = $img_90;
$data['users']['awardtxt_points4000'] = $txt_90;
}
if($pointstotal > 3999) {
$data['users']['awardimg_points4000'] = cs_html_img('symbols/medals/1.0/points4000.png',95,130);
$data['users']['awardtxt_points4000'] = $cs_lang['awardtxt_points4000'];
}
?> |
------------------
mfg
Patrick "Fr33z3m4n" Jaskulski
Antoine de Saint-Exupéry: Wenn Du ein Schiff bauen willst, so trommle nicht Männer zusammen, um Holz zu beschaffen, Aufgaben zu verteilen, sondern lehre die Männer die Sehnsucht nach dem endlosen weiten Meer.
|
|
| |
|
|
Fr33z3m4n
Medal of Honor
Herkunft: Hamm
Beiträge: 11094 |
# Antwort: 8 - 11.01.2008 um 18:23 Uhr
hmm dafür müsste ich mir das ganze mal anschauen, laber mich einfach mal im icq an, dann schau ich mal drüber
------------------
mfg
Patrick "Fr33z3m4n" Jaskulski
Antoine de Saint-Exupéry: Wenn Du ein Schiff bauen willst, so trommle nicht Männer zusammen, um Holz zu beschaffen, Aufgaben zu verteilen, sondern lehre die Männer die Sehnsucht nach dem endlosen weiten Meer.
|
|
| |
|
|
Fr33z3m4n
Medal of Honor
Herkunft: Hamm
Beiträge: 11094 |
# Antwort: 10 - 11.01.2008 um 22:07 Uhr
dann trifft irgendeine ifabfrage nicht zu. Wie gesagt, meld dich bei mir einfach.
------------------
mfg
Patrick "Fr33z3m4n" Jaskulski
Antoine de Saint-Exupéry: Wenn Du ein Schiff bauen willst, so trommle nicht Männer zusammen, um Holz zu beschaffen, Aufgaben zu verteilen, sondern lehre die Männer die Sehnsucht nach dem endlosen weiten Meer.
|
|
| |
|
Fredd<y
Poststar
Beiträge: 766 |
# Antwort: 11 - 12.01.2008 um 13:05 Uhr
der Fehler ist doch schon behoben, oder?
------------------
|
|
| |
|
Fr33z3m4n
Medal of Honor
Herkunft: Hamm
Beiträge: 11094 |
# Antwort: 12 - 12.01.2008 um 13:15 Uhr
jop, hab ihm die n8 neuen code erstellt.
------------------
mfg
Patrick "Fr33z3m4n" Jaskulski
Antoine de Saint-Exupéry: Wenn Du ein Schiff bauen willst, so trommle nicht Männer zusammen, um Holz zu beschaffen, Aufgaben zu verteilen, sondern lehre die Männer die Sehnsucht nach dem endlosen weiten Meer.
|
|
| |
|
|
TeQu!La
Specialist
Herkunft: Grevenbroich
Beiträge: 2142 |
# Antwort: 14 - 12.01.2008 um 19:11 Uhr
nice work !
------------------
ClanSphere - professional clan care starts here
|
|
| |
|
Antworten: 15
Seite [1] |