Zarejestruj się na BitBay.net
Home > PHP > IPB 1.3 final pod PHP5

IPB 1.3 final pod PHP5

Invision Power BoardIPB 1.2, 1.3 i 1.3.1 nie jest w 100% kompaktybilne z PHP5. Wiele firm
świadcących usługi hostingowe uaktualnia swoje oprogramowanie i w tym
PHP do najnowsysch wersji. W związku z czym koniecznich jest kilka
zmian w plikach. Na początku trzeba koniecznie zrobić kopię
plików w których będą dokonywane zmiany.

Pliki do edycji:


    sources/Profile.php

    sources/Usercp.php

    sources/misc/contact_member.php

    sources/misc/stats.php

Krok 1: (Edytujemy sources/Profile.php)

Szukamy:

        var $parser;

Zmieniamy na:

        //var $parser;

Krok 2: (Edytujemy sources/Usercp.php)

Szukamy:

        var $parser;

Zmieniamy na:

        //var $parser;

Krok 3: (Edytujemy sources/misc/contact_member.php)

Szukamy:

  var $email     = "";
  var $forum     = "";
  var $email     = "";

Zamieniamy na:

  //var $email     = "";
  var $forum     = "";
  var $email     = "";

Szukamy:

  $DB->query("SELECT m.name, m.email, mod.member_id FROM ibf_moderators mod, ibf_members m WHERE mod.forum_id='$fid' and mod.member_id=m.id");

Zamieniamy na:

   DB->query("SELECT m.name, m.email, moder.member_id FROM ibf_moderators moder, ibf_members m WHERE moder.forum_id='$fid' and moder.member_id=m.id");

Krok 4: (Edytujemy sources/misc/stats.php):

Szukamy:
   //--------------------------------------------
   // Do we have any moderators? NORMAL MODS 1st
   //--------------------------------------------

   $DB->query("SELECT m2.id, m2.name, m2.email, m2.hide_email, m2.location, m2.aim_name, m2.icq_number,
                      f.id as forum_id, f.read_perms, f.name as forum_name, c.state
               FROM ibf_moderators mod
                 LEFT JOIN ibf_forums f ON(f.id=mod.forum_id)
                 LEFT JOIN ibf_categories c ON(c.id=f.category AND c.state != 0)
                 LEFT JOIN ibf_members m2 ON (mod.member_id=m2.id)
               ");

Zmieniamy na:

   //--------------------------------------------
   // Do we have any moderators? NORMAL MODS 1st
   //--------------------------------------------

   $DB->query("SELECT m2.id, m2.name, m2.email, m2.hide_email, m2.location, m2.aim_name, m2.icq_number,
                      f.id as forum_id, f.read_perms, f.name as forum_name, c.state
               FROM ibf_moderators moder
                 LEFT JOIN ibf_forums f ON(f.id=moder.forum_id)
                 LEFT JOIN ibf_categories c ON(c.id=f.category AND c.state != 0)
                 LEFT JOIN ibf_members m2 ON (moder.member_id=m2.id)
               ");

Krok 5 tylko dla IPB 1.3 i 1.3.1 !!!: (Edytujemy sources/misc/stats.php)

Szukamy:

   //--------------------------------------------
   // Do we have any moderators? GROUP MODS 1st
   //--------------------------------------------

   $DB->query("SELECT m.id, m.name, m.email, m.hide_email, m.location, m.aim_name, m.icq_number,
                      f.id as forum_id, f.read_perms, f.name as forum_name, c.state
               FROM ibf_moderators mod
                 LEFT JOIN ibf_forums f ON(f.id=mod.forum_id)
                 LEFT JOIN ibf_categories c ON(c.id=f.category AND c.state != 0)
                 LEFT JOIN ibf_members m ON ((mod.is_group=1 and mod.group_id=m.mgroup))
               ");

Zmieniamy na:

   //--------------------------------------------
   // Do we have any moderators? GROUP MODS 1st
   //--------------------------------------------

   $DB->query("SELECT m.id, m.name, m.email, m.hide_email, m.location, m.aim_name, m.icq_number,
                      f.id as forum_id, f.read_perms, f.name as forum_name, c.state
               FROM ibf_moderators moder
                 LEFT JOIN ibf_forums f ON(f.id=moder.forum_id)
                 LEFT JOIN ibf_categories c ON(c.id=f.category AND c.state != 0)
                 LEFT JOIN ibf_members m ON ((moder.is_group=1 and moder.group_id=m.mgroup))
               ");

Krok 6 tylko dla IPB 1.2 !!!: (Edytujemy sources/misc/stats.php):
Szukamy:

   //--------------------------------------------
       // Do we have any moderators?.
       //--------------------------------------------

       $DB->query("SELECT m.id, m.name, m.email, m.hide_email, m.location, m.aim_name, m.icq_number,
                       f.id as forum_id, f.read_perms, f.name as forum_name, c.state
                FROM ibf_members m, ibf_categories c
                  LEFT JOIN ibf_moderators mod ON((m.id=mod.member_id or (mod.is_group=1 and mod.group_id=m.mgroup)))
                  LEFT JOIN ibf_forums f ON(f.id=mod.forum_id)
                WHERE c.id=f.category AND c.state != 0");

Zamieniamy na:

   //--------------------------------------------
       // Do we have any moderators?.
       //--------------------------------------------

       $DB->query("SELECT m.id, m.name, m.email, m.hide_email, m.location, m.aim_name, m.icq_number,
                       f.id as forum_id, f.read_perms, f.name as forum_name, c.state
                FROM ibf_members m, ibf_categories c
                  LEFT JOIN ibf_moderators moder ON((m.id=moder.member_id or (moder.is_group=1 and moder.group_id=m.mgroup)))
                  LEFT JOIN ibf_forums f ON(f.id=moder.forum_id)
                WHERE c.id=f.category AND c.state != 0");
Kategorie:PHP Tagi:, ,
  1. Brak komentarzy
  1. Brak jeszcze trackbacków

*