vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4 Articles (https://vborg.vbsupport.ru/forumdisplay.php?f=242)
-   -   [HOW-TO vB4] Create a Widget using Plugins and Templates (https://vborg.vbsupport.ru/showthread.php?t=236245)

Draffi 08-07-2012 06:05 PM

Thank you for this.

With this one, it was possible for me to show the [DBTECH]Shoutbox in the CMS as a widget !!!

BUT i have no right colum - it is not showing....

I think, this part what i`m using in the Plugin-Step is wrong, can somebody help me?

Code:

vB_Template:('vbcms_widget_MyWidget');
or maybe my self-created template has not enough code inside...

Code:

<div>{vb:raw show.vbshout_instance1}</div>
Thank you in advance!

Amenadiel 10-01-2014 06:17 PM

Quote:

Originally Posted by Badshah93 (Post 2343585)
if someone wants to create Widget as per this article

Change the hook:
global_start to vbcms_process_widget_complete

and when you are creating new widget (Static Html)
do enter something in that box, else widget won't display.

I found out that the vbcms_process_widget_complete hook works, but it seems to be inside of a function, so you have to prepend

PHP Code:

global $vbulletin

for the plugin to work.

Scalemotorcars 02-26-2019 08:28 PM

Can someone update this article to work on 4.2.2 or later?

I followed all the steps and the instruction in the posts above and all I could get is the basic HTLM to display. I can't pull in a template with vb:raw at all. Even following the instructions exactly with the code provided and the updates above it still wouldn't pull in any vb:raw info.

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

Quote:

Originally Posted by Amenadiel (Post 2517287)
I found out that the vbcms_process_widget_complete hook works, but it seems to be inside of a function, so you have to prepend

PHP Code:

global $vbulletin

for the plugin to work.

Can you elaborate on what this means? Sorry I know some PHP but I'm not sure how to implement this fix.

Thanks.


All times are GMT. The time now is 07:26 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.01570 seconds
  • Memory Usage 1,726KB
  • 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_code_printable
  • (2)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete