Link para baixar o Mod:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi275.photobucket.com%2Falbums%2Fjj306%2Fplilisilva%2F8ad1teq.gif&hash=a9579eb74a1c2bc7e502497ffda0554ad81b7054)
smfpersonal (http://www.smfpersonal.net/downloads.html;cat=5)
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 ©</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úmero de utilizadores no "Top Postes"';
$txt['txt_ultimos_mensajes'] = 'Número de notí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ças não reflete aqui!';
$txt['hi_all'] = 'olá!';
$txt['topic_started'] = 'Tópico Criado por';
$txt['adk_posts'] = 'Messagens';
$txt['cantidad_noticias'] = 'Notícias na página';
$txt['c_aportes'] = 'Número de postes';
$txt['block_ltb'] = 'Bloco:último tópico no fórum ';
$txt['id_forum'] = 'Id do fórum(separado com -):';
$txt['news_smfp'] = 'Directo de Smf Personal (Adk Portal)';
$txt['width_portal'] = 'Largura do fórum';
$txt['adkportal_activate'] = 'Activar AdkPortal';
$txt['opcion_adk'] = 'Definiçõ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ê não tem permissão para gerir Adk Portal';
$txt['portal'] = 'Portal';
$txt['adk_portal'] = 'ADK Portal';
//Blocks
$txt['afiliados'] = 'Parceiros';
$txt['welcome'] = 'Bem Vindo!';
$txt['estadis'] = 'Estatí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ó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órum';
$txt['ultima_pagina'] = 'Ir para a Última página';
$txt['pagina_siguiente'] = 'Ir para a próxima página';
$txt['1_pag'] = 'Ir para a primeira página';
$txt['ant_pag'] = 'Ir para a página anterior';
$txt['go_pag'] = 'Ir para a página';
$txt['basado'] = 'Baseado no bloco do<font color=#ff0000>ElWiZArD</font>';
$txt['news'] = 'Notícias e Newsletters';
$txt['menu_prin'] = 'Menu Principal';
$txt['noticias'] = 'Notícias';
$txt['editar'] = 'Editar';
$txt['borrar'] = 'Apagar';
$txt['top_poster'] = 'Top Postes';
$txt['ultimos_temas'] = 'Últimos Tópicos';
$txt['who_is'] = 'Quem está online?';
$txt['bloques'] = 'Blocos';
$txt['edit_news'] = 'Editar as Notícias';
$txt['nueva_noticia'] = 'Criar Notícias';
$txt['crear_block'] = 'Criar BlocO';
$txt['borrar_noticias'] = 'Apagar as Notícias';
$txt['banner'] = 'Baner';
$txt['url'] = 'Url (com http://)';
$txt['titulo'] = 'Título';
$txt['descrip'] = 'Descrição';
$txt['save'] = 'Gravar';
$txt['borrar_afiliados'] = 'Apagar os Afiliados';
$txt['id'] = 'Id:';
$txt['adk_settings'] = 'Opções';
$txt['cleft'] = 'Activar a Coluna Esquerda?';
$txt['cright'] = 'Activar a Coluna Direita?';
$txt['yes'] = 'Sim';
$txt['no'] = 'não';
$txt['news_portal'] = 'Quantidade de página das notícias?';
$txt['title_adkk'] = 'Título';
$txt['go_to_p'] = 'Ir para a página:';
$txt['ulti_click'] = 'Último Clique';
$txt['by'] = 'Por';
$txt['left'] = 'Esquerdo';
$txt['centro'] = 'centro';
$txt['posicion'] = 'Posiçã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ícias';
$txt['aporte'] = ' Contribuição';
$txt['autor'] = 'Actor';
$txt['titulo_noticia'] = 'Título da notí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>.';
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