Zum Inhalt springen

mm_forum: Button-Grafiken transparent

Erstellt am 5. September 2008 · 3 Antworten · letzte Antwort am 7. Oktober 2008

Tags: Bilder, Frage

einmalzwei ·

Hallo!

Ich hab ein kleines Problem mit dem mm_forum. Und zwar möchte ich gernen den Hintergrund bei den Antworten / Zitieren / usw. Buttons transparent machen.

Ich habs schon mit

plugin.tx_mmforum_pi1.buttons.normal.file.transparentBackground = 1
plugin.tx_mmforum_pi1.buttons_text.normal.file.transparentBackground = 1

probiert, zeigt aber keine Wirkung (Caches usw. alles geleert).

Was mach ich falsch?

yoggi74 ·

... sicher das du "normal" und nicht die "small" Buttons nutzt?

plugin.tx_mmforum_pi1.buttons.small.file.transparentBackground = 1

funktioniert bei mir ausgezeichnet.

Sebastian Schmal ·

sorry das ich nun hier einfach reinfrage:
wie kann ich denn die Buttons umstellen?

EDIT:
habe nun das hier gefunden:

Icon-Modus
Definiert den Icon-Stil von Foren und Themen.

Auswahl: Modern/Klassisch

Doch wenn ich Modern auswähle, bekomme ich keine Icons angezeigt! nur blaue Kästchen mehr nicht!

einmalzwei ·
Basti4k schrieb

sorry das ich nun hier einfach reinfrage:
wie kann ich denn die Buttons umstellen?

EDIT:
habe nun das hier gefunden:

Icon-Modus
Definiert den Icon-Stil von Foren und Themen.

Auswahl: Modern/Klassisch

Doch wenn ich Modern auswähle, bekomme ich keine Icons angezeigt! nur blaue Kästchen mehr nicht!

Du musst die Icons in TypoScript definieren.

Ich hab ein neues Problem: Ich lasse meine Buttons jetzt dynamisch erzeugen. Funktioniert eigentlich prima bis auf die Icons: Die Trasparenz geht komplett durch den button_middle.png Hintergrund hindurch. Was mach ich falsch?

plugin.tx_mmforum_pi1.buttons_image {
normal = IMAGE
normal {
	file = GIFBUILDER
	file {
			XY = [10.w]+[30.w]+[50.w]+[26.w]+2,25
			transparentBackground = 1
			
			10 = IMAGE
			10 {
					file = {$plugin.tx_mmforum.style_path}/img/default/buttons/button_left.png
					#file.width = 12
					#file.height = 25
					offset = 0,0
			}
			
			25 = IMAGE
			25 {
					file = {$plugin.tx_mmforum.style_path}/img/default/buttons/button_middle.png
					file.width = 400
					file.height = 25
					offset = [10.w],0
			}
			
			26 = IMAGE
			26 {
					file.import = {$plugin.tx_mmforum.style_path}/img/default/buttons/icons/
					file.import.field = button_iconname
					file.maxH = 21
					offset = [10.w],0
					if.isTrue.field = button_iconname
			}
			
			30 = TEXT
			30 {
					text.field = button_label
					offset = [10.w]+[26.w]+4,18
					fontSize = 10
					fontColor = #f5f5f5;
			}
			
			50 = IMAGE
			50 {
					file = {$plugin.tx_mmforum.style_path}/img/default/buttons/button_right.png
					#file.width = 12
					#file.height = 25
					offset = [10.w]+[26.w]+[30.w]+2,0
					#if.isFalse.field = button_iconname
			}
	}
	altText.field = button_label
	stdWrap.typolink {
			extTarget = 
			parameter.field = button_link
			ATagParams.field = button_atagparams
	}
}

small < .normal
small.file {
	XY = [10.w]+[30.w]+[50.w]+[26.w]+2,25
	10.file.height = 18
	50.file.height = 18
	25.file.height = 18
	#26.file.maxH = 18
	30 {
			fontSize = 8
			offset = [10.w]+[26.w]+2,17
	}
	
	25.offset = [10.w],3
	10.offset = 0,3
	50.offset = [10.w]+[26.w]+[30.w]+2,3
}

}

Das sieht dann z.B. so aus: Bild: abload.de/…/c4414e9c68vfz.png