I got into trouble

A mod witch will add a new links page to your froum.
fully ACP insterface, from where you may add/delete and update link categorys/sub categorys and links.

Moderator: Moderators

Forum rules
The content in this forum is dated Dec. 21 2005 and can be used as Archive only. This Forum is LOCKED and READ ONLY !

I got into trouble

Postby darakhshan on Wed 12. Jan, 2005 18:34

Niels, got into trouble :(
I tried your link mod, updated the db, OK
now I want to modify
where you say find in admin/admin_db_utilities.php

Code: Select all
$tables = array(


Add After

Code: Select all
// Start add - Links MOD
$tables[] = 'links';
// End add - Links MOD




I can not find

Code: Select all
$tables = array 

because that code was changed by
another mod called Complete Database Backup v1.0.1


The mod has made the following modifications:

Code: Select all
#-----[My original code ]------------------------------------------
#
         $tables = array('auth_access', 'banlist', 'categories', 'config', 'disallow', 'forums', 'forum_prune', 'groups', 'posts', 'posts_text', 'privmsgs', 'privmsgs_text', 'ranks', 'search_results', 'search_wordlist', 'search_wordmatch', 'sessions', 'smilies', 'themes', 'themes_name', 'topics', 'topics_watch', 'user_group', 'users', 'vote_desc', 'vote_results', 'vote_voters', 'words');
#
#-----[ has been replaced with this ]----------------------------------
#
         $phpbb_only = (!empty($HTTP_POST_VARS['phpbb_only'])) ? $HTTP_POST_VARS['phpbb_only'] : ( (!empty($HTTP_GET_VARS['phpbb_only'])) ? $HTTP_GET_VARS['phpbb_only'] : 0 );
         switch ( SQL_LAYER )
         {
            case 'mysql':
            case 'mysql4':
               $sql = 'SHOW TABLES';
               $field = "Tables_in_{$dbname}";
               break;
            case 'postgresql':
               $sql = "SELECT relname
                  FROM pg_class
                  WHERE relkind = 'r'
                  AND relname NOT LIKE 'pg\_%'";
               $field = "relname";
               break;
         }
         $result = $db->sql_query($sql);
         while ($row = $db->sql_fetchrow($result))
         {
            $current_table = $row[$field];
            $current_prefix = substr($current_table, 0, strlen($table_prefix));
            if ($phpbb_only && $current_prefix != $table_prefix)
            {
               continue;
            }
            else
            {
               $tables[] = $current_table;
            }
         }




What can I do now I have to put your
Code: Select all
// Start add - Links MOD
$tables[] = 'links';
// End add - Links MOD


somewhere in here

Code: Select all
$phpbb_only = (!empty($HTTP_POST_VARS['phpbb_only'])) ? $HTTP_POST_VARS['phpbb_only'] : ( (!empty($HTTP_GET_VARS['phpbb_only'])) ? $HTTP_GET_VARS['phpbb_only'] : 0 );
         switch ( SQL_LAYER )
         {
            case 'mysql':
            case 'mysql4':
               $sql = 'SHOW TABLES';
               $field = "Tables_in_{$dbname}";
               break;
            case 'postgresql':
               $sql = "SELECT relname
                  FROM pg_class
                  WHERE relkind = 'r'
                  AND relname NOT LIKE 'pg\_%'";
               $field = "relname";
               break;
         }
         $result = $db->sql_query($sql);
         while ($row = $db->sql_fetchrow($result))
         {
            $current_table = $row[$field];
            $current_prefix = substr($current_table, 0, strlen($table_prefix));
            if ($phpbb_only && $current_prefix != $table_prefix)
            {
               continue;
            }
            else
            {
               $tables[] = $current_table;
            }
         }




but do not know where to put it

I suppose it should be at the end of it so I did so and it works .
but am not sure

darakhshan
Poster
Poster
 
Posts: 46
Joined: Sat 15. May, 2004 12:19

Postby strauss on Mon 18. Jul, 2005 21:28

ÏÎÄÀÐÊÈ êàòàëîã Èíòåðíåò ðåñóðñîâ. www.wwwp.ru
strauss
Poster
Poster
 
Posts: 3
Joined: Wed 13. Jul, 2005 07:29


Return to Links [2.0.6/EM]

Who is online

Users browsing this forum: No registered users and 1 guest

cron