vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   How to fetch BBCODECACHE? (https://vborg.vbsupport.ru/showthread.php?t=172621)

Adult SEO 03-10-2008 02:10 PM

How to fetch BBCODECACHE?
 
Dear vBulletin experts,

I am currently working on a more advanced mod for vBulletin 3.7 B5 and am trying to do the folowing:

I start a script e.g. script.php (just include('global.php'); for $vbulletin) and then upon a trigger I want to load the regular vBulletin editor (standard forum editor page for a new thread/reply).

However, I keep receiving the folowing error:

Quote:

Warning: Invalid argument supplied for foreach() in /includes/functions_editor.php on line 649
Even when adding the folowing on top of the script.php file that is loaded before the editor script (include global.php):

$specialtemplates = array(
'smiliecache',
'bbcodecache',
'ranks',
);

I already tried $vbulletin->datastore->fetch($specialtemplates); however the $vbulletin->bbcodecache does not get populated.

The error is caused by the folowing loop in functions_editor.php on line 649:

foreach ($vbulletin->bbcodecache AS $bbcode)

Anybody has any idea how to populate the bbcode cache array in the right way to be able to show the default vBulletin new thread editor page for a forum?

Thanks in advance for your tips/support!

Best Regards,
Jan Jaap

Dismounted 03-11-2008 05:36 AM

Are the other caches being fetched?

Adult SEO 03-11-2008 01:52 PM

Quote:

Originally Posted by Dismounted (Post 1462052)
Are the other caches being fetched?

Could you please be more specific by what you mean by that?

The phrases are catched, however also using a trick.

Thanks in advance for your support.

Best Regards,
Jan Jaap

--------------- Added 11 Mar 2008 at 16:35 ---------------

The error seems to be caused by something other then my script.

Just accessing the original newthread.php?do=newthread&f=2 file will return the same error in Beta 5, it must have been a bug.

Right now I reuploaded all new Beta 6 filesand I ran an upgrade and the error is gone!


All times are GMT. The time now is 10:52 AM.

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.03430 seconds
  • Memory Usage 1,716KB
  • 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
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)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