PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : Fehler bei " in Threadname


RollingStones
26.03.2007, 17:49
Hoi,

folgendes Problem: Sobald jemand bei mir im Board ein " (Apostroph) in sein Threadname schreibt, kommt mal validieren der Seite auf xhtml ein Fehler.

# Error Line 916, column 155: "Summer" is not a member of a group specified for any attribute .

# Error Line 916, column 164: "Breaking" is not a member of a group specified for any attribute .

# Error Line 916, column 168: an attribute value literal can occur in an attribute specification list only after a VI delimiter .

Have you forgotten the "equal" sign marking the separation between the attribute and its declared value? Typical syntax is attribute="value".

Wenn ich das hier mache und dann validiere tritt kein fehler auf:
http://www.vbulletin-germany.com/forum/showthread.php?goto=newpost&t=29438

Validierungsergebnis:
http://validator.w3.org/check?uri=http%3A%2F%2Fwww.vbulletin-germany.com%2Fforum%2Findex.php&charset=%28detect+automatically%29&doctype=Inline&ss=1&verbose=1

-------

Ich nehme mal an, dass dadurch auch die anderen xhtml-Fehler bei mir kommen....von oben nach unten zieht sich die fehlerquelle ja...

Ich hoffe es weiß jemand, woran das liegen könnte.
Vielen Dank schonmal.

Gruß
RS

RollingStones
27.03.2007, 15:17
Hm...weiß da niemand was?
So groß kann der Fehler doch nich tsein wenn es hier wunderbar funktioniert.

pogo
27.03.2007, 15:52
Mit dem Originalstyle funktioniert es auch bei dir fehlerfrei, ja?

Also wird es an einer Templateänderung liegen.

Ohne dein Forum zu sehen, können wir nichts machen.

RollingStones
27.03.2007, 16:29
Jo, das nehme ich auch mal an.^^
Ok, welche(s) Template(s) müsst ihr denn sehen um den Fehler zu finden?

Gruß
RS

pogo
27.03.2007, 16:37
Alle auf der Seite mit dem Fehler. :)

RollingStones
27.03.2007, 16:50
OK; hier ist also mein Validierungsergebnis mit den drei Fehlern auf Line 916:

http://validator.w3.org/check?uri=http%3A%2F%2Frockmusikforum.com%2Findex.php&charset=%28detect+automatically%29&doctype=Inline&ss=1&verbose=1

Und hier das FORUMHOME-Template:

$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
<!-- no cache headers -->
<meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="Expires" content="-1" />
<meta http-equiv="Cache-Control" content="no-cache" />
<!-- end no cache headers -->
$headinclude
<title><phrase 1="$vboptions[bbtitle]">$vbphrase[x_powered_by_vbulletin]</phrase></title>
</head>
<body>
$header
$navbar


<!-- guest welcome message -->
<if condition="$show['guest']">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">

<tr>
<td class="tcat" colspan="<if condition="$vboptions['showmoderatorcolumn']">6<else />5</if>"><phrase 1="$vboptions[bbtitle]">$vbphrase[welcome_to_the_x]</phrase></td>
</tr>
<tr>
<td class="alt1" colspan="<if condition="$vboptions['showmoderatorcolumn']">6<else />5</if>">
<phrase 1="faq.php$session[sessionurl_q]" 2="register.php$session[sessionurl_q]">$vbphrase[first_visit_message]</phrase>
</td>

</tr>
</table>
<div class="dcc"><div class="dcg"></div><div class="dcd"></div></div>
<br />
</if>
<!-- / guest welcome message -->

$forumbits

<!-- what's going on box -->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<thead>
<tr>
<td class="tcat" colspan="2">$vbphrase[whats_going_on]</td>
</tr>
</thead>
<if condition="$show['loggedinusers']">
<!-- logged-in users -->
<tbody>
<tr>
<td class="thead" colspan="2">
<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumhome_activeusers')"><img id="collapseimg_forumhome_activeusers" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_activeusers].gif" alt="" border="0" /></a>
<a href="online.php$session[sessionurl_q]" rel="nofollow">$vbphrase[currently_active_users]</a>: $totalonline (<phrase 1="$numberregistered" 2="$numberguest">$vbphrase[x_members_and_y_guests]</phrase>)
</td>
</tr>
</tbody>
<tbody id="collapseobj_forumhome_activeusers" style="$vbcollapse[collapseobj_forumhome_activeusers]">
<tr>
<td class="alt2"><a href="online.php$session[sessionurl_q]" rel="nofollow"><img src="$stylevar[imgdir_misc]/whos_online.gif" alt="$vbphrase[view_whos_online]" border="0" /></a></td>
<td class="alt1" width="100%">
<div class="smallfont">
<div style="white-space: nowrap"><phrase 1="$recordusers" 2="$recorddate" 3="$recordtime">$vbphrase[most_users_ever_online_was_x_y_at_z]</phrase></div>
<div>$activeusers</div>
</div>
</td>
</tr>
</tbody>
<!-- end logged-in users -->
</if>
<tbody>
<tr>
<td class="thead" colspan="2">
<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumhome_stats')"><img id="collapseimg_forumhome_stats" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_stats].gif" alt="" border="0" /></a>
<phrase 1="$vboptions[bbtitle]">$vbphrase[x_statistics]</phrase>
</td>
</tr>
</tbody>
<tbody id="collapseobj_forumhome_stats" style="$vbcollapse[collapseobj_forumhome_stats]">
<tr>
<td class="alt2"><img src="$stylevar[imgdir_misc]/stats.gif" alt="<phrase 1="$vboptions[bbtitle]">$vbphrase[x_statistics]</phrase>" border="0" /></td>
<td class="alt1" width="100%">
<div class="smallfont">
<div>
$vbphrase[threads]: $totalthreads,
$vbphrase[posts]: $totalposts,
$vbphrase[members]: $numbermembers<if condition="$show['activemembers']">,
<span title="<phrase 1="$vboptions[activememberdays]">$vbphrase[within_the_last_x_days]</phrase>">$vbphrase[active_members]: $activemembers,</span>
</if>
Durchschnittlich $durchschnitt neue Beiträge pro Tag.
</div>
<div><phrase 1="member.php?$session[sessionurl]u=$newuserid" 2="$newusername">$vbphrase[welcome_to_our_newest_member_x]</phrase></div>
</div>
</td>
</tr>
</tbody>
<if condition="$show['birthdays']">
<!-- today's birthdays -->
<tbody>
<tr>
<td class="thead" colspan="2">
<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumhome_birthdays')"><img id="collapseimg_forumhome_birthdays" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_birthdays].gif" alt="" border="0" /></a>
$vbphrase[todays_birthdays]
</td>
</tr>
</tbody>
<tbody id="collapseobj_forumhome_birthdays" style="$vbcollapse[collapseobj_forumhome_birthdays]">
<tr>
<td class="alt2"><a href="calendar.php?$session[sessionurl]do=getday&amp;day=$today&amp;sb=1"><img src="$stylevar[imgdir_misc]/birthday.gif" alt="$vbphrase[view_birthdays]" border="0" /></a></td>
<td class="alt1" width="100%"><div class="smallfont">$birthdays</div></td>
</tr>
</tbody>
<!-- end today's birthdays -->
</if>
<if condition="$show['upcomingevents']">
<tbody>
<tr>
<td class="thead" colspan="2">
<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumhome_events')"><img id="collapseimg_forumhome_events" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_events].gif" alt="" border="0" /></a>
<if condition="$show['todaysevents']">$vbphrase[todays_events]<else /><phrase 1="$vboptions[showevents]">$vbphrase[upcoming_events_for_the_next_x_days]</phrase></if>
</td>
</tr>
</tbody>
<tbody id="collapseobj_forumhome_events" style="$vbcollapse[collapseobj_forumhome_events]">
<tr>
<td class="alt2"><a href="calendar.php$session[sessionurl_q]"><img src="$stylevar[imgdir_misc]/calendar.gif" alt="$vbphrase[calendar]" border="0" /></a></td>
<td class="alt1" width="100%"><div class="smallfont">$upcomingevents</div></td>
</tr>
</tbody>
</if>
<tbody>
<tr>
<td class="tcat" align="center" colspan="<if condition="$vboptions['showmoderatorcolumn']">6<else />5</if>"><div class="smallfont"><strong>
<a href="forumdisplay.php?$session[sessionurl]do=markread" rel="nofollow">$vbphrase[mark_forums_read]</a>&nbsp; &nbsp;
$vbphrase[all_times_are_gmt_x_time_now_is_y]
<if condition="$vboptions['forumleaders']">&nbsp; &nbsp;
<a href="showgroups.php?$session[sessionurl_q]" rel="nofollow">$vbphrase[view_forum_leaders]</a></if></strong></div></td>
</tr>
</tbody>
</table>
<div class="dcc"><div class="dcg"></div><div class="dcd"></div></div>
<!-- end what's going on box -->

