Aussehen der Umfrageergebnisse im Glass Yellow-Style ändern

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.
JFooty
Ehemaliges Teammitglied
Beiträge: 1868
Registriert: 02.10.2007 11:46

Re: Aussehen der Umfrageergebnisse im Glass Yellow-Style ändern

Beitrag von JFooty »

Ich habe es nun doch einmal mit dem Original-Code (also ohne deine Anpassungen) getestet:

Code: Alles auswählen

<!-- IF S_DISPLAY_RESULTS --><dd class="resultbar"><div style="width:75%;float:left"><div class="<!-- IF poll_option.POLL_OPTION_PCT < 20 -->pollbar1<!-- ELSEIF poll_option.POLL_OPTION_PCT < 40 -->pollbar2<!-- ELSEIF poll_option.POLL_OPTION_PCT < 60 -->pollbar3<!-- ELSEIF poll_option.POLL_OPTION_PCT < 80 -->pollbar4<!-- ELSE -->pollbar5<!-- ENDIF -->" style="width:{poll_option.POLL_OPTION_PERCENT};height:10px"></div></div><div style="width:8%;float:right">[{poll_option.POLL_OPTION_RESULT}]</div><div style="width:14%;float:right"><!-- IF poll_option.POLL_OPTION_RESULT == 0 -->{L_NO_VOTES}<!-- ELSE -->{poll_option.POLL_OPTION_PERCENT}<!-- ENDIF --></div></dd>
führt zum gewünschten Ergebnis.
Die Style-Angaben habe ich mal mit ins Template geschrieben.
Ist zwar mit der heißen Nadel gestrickt und vielleicht nicht ganz optimal, führt aber zum Erfolg. :wink:
Den Link zu meinem Testforum schicke ich dir ausnahmsweise mal per PN.
Da kannst du dir das mal "live" ansehen, ob das so für dich passt.
Kein Support per PN!
Benutzeravatar
LuLa
Mitglied
Beiträge: 290
Registriert: 14.02.2004 12:26

Re: Aussehen der Umfrageergebnisse im Glass Yellow-Style ändern

Beitrag von LuLa »

Hallo,

endlich habe ich es hinbekommen, mich dabei an einem anderen Style orientiert, wo es implementiert war. Wen es interessiert:

forms.css:

Code: Alles auswählen

/**
* Poll Content
*/
/* reset the font size of the poll pox */
fieldset.polls dl, fieldset.polls .button1 {
	font-size: 1em;
}

fieldset.polls dl fieldset.polls .button1 {
	font-size: 1em;
	margin-top: 5px;
	border-top: 1px solid;
	padding: 5px 0 0 0;
}

fieldset.polls dl.voted {
	font-weight: bold;
}

fieldset.polls dt {
	text-align: left;
	float: left;
	display: block;
	width: 30%;
	border-right: none;
	padding: 0;
	margin: 0;
}

fieldset.polls dd {
	float: left;
	width: 10%;
	border-left: none;
	padding: 0 5px;
	margin-left: 0;
}

fieldset.polls dd.resultbar {
	width: 50%;
	margin: 0;
}

fieldset.polls dd input {
	margin: 2px 0;
}

fieldset.polls dd div {
	text-align: right;
	font-weight: bold;
	padding: 0 0px;
	overflow: visible;
	min-width: 2%;
}
viewtopic_body.html:

Code: Alles auswählen

			<!-- BEGIN poll_option -->
				<dl class="<!-- IF poll_option.POLL_OPTION_VOTED -->voted<!-- ENDIF -->"<!-- IF poll_option.POLL_OPTION_VOTED --> title="{L_POLL_VOTED_OPTION}"<!-- ENDIF -->>
					<dt><!-- IF S_CAN_VOTE --><label for="vote_{poll_option.POLL_OPTION_ID}">{poll_option.POLL_OPTION_CAPTION}</label><!-- ELSE -->{poll_option.POLL_OPTION_CAPTION}<!-- ENDIF --></dt>
					<!-- IF S_CAN_VOTE --><dd><!-- IF S_IS_MULTI_CHOICE --><input type="checkbox" name="vote_id[]" id="vote_{poll_option.POLL_OPTION_ID}" value="{poll_option.POLL_OPTION_ID}"<!-- IF poll_option.POLL_OPTION_VOTED --> checked="checked"<!-- ENDIF --> /><!-- ELSE --><input type="radio" name="vote_id[]" id="vote_{poll_option.POLL_OPTION_ID}" value="{poll_option.POLL_OPTION_ID}"<!-- IF poll_option.POLL_OPTION_VOTED --> checked="checked"<!-- ENDIF --> /><!-- ENDIF --></dd><!-- ENDIF -->
					<!-- IF S_DISPLAY_RESULTS --><dd class="resultbar"><div class="{poll_option.POLL_OPTION_COLOR}" style="width:{poll_option.POLL_OPTION_PERCENT};">&nbsp;</div></dd>
					<dd><!-- IF poll_option.POLL_OPTION_RESULT == 0 -->{L_NO_VOTES}<!-- ELSE -->{poll_option.POLL_OPTION_PERCENT} [{poll_option.POLL_OPTION_RESULT}]<!-- ENDIF --></dd><!-- ENDIF -->
				</dl>
			<!-- END poll_option -->
Antworten

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