Бормотухи.НЕТ

Вернуться   Бормотухи.НЕТ > Web-мастеру > vBulletin 3.х > Инструкции по vBulletin
Расширенный поиск

Инструкции по vBulletin Всевозможные мануалы, FAQ и инструкции по vBulletin

Ответ
 
Опции темы Поиск в этой теме
Старый 27.10.2011, 14:08 Вверх   #1
Коварный тип
 
Аватар для Serberg
Serberg вне форума
Доп. информация
Хорошо Как обрамить в рамки поля в постбите

Как обрамить в рамки поля в постбите



1. CSS
Админка->Стили и шаблоны->Управление стилями->[Выбираем стиль и выбираем "Основная таблица CSS"]->в "Дополнительные определения CSS" вставить:

PHP код:
.taif {border-left1px solid #FFFFFF;border-top: 1px solid #FFFFFF;padding: 3px 3px 3px 3px; }
.taift border1px solid #C9C9C9;background-color: #F7F7F7;margin-top: 2px; } 
  • taif и taift - меняем на какие-либо другие названия, если желаем.
  • #FFFFFF, #F7F7F7, #C9C9C9 - это цвета (смотрите таблицу цветов в редакторах картинок) их вы тоже меняете "под себя".

2. postbit_legacy
Теперь открываем шаблон postbit и/или postbit_legacy и проделываем следующее

Найти (поле - Регистрация):

PHP код:
<if condition="$post['joindate']"><div>$vbphrase[join_date]: $post[joindate]</div></if> 
Заменить на:

PHP код:
<if condition="$post['joindate']"><div class="taift"><div class="taif">$vbphrase[join_date]: $post[joindate]</div></div></if> 
===
Найти (поле - Адрес):

PHP код:
<if condition="$post['field2']"><div>$vbphrase[location_perm]: $post[field2]</div></if> 
Заменить на:

PHP код:
<if condition="$post['field2']"><div class="taift"><div class="taif">$vbphrase[location_perm]: $post[field2]</div></div></if> 
Найти (поле - Возраст):

PHP код:
<if condition="$post['age']"><div>$vbphrase[age]: $post[age]</div></if> 
Заменить на:

PHP код:
<if condition="$post['age']"><div class="taift"><div class="taif">$vbphrase[age]: $post[age]</div></div></if> 
Найти (поле - Сообщений):

PHP код:
<div>
                    
$vbphrase[posts]: $post[posts]
                </
div
Заменить на:

PHP код:
<div class="taift"><div class="taif">
                    
$vbphrase[posts]: $post[posts]
                </
div></div
И так далее. То есть мы прикручиваем класс к переменным, как бы обволакиваем переменную этим.

PHP код:
<div class="taift"><div class="taif">переменная</div></div
Автор: TAIFUN
Взято тут

Последний раз редактировалось Serberg; 17.04.2012 в 18:08..
  Ответить с цитированием
4 пользователя(ей) сказали cпасибо:
Старый 27.10.2011, 15:29 Вверх   #2
Коварный тип
 
Аватар для Serberg
Serberg вне форума
Доп. информация
По умолчанию

Еще одна рекомендуемая тема: Рамка в постбите

Последний раз редактировалось Serberg; 08.01.2012 в 18:20..
  Ответить с цитированием
Старый 08.01.2012, 18:05 Вверх   #3
Пользователь
 
Аватар для NiKoTiN
NiKoTiN вне форума
Доп. информация
По умолчанию

При обрамлении получилось, что репутация и icq в одной рамке.
как их разделить? к сожалению в html я не силён.
  Ответить с цитированием
Старый 08.01.2012, 18:13 Вверх   #4
Опытный пользователь
 
Аватар для Hermein
Hermein вне форума
Доп. информация
По умолчанию

Цитата Сообщение от NiKoTiN Посмотреть сообщение
что репутация и icq в одной рамке
Смотря каким ты делал способом, но догадываюсь что тег </div> закрыл не за репутацией а за icq:

$post[reputationdisplay] - вот эту переменную выделяем <div> - ом с обеих сторон, а затем icq:

$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon] $post[skypeicon]

У меня вот так, какие у вас стили в css я не знаю:

