vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=252)
-   -   Use vBulletin's BBCode outside the forum (https://vborg.vbsupport.ru/showthread.php?t=253503)

123_y_321 11-13-2010 04:45 AM

are u sure the file is recentposts.php? because I have no such file. I use vbulletin suit 4.0.5
And yes, I tried everything in my knowledge and your suggestions to fix the problem. But still every time I call out the vb_build_message function with database, the same problem occur. Again, the function works fine with manual text. The problem is there when ever I touch the database. Does not matter one or many columns I call out.

Lynne 11-13-2010 03:01 PM

Yes, I'm sure it's called recentposts. It's in one of the subdirectories, block or blocks (I forget) which is in another subdirectory. Won't your computer show you were a file is if you type in the same?

So, your query is getting results and you have echoed out the post text successfully? You have done that, right?

123_y_321 11-13-2010 06:42 PM

there is no recentposts in block folder (includes/block).

Yes, my query echo out the text successfully like this

Code:

[b]my text[b]
which means my query grab the data correctly.

Lynne 11-13-2010 08:21 PM

Whoops, it's a widget, so it's in the widget directory.

PHP Code:

            $allow_html = ((vB::$vbulletin->forumcache[$post['forumid']]['options'] & $optionval) AND $this->config['allow_html'] ? 0);
            
$post['previewtext'] = fetch_censored_text($parser->get_preview($post['pagetext'], $this->default_previewlen$allow_html));
            
$post['pagetext'] = fetch_censored_text($parser->do_parse($post['pagetext'], $allow_html)); 



All times are GMT. The time now is 02:23 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.01033 seconds
  • Memory Usage 1,723KB
  • 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_code_printable
  • (1)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete