To add the options into the vBulletin Control Panel do the following.
Take this out:
// News ForumID This is set to the Forumid of your news forum
$newsforum = 2;
// News Limit -- How many stories should be displayed?
$newslimit = 3;
And insert the following rows into your SettingsGroupTable.
INSERT INTO settinggroup VALUES ( NULL, 'vBPortal', '34');
Find SettingGroup ID for above.
And these into the Settings table:
INSERT INTO setting (settingid, settinggroupid, title, varname, value, description, optioncode, displayorder)
VALUES (NULL, '34', 'News Forum', 'newsforum', '2', 'Enter the forum you wish to use for announcements and news for your Community Portal', '', '1')
INSERT INTO setting (settingid, settinggroupid, title, varname, value, description, optioncode, displayorder)
VALUES (NULL, '34', 'News Limit', 'newslimit', '3', 'How many news articles do you wish to display on the Community Portal Page.', '', '2')
Make sure to change the '34' for settinggroupid to the appropriate value in the insert statements above so they show up correctly. You could have more or less setting groups depending on how many hacks you have installed.