Demo

Probiere ClanSphere aus und teste daran herum. Demo


Antworten: 10
Seite [1]
dunderdotten


Beginner





Beiträge: 9
# Thema - 19.05.2012 um 22:44 Uhr
Is it possible? If "yes, you noob it is" then how



------------------
~ dont i know, dont i tell
Inaktiv
hajo ClanSphere Team


VIP - Poster




Herkunft: Barsbüttel
Beiträge: 9411
# Antwort: 1 - 19.05.2012 um 22:56 Uhr
have you tried to use the standard bbcode?


------------------
ClanSphere - professional clan care starts here

Inaktiv
|
dunderdotten
Thread-Ersteller


Beginner





Beiträge: 9
# Antwort: 2 - 20.05.2012 um 09:14 Uhr
Yes. Its working in the forums, news and so on but not in the shoutbox.


------------------
~ dont i know, dont i tell

Inaktiv
|
hajo ClanSphere Team


VIP - Poster




Herkunft: Barsbüttel
Beiträge: 9411
# Antwort: 3 - 20.05.2012 um 10:22 Uhr
then it needs to be turned on where shoutbox output goes threw the cs_secure function which escapes html and has additional parameters to allow such things.


------------------
ClanSphere - professional clan care starts here

Inaktiv
|
dunderdotten
Thread-Ersteller


Beginner





Beiträge: 9
# Antwort: 4 - 20.05.2012 um 11:53 Uhr
hmmm... is this in the mods/shoutbox/manage.php file?

I found a line there: $data['shoutbox'][$run]['shoutbox_name'] = cs_secure($data['shoutbox'][$run]['shoutbox_name']);
should i just delete this or am i looking at the wrong place?


------------------
~ dont i know, dont i tell

Inaktiv
|
hajo ClanSphere Team


VIP - Poster




Herkunft: Barsbüttel
Beiträge: 9411
# Antwort: 5 - 20.05.2012 um 13:10 Uhr
manage is for admin tasks, you need to alter that in nav*.php files


------------------
ClanSphere - professional clan care starts here

Inaktiv
|
dunderdotten
Thread-Ersteller


Beginner





Beiträge: 9
# Antwort: 6 - 20.05.2012 um 18:13 Uhr
K thx! will try it


------------------
~ dont i know, dont i tell

Inaktiv
|
hajo ClanSphere Team


VIP - Poster




Herkunft: Barsbüttel
Beiträge: 9411
# Antwort: 7 - 20.05.2012 um 18:20 Uhr
http://csphere.eu/api/clansphere/_core---abcode.html#functioncs_secure

there is more information on how to use / change the usage of the cs_secure function


------------------
ClanSphere - professional clan care starts here

Inaktiv
|
dunderdotten
Thread-Ersteller


Beginner





Beiträge: 9
# Antwort: 8 - 20.05.2012 um 19:02 Uhr
i must be missing something

This is from navlist file:
for($i = 0; $i < $count_shoutbox; $i++) {
$temp = preg_replace($pattern,"\\0 ",$data['shoutbox'][$i]['shoutbox_text']);
$data['shoutbox'][$i]['shoutbox_text'] = cs_secure($temp,0,1,0);
$data['shoutbox'][$i]['shoutbox_name'] = cs_secure($data['shoutbox'][$i]['shoutbox_name'],0,0,0);
$data['shoutbox'][$i]['shoutbox_date'] = cs_date('unix',$data['shoutbox'][$i]['shoutbox_date'],1);

should i remove something or add?

This is from abcode file:
function cs_secure($replace,$features = 0,$smileys = 0, $clip = 1, $html = 0, $phpeval = 0) {

Changing from 0 to 1 did not help so i must be reading you wrong


------------------
~ dont i know, dont i tell

Inaktiv
|
hajo ClanSphere Team


VIP - Poster




Herkunft: Barsbüttel
Beiträge: 9411
# Antwort: 9 - 20.05.2012 um 19:05 Uhr
the $features parameter which is the second one should be turned on this way in the nav php file:

$data['shoutbox'][$i]['shoutbox_text'] = cs_secure($temp,1,1,0);


------------------
ClanSphere - professional clan care starts here

Inaktiv
|
dunderdotten
Thread-Ersteller


Beginner





Beiträge: 9
# Antwort: 10 - 20.05.2012 um 19:35 Uhr
You my friend are the king of the day! Works great!
Thanks a lot for your quick and accurate help ;-)


------------------
~ dont i know, dont i tell

Inaktiv
|
Antworten: 10
Seite [1]


Sie müssen sich registrieren, um zu antworten.