Demo

Probiere ClanSphere aus und teste daran herum. Demo


Antworten: 7
Seite [1]
1nsane


Beginner




Beiträge: 3
# Thema - 14.01.2014 um 18:15 Uhr
hi, how is possible to do that? i need to embed a video in a description of a download, but html tag is disabled, i tryied using CKeditor but i dont know how to activate it. Please help me with that, is very important for our site, what i need to change for make it possible? thanks
Inaktiv
hajo ClanSphere Team


VIP - Poster




Herkunft: Barsbüttel
Beiträge: 9411
# Antwort: 1 - 14.01.2014 um 18:31 Uhr
1. for input the textarea type must be rte_html instead of rte_abcode

code examples for getting that done can be copied from php and tpl files that already use the rte_html type, e.g. events. html textareas are using an editor bridge so that wyswiyg stuff like ckeditor or tinymce can be used.

2. the output must be set to support html, which can be done as a parameter supplied to the cs_secure function


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

Inaktiv
|
1nsane
Thread-Ersteller


Beginner




Beiträge: 3
# Antwort: 2 - 14.01.2014 um 19:43 Uhr
thank you for reply. I think the input is resolved since my TinyMCE is working and activated right now, problem is the output in the download description shows as a plain text and not as a html text, i read your 2nd reply "output must be set to support html" but i dont know how to do it.. thanks anyway


Inaktiv
|
hajo ClanSphere Team


VIP - Poster




Herkunft: Barsbüttel
Beiträge: 9411
# Antwort: 3 - 14.01.2014 um 19:49 Uhr
the cs_secure function is applied on the output of that text field, that function has several parameters where one of them is for allowing html to be used.


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

Inaktiv
|
Tom08 ClanSphere Team

Supporter
Supporter



Herkunft: Daheim
Beiträge: 2923
# Antwort: 4 - 14.01.2014 um 19:51 Uhr
Die entsprechende Funktion aus der API (http://csphere.eu/api/)

 
1.
1. / 2. / ... 
 void cs_secure $replace, [ $features 0], [ $smileys 0], [ $clip 1], [ $html 0], [ $phpeval 0]) 


Grüße


------------------
Bei Problemen mit Code von mir bitte eine Private Nachricht an mich


Inaktiv
|
1nsane
Thread-Ersteller


Beginner




Beiträge: 3
# Antwort: 5 - 15.01.2014 um 00:44 Uhr
still needing help.. what files i need to edit or where i set this parametters?

You can see my problem right here:LINK


Zuletzt editiert von 1nsane am 15.01.2014 um 01:35 Uhr (2x Editiert)
Inaktiv
|
Tom08 ClanSphere Team

Supporter
Supporter



Herkunft: Daheim
Beiträge: 2923
# Antwort: 6 - 15.01.2014 um 10:34 Uhr
/mods/files/view.php

 
1.
1. / 2. / ... 
 $data['file']['description'] = cs_secure($cs_file['files_description'],1,1);

change it to
 
1.
1. / 2. / ... 
 $data['file']['description'] = cs_secure($cs_file['files_description'],1,1,1,1);


------------------
Bei Problemen mit Code von mir bitte eine Private Nachricht an mich


Inaktiv
|
1nsane
Thread-Ersteller


Beginner




Beiträge: 3
# Antwort: 7 - 15.01.2014 um 20:46 Uhr
thank you a lot and sorry!


Inaktiv
|
Antworten: 7
Seite [1]


Sie müssen sich registrieren, um zu antworten.