RT für schriftformatierung? RT for font formatting?

Get help with installation and running phpwcms here. Please do not post bug reports or feature requests here.
Post Reply
gaudi
Posts: 18
Joined: Sat 27. Aug 2005, 15:31
Location: Ruhrgebiet MH/R

RT für schriftformatierung? RT for font formatting?

Post by gaudi »

hy there,

gibt es ausser [BR] und , über replace tags, eine möglichkeit text aus einem reinen text artikel zu formatieren?
konkret würde ich gerne die schriftfarbe einzelner wörter ändern.

oder muss ich dafür ein eigenes RT schreiben, welches etwa so eingebunden wird:
{FONT:#77849E:Text der in der angegebenen Farbe dargestellt werden soll} ?

wenn ja, wie richte ich ein eigenes replace tag ein??


is there except [ b ] [ BR ] [ i ] and [ u ], over replace tags, a possibility to format text from a pure text article? I would change the color of individual words concretely.
or must i write for it a own replace tag, like this:
{FONT:#77849E:the colored text} ?

if, how can i realise a own replace tag?

freue mich über jeden anstoß

gaudi
..:: GAUDI ::..
Pappnase

Post by Pappnase »

hallo

vielleicht einen contentpart vor und einen danach mit einem font tag erstellen :-) wäre zumindest eine idee ;-)

Code: Select all

<DIV .....>-----contepart vor dem text part
text contentpart
</DIV>-----contepart nach dem text part
gaudi
Posts: 18
Joined: Sat 27. Aug 2005, 15:31
Location: Ruhrgebiet MH/R

RT für schriftfarbe

Post by gaudi »

hy pappnase,

ja, das würde im html modus gehen, da kann ich aber auch so die schriftfarbe ändern.
mir geht es darum dass der anwender viel lieber "einfachen text", also als content part, schreibt als html. wenn ich nun einen "reinen" textabsatz habe, kann ich dort die farbe einzelner wörter nicht ändern.

hast du eine idee wie ich einen kleinen rt dafür schreibe?

thx gaudi
..:: GAUDI ::..
User avatar
flip-flop
Moderator
Posts: 8178
Joined: Sat 21. May 2005, 21:25
Location: HAMM (Germany)
Contact:

Post by flip-flop »

Hallo gaudi,

biete Ihm doch einen abgespeckten FCK an, der nur die Textfarbänderung, Bold, Underline, Kusiv, usw. zulässt. Mit der Erweiterung "Editor vergrößern" kannst Du Dir die Option auf alle Funktionen noch offen halten. (In Picos Edition).

Gruß Knut
>> HowTo | DOCU | FAQ | TEMPLATES/DOCS << ( SITE )
gaudi
Posts: 18
Joined: Sat 27. Aug 2005, 15:31
Location: Ruhrgebiet MH/R

Post by gaudi »

thx to all,

the solution:

look for >> $string = preg_replace($search, $replace, $string); << in file "front.funk.inc.php" (ca. row 1635).

copy:

$search[] = '/\[FONT (.*?)\](.*?)\[\/FONT\]/is';
$replace[] = '<font color=$1>$2</font>';

in front of it.

now you can use [FONT #CC0C00]here comes the colored text[/FONT] //#CC0C00 is your wished color
tested in article (html,plain text) and templates.

have fun

gaudi
..:: GAUDI ::..
Post Reply