Код:
<span id="repdisplay_$post[postid]_$post[userid]"><br>
<div class="pibu"><div class="pib">$post[reputationdisplay]</span></div></div>$template_hook[postbit_userinfo_right]
				<if condition="$post[icqicon] or $post[aimicon] or $post[msnicon] or $post[yahooicon] or $post[skypeicon]"><div class="pibu"><div class="pib">$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon] $post[skypeicon]</div></div></if>

Последний раз редактировалось Hermein; 08.01.2012 в 18:16..
  Ответить с цитированием
2 пользователя(ей) сказали cпасибо:
Старый 08.01.2012, 18:20 Вверх   #5
Пользователь
 
Аватар для NiKoTiN
NiKoTiN вне форума
Доп. информация
По умолчанию

Благодарю действительно не закрыл. хотя вроде ставил </div>
  Ответить с цитированием
Старый 13.04.2013, 19:03 Вверх   #6
Пользователь
 
Аватар для zzzmen
zzzmen вне форума
Доп. информация
По умолчанию

Хочу спросить.у меня есть код репутация числом:
<if condition="$show['reputation']"><if condition="$show['reppower']"><div>$vbphrase[reppower]: <span id="reppower_$post[postid]_$post[userid]">$post[reppower]</span></if><if condition="$post['showreputation']"><div>$vbphrase[reputation]: <span id="repdisplay_$post[postid]_$post[userid]"><b><font color="<if condition="($post[reputation] > 0)">green<else />red</if>">$post[reputation]</font></b></span></div></if></if>
Как его обрамить?хочется готовый вариант просто новичок...
  Ответить с цитированием
Старый 15.04.2013, 07:32 Вверх   #7
Коренной житель
 
Аватар для GladPhoenix
GladPhoenix вне форума
Доп. информация
По умолчанию

Цитата Сообщение от zzzmen Посмотреть сообщение
Хочу спросить.у меня есть код репутация числом:

Как его обрамить?хочется готовый вариант просто новичок...
Все вы готовенького хотите, а самим подумать слабо? Здесь же и так всё проще некуда
  Ответить с цитированием
Старый 20.04.2013, 11:54 Вверх   #8
Коренной житель
 
Аватар для xakepok
xakepok вне форума
Доп. информация
По умолчанию

Цитата Сообщение от zzzmen Посмотреть сообщение
Хочу спросить.у меня есть код репутация числом:

Как его обрамить?хочется готовый вариант просто новичок...
Разве так сложно?
PHP код:
<div class="taift"><div class="taif"><if condition="$show['reputation']"><if condition="$show['reppower']"><div>$vbphrase[reppower]: <span id="reppower_$post[postid]_$post[userid]">$post[reppower]</span></if><if condition="$post['showreputation']"><div>$vbphrase[reputation]: <span id="repdisplay_$post[postid]_$post[userid]"><b><font color="<if condition="($post[reputation] > 0)">green<else />red</if>">$post[reputation]</font></b></span></div></if></if></div></div
  Ответить с цитированием
Cказали cпасибо:
Старый 22.07.2013, 23:48 Вверх   #9
Уважаемая личность
 
Аватар для Ach1les
Ach1les вне форума
Доп. информация
По умолчанию

Ребят подскажите уже везде искал не могу никак найти... Вот я сделал рамки как вы сказали все круто, но они белые, на мой черный стиль не идут! Скажите как поменять цвет, а лучше всего как вставить свое изображение, как сделать рамки вокруг "Поблагодарили..."? И что такое taift,taif что есть подобное?

С Уважением!
  Ответить с цитированием
Старый 23.07.2013, 01:40 Вверх   #10
Местный житель
 
Аватар для TarlanT
TarlanT вне форума
Доп. информация
По умолчанию

Цитата Сообщение от Ach1les Посмотреть сообщение
как сделать рамки вокруг "Поблагодарили..."?
В шаблоне post_thanks_postbit_legacy

