vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Need help getting THIS code into a plugin (https://vborg.vbsupport.ru/showthread.php?t=227758)

Mobo 11-13-2009 03:20 PM

Would they be defined in the plugin for the vBExperience product?

kh99 11-13-2009 03:21 PM

Hmm...OK, I guess that probably means there's something wrong with the little snippet of code I posted.

Try this instead:

Code:

                function prepare_output($id = '', $options = array())
        {
                eval('$this->block_data[\'mymodification\'] ="' . fetch_template('exp_shop_tab') . '";');
        }


Mobo 11-13-2009 03:23 PM

The plugin is to large to qoute in the post, so here it is if anyone need to look into it

**plugin removed**

Mobo 11-13-2009 03:25 PM

Quote:

Originally Posted by kh99 (Post 1913628)
Hmm...OK, I guess that probably means there's something wrong with the little snippet of code I posted.

Try this instead:

Code:

                function prepare_output($id = '', $options = array())
        {
                eval('$this->block_data[\'mymodification\'] ="' . fetch_template('exp_shop_tab') . '";');
        }


Nope, same error.

kh99 11-13-2009 03:41 PM

Well, I'm almost out of ideas. I tried to actually install that product but I guess there are other files that go with it.

Just to humor me - maybe try another template, this time a simple one, to try to track down whether it's related to the vBExperience stuff or the plugin code.

ETA: actually, also try this:

Code:

                function prepare_output($id = '', $options = array())
        {
                $this->block_data['mymodification'] = fetch_template('exp_shop_tab') ;
        }

which won't look right but might tell us something about the problem.

Mobo 11-13-2009 03:42 PM

I'll try a simple template. You only need to install that plugin and a levels plugin that comes with it in the zip file... just fyi.

--------------- Added [DATE]1258134428[/DATE] at [TIME]1258134428[/TIME] ---------------

I tried putting the template "memberinfo_block_aboutme" which is straight vB and it returned the same error.

Maybe Lynne will take pity on me and look into it more. I've actually learned quite a bit form other things she has helped me on!

kh99 11-13-2009 03:48 PM

OK - sorry I couldn't help.

Mobo 11-13-2009 03:49 PM

No need to be sorry, thank you very much for trying to help!

Lynne 11-13-2009 03:55 PM

I removed the plugin/product from your post. You may not post someone else's product without their permission.

Mobo 11-13-2009 08:42 PM

Ahh, sorry about that and thanks!


All times are GMT. The time now is 12:30 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.02169 seconds
  • Memory Usage 1,728KB
  • 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
  • (3)bbcode_code_printable
  • (1)bbcode_quote_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
  • (10)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