News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Instalação Adk Portal V2.0 Beta 2 Manualmente

Started by lucas-ruroken, February 03, 2010, 11:53:21 AM

Previous topic - Next topic

lucas-ruroken

Link para baixar o Mod:



Bem, vou explicar como instalar Adk Portal v2.0 Beta 2 manual ....
o que vamos fazer é descomprimir o ficheiro que esta em zip no teu PC, em seguida, pegue o ficheiro db_install_adkportal.php e ponha dentro da  raiz do  fórum e executá-lo, como ... teuforum.com/ db_install_adkportal.php.

Bem, o que vamos fazer agora é abrir o nosso ftp e fazer o upload do conteúdo das pastas Fontes, Temas e adkportal para seus respectivos lugares e agora para  instalação manual dos nossos ficheiros ....

Abrir  Sources / Subs.php:

Pesquisar
         'home' => array(
            'title' => $txt['home'],
            'href' => $scripturl,
            'show' => true,
            'sub_buttons' => array(
            ),
            'is_last' => $context['right_to_left'],
            // 'target' => '_blank',
         ),


Adicionar

         'forum' => array(
            'title' => $txt['foro'],
            'href' => $scripturl . '?action=forum',
            'show' => ($modSettings['adk_enable'] == 1) ? 1 : 0,
            'sub_buttons' => array(
            ),
         ),