Цитата Сообщение от Ach1les Посмотреть сообщение
Вот я сделал рамки как вы сказали все круто, но они белые, на мой черный стиль не идут! Скажите как поменять цвет,
Цитата Сообщение от Serberg Посмотреть сообщение
Админка->Стили и шаблоны->Управление стилями->[Выбираем стиль и выбираем "Основная таблица CSS"]->в "Дополнительные определения CSS" вставить:
PHP код:
.taif {border-left1px solid #FFFFFF;border-top: 1px solid #FFFFFF;padding: 3px 3px 3px 3px; }
.taift border1px solid #C9C9C9;background-color: #F7F7F7;margin-top: 2px; } 
  • #FFFFFF, #F7F7F7, #C9C9C9 - это цвета (смотрите таблицу цветов в редакторах картинок) их вы тоже меняете "под себя".
  Ответить с цитированием
2 пользователя(ей) сказали cпасибо:
Старый 23.07.2013, 01:42 Вверх   #11
Уважаемая личность
 
Аватар для Ach1les
Ach1les вне форума
Доп. информация
По умолчанию

Так в post_thanks или postbit_legacy? И если можно код сам пожалуйста!
  Ответить с цитированием
Старый 23.07.2013, 01:46 Вверх   #12
Старший модератор
 
Аватар для Prometej
Prometej вне форума
Доп. информация
По умолчанию

Цитата Сообщение от TarlanT Посмотреть сообщение
В шаблоне post_thanks_postbit_legacy
Это ОДИН шаблон, а не два.
  Ответить с цитированием
Старый 23.07.2013, 01:48 Вверх   #13
Уважаемая личность
 
Аватар для Ach1les
Ach1les вне форума
Доп. информация
По умолчанию

Цитата Сообщение от Prometej Посмотреть сообщение
Это ОДИН шаблон, а не два.
Уже нашел а что из всего этого код?
  Ответить с цитированием
Старый 23.07.2013, 01:53 Вверх   #14
Местный житель
 
Аватар для TarlanT
TarlanT вне форума
Доп. информация
По умолчанию

Цитата Сообщение от Ach1les Посмотреть сообщение
а что из всего этого?
Читайте на первом посту, все что написано для postbit_legacy тоже самое и для post_thanks_postbit_legacy
  Ответить с цитированием
Старый 23.07.2013, 02:06 Вверх   #15
Уважаемая личность
 
Аватар для Ach1les
Ach1les вне форума
Доп. информация
По умолчанию

Ну перепробовал все что можно вот мой файлик ну помоги пожалуйста!

Нажми для просмотра
<div style="padding:$stylevar[cellpadding]px 0px 0px 0px">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr valign="top">
<td class="alt2" width="175">
<if condition="$post['post_thanks_amount'] == 1">
<strong><phrase 1="$post[username]">$vbphrase[post_thanks_user_says]</phrase></strong>
<else />
<strong><phrase 1="$post[post_thanks_amount_formatted]" 2="$post[username]">$vbphrase[post_thanks_users_say]</phrase></strong>
</if>
<if condition="$bbuserinfo['usergroupid'] == 6">
<br /><a href="post_thanks.php?do=post_thanks_remove_all&amp;p=$post[postid]"<if condition="$vboptions[disable_ajax] != 2"> onclick="return post_thanks_remove_all($post[postid], <if condition="$vboptions['post_groan_integrate']">true<else />false</if>);"</if> rel="nofollow">$vbphrase[post_thanks_remove]</a>
</if>
<if condition="$post['show_thanks_remove_option']">
<br /><a href="post_thanks.php?do=post_thanks_remove_user&amp;p=$post[postid]"<if condition="$vboptions['disable_ajax'] != 2"> onclick="return post_thanks_remove_user($post[postid], <if condition="$vboptions['post_groan_integrate']">true<else />false</if>);"</if> rel="nofollow">$vbphrase[post_thanks_remove_user]</a>
</if>
</td>
<td class="alt1"><div>$post[post_thanks_bit]</div></td>
</tr>
</table>
</div>
  Ответить с цитированием
Старый 23.07.2013, 02:11 Вверх   #16
Местный житель
 
Аватар для TarlanT
TarlanT вне форума
Доп. информация
По умолчанию

post_thanks_postbit_legacy:
<div style="padding:$stylevar[cellpadding]px 0px 0px 0px">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr valign="top">
<td class="alt2" width="175">
<if condition="$post['post_thanks_amount'] == 1">
<strong><phrase 1="$post[username]">$vbphrase[post_thanks_user_says]</phrase></strong>
<else />
<strong><phrase 1="$post[post_thanks_amount_formatted]" 2="$post[username]">$vbphrase[post_thanks_users_say]</phrase></strong>
</if>
<if condition="$bbuserinfo['usergroupid'] == 6">
<br /><a href="post_thanks.php?do=post_thanks_remove_all&amp;p=$post[postid]"<if condition="$vboptions[disable_ajax] != 2"> onclick="return post_thanks_remove_all($post[postid], <if condition="$vboptions['post_groan_integrate']">true<else />false</if>);"</if> rel="nofollow">$vbphrase[post_thanks_remove]</a>
</if>
<if condition="$post['show_thanks_remove_option']">
<br /><a href="post_thanks.php?do=post_thanks_remove_user&amp;p=$post[postid]"<if condition="$vboptions['disable_ajax'] != 2"> onclick="return post_thanks_remove_user($post[postid], <if condition="$vboptions['post_groan_integrate']">true<else />false</if>);"</if> rel="nofollow">$vbphrase[post_thanks_remove_user]</a>
</if>
</td>
<td class="alt1"><div>$post[post_thanks_bit]</div></td>
</tr>
</table>
</div>
  Ответить с цитированием
Старый 23.07.2013, 02:13 Вверх   #17
Уважаемая личность
 
Аватар для Ach1les
Ach1les вне форума
Доп. информация
По умолчанию

Не работает!
  Ответить с цитированием
Старый 23.07.2013, 02:14 Вверх   #18
Местный житель
 
Аватар для TarlanT
TarlanT вне форума
Доп. информация
По умолчанию

post_thanks_postbit_legacy:
PHP код:
<div style="padding:$stylevar[cellpadding]px 0px 0px 0px">
    <
table class="tborder" cellpadding="$stylevar[cellpadding]cellspacing="$stylevar[cellspacing]border="0" width="100%" align="center">
        <
tr valign="top">
            <
td class="alt2" width="175">
                <if 
condition="$post['post_thanks_amount'] == 1">
                    <
strong><phrase 1="$post[username]">$vbphrase[post_thanks_user_says]</phrase></strong>
                <else />
                    <
strong><phrase 1="$post[post_thanks_amount_formatted]2="$post[username]">$vbphrase[post_thanks_users_say]</phrase></strong>
                </if>
                <if 
condition="$bbuserinfo['usergroupid'] == 6">
                    <
br /><a href="post_thanks.php?do=post_thanks_remove_all&amp;p=$post[postid]"<if condition="$vboptions[disable_ajax] != 2"onclick="return post_thanks_remove_all($post[postid], <if condition="$vboptions['post_groan_integrate']">true<else />false</if>);"</if> rel="nofollow">$vbphrase[post_thanks_remove]</a>
                </if>
                <if 
condition="$post['show_thanks_remove_option']">
                <
br /><a href="post_thanks.php?do=post_thanks_remove_user&amp;p=$post[postid]"<if condition="$vboptions['disable_ajax'] != 2"onclick="return post_thanks_remove_user($post[postid], <if condition="$vboptions['post_groan_integrate']">true<else />false</if>);"</if> rel="nofollow">$vbphrase[post_thanks_remove_user]</a>
                </if>
            </
td>
            <
td class="alt1"><div>$post[post_thanks_bit]</div></td>
        </
tr>
    </
table>
</
div
  Ответить с цитированием
Старый 23.07.2013, 02:17 Вверх   #19
Уважаемая личность
 
Аватар для Ach1les
Ach1les вне форума
Доп. информация
По умолчанию

Не работает.))))
  Ответить с цитированием