<!-- icons and login code -->

<!-- / icons and login code -->

$footer
</body>
</html>

Ich weiß jetzt nicht welches Template ich jetzt noch kopieren soll, weil ich nicht weiß wie das Template heißt in dem der Threadname so mit Tooltip auf der FORUMHOME angezeigt wird?!

RS

pogo
27.03.2007, 18:49
Administrator-Kontrollzentrum -> vBulletin-Einstellungen -> Allgemeines -> Templatenamen als Kommentar in HTML-Quelltext schreiben -> Ja

Im Quelltext deiner Seite siehst du dann, welche Templates an welcher Stelle verwendet werden.


Das Problem ist, dass im Titel des Themas " nicht in &quot; umgewandelt wird.

Die Ausgabe geschieht durch das Template forumhome_lastpostby in der Variablen $lastpostinfo[lastthread].

Warum das nun bei dir passiert, ist so nicht zu beantworten.
Teste es bitte mal mit deaktivierten Plug-ins und dem Originalstyle.

RollingStones
27.03.2007, 19:23
OK; habe das template gefunden:

<table cellpadding="0" cellspacing="0" border="0" width="250"><tr align="$stylevar[right]">
<td>
<if condition="$show['lastpostinfo']">
<div class="smallfont" align="$stylevar[left]">
<div style="clear:both">
<if condition="$show['icon']"><img class="inlineimg" src="$icon[iconpath]" alt="$icon[title]" border="0" /></if>
<a href="showthread.php?$session[sessionurl]goto=newpost&amp;t=$lastpostinfo[lastthreadid]" title="<phrase 1="$lastpostinfo[lastthread]">$vbphrase[go_first_unread_in_thread_x]</phrase>"><strong>$lastpostinfo[trimthread]</strong></a>
</div>
<div<if condition="is_browser('ie', 6)"> style="float:$stylevar[left]"</if>>
<phrase 1="member.php?$session[sessionurl]find=lastposter&amp;f=$lastpostinfo[forumid]" 2="$lastpostinfo[lastposter]">$vbphrase[by_x]</phrase>
</div>
<div align="$stylevar[right]">
$lastpostinfo[lastpostdate] <if condition="!$show['detailedtime']"><span class="time">$lastpostinfo[lastposttime]</span></if>
<a href="showthread.php?$session[sessionurl]p=$lastpostinfo[lastpostid]#post$lastpostinfo[lastpostid]"><img class="inlineimg" src="$stylevar[imgdir_button]/lastpost.gif" alt="$vbphrase[go_to_last_post]" border="0" /></a>
</div>
</div>
<else />
<div class="smallfont" align="$stylevar[right]">
$lastpostinfo[lastpostdate] <if condition="!$show['detailedtime']"><span class="time">$lastpostinfo[lastposttime]</span></if>
<a href="showthread.php?$session[sessionurl]p=$lastpostinfo[lastpostid]"><img class="inlineimg" src="$stylevar[imgdir_button]/lastpost.gif" alt="$vbphrase[go_to_last_post]" border="0" /></a>
</div>
</if>


