Bug There are no Block Type of Sidebar when Add new block

Status
Not open for further replies.

djFarsang

Customer
I want to show vBNominate in Forum Block but there are no Block Type of Sidebar when clicked at Add new block.
 
With nominations I didn't create the block that way. There should have been a block manually created there but not visible? If you don't have it let me know and I'll give you the code to create one. Next version I'll probably add a type.
 
ACP / Forums & Moderators / Forum Blocks Manager then choose Add Block.

Select Block Type = Custom HTML/PHP

And set it up like this:
nomnom.webp

In the box Content add the following:
PHP:
global $vbulletin, $vbphrase;

		if ($vbulletin->options['dbtech_vbnomnom_for_enabled'])
		{
			if (!class_exists('VBNOMINATE'))
			{
			// Fetch required classes
			require_once(DIR . '/dbtech/vbnominate/includes/class_core.php');
			VBNOMINATE::init($vbulletin);
			}

			$sidebar_data = VBNOMINATE::fetch_display_sidebar($vbulletin->options['dbtech_vbnomnom_for_num']);
			return $sidebar_data;
		}

In the box Template to Use add the following:
Code:
dbtech_vbnomnom_sideblock

That should re create the block as it was on install of the product. :)
 
Status
Not open for further replies.

Legacy vBNominate

vBulletin 4.x.x
Seller
DragonByte Technologies
Release date
Last update
Total downloads
304
Customer rating
0.00 star(s) 0 ratings
Back
Top