MyBB Community Forums

Full Version: How to show DVZ Shoutbox in every pages?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I tried
https://community.mybb.com/thread-156080...pid1202765

but it didn't work. How do I show DVZ Shoutbox in every pages?
Okay listen,

open you DVS inc/plugins/DVz_Shoutboux.php

stick this code in your shoutbox, you will see, at the beginning of the file, where you see the hooks.

$plugins->add_hook('CUSTOM_PAGE_start',    ['dvz_shoutbox', 'load_window']);
/ / load Shoutbox window to {$dvz_shoutbox} variable


or use a mybb page like

$plugins->add_hook('forumdisplay_start',    ['dvz_shoutbox', 'load_window']);
/ / load Shoutbox window to {$dvz_shoutbox} variable

your custom page must have this inside, it is called a hook

$plugins->run_hooks('CUSTOM_PAGE_start');.


#1 SO, PLACE THE HOOK IN YOUR CUSOM PAGE

$plugins->run_hooks('CUSTOM_PAGE_start');


#2 AND PLACE THE HOOK IN DVS_SHOUTBOX
$plugins->add_hook('CUSTOM_PAGE_start',    ['dvz_shoutbox', 'load_window']);
/ / load Shoutbox window to {$dvz_shoutbox} variable

NOW YOU CAN USE {$dvz_shoutbox} in your custom page, sorry caps got stuck,

there is no #3

let me know if you need any more guide