Quote:
Originally Posted by Marv
It?s nice to see, what others come up with (even when this thread should be about the portation of Jaxels Addon). Nick, are you still developing your mod further on?
|
To add an accossiated thread per event is just 5 lines of code witn 1st and last of them depending on which addon I'm using it
Code:
$sql_forum = $db->query_first("SELECT forumid FROM ".TABLE_PREFIX."gallery_categories WHERE id=$categoryid LIMIT 1");
$foruminfo = fetch_foruminfo($sql_forum['forumid']);
build_new_post('thread', $foruminfo, array(), array(), $newpost, $errors);
$threadid = $newpost['threadid'];
$db->query_write("UPDATE ".TABLE_PREFIX."gallery_albums SET threadid=$threadid WHERE id=$albumid");