2005-10-18, 06:57 PM
Is it possible to create another portal? As in, I'm using the current one, but I want one just for News (as far as the Mac World is concerned). Possible?
$query = $db->query("SELECT * FROM ".TABLE_PREFIX."forums WHERE fid='".$mybb->settings['portal_announcementsfid']."'");
And add the following code before the above:$mybb->settings['portal_announcementsfid'] = 4;
Replace 4 with your announcement forum ID.DennisTT Wrote:Yeah, just duplicate the existing portal.php, then find:How would one go about making templates for the new portal?
And add the following code before the above:$query = $db->query("SELECT * FROM ".TABLE_PREFIX."forums WHERE fid='".$mybb->settings['portal_announcementsfid']."'");
Replace 4 with your announcement forum ID.$mybb->settings['portal_announcementsfid'] = 4;
If you would like to change other parts of the portal, then you will need to make additional modifications.
$templatelist = "portal_welcome,portal_welcome_membertext,portal_stats,portal_search,portal_whosonline_memberbit,portal_whosonline,portal_latestthreads_thread_lastpost,portal_latestthreads_thread,portal_latestthreads,portal_announcement_numcomments_no,portal_announcement,portal_announcement_numcomments,portal";
and all of these things:eval("\$pms = \"".$templates->get("portal_pms")."\";");