BRotondi
03-27-2009, 07:31 AM
Hello
I'm working on a MediaWiki-link to vBulletin (MediaWiki/vBulletin Single Sign-On (https://vborg.vbsupport.ru/showthread.php?p=1777570#post1777570)). Next Step: Hardlinks MediaWiki-Discussion -> vBulletin-Forum. (Each Article has his own Forum, not only a Thread)
After working me into the vBulletin-Code I realized, that simple SQL won’t update the vBulletin-Cache and perhaps is a too quick and dirty way to achieve my two goals:
a) How to determine the $forumid of a forum? ID_ParentForum and Page Title are known. The SQL-Query is:$sql = 'SELECT `forumid` FROM `forum` WHERE `parentid` = "[ID_ParentForum]" AND `title` = "[Page Title]";(here "dirty SQL" ignoring the cache won't do any harm)
b) If there is no forum with this Name in ID_ParentForum I want to create it. vBulletin does this through forum.php > $_POST (line 246) but there is perhaps an easier way to achieve this without “emulating” the form.
I think there must be already code out there to achieve these two points...
Any help very appreciated! Thanks!
Bruno
I'm working on a MediaWiki-link to vBulletin (MediaWiki/vBulletin Single Sign-On (https://vborg.vbsupport.ru/showthread.php?p=1777570#post1777570)). Next Step: Hardlinks MediaWiki-Discussion -> vBulletin-Forum. (Each Article has his own Forum, not only a Thread)
After working me into the vBulletin-Code I realized, that simple SQL won’t update the vBulletin-Cache and perhaps is a too quick and dirty way to achieve my two goals:
a) How to determine the $forumid of a forum? ID_ParentForum and Page Title are known. The SQL-Query is:$sql = 'SELECT `forumid` FROM `forum` WHERE `parentid` = "[ID_ParentForum]" AND `title` = "[Page Title]";(here "dirty SQL" ignoring the cache won't do any harm)
b) If there is no forum with this Name in ID_ParentForum I want to create it. vBulletin does this through forum.php > $_POST (line 246) but there is perhaps an easier way to achieve this without “emulating” the form.
I think there must be already code out there to achieve these two points...
Any help very appreciated! Thanks!
Bruno