форум vBSupport.ru > Форумные движки и CMS (Порталы) > CMS (Portals) > vBadvanced CMPS
  • »
VBsupport перешел с домена .ORG на родной .RU Ура! Пожалуйста, обновите свои закладки - VBsupport.ru
 
 
 
 
lddnsk
Продвинутый
Default Не работают ВВ-коды
0

создал модуль вывода содержимого темы.
все прекрасно, выводит дату, заголовок и сам пост.
но пост выводится как он есть, без преобразования бб-кодов.





сам модуль:
PHP Code:
<?php
$threadid 
548;

$get_thread $vbulletin->db->query("
        SELECT post.pagetext AS post, thread.title, editlog.dateline FROM " 
TABLE_PREFIX "post AS post
        LEFT JOIN " 
TABLE_PREFIX "thread AS thread ON (thread.firstpostid = post.postid)
        LEFT JOIN " 
TABLE_PREFIX "editlog AS editlog ON (post.postid = editlog.postid)
        WHERE thread.threadid = 
$threadid
"
);    

$thread $vbulletin->db->fetch_array($get_thread);

$vba_thread = array();

$vba_thread['title'] = stripslashes($thread['title']);
$vba_thread['date']  = vbdate($vbulletin->options['dateformat'], $thread['dateline']);
$vba_thread['time']  = vbdate($vbulletin->options['timeformat'], $thread['dateline']);
$vba_thread['post']  = stripslashes($thread['post']);

$output "<tr>
<td class=\"
$bgclass\">{$vba_thread['post']}<hr><span class='smallfont' style='float: right'><i>Редакция от {$vba_thread['date']}{$vba_thread['time']}</i></span></td>
</tr>"
;

eval(
'$home[$mods[\'modid\']][\'content\'] = "$output";');


?>
Bot
Yandex Bot Yandex Bot is online now
 
Join Date: 05.05.2005
Реклама на форуме А что у нас тут интересного? =)
 
 
kerk
k0t
 
kerk's Avatar
Default
2

ббкод парсер нужно подключать
 
 
lddnsk
Продвинутый
Default
0

догнал, работает )
 


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 10:36 PM.


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