vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=252)
-   -   Parse BBCode in Widgets (https://vborg.vbsupport.ru/showthread.php?t=234216)

akvaryumforum 01-26-2010 03:51 PM

Parse BBCode in Widgets
 
PHP Code:

ob_start();
    
$selectthread vB::$db->query_read("SELECT * FROM `thread` WHERE `forumid`='90' OR `forumid`='91' OR `forumid`='92' OR `forumid`='93' OR `forumid`='94' OR `forumid`='95' OR `forumid`='96' OR `forumid`='97' OR `forumid`='98' OR `forumid`='99' OR `forumid`='100' OR `forumid`='101' OR `forumid`='102' OR `forumid`='103' OR 'forumid'='104' OR 'forumid'='105' OR 'forumid'='106' OR 'forumid'='107' OR 'forumid'='108' OR 'forumid'='109' OR 'forumid'='110' OR 'forumid'='111' OR 'forumid'='112' OR 'forumid'='113' OR 'forumid'='114' OR 'forumid'='115' OR 'forumid'='116' OR 'forumid'='117' ORDER BY RAND() LIMIT 0,1");
  
$output_bits '';
  while(
$row vB::$db->fetch_array($selectthread))
  {
  
$fpost $row[firstpostid] ;
  
$selectpost =vB::$db->query_read("SELECT * FROM `post` WHERE `postid`='{$fpost}'");
  while (
$apt=vB::$db->fetch_array($selectpost)) {
        
$output_bits .= "<a href='showthread.php?t=$row[threadid]' >$row[title]</a><br />$apt[pagetext]<br /><a href='forumdisplay.php?f=81' >Toplam: <b>1465</b> kayit var.</a> ";
    }
    }
  
$output $output_bits;
  
ob_end_clean(); 

How can i parse BBCode in this widget or in widgets?


All times are GMT. The time now is 09:24 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01336 seconds
  • Memory Usage 1,714KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (1)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete