CHDMedia
Rock the board
Beiträge: 60 |
# Thema - 15.06.2012 um 12:00 Uhr
Hallo Community,
ich habe folgendes Problem. Ich nutze derzeit folgendes Modul: http://www.csphere.eu/downloads/module/view/id/241
Jetzt möchte ich aber, dass ich HTML in der "Beschreibung" nutzen kann. Im folgenden erstmal die Quellcodes die wichig sein könnten:
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.
| 1. / 2. / ...
<?php
// ClanSphere 2009 - www.clansphere.net
// Drag0n $
$cs_lang = cs_translate('referenz');
empty($_REQUEST['start']) ? $start = 0 : $start = $_REQUEST['start'];
$cs_sort[1] = 'referenz_name DESC';
$cs_sort[2] = 'referenz_name ASC';
$cs_sort[3] = 'referenz_time DESC';
$cs_sort[4] = 'referenz_time ASC';
empty($_REQUEST['sort']) ? $sort = 1 : $sort = $_REQUEST['sort'];
$order = $cs_sort[$sort];
$referenz_count = cs_sql_count(__FILE__,'referenz');
$data['output']['all'] = $referenz_count;
$data['pages']['list'] = cs_pages('referenz','list',$referenz_count,$start,0,$sort);
$select = 'referenz_id, referenz_time, referenz_name, referenz_users_name, users_id, ';
$select .= 'referenz_info, referenz_url, referenz_img, referenz_img_klein, referenz_count, ';
$select .= 'referenz_logo, referenz_flash, referenz_banner, referenz_pics, referenz_animation, ';
$select .= 'referenz_angepasst, referenz_module, referenz_css, referenz_verkaufsstatus';
$cs_referenz = cs_sql_select(__FILE__,'referenz',$select,0,$order,$start,$account['users_limit']);
$referenz_loop = count($cs_referenz);
if (empty($referenz_loop)) {
$data['referenz'] = '';
}
for($run=0; $run<$referenz_loop; $run++) {
$pic = $cs_referenz[$run]['referenz_img_klein'];
$place = 'uploads/referenz/' . $pic;
if(!empty($pic)) {
$size = getimagesize($cs_main['def_path'] . '/' . $place);
$img = cs_html_img($place,$size[1],$size[0]);
$data['referenz'][$run]['picture'] = cs_link($img,'referenz','view','id=' . $cs_referenz[$run]['referenz_id']);
}
else {
$data['referenz'][$run]['picture'] = '';
}
$cs_users_id = $cs_referenz[$run]['users_id'];
$cs_user = cs_sql_select(__FILE__,'users','*',"users_id = '" . $cs_users_id . "'");
$url = 'symbols/countries/' . $cs_user['users_country'] . '.png';
$cs_users_nick = cs_secure($cs_user['users_nick']);
$data['referenz'][$run]['users_id'] = cs_html_img($url,11,16) . ' ';
$data['referenz'][$run]['users_id'] .= cs_link($cs_users_nick,'users','view','id=' . $cs_user['users_id']);
if(empty($cs_referenz[$run]['users_id'])) {
$data['referenz'][$run]['users_id'] = $cs_referenz[$run]['referenz_users_name'];
}
$data['referenz'][$run]['referenz_time'] = cs_date('unix',$cs_referenz[$run]['referenz_time'],0);
$data['referenz'][$run]['referenz_name'] = cs_link(cs_secure($cs_referenz[$run]['referenz_name']),'referenz','view','id=' . $cs_referenz[$run]['referenz_id']);
$data['referenz'][$run]['referenz_info'] = $cs_referenz[$run]['referenz_info'];
}
echo cs_subtemplate(__FILE__,$data,'referenz','list'); |
view.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.
| 1. / 2. / ...
<?php
// ClanSphere 2009 - www.clansphere.net
// Drag0n $
$cs_lang = cs_translate('referenz');
$referenz_id = $_GET['id'];
settype($referenz_id,'integer');
$referenz_count = cs_sql_count(__FILE__,'referenz');
$select = 'referenz_id, referenz_time, referenz_name, referenz_users_name, users_id, ';
$select .= 'referenz_info, referenz_url, referenz_img, referenz_img_klein, referenz_count, ';
$select .= 'referenz_logo, referenz_flash, referenz_banner, referenz_pics, referenz_animation, ';
$select .= 'referenz_angepasst, referenz_module, referenz_css, referenz_verkaufsstatus';
$cs_referenz = cs_sql_select(__FILE__,'referenz',$select,"referenz_id = '" . $referenz_id . "'");
if(!empty($cs_referenz['users_id'])) {
$cs_user = cs_sql_select(__FILE__,'users','users_id, users_nick, users_active, users_delete',"users_id = '" . $cs_referenz['users_id'] . "'");
$data['referenz']['users_id'] = cs_user($cs_user['users_id'], $cs_user['users_nick']);
}
else {
$data['referenz']['users_id'] = $cs_referenz['referenz_users_name'];
}
$place = 'uploads/referenz/' . $cs_referenz['referenz_img'];
if(!empty($cs_referenz['referenz_img'])) {
$size = getimagesize($cs_main['def_path'] . '/' . $place);
if($size[1] > 150) {
$size[1] = '150';
}
if($size[0] > 180) {
$size[0] = '180';
}
$link = cs_html_img('uploads/referenz/' . $cs_referenz['referenz_img'],$size[1],$size[0]);
$path = $cs_main['php_self']['dirname'];
$data['referenz']['picture'] = cs_html_link($path . 'uploads/referenz/' . $cs_referenz['referenz_img'],$link, 'rel="lightbox"',0,0,'rel="lightbox"');
}
$data['referenz']['referenz_time'] = cs_date('unix',$cs_referenz['referenz_time'],1);
$data['referenz']['referenz_name'] = cs_secure($cs_referenz['referenz_name']);
$data['referenz']['referenz_url'] = cs_html_link('http://' . $cs_referenz['referenz_url'],$cs_referenz['referenz_url']);
if($cs_referenz['referenz_verkaufsstatus'] == 'gesponsort') {
$data['referenz']['referenz_verkaufsstatus'] = $cs_lang['verkaufsstatus_sponsored'];
$data['referenz']['referenz_verkaufsstatus_color'] = '#FFCC00';
}
elseif($cs_referenz['referenz_verkaufsstatus'] == 'ja') {
$data['referenz']['referenz_verkaufsstatus'] = $cs_lang['verkaufsstatus_verkauft'];
$data['referenz']['referenz_verkaufsstatus_color'] = '#FF0000';
}
elseif($cs_referenz['referenz_verkaufsstatus'] == 'nein') {
$data['referenz']['referenz_verkaufsstatus'] = $cs_lang['verkaufsstatus_nichtverkauft'];
$data['referenz']['referenz_verkaufsstatus_color'] = '#00FF00';
}
$data['referenz']['referenz_logo'] = $cs_referenz['referenz_logo'] == 'ja' ? cs_icon('submit') : cs_icon('cancel');
$data['referenz']['referenz_flash'] = $cs_referenz['referenz_flash'] == 'ja' ? cs_icon('submit') : cs_icon('cancel');
$data['referenz']['referenz_banner'] = $cs_referenz['referenz_banner'] == 'ja' ? cs_icon('submit') : cs_icon('cancel');
$data['referenz']['referenz_pics'] = $cs_referenz['referenz_pics'] == 'ja' ? cs_icon('submit') : cs_icon('cancel');
$data['referenz']['referenz_animation'] = $cs_referenz['referenz_animation'] == 'ja' ? cs_icon('submit') : cs_icon('cancel');
$data['referenz']['referenz_angepasst'] = $cs_referenz['referenz_angepasst'] == 'ja' ? cs_icon('submit') : cs_icon('cancel');
$data['referenz']['referenz_module'] = $cs_referenz['referenz_module'] == 'ja' ? cs_icon('submit') :cs_icon('cancel');
$data['referenz']['referenz_css'] = $cs_referenz['referenz_css'] == 'ja' ? cs_icon('submit') : cs_icon('cancel');
$data['referenz']['referenz_info'] = cs_secure($cs_referenz['referenz_info'],1,1);
echo cs_subtemplate(__FILE__,$data,'referenz','view');
|
Ich hoffe mir kann wer helfen. Sollte es nicht möglich sein dort HTML zu aktivieren, kann man dann einstellen, dass nicht der WYSIWYG Editor in diesem Modul kommt?
|
palle
Supporter
Beiträge: 3073 |
# Antwort: 2 - 18.06.2012 um 09:47 Uhr
cs_secure ( $replace, [ $features = 0], [ $smileys = 0], [ $clip = 1], [ $html = 0], [ $phpeval = 0])
view.php
suche
1.
| 1. / 2. / ...
$data['referenz']['referenz_info'] = cs_secure($cs_referenz['referenz_info'],1,1); |
ersetze
1.
| 1. / 2. / ...
$data['referenz']['referenz_info'] = cs_secure($cs_referenz['referenz_info'],1,1,1,1); |
list.php
suche
1.
| 1. / 2. / ...
$data['referenz'][$run]['referenz_info'] = $cs_referenz[$run]['referenz_info']; |
ersetze
1.
| 1. / 2. / ...
$data['referenz'][$run]['referenz_info'] = cs_secure($cs_referenz[$run]['referenz_info'],1,1,1,1); |
------------------
I like the part where it says 'nyan'
|