| Mod Description | Makes Invisionboard 1.3 compatible with nyMSQL5 |
| Mod Compatibility | Invision Power Board 1.3 |
| Mod Category | Major Mod |
| Mod Author | Peter |
| Mod Author's Email | Peter@ibforen.de |
| Info File | sources/mods/mysql5/mod_mysql5_howto.htm |
| Mod Version | 1.0.2 |
| Comment | Distribution is not allowed. Download from ibforen.de All changes could be recognized by mod_token This html-howto was created with The ModInstaller 1.3.2 by Peter@ibforen.de, released on 29th January, 2007 Creation time 2009-01-23 It is not for public use. Attention
|
| Mod Token | mod_mysql5 |
| Changed file | Changed function |
| sources/Boards.php | Boards(..) |
| sources/Drivers/mySQL.php | query(..) |
| sources/dynamiclite/csite.php | click_site(..) |
| sources/dynamiclite/csite.php | _show_poll(..) |
Find in function Boards(..)
|
$DB->query("SELECT f.*, c.id as cat_id, c.position as cat_position, c.state as cat_state, c.name as cat_name, c.description as cat_desc, |
|
//-- mod_mysql5 begin if (TRUE) $DB->query("SELECT f.*, c.id as cat_id, c.position as cat_position, c.state as cat_state, c.name as cat_name, c.description as cat_desc, c.image, c.url, m.member_name as mod_name, m.member_id as mod_id, m.is_group, m.group_id, m.group_name, m.mid FROM ibf_categories c,ibf_forums f LEFT JOIN ibf_moderators m ON (f.id=m.forum_id) WHERE c.id=f.category ORDER BY c.position, f.position"); else //-- mod_mysql5 end $DB->query("SELECT f.*, c.id as cat_id, c.position as cat_position, c.state as cat_state, c.name as cat_name, c.description as cat_desc, |
A. Find in function click_site(..)
|
if ( $ibforums->vars['vb_configured'] ) { |
|
//-- mod_mysql5 begin if (TRUE) if ( $ibforums->vars['vb_configured'] ) $DB->query("SELECT t.*, f.read_perms, f.use_html, p.*, m.avatar, m.view_avs, m.avatar_size, m.id as member_id, m.name as member_name, m.mgroup, g.g_id, g.g_dohtml FROM ibf_posts p LEFT JOIN ibf_topics t ON (t.tid=p.topic_id) LEFT JOIN ibf_forums f ON (f.id=p.forum_id) LEFT JOIN ibf_members m ON (p.author_id=m.id) LEFT JOIN ibf_groups g ON (g.g_id=m.mgroup) WHERE t.approved=1 AND t.moved_to IS NULL AND p.forum_id IN (-1{$ibforums->vars['csite_article_forum']}) $qe GROUP BY p.topic_id ORDER BY t.pinned DESC, p.post_date DESC LIMIT 0,$limit"); else $DB->query("SELECT t.*, f.read_perms, f.use_html, p.*, m.avatar, m.view_avs, m.avatar_size, m.id as member_id, m.name as member_name, m.mgroup, g.g_id, g.g_dohtml FROM ibf_topics t LEFT JOIN ibf_members m ON (t.starter_id=m.id) LEFT JOIN ibf_groups g ON (g.g_id=m.mgroup) LEFT JOIN ibf_posts p ON (p.topic_id=t.tid) LEFT JOIN ibf_forums f on (f.id=p.forum_id) WHERE t.forum_id IN (-1{$ibforums->vars['csite_article_forum']}) $qe AND p.new_topic=1 AND t.approved=1 AND (t.moved_to IS NULL or t.moved_to='') ORDER BY t.pinned DESC, t.start_date DESC LIMIT 0,$limit"); else //-- mod_mysql5 end if ( $ibforums->vars['vb_configured'] ) { |
B. Find in function _show_poll(..)
|
$DB->query("SELECT t.tid, t.title, t.state, t.last_vote, p.* $sql |
|
//-- mod_mysql5 begin if (TRUE) { if ($extra) $DB->query("SELECT t.tid, t.title, t.state, t.last_vote, p.*, v.member_id as member_voted FROM ibf_polls AS p, ibf_topics AS t LEFT JOIN ibf_voters v ON (v.tid=t.tid) WHERE t.tid=$tid AND p.tid=t.tid AND v.member_id={$ibforums->member['id']}"); else $DB->query("SELECT t.tid, t.title, t.state, t.last_vote, p.* FROM ibf_polls AS p, ibf_topics AS t WHERE t.tid=$tid AND p.tid=t.tid"); } else //-- mod_mysql5 end $DB->query("SELECT t.tid, t.title, t.state, t.last_vote, p.* $sql |
Find in function query(..)
|
if ($this->obj['debug']) { global $Debug, $ibforums; |
|
//-- mod_mysql5 begin if (!preg_match("`^create\s`ims", $the_query) && !preg_match("`^select\s`ims", $the_query)) $the_query = preg_replace("`([^\\\])''`", "\\1NULL", $the_query); //-- mod_mysql5 end if ($this->obj['debug']) { global $Debug, $ibforums; |