IPB13 For mySQL5  1.0.2  Invision Power Board 1.3
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
  • This modification is no freeware.
  • Redistribution of this howto or of one of the mod files is prohibited. Redistribution of the mod or its files only with my authorisation.
  • Customizing of the mod, in order to fit your board's skin, is welcomed. Share your experiences with the community.But do not hurt my copyright by distributing code segment derivated from this mod.
  • Violation of these rules will finally let me stop any production of free available modifications or programs. Please, respect the creative work of coders and take care of their copyrights.
Mod Token mod_mysql5

 Content

1 Newest History and Change Logs
2 Changes
3 Copy
4 Code
5 Customize
6 Comment
7 Older Change History and Change Logs

 1.  Newest History and Change Logs

Version 1.0.2


 2.  Changes
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(..)

 3.  Copy



 4.  Code


Step  1:  Open sources/Boards.php

  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,

     Insert above the blue code



//-- 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,


Step  2:  Open sources/dynamiclite/csite.php

  A. Find in function click_site(..)

        if ( $ibforums->vars['vb_configured'] )
        {

     Insert above the blue code



//-- 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

     Insert above the blue code



//-- 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


Step  3:  Open sources/Drivers/mySQL.php

  Find in function query(..)

        if ($this->obj['debug'])
        {
            global $Debug, $ibforums;

     Insert above the blue code



//-- 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;

 5.  Customize

Manual Installation


Do not install this mod manually. Use The ModInstaller, it is so easy.

Please ? You really want to install it manually against my recommendation ?

Ok, copy ./sources/mods/mysql5/mod_mysql5_install.php into the root dir of your ipb. That is that directory where index.php and admin.php reside.

Then run the install script within your browser. It will create the missing tables and fields in your database.

Now add all modification from above to your php files. Plesae modify every occurrency of the given search text. Sometimes that part appears more than one time.



Attention


 6.  Comment



 7.  Older Change History and Change Logs