Archiv verlassen und diese Seite im Standarddesign anzeigen : controls neben title?
Paradise
29.06.2007, 11:05
Morgen :),
ich hätte die controls gerne neben dem title aber egal wie ichs einfüge es haut nicht hin. Und unten gerne wie ichs von phpbb gewohnt bin die Bildchen zum Profil usw.
So wie hier: http://www.cyberfoto.pl/pomysly-i-sprawy-organizacyjne/58569-styl-forum-subblack-nie-dziala.htm
Das ganze kannst du im AdminCP unter:
vBulletin-Einstellungen -> Style und Sprache -> Benutzerinformationen bei Beiträgen und Privaten Nachrichten auf der linken Seite anzeigen
einstellen, in dem du dort auf "Ja" klickst.
Das sollte dein Problem lösen.
Paradise
02.07.2007, 12:04
Da hast du was falsch verstanden. Die Controls sind "Ändern", "Zitieren" und "Beitrag zum Zitieren auswählen".
Dann habe ich dich wirklich falsch verstanden :)
Bearbeite das postbit / postbit_legacy Template und suche:
<if condition="$show['messageicon'] OR $post['title']">
<!-- icon and title -->
<div class="smallfont">
<if condition="$show['messageicon']"><img class="inlineimg" src="$post[iconpath]" alt="$post[icontitle]" border="0" /></if>
<if condition="$post['title']"><strong>$post[title]</strong></if>
</div>
<hr size="1" style="color:$stylevar[tborder_bgcolor]" />
<!-- / icon and title -->
</if>Ersetze es mit:
<!-- icon and title -->
<div class="smallfont" style="float:$stylevar[left]; margin-top: 8px;">
<if condition="$show['messageicon']"><img class="inlineimg" src="$post[iconpath]" alt="$post[icontitle]" border="0" /></if>
<if condition="$post['title']"><strong>$post[title]</strong></if>
</div>
<div class="normal" align="right">
<!-- controls -->
<if condition="$post['editlink']">
<img style="display: none" id="progress_$postid" src="$stylevar[imgdir_misc]/progress.gif" alt="$vbphrase[loading_editor_please_wait]" />
<a href="$post[editlink]" name="vB::QuickEdit::$post[postid]"><img src="$stylevar[imgdir_button]/edit.gif" alt="$vbphrase[edit_delete_message]" border="0" /></a>
</if>
<if condition="$post['forwardlink']">
<a href="$post[forwardlink]"><img src="$stylevar[imgdir_button]/forward.gif" alt="$vbphrase[forward_message]" border="0" /></a>
</if>
<if condition="$post['replylink']">
<a href="$post[replylink]" rel="nofollow"><img src="$stylevar[imgdir_button]/<if condition="$post['forwardlink']">reply_small<else />quote</if>.gif" alt="$vbphrase[reply_with_quote]" border="0" /></a>
</if>
<if condition="$show['multiquote_post']">
<a href="$post[replylink]" rel="nofollow" onclick="return false"><img src="$stylevar[imgdir_button]/multiquote_<if condition="$show['multiquote_selected']">on<else />off</if>.gif" alt="$vbphrase[multi_quote_this_message]" border="0" id="mq_$post[postid]" /></a>
</if>
<if condition="$show['quickreply'] AND !$show['threadedmode']">
<a href="$post[replylink]" rel="nofollow" id="qr_$post[postid]" onclick="return false"><img src="$stylevar[imgdir_button]/quickreply.gif" alt="$vbphrase[quick_reply_to_this_message]" border="0" /></a>
</if>
<if condition="$show['moderated']">
<img src="$stylevar[imgdir_misc]/moderated.gif" alt="$vbphrase[moderated_post]" border="0" />
</if>
<if condition="$show['deletedpost']">
<img src="$stylevar[imgdir_misc]/trashcan.gif" alt="$vbphrase[deleted_post]" border="0" />
</if>
<if condition="$show['redcard']">
<a href="infraction.php?$session[sessionurl]do=view&p=$post[postid]"><img src="$stylevar[imgdir_button]/redcard.gif" alt="$vbphrase[received_infraction]" border="0" /></a>
<else />
<if condition="$show['yellowcard']">
<a href="infraction.php?$session[sessionurl]do=view&p=$post[postid]"><img src="$stylevar[imgdir_button]/yellowcard.gif" alt="$vbphrase[received_warning]" border="0" /></a>
</if>
</if>
$template_hook[postbit_controls]
<!-- / controls -->
<hr size="1" style="color:$stylevar[tborder_bgcolor]" />
</div>
<!-- / icon and title -->Suche und lösche:
<div style="margin-top: 10px" align="$stylevar[right]">
<!-- controls -->
<if condition="$post['editlink']">
<img style="display: none" id="progress_$postid" src="$stylevar[imgdir_misc]/progress.gif" alt="$vbphrase[loading_editor_please_wait]" />
<a href="$post[editlink]" name="vB::QuickEdit::$post[postid]"><img src="$stylevar[imgdir_button]/edit.gif" alt="$vbphrase[edit_delete_message]" border="0" /></a>
</if>
<if condition="$post['forwardlink']">
<a href="$post[forwardlink]"><img src="$stylevar[imgdir_button]/forward.gif" alt="$vbphrase[forward_message]" border="0" /></a>
</if>
<if condition="$post['replylink']">
<a href="$post[replylink]" rel="nofollow"><img src="$stylevar[imgdir_button]/<if condition="$post['forwardlink']">reply_small<else />quote</if>.gif" alt="$vbphrase[reply_with_quote]" border="0" /></a>
</if>
<if condition="$show['multiquote_post']">
<a href="$post[replylink]" rel="nofollow" onclick="return false"><img src="$stylevar[imgdir_button]/multiquote_<if condition="$show['multiquote_selected']">on<else />off</if>.gif" alt="$vbphrase[multi_quote_this_message]" border="0" id="mq_$post[postid]" /></a>
</if>
<if condition="$show['quickreply'] AND !$show['threadedmode']">
<a href="$post[replylink]" rel="nofollow" id="qr_$post[postid]" onclick="return false"><img src="$stylevar[imgdir_button]/quickreply.gif" alt="$vbphrase[quick_reply_to_this_message]" border="0" /></a>
</if>
<if condition="$show['moderated']">
<img src="$stylevar[imgdir_misc]/moderated.gif" alt="$vbphrase[moderated_post]" border="0" />
</if>
<if condition="$show['deletedpost']">
<img src="$stylevar[imgdir_misc]/trashcan.gif" alt="$vbphrase[deleted_post]" border="0" />
</if>
<if condition="$show['redcard']">
<a href="infraction.php?$session[sessionurl]do=view&p=$post[postid]"><img src="$stylevar[imgdir_button]/redcard.gif" alt="$vbphrase[received_infraction]" border="0" /></a>
<else />
<if condition="$show['yellowcard']">
<a href="infraction.php?$session[sessionurl]do=view&p=$post[postid]"><img src="$stylevar[imgdir_button]/yellowcard.gif" alt="$vbphrase[received_warning]" border="0" /></a>
</if>
</if>
$template_hook[postbit_controls]
<!-- / controls -->
</div>Gefällt mir neben dem Titel aber nicht. Denn die "Controls" werden ja auch angezeigt, wenn es keinen Titel gibt.
Für die zweite Sache findest du alle nötigen Links im gleichen Template, ab:
<!-- post $post[postid] popup menu -->Damit kannst du dann entsprechende Grafiken mit diesen Links im Template einfügen.
Paradise
09.07.2007, 04:40
Danke, hat schon mal sehr geholfen.
Also ich hab jetzt unten drin
$post[iplogged]
</td>
<if condition="$show['moderated']">
<td class="alt2" align="$stylevar[right]" style="border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-left: 0px; border-top: 0px">
<else />
<td class="alt1" align="$stylevar[left]" style="border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-left: 0px; border-top: 0px">
</if>
<!-- controls -->
<if condition="$show['profile']">
<a href="member.php?$session[sessionurl]u=$post[userid]"><img src="$stylevar[imgdir_button]/icon_profile.gif" alt="$vbphrase[view_public_profile]" border="0" /></a>
</if>
<if condition="$show['pmlink']">
<a href="private.php?$session[sessionurl]do=newpm&u=$post[userid]" rel="nofollow"><img src="$stylevar[imgdir_button]/icon_pm.gif" alt="$vbphrase[send_private_message_to_x]" border="0" /></a>
</if>
<if condition="$show['homepage']">
<a href="$post[homepage]"><img src="$stylevar[imgdir_button]/icon_www.gif" alt="$vbphrase[visit_xs_homepage]" border="0" /></a>
</if>
<if condition="$show['search']">
<a href="search.php?$session[sessionurl]do=finduser&u=$post[userid]" rel="nofollow"><img src="$stylevar[imgdir_button]/icon_search.gif" alt="$vbphrase[find_more_posts_by_x]" border="0" /></a>
</if>
</if>
$template_hook[postbit_controls]
<!-- / controls -->
</td>
</tr>
</table>
$template_hook[postbit_end]
Aber muss das
<if condition="$show['moderated']">
nicht weg?
Und was ist
<if condition="$post['forwardlink']">
<if condition="$show['deletedpost']">
<if condition="$show['redcard']">
<if condition="$show['yellowcard']">
sie sitzen nach deinem umbau ja jetzt auch oben drin? Nur werden diese bei mir wohl garnicht angezeigt.
Und "x" gibt nicht den User wieder sondern nur %1$s :(
Du darfst die "x" Phrasen nicht alleine einbauen, sondern nur im kompletten Kontext:
<phrase 1="$post[username]">$vbphrase[find_more_posts_by_x]</phrase>
$show['moderated'] zeigt ein entsprechendes Symbol an, wenn ein Beitrag noch freigeschaltet werden muss.
'forwardlink' = PN weiterleiten
'deletedpost' = Beitrag wurde wiederherstellbar gelöscht
'redcard' / 'yellowcard' = Benutzer wurde für den Beitrag verwarnt.
Immer siehst du diese Symbole nicht, nur wenn die o.g. Bedingungen zutreffen.
Powered by vBulletin® Version 4.1.12 Copyright ©2012 Adduco Digital e.K. und vBulletin Solutions, Inc. Alle Rechte vorbehalten.