Avatar im Profil mittig setzten

Alles zu Styles, Templates, Icons und Smilies für phpBB 3.0.x, sowie allgemeine Designfragen zur Integration von phpBB in bestehende Websites.
phpBB Styles Demo
Forumsregeln
Bei Style spezifischen Fragen ist der Stylename und die Downloadquelle des Styles erforderlich, besser noch die URL vom betroffenen Forum.
Antworten
Greyhound76
Mitglied
Beiträge: 501
Registriert: 22.02.2008 23:08
Wohnort: Herzogenrath
Kontaktdaten:

Avatar im Profil mittig setzten

Beitrag von Greyhound76 »

Hallo,

ich bin grade auf prosilver umgestiegen und hätte ganz gern in der viewtopic body.html das Profil (Avatar etc.) mittig gesetzt. Ich habe schon den align center probiert, aber irgendwie funzt das nicht. Kann mir da wer weiterhelfen?
JFooty
Ehemaliges Teammitglied
Beiträge: 1868
Registriert: 02.10.2007 11:46

Beitrag von JFooty »

Hallo Greyhound76!

Wenn es dir nur darum geht, das ganze Profil zentriert auszurichten:

Suche in der colours.css:

Code: Alles auswählen

/* Poster profile block */
.postprofile {color:#666;border-left-color:#fff}
und ändere das folgendermaßen:

Code: Alles auswählen

/* Poster profile block */
.postprofile {color:#666;border-left-color:#fff;text-align:center}
(Da ich nicht mehr genau weiß, ob ich an der Stelle bei mir schon etwas verändert habe, suche einfach nach .postprofile in der colours.css)
Greyhound76
Mitglied
Beiträge: 501
Registriert: 22.02.2008 23:08
Wohnort: Herzogenrath
Kontaktdaten:

Beitrag von Greyhound76 »

Super, hat geklappt. Danke.
HF cars and sets
Mitglied
Beiträge: 43
Registriert: 19.02.2008 18:03
Wohnort: Fallingbostel

Beitrag von HF cars and sets »

Falls du ausschließlich das Avatar und den Benutzernamen und -rang mittig haben willst, ändere folgendes in der [PFAD ZUM FORUM]/styles/prosilver/template/viewtopic_body.html

Suche:

Code: Alles auswählen

<!-- IF not postrow.S_IGNORE_POST -->
			<dl class="postprofile" id="profile{postrow.POST_ID}">
			<dt>
				<!-- IF postrow.POSTER_AVATAR -->
					<!-- IF postrow.U_POST_AUTHOR --><a href="{postrow.U_POST_AUTHOR}">{postrow.POSTER_AVATAR}</a><!-- ELSE -->{postrow.POSTER_AVATAR}<!-- ENDIF --><br />
				<!-- ENDIF -->
				<!-- IF not postrow.U_POST_AUTHOR --><strong>{postrow.POST_AUTHOR_FULL}</strong><!-- ELSE -->{postrow.POST_AUTHOR_FULL}<!-- ENDIF -->
			</dt>

			<!-- IF postrow.RANK_TITLE or postrow.RANK_IMG --><dd>{postrow.RANK_TITLE}<!-- IF postrow.RANK_TITLE and postrow.RANK_IMG --><br /><!-- ENDIF -->{postrow.RANK_IMG}</dd><!-- ENDIF -->

		<dd>&nbsp;</dd>
Ersetzt mit:

Code: Alles auswählen

<!-- IF not postrow.S_IGNORE_POST -->
			<dl class="postprofile" id="profile{postrow.POST_ID}">
			<dt><center>
				<!-- IF postrow.POSTER_AVATAR -->
					<!-- IF postrow.U_POST_AUTHOR --><a href="{postrow.U_POST_AUTHOR}">{postrow.POSTER_AVATAR}</a><!-- ELSE -->{postrow.POSTER_AVATAR}<!-- ENDIF --><br />
				<!-- ENDIF -->
				<!-- IF not postrow.U_POST_AUTHOR --><strong>{postrow.POST_AUTHOR_FULL}</strong><!-- ELSE -->{postrow.POST_AUTHOR_FULL}<!-- ENDIF -->
			</dt>

			<!-- IF postrow.RANK_TITLE or postrow.RANK_IMG --><dd>{postrow.RANK_TITLE}<!-- IF postrow.RANK_TITLE and postrow.RANK_IMG --><br /><!-- ENDIF -->{postrow.RANK_IMG}</dd><!-- ENDIF -->
			</center>
		<dd>&nbsp;</dd>
[PFAD ZUM FORUM]/styles/prosilver/template/ucp_pm_viewmessage.html

Suche:

Code: Alles auswählen

<dl class="postprofile" id="profile{MESSAGE_ID}">
		<dt><!-- IF AUTHOR_AVATAR --><a href="{U_MESSAGE_AUTHOR}">{AUTHOR_AVATAR}</a><br /><!-- ENDIF -->{MESSAGE_AUTHOR_FULL}</dt>
		<!-- IF RANK_TITLE --><dd>{RANK_TITLE}</dd><!-- ENDIF -->
		<!-- IF RANK_IMG --><dd>{RANK_IMG}</dd><!-- ENDIF -->
		<dd>&nbsp;</dd>
Ersetze mit:

Code: Alles auswählen

<dl class="postprofile" id="profile{MESSAGE_ID}">
		<center>
		<dt><!-- IF AUTHOR_AVATAR --><a href="{U_MESSAGE_AUTHOR}">{AUTHOR_AVATAR}</a><br /><!-- ENDIF -->{MESSAGE_AUTHOR_FULL}</dt>
		<!-- IF RANK_TITLE --><dd>{RANK_TITLE}</dd><!-- ENDIF -->
		<!-- IF RANK_IMG --><dd>{RANK_IMG}</dd><!-- ENDIF -->
		</center>
		<dd>&nbsp;</dd>
(Beim phpbb 3.0.2)
Antworten

Zurück zu „[3.0.x] Styles, Templates und Grafiken“