Время:
Новых сообщений: Нет
Вы на форуме дней
Ваша группа: Гость
Ваш IP: 3.16.76.237
Logical-Portal — молодежный портал со своей изюминкой, каждый сможет найти что-то интересное и полезное для себя, например наш форум общения с которым вам обязательно нужно ознакомиться.
  • Страница 1 из 1
  • 1
Архив - только для чтения
uforumTags - теги для форума
Сообщение оставлено 15.06.2011 в 17:12:40 | Сообщение #1
[table][/table]
[table]Установка
форум >> Форма добавления сообщения, находим $_MESSAGE$ и заменяем на: [/table]
Code
<!--<tags by yonet>-->    
<?if($URI_ID$='frPostEdit')?>    
<?ifnot(strrpos($_MESSAGE$, 'tags-zB11'))=-1?>    
<?substr($_MESSAGE$,0,strrpos($_MESSAGE$, 'tags-zB11'))?></textarea><br>    
<script type="text/javascript">      
     $(["Теги"]).each(function(){      
     $('#message').parent().parent().after('<tr><td class="gTableLeft">' + this + '</td><td class="gTableRight"><input value="<?substr(substr($_MESSAGE$,0,strrpos($_MESSAGE$, '</textarea>')),strrpos($_MESSAGE$, 'tags-zB11')+9)?>" onclick="select()" type="text" name="tags" style="width: 100%;" class="newfield" maxlength="100"><br><span style="font-size:10px">Ставьте запятую между тегами. <i>Пример: Пираты, фильм, Disney, 2011</i></span></td></tr>');      
     });      
     $("form").submit(function(){      
     $("#message").val($("#message").val().replace(/\|{3}\{.+?$/, ""));      
     var nf=[];      
     $(".newfield").each(function(i){      
     if (this.value) nf.push("" + this.value);      
     });      
     if (nf.length) $("#message")[0].value += "tags-zB11" + nf.join('||');      
     });      
     </script><?else?>$_MESSAGE$<?endif?>    
<?else?>$_MESSAGE$    
<?endif?>    
<?if($PAGE_ID$='addthread' || $PAGE_ID$='addpoll')?>    
<!--<tags>-->    
<script type="text/javascript">      
     $(["Теги"]).each(function(){      
     $('#message').parent().parent().after('<tr><td class="gTableLeft">' + this + '</td><td class="gTableRight"><input type="text" name="tags" style="width: 100%;" class="newfield" maxlength="100"><br><span style="font-size:10px">Ставьте запятую между тегами. <i>Пример: Пираты, фильм, Disney, 2011</i></span></td></tr>');      
     });      
     $("form").submit(function(){      
     $("#message").val($("#message").val().replace(/\|{3}\{.+?$/, ""));      
     var nf=[];      
     $(".newfield").each(function(i){      
     if (this.value) nf.push("" + this.value);      
     });      
     if (nf.length) $("#message")[0].value += "tags-zB11" + nf.join('||');      
     });      
     </script>    
<script type="text/javascript">      
     $('input[name="name"]').keyup(function() {      
     $('input[name="tags"]').val($(this).val().split(' ').join(', '))      
     });      
     </script>    
<!--<end>-->    
<?endif?>    
<!--<end tags by yonet>-->

[table]Теперь, заходим в вид материалов, находим $MESSAGE$, заменяем на: [/table]
Code
<?if(strrpos($MESSAGE$, 'tags-zB11'))=-1?>$MESSAGE$<?else?>    
<?substr($MESSAGE$,0,strrpos($MESSAGE$, 'tags-zB11'))?>    
<br><br><table border="0" width="100%"><tr><td class="postTdTop" style="padding:5">    
<img title="Теги темы" src="http://www.iconsearch.ru/uploads/icons/oxygen/32x32/rss-tag.png" width="20" height="20" border="0" align="absmiddle">     <?substr($MESSAGE$,strrpos($MESSAGE$, 'tags-zB11')+9)?>      
</td></tr></table>    
<?endif?>
 
 
   
Сообщение оставлено 15.06.2011 в 20:04:35 | Сообщение #2
Спасибо. Себе поставлю! wink
 
 
   
Сообщение оставлено 16.06.2011 в 06:02:08 | Сообщение #3
Такая тема уже есть - http://logical-portal.ru/forum/110-39580-1
 
 
   
Сообщение оставлено 20.06.2011 в 19:36:37 | Сообщение #4
Невсегда нужная конешно,но прикольная
 
 
   
Сообщение оставлено 20.06.2011 в 23:34:02 | Сообщение #5
Quote
Такая тема уже есть - http://logical-portal.ru/forum/110-39580-1

извеняюсь.
 
 
   
  • Страница 1 из 1
  • 1
Поиск:
 
Графика от: Megas, GraFOS | Дизайн сверстал E.A.
Хостинг от uCoz
Яндекс.Метрика