Seite 1 von 1

Java Script einfügen... aber wie?

Verfasst: 01.10.2004 16:50
von xylem
Servus...

Ich hab ne Frage...
Ich benutze den Portal Mod und möchte das rechts oder links ein weiteres kleines Fenster ist im dem folgendes Javascript ausgeführt wird...

Code: Alles auswählen

<SCRIPT LANGUAGE="JavaScript"
SRC="http://www.goatrance.de/goabase/partyserver.php?PSID=awa03cyd9Y"
TYPE="text/javascript">
</SCRIPT>
Anstelle eines neuen Fensters könnte es auch in das Umfrage Fenster da ich das eh nicht benutze!

Könnte sich jemand die Arbeit machen mir zu erklären wie ich das anstelle!? Bittööööö ;)
Ich bin allerdings ein Php Vollnoob... also schon verständlich! :D

Verfasst: 01.10.2004 17:17
von Smith
Hallo,

öffne die portal_body.tpl
und finde:

Code: Alles auswählen

<span class="gensmall">
				<form method="post" action="{S_POLL_ACTION}">
				<br><center><b>{S_POLL_QUESTION}</b></center><br />
<!-- END switch_pollbox_active -->
				<!-- BEGIN poll_option_row -->
				&nbsp;&nbsp;&nbsp;
				<input align="middle" type="radio" name="vote_id" value="{poll_option_row.OPTION_ID}">{poll_option_row.OPTION_TEXT}&nbsp;[{poll_option_row.VOTE_RESULT}]<br />
				<!-- END poll_option_row -->
<!-- BEGIN switch_pollbox_active_in -->
				<br /><center><input type="submit" class="mainoption" name="submit" value="{L_VOTE_BUTTON}" {DISABLED}></center>
<!-- END switch_pollbox_active_in -->
<!-- BEGIN switch_pollbox_active -->
				<input type="hidden" name="topic_id" value="{S_TOPIC_ID}">
				<input type="hidden" name="mode" value="vote">
				<br><span class="gensmall"><b><a href="viewtopic.php?t={S_TOPIC_ID}&postdays=0&postorder=asc&vote=viewresult" class="gensmall">{L_RESULT}</a></b></span>
				</form>
			</span>
...und ersetze mit:

Code: Alles auswählen

<SCRIPT LANGUAGE="JavaScript" 
SRC="http://www.goatrance.de/goabase/partyserver.php?PSID=awa03cyd9Y" 
TYPE="text/javascript"> 
</SCRIPT
Smith

Verfasst: 01.10.2004 17:55
von xylem
Die Tpl sah zwar etwas anders aus aber ich habs geschafft!

Hat prima gefunzt... BIG THX!!!