Using BBCode in Subject or Title

Allgemeiner Support zum phpBB 2 Board und phpBB 2 Modifikationen
Forumsregeln
Auch wenn hier der Support für phpBB 2 weiterhin aufrecht erhalten bleibt, weisen wir darauf hin, dass das phpBB 2 nicht mehr offiziell unterstützt und weiterentwickelt wird!
Antworten
Benutzeravatar
neonplayer
Beiträge: 10
Registriert: Mo 23.Apr, 2007 08:27

Using BBCode in Subject or Title

Beitrag von neonplayer »

Hello all,

I want to know about how to use bbcode in subject (Title) when creation topics or when replying a post. I saw the OXPUS mod about BBCode on Vote Options 1.0.1, but i never see about the using bbcode on subject(title). Can anyone point me out how to use bbcode on there ? Because, i need to use font face bbcode on title as well. That's why. If you can, please help me with that.

with regards,
Benutzeravatar
oxpus
Administrator
Beiträge: 28735
Registriert: Mo 27.Jan, 2003 22:13
Wohnort: Bad Wildungen
Kontaktdaten:

Beitrag von oxpus »

I don't know about such a mod and it will be hard to code one, because on many points and pages the topic title will be displayed and each page must be modded.
And each new page which war inserted by several MODs to display a topic title, too...

And at least regard the forum view: Normally there are more topic titles per forum page as posts on a topic page.
So for each topic the bbcodes will format the titles and decreases the forum view performance.
Not a really good idea ;)
Karsten Ude
-={ Das Mädchen für alles }=-
Kein Support per Messenger, Email oder PN! Unaufgeforderte Nachrichten werden ignoriert!
No support per Messenger, Email or PM. Each unasked message will be ignored!
Benutzeravatar
neonplayer
Beiträge: 10
Registriert: Mo 23.Apr, 2007 08:27

Beitrag von neonplayer »

Actually, I want to use only the custom bbcode like .. changing font in title :( . Any idea? Still canno't though ?
Benutzeravatar
oxpus
Administrator
Beiträge: 28735
Registriert: Mo 27.Jan, 2003 22:13
Wohnort: Bad Wildungen
Kontaktdaten:

Beitrag von oxpus »

Where you wants to change the font style? Only in the forum view?
You can take look in your css-file (or css-part in the overall_header.tpl) and modify the part for ".topictitle".
Simply add the font definitions like

Code: Alles auswählen

font-family: Courier, 'Courier New', sans-serif;
to change the font style for topic titles in the complete template.
But regard: The user must install this font on his local computer, too, to see the changes ;)
Karsten Ude
-={ Das Mädchen für alles }=-
Kein Support per Messenger, Email oder PN! Unaufgeforderte Nachrichten werden ignoriert!
No support per Messenger, Email or PM. Each unasked message will be ignored!
Benutzeravatar
neonplayer
Beiträge: 10
Registriert: Mo 23.Apr, 2007 08:27

Beitrag von neonplayer »

Yeap,

The one I want to do is like that,

I got one custom bbcode called [m][/m] , that bbcode changed to font-face called WinInnwa, what is our language font. (because we got not unicode).

So, I want to get that font in my title too. If user want to get topic with english, write like default and , if user want to appear with our language, they can write with that [m][/m], bbcode tag. That's why, I want to use bbcode in subject title.

Anyway to do ? Coz , I only want that custom bbcode to appear in title. ¢¦
Benutzeravatar
oxpus
Administrator
Beiträge: 28735
Registriert: Mo 27.Jan, 2003 22:13
Wohnort: Bad Wildungen
Kontaktdaten:

Beitrag von oxpus »

Again:
Use the css-class "topic_title" in the .css-file. Easier to change and use instead bbcodes ;)
Karsten Ude
-={ Das Mädchen für alles }=-
Kein Support per Messenger, Email oder PN! Unaufgeforderte Nachrichten werden ignoriert!
No support per Messenger, Email or PM. Each unasked message will be ignored!
Benutzeravatar
neonplayer
Beiträge: 10
Registriert: Mo 23.Apr, 2007 08:27

Beitrag von neonplayer »

The one,

I am not clear is, if i want to use two font , i mean default verdana and other (my language), how can i use ?

like , in title , how can i write with my other font. Not default one. What code should i have to use?

Means like, if i have with bbcode , i want to appear my font , i just need to use [m][/m], If i want to write with english one, i just use without bbcode.

That's why, I am confused about how can i use when i changed in .font title in css class. Like , what code should i have to tag between them.

Please give me clear instructions, thanks you so much.
Benutzeravatar
oxpus
Administrator
Beiträge: 28735
Registriert: Mo 27.Jan, 2003 22:13
Wohnort: Bad Wildungen
Kontaktdaten:

Beitrag von oxpus »

If you define for example in the css-class these values:

Code: Alles auswählen

.topictitle { font-family: Courier, 'Courier New', sans-serif; font-weight: bold; font-size: 11px; color : #000000; }
(here based on subSilver) the browser will use these fonts (from left to right):
If the browser can't find the font "Courier", he will look for the next one, here "Courier New" and so on...
This method allowed do define font styles on a simple way the topic titles shall be formatted with and enables one ore more alternatives, if the user will not have a defined font.
And this method avoids font replaces by the browser which can destroy the page layout!

With bbcodes you can only define one style for the topic titles and the browser may replace the much faster as with defined alternatives from a css-class! ;)
Karsten Ude
-={ Das Mädchen für alles }=-
Kein Support per Messenger, Email oder PN! Unaufgeforderte Nachrichten werden ignoriert!
No support per Messenger, Email or PM. Each unasked message will be ignored!
Antworten