форум vBSupport.ru > vBulletin > vBulletin 3.8.x > Вопросы по vBulletin 3.8
  • »
VBsupport перешел с домена .ORG на родной .RU Ура! Пожалуйста, обновите свои закладки - VBsupport.ru
 
 
 
 
Ярик
Специалист
 
Ярик's Avatar
Question Статусные иконки разделов, текстом
2

Возможно давно задавали такие вопросы

Вообщем нужно, статусные иконки разделов, изменить на текстовые, пример: 'new' и 'old'


С обычными кнопками с графикой получается а вот здесь же условие

Вроде те шаблоны:

Code:
<tr align="center">
	<td class="alt2"><img src="$stylevar[imgdir_statusicon]/$forum[imageprefix]forum_$forum[statusicon].gif" alt="" border="0" id="forum_statusicon_$forum[forumid]" /></td>
	<td class="alt1Active" align="$stylevar[left]" id="f$forum[forumid]">
		<div>
			<a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]"><strong>$forum[title]</strong></a>
			<if condition="$show['browsers']"><span class="smallfont">(<phrase 1="$forum[browsers]">$vbphrase[x_viewing]</phrase>)</span></if>
		</div>
		<if condition="$show['forumdescription']"><div class="smallfont">$forum[description]</div></if>
		<if condition="$show['forumsubscription']"><div class="smallfont"><strong><a href="subscription.php?$session[sessionurl]do=removesubscription&amp;f=$forum[forumid]" rel="nofollow">$vbphrase[unsubscribe_from_this_forum]</a></strong></div></if>
		<if condition="$show['subforums']"><div class="smallfont" style="margin-top:$stylevar[cellpadding]px"><strong>$vbphrase[subforums]</strong>: $forum[subforums]</div></if>
	</td>
	<td class="alt2">$forum[lastpostinfo]</td>
	<td class="alt1">$forum[threadcount]</td>
	<td class="alt2">$forum[replycount]</td>
	<if condition="$vboptions['showmoderatorcolumn']">
	<td class="alt1"><div class="smallfont">$forum[moderators]&nbsp;</div></td>
	</if>
</tr>
$childforumbits

Code:
<if condition="!$show['collapsable_forums']">
<tbody>
</if>
	<tr align="center">
		<td class="alt1Active" colspan="2" align="$stylevar[left]" id="f$forum[forumid]">

		<table cellpadding="0" cellspacing="0" border="0">
		<tr>
			<td><img src="$stylevar[imgdir_statusicon]/$forum[imageprefix]forum_$forum[statusicon].gif" alt="" border="0" id="forum_statusicon_$forum[forumid]" /></td>
			<td><img src="$vboptions[cleargifurl]" alt="" width="9" height="1" border="0" /></td>
			<td>
			<div>
				<a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]"><strong>$forum[title]</strong></a>
				<if condition="$show['browsers']"><span class="smallfont">(<phrase 1="$forum[browsers]">$vbphrase[x_viewing]</phrase>)</span></if>
			</div>
			<if condition="$show['forumdescription']"><div class="smallfont">$forum[description]</div></if>
			<if condition="$show['forumsubscription']"><div class="smallfont"><strong><a href="subscription.php?$session[sessionurl]do=removesubscription&amp;f=$forum[forumid]" rel="nofollow">$vbphrase[unsubscribe_from_this_forum]</a></strong></div></if>
			<if condition="$show['subforums']"><div class="smallfont" style="margin-top:$stylevar[cellpadding]px"><strong>$vbphrase[subforums]</strong>: $forum[subforums]</div></if>
			</td>
		</tr>
		</table>

		</td>
		<td class="alt2">$forum[lastpostinfo]</td>
		<td class="alt1">$forum[threadcount]</td>
		<td class="alt2">$forum[replycount]</td>
		<if condition="$vboptions['showmoderatorcolumn']">
		<td class="alt1"><div class="smallfont">$forum[moderators]&nbsp;</div></td>
		</if>
	</tr>

<if condition="!$show['collapsable_forums']">
</tbody>
</if>

<if condition="$childforumbits">
<if condition="!$show['collapsable_forums']">
<tbody>
</if>
	$childforumbits
<if condition="!$show['collapsable_forums']">
</tbody>
</if>
</if>
Bot
Yandex Bot Yandex Bot is online now
 
Join Date: 05.05.2005
Реклама на форуме А что у нас тут интересного? =)
 
 
Sven
Front-End Developer
 
Sven's Avatar
Default
1

Так вместо картинки оставь просто $forum[statusicon]
 
 
Ярик
Специалист
 
Ярик's Avatar
Default
1

@Sven, там через префикс идёт, где убрать?

Code:
<td class="alt2"><img src="$stylevar[imgdir_statusicon]/$forum[imageprefix]forum_$forum[statusicon].gif" alt="" border="0" id="forum_statusicon_$forum[forumid]" /></td>
 
 
Sven
Front-End Developer
 
Sven's Avatar
Default
1

Quote:
Originally Posted by Ярик View Post
там через префикс идёт
Что через префикс?
Я дал переменную, которая выводит old|new|link
 
 
Ярик
Специалист
 
Ярик's Avatar
Default
1

@Sven, так? или я издеваюсь

Стало: отображается old new link
Code:
<td class="alt2"><alt="" border="0" id="forum_statusicon_$forum[forumid]" />$forum[statusicon]</td>
Было:
Code:
<td class="alt2"><img src="$stylevar[imgdir_statusicon]/$forum[imageprefix]forum_$forum[statusicon].gif" alt="" border="0" id="forum_statusicon_$forum[forumid]" /></td>
Или здесь что то не так?
Code:
<alt="" border="0" id="forum_statusicon_$forum[forumid]" />

Last edited by Ярик : 03-19-2014 at 11:18 PM.
 
 
Sven
Front-End Developer
 
Sven's Avatar
Default
1

В ячейке оставь одну переменную
 
 
Ярик
Специалист
 
Ярик's Avatar
Default
1

То есть так
Code:
<td class="alt2">$forum[statusicon]</td>
 
 
Sven
Front-End Developer
 
Sven's Avatar
Default
1

Quote:
Originally Posted by Ярик View Post
То есть так
Да
 
 
Ярик
Специалист
 
Ярик's Avatar
Default
0

@Sven, где искать содержимое $forum[statusicon] что выводит old, new, link ?
 
 
kerk
k0t
 
kerk's Avatar
Default
1

Quote:
Originally Posted by Ярик View Post
где искать содержимое
в функциях, которые генерят дерево разделов includes/functions_**.php
** форумдисплей, форумлист или что то похожее =)
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off




All times are GMT +4. The time now is 01:17 AM.


Powered by vBulletin® Version x.X.x
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Loading...