2016-01-06, 12:26 PM
If you want to either place the shoutbox (at the top) on All pages, or just Index and Forumdisplay pages here's what you need to know :
If you want it on all pages, make sure you edit the /inc/plugins/dvz_shoutbox.php file, find the line:
(a previous poster in this thread had a problem with this but I think it was due to where the entry was placed in relationship to other entries in this plugins hooks)
If you want it to appear on just the Index and the forumdisplay (the pages where the list of forums are mentioned not where posts are viewed) then you will need to follow the plugins initial instructions to handle the index, but for adding to Forumdisplay you'll need to edit the /inc/plugins/dvz_shoutbox.php file, find the same line as mentioned in the above for all pages and instead add the following line below it:
You can now add that {$dvz_shoutbox} entry into the forumdisplay template.
I hope that saves some time for some of you (considering it took a little while to debug)
If you want it on all pages, make sure you edit the /inc/plugins/dvz_shoutbox.php file, find the line:
$plugins->add_hook('global_start', ['dvz_shoutbox', 'global_start']);
and add after it:$plugins->add_hook('global_end', ['dvz_shoutbox', 'load_window']);
Then just add the {$dvz_shoutbox} entry to your header template.(a previous poster in this thread had a problem with this but I think it was due to where the entry was placed in relationship to other entries in this plugins hooks)
If you want it to appear on just the Index and the forumdisplay (the pages where the list of forums are mentioned not where posts are viewed) then you will need to follow the plugins initial instructions to handle the index, but for adding to Forumdisplay you'll need to edit the /inc/plugins/dvz_shoutbox.php file, find the same line as mentioned in the above for all pages and instead add the following line below it:
$plugins->add_hook('forumdisplay_start', ['dvz_shoutbox', 'load_window']);
You can now add that {$dvz_shoutbox} entry into the forumdisplay template.
I hope that saves some time for some of you (considering it took a little while to debug)