Старый 23.07.2013, 02:41 Вверх   #20
Местный житель
 
Аватар для TarlanT
TarlanT вне форума
Доп. информация
По умолчанию

Сорри, это в шаблоне post_thanks_postbit_info

post_thanks_postbit_info:
PHP код:
<if condition="$post[userid]">
    <
div class="taift"><div class="taif">$vbphrase[post_thanks_thanks]: $post[post_thanks_user_amount_formatted]</div>
    <
div>
        <if 
condition="$post[post_thanks_thanked_times] == 1">
            
$vbphrase[post_thanks_time_post]
        <else />
            <if 
condition="$post[post_thanks_thanked_posts] == 1">
                <
phrase 1="$post[post_thanks_thanked_times_formatted]">$vbphrase[post_thanks_times_post]</phrase>
            <else />
                <
phrase 1="$post[post_thanks_thanked_times_formatted]2="$post[post_thanks_thanked_posts_formatted]">  </div>
           </
div>
           <
div class="taift"><div class="taif">              $vbphrase[post_thanks_times_posts]</phrase></div>    </div>
              </
div>
            </if>
        </if>
    </
div>
</if> 
  Ответить с цитированием
Cказали cпасибо:
Старый 23.07.2013, 02:44 Вверх   #21
Уважаемая личность
 