Sources/ManagePermissions.php
Pesquisar
$groupLevels['global']['standard'] = array_merge($groupLevels['global']['restrict'], array(

acrescentar depois
      'adk_portal',

Pesquisar
$permissionList = array(
      'membergroup' => array(


Adicionar depois
'adk_portal' => array(false, 'adkportal', 'adkportal'),


/index.php

Pesquisar
      'who' => array('Who.php', 'Who'),

substituir por
      'forum' => array('BoardIndex.php', 'BoardIndex'),
      'portal' => array('Adkportal.php', 'Adkportal'),     
      'who' => array('Who.php', 'Who'),


Pesquisar
require_once($sourcedir . '/Security.php');

Adicionar depois
require_once($boarddir . '/SSI.php');
require_once($sourcedir . '/Subs-adkfunction.php');


Pesquisar
      // Action and board are both empty... BoardIndex!
      if (empty($board) && empty($topic))
      {
         require_once($sourcedir . '/BoardIndex.php');
         return 'BoardIndex';
      }


substituir por
      //Adk Portal
      global $modSettings;
      // Action and board are both empty... BoardIndex!
      if (empty($board) && empty($topic) && $modSettings['adk_enable'] == 1)
      {
         require_once($sourcedir . '/Adkportal.php');
         return 'Adkportal';
      }
      if (empty($board) && empty($topic))
      {
         require_once($sourcedir . '/BoardIndex.php');
         return 'BoardIndex';
      }



Sources/QueryString.php
Pesquisar
   // Return the changed buffer.

substituir por

      if ($modSettings['adk_enable'] == 1)
      {
         $buffer = preg_replace('/Simple Machines LLC<\/a>/','Simple Machines LLC</a><table align="center"><tr><td height="20"><br />Powered by <a href="http://www.smfpersonal.net" target="_blank" title="Adk Portal - Powered By Smf Personal">Adk Portal V2.0 Beta 2 &copy;</a></td></tr></table>',$buffer);
      }
   // Return the changed buffer.


Sources/Admin.php

Pesquisar
      'layout' => array(
         'title' => $txt['layout_controls'],


adicionar antes
      'adk_portal' => array(
         'title' => $txt['adk_portal'],
         'permission' => array('adk_portal'),
         'areas' => array(
            'adkoptions' => array(
               'label' => $txt['opcion_adk'],
               'file' => 'adkoptions.php',
               'function' => 'Adkoptions',
               'custom_url' => $scripturl . '?action=admin;area=adkoptions;sesc=' . $sc,
               'icon' => 'mail.gif',
               'permission' => array('adk_portal'),
               
            ),
            'blocks' => array(
               'label' => $txt['bloques'],
               'file' => 'blocks.php',
               'function' => 'blocks',
               'custom_url' => $scripturl . '?action=admin;area=blocks;sesc=' . $sc,
               'icon' => 'server.gif',
               'permission' => array('adk_portal'),
               
            ),
            'newblock' => array(
               'label' => $txt['crear_block'],
               'file' => 'newblock.php',
               'function' => 'newblock',
               'custom_url' => $scripturl . '?action=admin;area=newblock;sesc=' . $sc,
               'icon' => 'boards.gif',
               'permission' => array('adk_portal'),
               
            ),
            'generar' => array(
               'label' => $txt['nueva_noticia'],
               'file' => 'generar.php',
               'function' => 'Generar',
               'custom_url' => $scripturl . '?action=admin;area=generar;sesc=' . $sc,
               'icon' => 'posts.gif',
               'permission' => array('adk_portal'),
               
            ),
            'newsdel' => array(
               'label' => $txt['borrar_noticias'],
               'file' => 'newsdel.php',
               'function' => 'Newsdel',
               'custom_url' => $scripturl . '?action=admin;area=newsdel;sesc=' . $sc,
               'icon' => 'smiley.gif',
               'permission' => array('adk_portal'),
               
            ),
            'editblock' => array(
               'file' => 'editblock.php',
               'function' => 'editblock',
               'custom_url' => $scripturl . '?action=admin;area=editblock;sesc=' . $sc,
               'permission' => array('adk_portal'),
               
            ),
           
         ),
      ),   




Sources/Subs-BoardIndex.php

Pesquisar
               'href' => $scripturl . '#c' . $row_board['id_cat'],

substituí-lo
               'href' => $scripturl . '?action=forum#c' . $row_board['id_cat'],


Sources/Recent.php
Pesquisar
            'url' => $scripturl . '#c' . (int) $_REQUEST['c'],


Substituir por
            'url' => $scripturl . '?action=forum#c' . (int) $_REQUEST['c'],

Pesquisar
            'href' => $scripturl . '#c' . $row['id_cat'],
            'link' => '<a href="' . $scripturl . '#c' . $row['id_cat'] . '">' . $row['cname'] . '</a>'


Substituir por
            'href' => $scripturl . '?action=forum#c' . $row['id_cat'],
            'link' => '<a href="' . $scripturl . '?action=forum#c' . $row['id_cat'] . '">' . $row['cname'] . '</a>'


Sources/Load.php
Pesquisar
            'url' => $scripturl . '#c' . $board_info['cat']['id'],

Substituir
            'url' => $scripturl . '?action=forum#c' . $board_info['cat']['id'],

Pesquisar
   // Set the top level linktree up.
   array_unshift($context['linktree'], array(
      'url' => $scripturl,
      'name' => $context['forum_name_html_safe']
   ));


substituí-lo
// Removed old

Pesquisar
   // Compatibility.
   if (!isset($settings['theme_version']))
      $modSettings['memberCount'] = $modSettings['totalMembers'];


Substituir
   // Compatibility.
   if (!isset($settings['theme_version']))
      $modSettings['memberCount'] = $modSettings['totalMembers'];
           
   
   array_unshift($context['linktree'], array(
      'url' => $scripturl,
      'name' => $context['forum_name']
   ), array('url' => $scripturl . '?action=forum', 'name' => $txt['foro']));


Abra a Temas / default / Modifications.suidioma.php e antes de ?>
Adicionar:

$txt['adk_guest'] = 'Visitante';
$txt['added_portal'] = 'Adicionar ao portal por';
$txt['txt_top_poster'] = 'N&uacute;mero de utilizadores no "Top Postes"';
$txt['txt_ultimos_mensajes'] = 'N&uacute;mero de not&iacute;cias em "Ultimas Mensagens';
$txt['colapse_left'] = 'Expandir ou colapse na coluna da esquerda ';
$txt['colapse_right'] = 'Expandir ou colapse na coluna da direita ';
$txt['maybe_changes'] = 'Talvez, as mudan&ccedil;as n&atilde;o reflete aqui!';
$txt['hi_all'] = 'olá!';
$txt['topic_started'] = 'T&oacute;pico Criado por';
$txt['adk_posts'] = 'Messagens';
$txt['cantidad_noticias'] = 'Not&iacute;cias na página';         
$txt['c_aportes'] = 'N&uacute;mero de postes';
$txt['block_ltb'] = 'Bloco:&uacute;ltimo t&oacute;pico no f&oacute;rum ';
$txt['id_forum'] = 'Id do f&oacute;rum(separado com -):';         
$txt['news_smfp'] = 'Directo de Smf Personal (Adk Portal)';         
$txt['width_portal'] = 'Largura do f&oacute;rum';         
$txt['adkportal_activate'] = 'Activar AdkPortal';         
$txt['opcion_adk'] = 'Defini&ccedil;&otilde;es';
// Permissions
$txt['permissiongroup_adkportal'] = 'Adk Portal';
$txt['permissiongroup_simple_adkportal'] = 'Usar Adk Portal';
$txt['permissionname_adk_portal'] = 'Gerir Adkportal';
$txt['permissionhelp_adk_portal'] = 'Permite que o grupo selecionado administradores Adk Portal';
$txt['cannot_adk_portal'] = 'Voc&ecirc; n&atilde;o tem permiss&atilde;o para gerir Adk Portal';
$txt['portal'] = 'Portal';
$txt['adk_portal'] = 'ADK Portal';
//Blocks
$txt['afiliados'] = 'Parceiros';
$txt['welcome'] = 'Bem Vindo!';
$txt['estadis'] = 'Estat&iacute;sticas';
$txt['user'] = 'Utilizador';
$txt['welcome_guest'] = 'Bem vindo visitante Por Favor';
$txt['login'] = 'Entrar';
$txt['or'] = 'ou';
$txt['register'] = 'Registar-se';
$txt['menu_foro'] = 'Menu do F&oacute;rum';
$txt['new_post'] = 'Novo Postes';
$txt['new_msg'] = 'Novas Mensagens';
$txt['users'] = 'Utilizador';
$txt['search'] = 'Pesquisar';
$txt['faq'] = 'Faq';
$txt['menu_personal'] = 'Menu pessoal';
$txt['perfil'] = 'Perfil';
$txt['ingresar'] = 'Entrar';
$txt['mis_mensajes'] = 'Minhas Messagens';
$txt['admin'] = 'Adminstrador';
$txt['salir'] = 'Sair';
$txt['foro'] = 'F&oacute;rum';
$txt['ultima_pagina'] = 'Ir para a &Uacute;ltima p&aacute;gina';
$txt['pagina_siguiente'] = 'Ir para a pr&oacute;xima p&aacute;gina';
$txt['1_pag'] = 'Ir para a primeira p&aacute;gina';
$txt['ant_pag'] = 'Ir para a p&aacute;gina anterior';
$txt['go_pag'] = 'Ir para a página';
$txt['basado'] = 'Baseado no bloco do<font color=#ff0000>ElWiZArD</font>';
$txt['news'] = 'Not&iacute;cias e Newsletters';
$txt['menu_prin'] = 'Menu Principal';
$txt['noticias'] = 'Not&iacute;cias';
$txt['editar'] = 'Editar';
$txt['borrar'] = 'Apagar';
$txt['top_poster'] = 'Top Postes';
$txt['ultimos_temas'] = '&Uacute;ltimos T&oacute;picos';
$txt['who_is'] = 'Quem está online?';
$txt['bloques'] = 'Blocos';
$txt['edit_news'] = 'Editar as Not&iacute;cias';
$txt['nueva_noticia'] = 'Criar Not&iacute;cias';
$txt['crear_block'] = 'Criar BlocO';
$txt['borrar_noticias'] = 'Apagar as Not&iacute;cias';
$txt['banner'] = 'Baner';
$txt['url'] = 'Url (com http://)';
$txt['titulo'] = 'T&iacute;tulo';
$txt['descrip'] = 'Descri&ccedil;&atilde;o';
$txt['save'] = 'Gravar';
$txt['borrar_afiliados'] = 'Apagar os Afiliados';
$txt['id'] = 'Id:';
$txt['adk_settings'] = 'Op&ccedil;&otilde;es';
$txt['cleft'] = 'Activar a Coluna Esquerda?';
$txt['cright'] = 'Activar a Coluna Direita?';
$txt['yes'] = 'Sim';
$txt['no'] = 'n&atilde;o';
$txt['news_portal'] = 'Quantidade de p&aacute;gina das not&iacute;cias?';
$txt['title_adkk'] = 'T&iacute;tulo';
$txt['go_to_p'] = 'Ir para a p&aacute;gina:';
$txt['ulti_click'] = '&Uacute;ltimo Clique';
$txt['by'] = 'Por';
$txt['left'] = 'Esquerdo';
$txt['centro'] = 'centro';
$txt['posicion'] = 'Posi&ccedil;&atilde;o';
$txt['columna'] = 'Coluna';
$txt['activado'] = 'Activado?';
$txt['derecha'] = ' Direito';
$txt['nota_bloque'] = 'Nota: Para activar os blocos deve colocar  1  e para deactivar tem que colocar 0';
$txt['datos_noticias'] = 'Data das Not&iacute;cias';
$txt['aporte'] = ' Contribui&ccedil;&atilde;o';
$txt['autor'] = 'Actor';
$txt['titulo_noticia'] = 'T&iacute;tulo da not&iacute;cia';




finalmente, abrir o Themes / default / Who.teuidioma.php e antes ?>
adicionar:

// Begin AdkPortal
$txt['whoall_forum'] = 'Vendo o índice do <a href="' . $scripturl . '">' . $context['forum_name'] . '</a>.';   
Adk Portal 3.1 is coming....

Design your universe!

vagner2000

Hello, just installed Adk Portal 2.0 on an SMF forum 2.0.1, I made the changes to all files manually (reviewed and everything seems ok), appears in the Admin Portal ADK but when I click on any item it appears the following error:

PHP Fatal error: require_once () [function.require <a href='function.require'> [/ url]]: Failed opening required 'E: \ home \ xxx \ Web \ xxx / Sources / adkoptions.php' (include_path = '. c: \ php5 \ includes') in E: \ home \ xxxxx \ Web \ xxx \ Sources \ admin.php on line 562


I looked everywhere adkoptions.php this file that it refers to but not found.
I'm racking my brain for more than eight hours and not encounter the problem. Can anyone help me?
thanks
Comunidade RPG Maker Brasileira

www.jogosrpg.com.br

vagner2000

Desculpe esqueci que o post está em PT/BR

Olá, acabei de instalar o Adk Portal 2.0 em um fórum SMF 2.0.1, fiz as alterações em todos arquivos manualmente (revisei e parece estar tudo ok), no Admin aparece ADK PORTAL porém quando clico em qualquer ítem dele aparece o seguinte erro:

PHP Fatal error:  require_once() [<a href='function.require'>function.require[/url]]: Failed opening required 'E:\home\xxx\Web\xxx/Sources/adkoptions.php' (include_path='.;c:\php5\includes') in E:\home\xxxxx\Web\xxx\Sources\Admin.php on line 562


Procurei em todo canto esse arquivo adkoptions.php que ele se refere mas não encontrei.
Estou quebrando a cabeça há mais de 8 horas e não encontro o problema. Será que alguém pode me ajudar?
Obrigado
Comunidade RPG Maker Brasileira

www.jogosrpg.com.br

Advertisement: