SMF Support > Tutoriais

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

(1/1)

lucas-ruroken:
Link para baixar o Mod:


smfpersonal
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

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

Adicionar


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


Sources/ManagePermissions.php
Pesquisar

--- Code: ---$groupLevels['global']['standard'] = array_merge($groupLevels['global']['restrict'], array(
--- End code ---

acrescentar depois

--- Code: ---      'adk_portal',
--- End code ---

Pesquisar

--- Code: ---$permissionList = array(
      'membergroup' => array(
--- End code ---

Adicionar depois

--- Code: ---'adk_portal' => array(false, 'adkportal', 'adkportal'),
--- End code ---


/index.php

Pesquisar

--- Code: ---      'who' => array('Who.php', 'Who'),
--- End code ---

substituir por

--- Code: ---      'forum' => array('BoardIndex.php', 'BoardIndex'),
      'portal' => array('Adkportal.php', 'Adkportal'),     
      'who' => array('Who.php', 'Who'),
--- End code ---

Pesquisar

--- Code: ---require_once($sourcedir . '/Security.php');
--- End code ---

Adicionar depois

--- Code: ---require_once($boarddir . '/SSI.php');
require_once($sourcedir . '/Subs-adkfunction.php');
--- End code ---

Pesquisar

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

substituir por

--- Code: ---      //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';
      }
--- End code ---


Sources/QueryString.php
Pesquisar

--- Code: ---   // Return the changed buffer.
--- End code ---

substituir por


--- Code: ---      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.
--- End code ---

Sources/Admin.php

Pesquisar

--- Code: ---      'layout' => array(
         'title' => $txt['layout_controls'],
--- End code ---

adicionar antes

--- Code: ---      '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'),
               
            ),
           
         ),
      ),   
--- End code ---



Sources/Subs-BoardIndex.php

Pesquisar

--- Code: ---               'href' => $scripturl . '#c' . $row_board['id_cat'],
--- End code ---

substituí-lo

--- Code: ---               'href' => $scripturl . '?action=forum#c' . $row_board['id_cat'],
--- End code ---


Sources/Recent.php
Pesquisar

--- Code: ---            'url' => $scripturl . '#c' . (int) $_REQUEST['c'],

--- End code ---

Substituir por

--- Code: ---            'url' => $scripturl . '?action=forum#c' . (int) $_REQUEST['c'],
--- End code ---

Pesquisar

--- Code: ---            'href' => $scripturl . '#c' . $row['id_cat'],
            'link' => '<a href="' . $scripturl . '#c' . $row['id_cat'] . '">' . $row['cname'] . '</a>'
--- End code ---

Substituir por

--- Code: ---            'href' => $scripturl . '?action=forum#c' . $row['id_cat'],
            'link' => '<a href="' . $scripturl . '?action=forum#c' . $row['id_cat'] . '">' . $row['cname'] . '</a>'
--- End code ---

Sources/Load.php
Pesquisar

--- Code: ---            'url' => $scripturl . '#c' . $board_info['cat']['id'],
--- End code ---

Substituir

--- Code: ---            'url' => $scripturl . '?action=forum#c' . $board_info['cat']['id'],
--- End code ---

Pesquisar

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

substituí-lo

--- Code: ---// Removed old
--- End code ---

Pesquisar

--- Code: ---   // Compatibility.
   if (!isset($settings['theme_version']))
      $modSettings['memberCount'] = $modSettings['totalMembers'];
--- End code ---

Substituir

--- Code: ---   // 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']));
--- End code ---

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


--- Code: ---$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';
--- End code ---



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


--- Code: ---// Begin AdkPortal
$txt['whoall_forum'] = 'Vendo o índice do <a href="' . $scripturl . '">' . $context['forum_name'] . '</a>.';   
--- End code ---

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

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

Navigation

[0] Message Index

Go to full version