Аватар для Ach1les
Ach1les вне форума
Доп. информация
По умолчанию

Цитата Сообщение от TarlanT Посмотреть сообщение
Сорри, это в шаблоне post_thanks_postbit_info

post_thanks_postbit_info:
PHP код:
<if condition="$post[userid]">
    <
div class="taift"><div class="taif">$vbphrase[post_thanks_thanks]: $post[post_thanks_user_amount_formatted]</div>
    <
div>
        <if 
condition="$post[post_thanks_thanked_times] == 1">
            
$vbphrase[post_thanks_time_post]
        <else />
            <if 
condition="$post[post_thanks_thanked_posts] == 1">
                <
phrase 1="$post[post_thanks_thanked_times_formatted]">$vbphrase[post_thanks_times_post]</phrase>
            <else />
                <
phrase 1="$post[post_thanks_thanked_times_formatted]2="$post[post_thanks_thanked_posts_formatted]">  </div>
           </
div>
           <
div class="taift"><div class="taif">              $vbphrase[post_thanks_times_posts]</phrase></div>    </div>
              </
div>
            </if>
        </if>
    </
div>
</if> 
Спасибо вот теперь как раз заработало!
  Ответить с цитированием
Старый 13.08.2013, 00:48 Вверх   #22
Опытный пользователь
 
Аватар для Skillet590
Skillet590 вне форума
Доп. информация
По умолчанию

Ребят помогите все ваши способы пробывал не один не подходит

на поблагодорили стоит

Нажми для просмотра
<div style="padding:$stylevar[cellpadding]px 0px 0px 0px">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr valign="top">
<td class="alt2" width="175">
<if condition="$post['post_thanks_amount'] == 1">
<strong><phrase 1="$post[username]">$vbphrase[post_thanks_user_says]</phrase></strong>
<else />
<strong><phrase 1="$post[post_thanks_amount_formatted]" 2="$post[username]">$vbphrase[post_thanks_users_say]</phrase></strong>
</if>
<if condition="$bbuserinfo['usergroupid'] == 6">
<br /><a href="post_thanks.php?do=post_thanks_remove_all&amp;p=$post[postid]"<if condition="$vboptions[disable_ajax] != 2"> onclick="return post_thanks_remove_all($post[postid], <if condition="$vboptions['post_groan_integrate']">true<else />false</if>);"</if> rel="nofollow">$vbphrase[post_thanks_remove]</a>
</if>
<if condition="$post['show_thanks_remove_option']">
<br /><a href="post_thanks.php?do=post_thanks_remove_user&amp;p=$post[postid]"<if condition="$vboptions['disable_ajax'] != 2"> onclick="return post_thanks_remove_user($post[postid], <if condition="$vboptions['post_groan_integrate']">true<else />false</if>);"</if> rel="nofollow">$vbphrase[post_thanks_remove_user]</a>
</if>
</td>
<td class="alt1"><div>$post[post_thanks_bit]</div></td>
</tr>
</table>
</div>



так же не могу понять где находится спасибо вот сам код postbit_legacy

Нажми для просмотра
$template_hook[postbit_start]
<table id="post$post[postid]" class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="0" border="0" width="100%" align="center">
<tr>
<if condition="$show['announcement']">
<td class="thead" style="font-weight:normal; border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]" colspan="2">
<img class="inlineimg" src="$stylevar[imgdir_statusicon]/post_$post[statusicon].gif" alt="$post[statustitle]" border="0" />
<phrase 1="$post[startdate]" 2="$post[enddate]">$vbphrase[x_until_y]</phrase>
</td>
<else />
<td class="thead" style="font-weight:normal; border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-$stylevar[right]: 0px" $post[scrolltothis]>
<!-- status icon and date -->
<a name="post$post[postid]"><img class="inlineimg" src="$stylevar[imgdir_statusicon]/post_$post[statusicon].gif" alt="$post[statustitle]" border="0" /></a>
$post[postdate]<if condition="!$show['detailedtime']">, $post[posttime]</if>
$post[firstnewinsert]
<!-- / status icon and date -->
</td>
<td class="thead" style="font-weight:normal; border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-$stylevar[left]: 0px" align="$stylevar[right]">
&nbsp;
<if condition="$show['postcount']">#<a href="showpost.php?$session[sessionurl]p=$post[postid]&amp;postcount=$post[postcount]" target="new" rel="nofollow" id="postcount$post[postid]" name="$post[postcount]"><strong>$post[postcount]</strong></a></if>
<if condition="$show['inlinemod']">
<input type="checkbox" name="plist[$postid]" id="plist_$postid" style="vertical-align:middle; padding:0px; margin:0px 0px 0px 5px" value="$post[checkbox_value]" />
</if>
</td>
</if>
</tr>
<tr valign="top">
<td class="alt2" width="175" style="border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-top: 0px; border-bottom: 0px">