</td>
</tr></table>


Habe dieses Template mit dem originalen widerhergestellt, ändert aber auch nichts an dem Problem, d.h. an der ausgabe mit html kanns nicht liegen.
Wo werden denn die " in &quot; umgewandelt, wo kann ich das überprüfen?

Mystics
28.03.2007, 21:50
Hast du das gemacht, was Pogo gesagt hat?
Teste es mit einem neuen Style ohne Oberstyle (für den Validator-Test musst du den Style zum Standard machen oder &styleid=X anhängen
Deaktiviere alle Plug-ins.
Lade alle Original-Dateien hoch.

Des Weiteren solltest du deine Ersetzungsvariablen im Style überprüfen. Evtl. lässt du &quot; wieder mit " ersetzen (warum auch immer).

RollingStones
29.03.2007, 19:05
Habe alle Plug-Ins deaktiviert und auch das ganze mal mit dem Standardstyle getstet. Funktioniet nicht.

ALle Original Dateien möchte ich nicht hochladen, dann wäre ja alles was ich gmeahct habe weg.

Es muss ja nur eine Stelle sein, wo diese Dinger umgewandlet werdne...ihr wisst das doch.
Gruß

RS

pogo
30.03.2007, 11:05
Meinst du, wir würden die Antwort zurückhalten, wenn wir wüssten, wo das Problem liegt?

Tatsache ist, dass es im unveränderten vBulletin nicht zu diesem Problem kommt. Du hast etwas verändert, was zu einem Fehler führt, den wir nicht ohne Weiteres lokalisieren können.

Ich kann dir nur noch anbieten, dass du mir deinen Adminaccount schickst und ich mir die Sache in deinem Forum ansehe und vielleicht eine Antwort finde.

RollingStones
30.03.2007, 11:19
Ok.

@pogo: Habe dir eine PN mit den Daten geschickt.

Gruß
RS

pogo
30.03.2007, 11:34
Bei neuen Themen tritt das Problem gar nicht auf.

Ich habe 2 Themen namens "testthema" erstellt und bei beiden wird korrekterweise &quot; im Quelltext benutzt und nicht ".

pogo
30.03.2007, 11:41
Ahhh, ich sehe, dass du vom WBB auf vBulletin umgestiegen bist und das Thema mit den " noch im WBB erstellt wurde. Eventuell liegt es daran, dass der Importer nicht richtig mit " umgeht.

RollingStones
30.03.2007, 11:53
OK, dankeschön.
Wenn das nur bei dem alten Topic auftritt ists ja kein Problem. :)

Gruß
RS

pogo
30.03.2007, 12:01
Naja, das betrifft vermutlich schon ALLE alten Themen mit " im Titel.

RollingStones
30.03.2007, 12:05
Naja, das betrifft vermutlich schon ALLE alten Themen mit " im Titel.


Ja, das meinte ich auch so. Wenn es nur bei den alten Themen vor dem Umzug der Fall ist, ists nicth so schlimm..das sind ja nicht viele!
Erst seit wir das vBulletni haben entwickelt sich das Forum richtig gut weiter! :)

Also...

- ROCK ON -

€dit: Eben habe ich nochmal geschaut...auf einmal geht die Umwandlung wieder..auch bei diesem alten Thema! Hast du irgendwas eingestellt, dass es auf einmal auch bei dem alten geht?^^

pogo
30.03.2007, 12:10
Nein, das alte Thema hab ich bearbeitet und den Titel quasi neu eingefügt, um zu sehen, ob dabei alles funktioniert und es funktioniert alles wie erwartet.

Wenn du z.B. das "Netiquette" Thema bearbeitest, im Thema selbst über Themen-Optionen->Thema bearbeiten, siehst du, dass das gar kein Titel erscheint, was eben an den " liegt.

RollingStones
30.03.2007, 12:14
Ok, verstanden.
Werde die betroffenen Themen mal überprüfen.