Demo

Probiere ClanSphere aus und teste daran herum. Demo


Antworten: 0
Seite [1]
tobimo


King for a day




Beiträge: 253
# Thema - 04.06.2010 um 20:39 Uhr
Ich habe meine navlist_vote.tpl verändert, nun habe ich beim Abschicken des Votes folgenden Fehler:

Fatal error: Only variables can be passed by reference in /customers/xxx/nxxx/httpd.www/mods/votes/navlist.php on line 88

Mit der originalen navlist_vote.tpl funktioniert es !

Ich weiß nur nicht, was an dem Code falsch sein soll?

 
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
16.
17.
18.
19.
20.
21.
22.
23.
24.
25.
26.
27.
28.
29.
30.
31.
32.
33.
34.
1. / 2. / ... 
 
<div style="width: 210px;">
    <
img src="../../../templates/nob/Bilder/votes_titel.png" alt="Votes Titel" border="0" usemap="#Map" style="margin-bottom: 4px;"/>
    <
map name="Map" id="Map">
        <
area shape="rect" coords="141,10,199,28" href="index.php?mod=votes" alt="Button All Votes" />
    </
map>
    <
form method="post" id="navlist" action="/index/action/list">
        <
div style="width: 210px;">
            <
div style="float: left; background-image: url(../../../templates/nob/Bilder/votes_icon.png); width: 43px; background-color: #ff6000; min-height: 50px;"> </div>
            <
div style="float: right; width: 167px;">
                <
img src="../../../templates/nob/Bilder/shoutbox_texttop.png" alt="Shoutbox Text Foot" />
                <
div style="background-image: url(../../../templates/nob/Bilder/shoutbox_textbg.png); background-repeat: repeat-y; padding-left: 10px; padding-right: 15px; font-weight: bold; text-align: center;">
                   {
votes:question}
                </
div>
                <
img src="../../../templates/nob/Bilder/shoutbox_textbottom.png" alt="Shoutbox Text bottom" />
                <
br /><img src="../../../templates/nob/Bilder/shoutbox_texttop.png" alt="Shoutbox Text Foot" style="margin-top: 2px;"/>
                <
div style="background-image: url(../../../templates/nob/Bilder/shoutbox_textbg.png); background-repeat: repeat-y; padding-left: 10px; padding-right: 15px;">
                    {
loop:answers}
                        <
input name="voted_answer{if:several_name}[{answers:value}]{stop:several_name}" value="{answers:value}"  type="{votes:type}" />{answers:answer}<br />
                    {
stop:answers}
                    <
input name="votes_id" value="{votes:id}"  type="hidden" />
                    <
input name="votes_several" value="1"  type="hidden" />
                    {if:
several}
                    <
input name="votes_several" value="1"  type="hidden" />
                    {
stop:several}
                </
div>
                <
img src="../../../templates/nob/Bilder/shoutbox_textbottom.png" alt="Shoutbox Text bottom" />
                <
input type="submit" style="background-image: url(../../../templates/nob/Bilder/votes_btn.png); width: 78px; height: 31px;" name="submit_votes" value="" />
            </
div>
        </
div>
     </
form>
</
div>




PS: die votes/navlist.php habe ich nicht verändert.



Lösung nun selber gefunden:

 
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
16.
17.
18.
19.
20.
21.
22.
23.
24.
25.
26.
27.
28.
29.
30.
31.
32.
33.
34.
35.
1. / 2. / ... 
 
<div style="width: 210px;">
    <
img src="../../../templates/nob/Bilder/votes_titel.png" alt="Votes Titel" border="0" usemap="#Map" style="margin-bottom: 4px;"/>
    <
map name="Map" id="Map">
        <
area shape="rect" coords="141,10,199,28" href="index.php?mod=votes" alt="Button All Votes" />
    </
map>
    <
form method="post" id="navlist" action="/index/action/list">
        <
div style="width: 210px;">
            <
div style="float: left; background-image: url(../../../templates/nob/Bilder/votes_icon.png); width: 43px; background-color: #ff6000; min-height: 50px;"> </div>
            <
div style="float: right; width: 167px;">
                <
img src="../../../templates/nob/Bilder/shoutbox_texttop.png" alt="Shoutbox Text Foot" />
                <
div style="background-image: url(../../../templates/nob/Bilder/shoutbox_textbg.png); background-repeat: repeat-y; padding-left: 10px; padding-right: 15px; font-weight: bold; text-align: center;">
                   {
votes:question}
                </
div>
                <
img src="../../../templates/nob/Bilder/shoutbox_textbottom.png" alt="Shoutbox Text bottom" />
                <
br /><img src="../../../templates/nob/Bilder/shoutbox_texttop.png" alt="Shoutbox Text Foot" style="margin-top: 2px;"/>
                <
div style="background-image: url(../../../templates/nob/Bilder/shoutbox_textbg.png); background-repeat: repeat-y; padding-left: 10px; padding-right: 15px;">
                    {
loop:answers}
                        <
input name="voted_answer{if:several_name}[{answers:value}]{stop:several_name}" value="{answers:value}"  type="{votes:type}" />{answers:answer}<br />
                    {
stop:answers}
                    <
input name="votes_id" value="{votes:id}"  type="hidden" />
{if:
several}
<
input name="votes_several" value="1"  type="hidden" />
{
stop:several}
                </
div>
                <
img src="../../../templates/nob/Bilder/shoutbox_textbottom.png" alt="Shoutbox Text bottom" />
             <
input type="submit" style="background-image: url(../../../templates/nob/Bilder/votes_btn.png);  width: 78px; height: 31px;" name="submit_votes" value="" />
            </
div>
        </
div>
     </
form>
</
div>





mit dem Code klappt es!

Der Fehler war total simpel:
<input name="votes_several" value="1" type="hidden" />
{if:several}
<input name="votes_several" value="1" type="hidden" />
{stop:several}

ich habe ein input zweimal eingefügt! Sehr dämlicher copy-paste Fehler.

Sorry für den Thread, kann auch gerne gelöscht werden



.. Ich vermute daran hat es gelegen



Zuletzt editiert von tobimo am 04.06.2010 um 21:16 Uhr (6x Editiert)
Inaktiv
Antworten: 0
Seite [1]


Sie müssen sich registrieren, um zu antworten.