<div id="postmenu_$post[postid]">
<if condition="$show['profile']">
<a class="bigusername" href="member.php?$session[sessionurl]u=$post[userid]">$post[musername]</a>
<script type="text/javascript"> vbmenu_register("postmenu_$post[postid]", true); </script>
<else />
$post[musername]
</if>
</div>

<if condition="$post['usertitle']"><div class="smallfont">$post[usertitle]</div></if>
<if condition="$post['rank']"><div class="smallfont">$post[rank]</div></if>
$template_hook[postbit_userinfo_left]

<if condition="$show['avatar']">
<div class="smallfont">
&nbsp;<br /><a href="member.php?$session[sessionurl]u=$post[userid]"><img src="$post[avatarurl]" $post[avwidth] $post[avheight] alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /></a>
</div>
</if>

<div class="smallfont">
&nbsp;<br />
<if condition="$post['joindate']"><div class="taift"><div class="taif">$vbphrase[join_date]: $post[joindate]</div></div></if>
<if condition="$post['field2']"><div class="taift"><div class="taif">$vbphrase[location_perm]: $post[field2]</div></div></if>
<if condition="$post['age']"><div class="taift"><div class="taif">$vbphrase[age]: $post[age]</div></div></if>
<div class="taift"><div class="taif">
$vbphrase[posts]: $post[posts]
</div></div>
$template_hook[postbit_userinfo_right_after_posts]
<if condition="$show['infraction']"><div>$vbphrase[infractions]: $post[warnings]/$post[infractions] ($post[ipoints])</div></if>
<div class="taift"><div class="taif"><if condition="$show['reputation']"><if condition="$show['reppower']"><div>$vbphrase[reppower]: <span id="reppower_$post[postid]_$post[userid]">$post[reppower]</span></if><if condition="$post['showreputation']"><div>$vbphrase[reputation]: <span id="repdisplay_$post[postid]_$post[userid]"><b><font color="<if condition="($post[reputation] > 0)">green<else />red</if>">$post[reputation]</font></b></span></div></if></if></div></div>

</td>
<if condition="$show['moderated']">
<td class="alt2" id="td_post_$post[postid]" style="border-$stylevar[right]: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]">
<else />
<td class="alt1" id="td_post_$post[postid]" style="border-$stylevar[right]: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]">
</if>
$template_hook[postbit_messagearea_start]
<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]; background-color:$stylevar[tborder_bgcolor]" />
<!-- / icon and title -->
</if>

<!-- message -->
<div id="post_message_$post[postid]">
$ad_location[ad_showthread_firstpost_start]
$post[message]
</div>
<!-- / message -->

<if condition="$show['attachments']">
<!-- attachments -->
<div style="padding:$stylevar[cellpadding]px">

<if condition="$show['thumbnailattachment']">
<fieldset class="fieldset">
<legend>$vbphrase[attached_thumbnails]</legend>
<div style="padding:$stylevar[formspacer]px">
$post[thumbnailattachments]
</div>
</fieldset>
</if>

<if condition="$show['imageattachment']">
<fieldset class="fieldset">
<legend>$vbphrase[attached_images]</legend>
<div style="padding:$stylevar[formspacer]px">
$post[imageattachments]
</div>
</fieldset>
</if>

<if condition="$show['imageattachmentlink']">
<fieldset class="fieldset">
<legend>$vbphrase[attached_images]</legend>
<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
$post[imageattachmentlinks]
</table>
</fieldset>
</if>

<if condition="$show['otherattachment']">
<fieldset class="fieldset">
<legend>$vbphrase[attached_files]</legend>
<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
$post[otherattachments]
</table>
</fieldset>
</if>

