![Quote](images/misc/quote_icon.png)
Iniţial Adăugată pe site de
vBET
În soluţie de descris, trebuie să aibă loc stabilit particularizate pentru steaguri!
Pentru a avea o lucrătoare în toate configuraţiile doar se substituie acest lucru:
PHP Code:
if ('cu' != $vbulletin->options['vbenterprisetranslator_translationsDropdownMenu_position']) {
$template_hook[$vbulletin->options['vbenterprisetranslator_translationsDropdownMenu_position']] .= $vbenterprisetranslatorflagsdropdown;
} else {
vB_Template::preRegister('navbar', array('vbenterprisetranslatorflagsdropdown' => $vbenterprisetranslatorflagsdropdown));
}
Pentru aceasta:
PHP Code:
if ('cu' != $vbulletin->options['vbenterprisetranslator_translationsDropdownMenu_position']) {
$template_hook[$vbulletin->options['vbenterprisetranslator_translationsDropdownMenu_position']] .= $vbenterprisetranslatorflagsdropdown;
} else {
vB_Template::preRegister('navbar', array('vbenterprisetranslatorflagsdropdown' => $vbenterprisetranslatorflagsdropdown));
}
vB_Template::preRegister('vbcms_navbar_link', array('vbenterprisetranslatorflagsdropdown' => $vbenterprisetranslatorflagsdropdown));
vB_Template::preRegister('blog_navbar_link', array('vbenterprisetranslatorflagsdropdown' => $vbenterprisetranslatorflagsdropdown));
Deci, cu alte cuvinte - afişezi dvs. 2 linii suplimentare la doar 1 linia de jos (după "
}").
De asemenea, am vedea că, în şablonul pe care a pus
{Vb: vbenterprisetranslatorflagsdropdown prime} interiorul
dacă Clauza - pune-l 1 linie mai mici. Acesta vă va oferi:
Code:
*******************************************
<vb:if condition="$vboptions['selectednavtab'] == 'vbblog'">
<li class="selected">
<a class="navtab" href="blog.php{vb:raw session.sessionurl_q}">{vb:rawphrase blogs}</a>
<ul class="floatcontainer">
{vb:raw template_hook.blog_navbar_start}
<vb:if condition="$show['canpostitems']">
<li><a href="{vb:link blog, {vb:raw bbuserinfo}, null, 'userid', 'blog_title'}">{vb:rawphrase your_blog}</a></li>
</vb:if>
{vb:raw template_hook.blog_navbar_after_your_blog}
<li><a href="blog.php?{vb:raw session.sessionurl}do=list">{vb:rawphrase recent_entries}</a></li>
{vb:raw template_hook.blog_navbar_after_recent_entries}
<li><a href="blog.php?{vb:raw session.sessionurl}do=list&blogtype=best">{vb:rawphrase best_blog_entries}</a></li>
{vb:raw template_hook.blog_navbar_after_best_entries}
<li><a href="blog.php?{vb:raw session.sessionurl}do=bloglist">{vb:rawphrase blog_list}</a></li>
{vb:raw template_hook.blog_navbar_after_blog_list}
<vb:if condition="$show['canpostitems']">
<li><a href="blog_usercp.php?{vb:raw session.sessionurl}do=editprofile">{vb:rawphrase blog_options}</a></li>
</vb:if>
{vb:raw vbenterprisetranslatorflagsdropdown}
{vb:raw template_hook.blog_navbar_end}
</ul>
</li>
<vb:else />
<li><a class="navtab" href="blog.php{vb:raw session.sessionurl_q}">{vb:rawphrase blogs}</a></li>
</vb:if>
***********************************************