<if condition="$show['moderatedattachment']">
<fieldset class="fieldset">
<legend>$vbphrase[attachments_pending_approval]</legend>
<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
$post[moderatedattachments]
</table>
</fieldset>
</if>

</div>
<!-- / attachments -->
</if>

$template_hook[postbit_signature_start]
$ad_location[ad_showthread_firstpost_sig]

<if condition="$post['signature']">
<!-- sig -->
<div>
__________________<br />
$post[signature]
</div>
<!-- / sig -->
</if>

$template_hook[postbit_signature_end]

<if condition="$show['postedited']">
<!-- edit note -->
<div class="smallfont">
<hr size="1" style="color:$stylevar[tborder_bgcolor]; background-color:$stylevar[tborder_bgcolor]" />
<em>
<if condition="$show['postedithistory']">
<phrase 1="$post[edit_username]" 2="$post[edit_date]" 3="$post[edit_time]" 4="posthistory.php?$session[sessionurl]p=$post[postid]">$vbphrase[last_edited_link_by_x_on_y_at_z_postid]</phrase>
<else />
<phrase 1="$post[edit_username]" 2="$post[edit_date]" 3="$post[edit_time]">$vbphrase[last_edited_by_x_on_y_at_z]</phrase>
</if>
<if condition="$post['edit_reason']">
$vbphrase[reason]: $post[edit_reason]
</if>
</em>
</div>
<!-- / edit note -->
</if>

</td>
</tr>
<tr>
<td class="alt2" style="border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-top: 0px">
$post[onlinestatus]
<if condition="$show['reputationlink']">
<span id="reputationmenu_$post[postid]"><a href="reputation.php?$session[sessionurl]p=$post[postid]" rel="nofollow" id="reputation_$post[postid]"><img class="inlineimg" src="$stylevar[imgdir_button]/reputation.gif" alt="<phrase 1="$post[username]">$vbphrase[add_to_xs_reputation]</phrase>" border="0" /></a></span>
<if condition="$show['popups']"><script type="text/javascript"> vbrep_register("$post[postid]")</script></if>
</if>
<if condition="$show['infractionlink']"><a href="infraction.php?$session[sessionurl]do=report&amp;p=$post[postid]" rel="nofollow"><img class="inlineimg" src="$stylevar[imgdir_button]/infraction.gif" alt="<phrase 1="$post[username]">$vbphrase[add_infraction_for_x]</phrase>" border="0" /></a></if>
<if condition="$show['reportlink']"><a href="report.php?$session[sessionurl]p=$post[postid]" rel="nofollow"><img class="inlineimg" src="$stylevar[imgdir_button]/report.gif" alt="$vbphrase[report_bad_post]" border="0" /></a></if>
$post[iplogged]
&nbsp;
</td>
<if condition="$show['moderated']">
<td class="alt2" align="$stylevar[right]" style="border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-$stylevar[left]: 0px; border-top: 0px">
<else />
<td class="alt1" align="$stylevar[right]" style="border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-$stylevar[left]: 0px; border-top: 0px">
</if>
<!-- 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['spam']">
<img src="$stylevar[imgdir_misc]/spam_detected.png" alt="$vbphrase[spam_post]" border="0" />
</if>
<if condition="$show['deletedpost']">
<if condition="$show['managepost']">
<a href="postings.php?$session[sessionurl]do=managepost&amp;p=$post[postid]"><img src="$stylevar[imgdir_misc]/trashcan.gif" alt="$vbphrase[manage]" border="0" /></a>
<else />
<img src="$stylevar[imgdir_misc]/trashcan.gif" alt="$vbphrase[deleted_post]" border="0" />
</if>
</if>
<if condition="$show['redcard']">
<a href="infraction.php?$session[sessionurl]do=view&amp;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&amp;p=$post[postid]"><img src="$stylevar[imgdir_button]/yellowcard.gif" alt="$vbphrase[received_warning]" border="0" /></a>
</if>
</if>
$template_hook[postbit_controls]
<!-- / controls -->
</td>
</tr>
</table>
$template_hook[postbit_end]

<if condition="$show['profile']">
<!-- post $post[postid] popup menu -->
<div class="vbmenu_popup" id="postmenu_$post[postid]_menu" style="display:none">
<table cellpadding="4" cellspacing="1" border="0">
<tr>
<td class="thead">$post[username]</td>
</tr>
<if condition="$show['profile']">
<tr><td class="vbmenu_option"><a href="member.php?$session[sessionurl]u=$post[userid]">$vbphrase[view_public_profile]</a></td></tr>
</if>
<if condition="$show['pmlink']">
<tr><td class="vbmenu_option"><a href="private.php?$session[sessionurl]do=newpm&amp;u=$post[userid]" rel="nofollow"><phrase 1="$post[username]">$vbphrase[send_private_message_to_x]</phrase></a></td></tr>
</if>
<if condition="$show['emaillink']">
<tr><td class="vbmenu_option"><a href="sendmessage.php?$session[sessionurl]do=mailmember&amp;u=$post[userid]" rel="nofollow"><phrase 1="$post[username]">$vbphrase[send_email_to_x]</phrase></a></td></tr>
</if>
<if condition="$show['homepage']">
<tr><td class="vbmenu_option"><a href="$post[homepage]"><phrase 1="$post[username]">$vbphrase[visit_xs_homepage]</phrase></a></td></tr>
</if>
<if condition="$show['search']">
<tr><td class="vbmenu_option"><a href="search.php?$session[sessionurl]do=finduser&amp;u=$post[userid]" rel="nofollow"><phrase 1="$post[username]">$vbphrase[find_more_posts_by_x]</phrase></a></td></tr>
</if>
<if condition="$post['userid'] AND $show['member']">
<tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=addlist&amp;userlist=buddy&amp;u=$post[userid]"><phrase 1="$post[username]">$vbphrase[add_x_to_contacts]</phrase></a></td></tr>
</if>
$template_hook[postbit_user_popup]
</table>
</div>
<!-- / post $post[postid] popup menu -->
</if>



поправте и выложите буду признателен
  Ответить с цитированием
Старый 23.01.2014, 12:41 Вверх   #23
Уважаемая личность
 
Аватар для Ach1les
Ach1les вне форума
Доп. информация
По умолчанию

Ошибка при обрамлении post_thanks_postbit_info

PHP код:
<if condition="$post[userid]"
    <
div class="taift"><div class="taif">$vbphrase[post_thanks_thanks]: $post[post_thanks_user_amount_formatted]</div
    <
div
        <if 
condition="$post[post_thanks_thanked_times] == 1"
            
$vbphrase[post_thanks_time_post
        <else /> 
            <if 
condition="$post[post_thanks_thanked_posts] == 1"
                <
phrase 1="$post[post_thanks_thanked_times_formatted]">$vbphrase[post_thanks_times_post]</phrase
            <else /> 
                <
phrase 1="$post[post_thanks_thanked_times_formatted]2="$post[post_thanks_thanked_posts_formatted]">  </div
           </
div
           <
div class="taift"><div class="taif">              $vbphrase[post_thanks_times_posts]</phrase></div>    </div
              </
div
            </if> 
        </if> 
    </
div
</if> 
Обрамилось отлично но при нажатии на
"Сказал(а) спасибо: 0
Поблагодарили 0 раз(а) в 0 сообщениях"
Они объединяются а не обрамляются по одному! Что править нужно?
  Ответить с цитированием
Старый 24.01.2014, 21:08 Вверх   #24
Уважаемая личность
 
Аватар для Ach1les
Ach1les вне форума
Доп. информация
По умолчанию

Что делать?
  Ответить с цитированием
Старый 24.01.2014, 21:19 Вверх   #25
Коварный тип
 
Аватар для Serberg
Serberg вне форума
Доп. информация
По умолчанию

Ach1les, ссылку дал бы на то что ты делаешь что ли. Так вообще не понятно что у тебя слипается.
  Ответить с цитированием
Ответ

Метки
выделение, обрамление, рамочки

Опции темы Поиск в этой теме
Поиск в этой теме:

Расширенный поиск

Ваши права в разделе
Вы не можете создавать новые темы
Вы не можете отвечать в темах
Вы не можете прикреплять вложения
Вы не можете редактировать свои сообщения

BB коды Вкл.
Смайлы Вкл.
[IMG] код Вкл.
HTML код Выкл.

Быстрый переход


Текущее время: 10:55. Часовой пояс GMT +3.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc. Перевод: zCarot
 

Время генерации страницы 0.38222 секунды с 11 запросами