Guia completo de usuário e administração do miniBB Aviso importante Este documento contém quase tudo o que você deve saber inicialmente sobre o miniBB, no entanto, foi composto nos primeiros anos do projeto miniBB, e durante os próximos anos apenas foram feitas pequenas alterações. É por isso que devemos avisá-lo: esta versão do guia não abrange todas as funções e possibilidades do miniBB, e é necessário um grande momento para trabalhar em explicar todos eles. Nós planejamos iniciá-lo no futuro mais próximo. Pedimos desculpas antecipadamente por possíveis defeitos que você pode descobrir durante sua leitura e esperamos que você seja paciente e entenda que preparar um Manual abrangente é mesmo uma tarefa maior do que construir o próprio Programa. Se você não tem certeza se algum recurso existe, ou como isso e isso funciona, não hesite em nos perguntar em nossos fóruns. Estamos sempre dispostos a ajudar as pessoas em todas as questões que afetam nosso software. MiniBB (uma abreviatura de quadro de avisos minimalista) é um fórum de texto de tipo plano (não threadado), software de fóruns de discussão, escrito em PHP e usando mySQL ou outro banco de dados compatível com PHP como backend de dados. Mini não significa nada. Especialmente desenvolvido para pequenas e médias comunidades de fórum, que têm menos de 100 postos únicos por dia, miniBB também poderia ser usado em grandes projetos. Se você der uma olhada no arquivo de configurações do miniBB, ou neste manual, você encontrará muitas opções, tanto para usuários como para administradores, que permitem o controle total e ininterrupto sobre o quadro. Este guia refere-se a quase todos os recursos e possibilidades do miniBB. É criado tanto para usuário como para administrador, e está incluído no pacote miniBB como FAQ padrão. Você pode usar este manual como FAQ básica do usuário para sua página na GNU Free Documentation License descrita abaixo. Se você estiver usando este guia como FAQ em seus fóruns, remova todo o guia de administração e desenvolvedores, descrito nas opções Instalação, Personalização, Opções administrativas e Algumas notas para desenvolvedores. Usuários regulares devem ler sobre essas possibilidades. Algumas opções descritas neste manual requer conhecimento básico de HTML e PHP. Se você estiver no nível do usuário iniciante, estude-o com muito cuidado. Lembre-se: ninguém pode deixar você entender, mas alguém poderia lhe dar uma chance. Não há requisitos especiais sobre o tipo de servidor, OS, PHP ou a versão mySQL. Todo o sistema que suporta a combinação PHPmySQL também deve suportar o miniBB. Nós temos relatórios de que o miniBB foi executado com êxito em servidores Unix, Linux, Windows, Novell, MacOSX, com o Apache ou o IIS instalado. Quanto à versão do PHP ou do banco de dados, recomendamos usar apenas versões FINAIS e ESTABELADAS desses produtos. Antes de instalar o miniBB, certifique-se de ter o PHP instalado no seu servidor, e você terá informações de host, login e senha do mySQL que você precisa colocar no arquivo de configuração. MiniBB é um projeto GPL (leia mais sobre Free Software Foundation sobre GPL License), e você pode copydistributemodify todos os scripts sob os termos da GPL. Você pode editar todos os arquivos que você receber (incluindo modelos, CSS, pacote de idiomas, plugins, addons, scripts), é claro, substitua nosso logotipo, talvez edite o menu no topo, também como colocar suas próprias palavras-chave e descrição no título principal Mas você NÃO pode remover nossa cadeia de link de direitos autorais original do modelo mainfooter. html (mesmo que você possa editar sua aparência ou localização) e oferecer o miniBB como seu produto ou parte do site, se você estiver usando a licença GPL gratuita, de acordo com a Secções 1 e 2c desta Licença. Para remover o link e ou qualquer informação de direitos autorais, você precisa comprar uma licença comercial miniBB. Leia mais sobre suporte técnico em nosso site. Se você deseja integrar o miniBB em seu próprio software, existem duas maneiras de fazer isso: a) distribuindo seu software de graça com a licença correspondente, você deve mencionar o copyright dos autores dos miniBB dentro de cada script, e você pode fazer isso sem qualquer permissão de Nós, uma vez que a licença da GPL cobre que b) distribuindo seu software comercialmente, você deve manter todos os avisos de direitos autorais do miniBB como no caso do software livre, mas se você quiser remover todas as referências para nós, precisamos assinar acordo comercial especial, que é Discutidos individualmente. A instalação do miniBB precisa ter a seguinte estrutura de pastas de amplificação de arquivos (somente os arquivos marcados com itálico podem ser removidos ou renomeados, outros não): Opcionalmente, também podem existir arquivos de instalação, módulos para diferentes bancos de dados, scripts de plugins. Este é o pacote padrão, mas você pode estendê-lo mais, se você realmente precisar disso. IMG, LANG e TEMPLATES são diretórios do sistema. É proibido renomeá-los. Significam: IMG: imagens de placas são colocadas neste diretório, incluindo. Hot-buttons e ícones de tópicos. Dentro disso, você encontrará um diretório chamado forumicons. Você pode colocar qualquer fórum ícones lá. Não renomeie este diretório LANG: um diretório para manter pacotes de idiomas. MODELOS: um diretório para modelos HTML. Leia mais sobre isso abaixo. Outros arquivos significam o seguinte: bbadmin. php: o arquivo do painel de administração. Você precisa renomeá-lo do padrão (ver opções abaixo) bbcodes. php: duas funções dentro fornece substituição de códigos BB de forma independente para cada atualização miniBB. Não edite este arquivo se você não estiver familiarizado com PHP ou expressões regulares. Se você estiver, você pode editar isso e adicionar seus novos códigos BB (por exemplo, especialmente para o administrador). Função enCodeBB () usada na postagem de mensagens, deCodeBB () - na edição de mensagens (converte o HTML real de volta para códigos BB). Bbdefaultstyle. css - capa CSS padrão para o seu tabuleiro (o mesmo que em nossos fóruns), onde você pode alterar cores, bordas de tabelas, fontes, etc. compatíveis com W3C. Bbfunctions. php: não edite isso. Se você não estiver familiarizado com o PHP. Este é um arquivo de funções básicas para o motor. Arquivos bbfunc. php: não os edite. Se você não estiver familiarizado com o PHP. São arquivos de funções modulares para o motor. Bbplugins. php: arquivo com todos os plugins necessários, além de qualquer ação. Por padrão, está vazio. Este arquivo está incluído no index. php uma vez, e quando você atualizar seu BB para a nova versão, não é necessário editar index. php cada vez. Bbplugins2.php: arquivo com todos os complementos necessários inclusos APÓS qualquer ação. Bbspecials. php: arquivo inclui definições de fóruns especiais, como privado, fóruns de arquivo, rankings especiais do usuário (veja abaixo para mais). Index. php: o principal arquivo de chamada para miniBB. Normalmente, seu servidor deve suportá-lo como arquivo inicial para qualquer diretório. Caso contrário, verifique as opções de seu servidorPHP. Toda ação no quadro é chamada a partir deste arquivo. Setupmysql. php: módulo de banco de dados padrão (mySQL). Cada pedido mySQL na placa incluída nele. Você também pode ter outro módulo (setupmssql. php ou setuppostgresql. php, por exemplo). Setupoptions. php: arquivo de opções do miniBB, incl. Dados do administrador. Você precisa definitivamente mudar o seu conteúdo, mas também não renomeá-lo. COPIAR. Licença GPL. Por favor, leia-o antes de usar o miniBB, e mantenha este arquivo, se você não comprou a chave de remoção de direitos autorais. Antes de instalar e executar o nosso software de fórum, certifique-se de que carregou TODOS os ficheiros, fornecidos no pacote original para FTP, ea estrutura filesfolders COMBINA O ORIGINAL. Compare um por um todos os arquivos carregados e originais por tamanho. É um erro muito comum, quando algum arquivo não foi carregado na íntegra (durante erro de conexão ou erro de redefinição de cliente de FTP), e tudo o que pode dar um relatório de erro adicional ao executar miniBB (para que ele não seja executado completamente). Por exemplo, esta é uma razão para relatórios de erro comuns como TEMPLATE NOT FOUND, Fatal error. ,. Não foi possível abrir o fluxo: Nenhum arquivo ou diretório em., Falha na abertura. Para inclusão. Etc. Comece a instalação do miniBB é muito simples. Você precisa criar algum banco de dados no seu servidor SQL (fe miniBB) com este comando: Se você não conseguir criar um banco de dados, pergunte ao seu provedor de servidor para fazê-lo para você também pedir-lhe para lhe fornecer todos os detalhes do banco de dados - Banco de dados e host. Esses dados são necessários para saber para executar a instalação do miniBB e scripts gerais. Descompacte seu pacote de minibb zip em algum lugar em seu disco. Certifique-se de que você está descompactado todos os arquivos mantendo estrutura de pastas original. Para que eles não estão localizados em uma pasta no seu disco. Certifique-se de ter pastas IMG, LANG, TEMPLATES extraídas. Encontre o arquivo chamado setupoptions. php. Esse é o arquivo de configuração principal. Todo o motor é baseado nele. Abra o arquivo de opções com algum editor de texto simples no seu computador. Edite seus arquivos php com um editor de texto qualificado. Recomendamos o Notepad2. Ou regular Notepad, porque esses editores não estão armazenando novas linhas, espaços ou quebras antes ltphp andor após gt. É proibido ter esse tipo de caracteres fora do código de execução do PHP, porque isso pode causar problemas com sua placa (por exemplo, você será incapaz de fazer logon, e tipo de erro aparece: Não é possível modificar informações de cabeçalho - cabeçalhos já enviados Por (saída iniciada em.) Você encontrará um monte de variáveis de opção, mas não é necessário editar todas elas neste primeiro passo. Vamos editar somente necessário e explicar as outras mais tarde. Vamos começar. 36DB mysql Dependendo de O seu módulo de banco de dados, pode ser mysql, postgresql ou mssql. Mantenha o mysql para a versão atual do miniBB. 36DBhostlocalhost Nome do host para a configuração do SQL. Provavelmente o localhost. 36DBnameminiBB O nome do banco de dados SQL que você acabou de criar. 36DBusrUSERNAME Seu nome de usuário SQL. 36DBpwdPASSWORD Your Senha SQL 36Tfminibbforums 36Tpminibbposts 36Ttminibbtopics 36Tuminibbusers 36Tsminibbsendmails 36Tbminibbbanned Bancos de dados nomes de tabelas - para prevenir ataques externos de hackers, você DEVE renomear essas tabelas para algo mais E, não como na instalação miniBB padrão. Por outro lado, esses nomes não devem entrar em conflito com as tabelas existentes, se você tiver alguma. 36adminusr ADMINUSR Administrator login, é inserido no banco de dados também como nome de usuário do primeiro mecanismo com ID1. Você pode alterá-lo a qualquer momento e atualizar suas configurações do painel de administração (veja abaixo). Nos símbolos, existe apenas um nome de administrador de configuração de limitação: ele não pode conter sinal. Este sinal é usado no motor de placas, se você usá-lo, você não será capaz de fazer o login como administrador. 36adminpwd ADMINPWD Senha de administrador. 36adminemail adminemail Admins email em preferências, você pode optar por não mostrá-lo publicamente. No entanto, ele também é usado como de e-mail para todos os e-mails automáticos no fórum, para estar ciente de fornecer e-mail especial, que pode ser conhecido por todos. Replytoemailadminemail não obrigatório que mantém um endereço de e-mail especificado, usado usado nos campos Reply-To, Errors-To e Return-Path. Dessa forma, você pode especificar um específico, não utilizado no endereço de correspondência regular, onde você receberá todos os erros e que será visível no campo de resposta em todas as mensagens miniBB automatizadas. Atualmente, por padrão, todos os e-mails contêm um email de resposta especificado no campo adminemail, que é visível em toda a correspondência automatizada. 36bbadmin bbadmin. php Painel do administrador FILENAME - recomendamos que renomeie o arquivo bbadmin. php padrão (arquivo administrativo) em um diretório raiz para outra coisa, por razões de segurança. O parâmetro deve conter o ponto de interrogação no final. Inicialmente, o endereço completo (começando com) na placa de mensagens (não para o site principal.) SEM barra no final) usado em notificações de e-mail e outras coisas de script, como redirecionamento de uma página para outra. Deve ser configurado corretamente para que a placa funcione bem. Preste atenção especial. Domínio e domínio não são as mesmas coisas, especialmente quando falamos sobre o tratamento de cookies. Se o cookie tiver sido definido a partir do domínio. Ele não funcionará no domínio. e vice versa. Este é o erro muito comum, o que faz problemas ao iniciar sessão nos fóruns. Definir com muito cuidado nome de usuário mysql, senha, host e banco de dados. De acordo com privilégios de usuário, ele deve ser SUPER-USER, que também pode criar tabelas (se você vai criá-los a partir da web via instalação do navegador). Muitos usuários não sabem muito sobre esses valores, e recebendo erros como Databaseconfiguração erro. Ou Databaseconfiguration erro (DB está ausente). . E estamos preenchendo nossa equipe de suporte com as mesmas questões relacionadas à configuração imprópria. O miniBB não usa nada específico para conexão ao banco de dados - apenas funções comuns do PHPmySQL. Se você está recebendo erros, você especificou configurações erradas. Isso é tudo o que podemos dizer. Preste atenção também na opção pathToFiles. Que é descrito abaixo. Não está sujeito a alterações, se você não está tendo quaisquer dificuldades com a execução da placa. No entanto, em alguns sistemas operacionais como o Windows, e algumas configurações de servidor, será fortemente necessário, que você definir o caminho absoluto absoluto para seus scripts, para que eles possam ser incluídos através de PHP incluem função corretamente. Além disso, muitas funções de bibliotecas de terceiros disponíveis no PHP, exigem que esta opção seja definida como caminho completo (GD ou Aspell, por exemplo). Próximo passo - você precisa criar a estrutura do seu banco de dados. Transfira todos os arquivos via FTP ou rede local para algum local no seu servidor. Use um gerenciador de FTP de qualidade para fazer isso. Recomendamos o Total Commander no entanto, o objetivo principal é que você deve armazenar todos os arquivos como originalmente, não quebrados ou convertidos em binário. No diretório principal, você encontrará o arquivo install. php e, para mySQL, por exemplo, o arquivo installmysql. sql. O arquivo Sql é realmente o seu despejo. Se você tiver recursos para fazer o banco de dados do SQL-shell, você pode executá-lo e inserir todas as tabelas manualmente - mas não o recomendamos. Isso é apenas para profissionais reais que estão sabendo o que fazem. Execute de seu navegador o arquivo install. php, ele criará todas as tabelas de acordo com seus nomes em setupoptions. php e insira todos os valores necessários. Geralmente, leva 1-2 segundos. A primeira tela irá recebê-lo para entrar na configuração. Clique em continuar. Se tudo o que você digitou no arquivo de opções estiver correto, o script fará todas as tabelas necessárias descritas no arquivo. sql. Caso contrário, preste atenção à sua configuração. Depois de OK, você pode começar a construir sua comunidade Fácil, não é Mas primeiro, DELETE o arquivo install. php, também como installmysql. sql e possivelmente outros arquivos. Sql do diretório. Nós não precisamos mais deles. O mecanismo do miniBB está usando cookies para usuários registrados e admin log in. As sessões de PHP podem ser usadas opcionalmente, mas não recomendamos isso devido aos mecanismos fracos do mecanismo de pesquisa nas sessões. Consulte a seção de registro para obter mais informações. Então, ative cookies no seu navegador para isso. Faça login na sua página de administração. Geralmente é bbadmin. php, mas como você é renomeado deste arquivo (você.), Só você sabe o que é o URL do painel de administração. Então, vá para esse painel, e provavelmente você será solicitado para o seu login de administrador e senha. Digite-os e você deve entrar no painel de administração. Se o problema aparecer e você não for capaz de fazer login, verifique novamente o caminho do cookie, domínio e nome, provavelmente alterá-los e, em servidores IIS, tente descomentar a opção metaLocation (veja abaixo). Lá você verá um monte de opções para seus fóruns de miniBB. Vamos descrevê-los mais tarde. Mas agora precisamos criar alguns fóruns. Então, clique no link Adicionar um fórum e. Siga as instruções na tela Nós adivinham, será muito fácil criar alguns fóruns. Consulte o capítulo sobre Supertítulos - os supertítulos são na verdade substituição de subcategorias. Além disso, não recomendamos dar grandes nomes a fóruns. Seja tão lacônico quanto possível. Em primeiro lugar, é mais lembrável, em segundo lugar, os grandes nomes não cabem nos tópicos ou tópicos páginas de listagem. Pesquisar cralwers como o Google também não gostam deles. Quando você entra no miniBB como administrador, você também está logado como usuário simples. Você pode fazer posts sob o seu nome, editar outras mensagens, fazer apagamentos, etc Bem, falar sobre isso mais tarde. Apenas um: por padrão, você também deve ver o link do painel de administração abaixo de cada página. E você pode acessar automaticamente o painel seguindo este link, toda vez que você estiver conectado como administrador. Personalização Neste momento, o miniBB deve estar rodando já Ir para index. php e verificar isso. Mas, há muitas outras opções que provavelmente você deseja mudar. Vamos fazer referência a setupoptions. php novamente. Nota para novatos PHP: ab string realmente não significa nada, e esta configuração não funcionará em qualquer caso, porque esta declaração é COMMENTED (duas barras antes). A remoção de barras significa UNCOMMENT ou ENABLE esta configuração. Para mudar a configuração, altere seu conteúdo entre apóstrofos (). As configurações numéricas também não podem conter apóstrofes. 36langeng Idioma utilizado na interface miniBB. Basta verificar como o seu arquivo de idioma no diretório lang é chamado (exemplo: eng. php é eng, rus. php is rus). Por padrão, apenas o arquivo de idioma em inglês está incluído. Para mais pacotes de idiomas, consulte nosso site. 36skindefault O nome do CSS-skin (neste caso, bb default style. css). Examina o uso da pele: padrão, leve ou clássico. Para mais skins, consulte o nosso site. Em muitos casos, você precisa deixar o título e editar a própria capa padrão. 36sitenameCommunity baseia-se no título dos fóruns miniBB. Aparece em todas as páginas em assuntos e órgãos de e-mail. 36emailadmin1 Email admin se novos tópicos ou respostas forem postadas, também se o novo usuário estiver registrado. 0 para não 1 para sim. Os email de Repliestopics são emitidos se o admin não é o poster da mensagem. 36emailusers1 Se 1. Os usuários podem se inscrever para notificação de e-mail em todos os tópicos e posts que eles fazem (mesmo que não sejam autores desses tópicos ou postagens). Recomendado apenas para pequenos e médios fóruns. Se os seus fóruns têm muitos visitantes e cartazes, recomendamos que este seja 0. Essa configuração não afeta os envios de senha esquecida e os envios de senha de registro (veja abaixo). A partir da versão RC3a, é possível definir, se os usuários podem receber notificações sobre o idioma escolhido (set emailusers 2). Neste caso, você deve criar arquivos de notificação de e-mail com o idioma 3 letras postfix, por exemplo: emailreplynotifyrus. txt, emailuserregisterrus. txt, emailuserpasswordrus. txt para a língua russa (se você definiu langrus). Se esses arquivos não existirem, o arquivo padrão do pacote de idiomas (emailreplynotifyeng. txt, emailuserregistereng. txt ou emailuserpasswordeng. txt) será levado. Para notificações de administrador e sistema, o pacote de idioma padrão é tomado com (eng postfix). 36userRegName A-Za-z0-9 Através do registo, os utilizadores podem utilizar apenas estes símbolos no seu nome de início de sessão. Você pode adicionar letras internacionais (por exemplo, símbolos russos específicos sob tabela de codificação especial). String é baseado na partida REGEXP, então se você não tem certeza, não toque. Também NÃO ADICIONE o sinal por favor, e outros símbolos específicos demasiado (especialmente como o ltgt, o apóstrofe e as citações). 36lsepr é um símbolo para separar alguns valores, como itens de menu. Por exemplo, defina-o para middot e youll obter ponto médio pequeno. 36posttextmaxlength10240 Máx. Caracteres e espaços permitidos em 1 mensagem. Não configure para 0 -, então seus visitantes não poderão postar nada. 36postwordmaxlength70 Quantidade máxima de caracteres, permitido em 1 palavra. Usado para desabilitar URLs longos destrói sua coisa de design. 36topicmaxlength70 Quantidade máxima de caracteres, permitida no título do tópico. 36viewmaxtopic30 Quantos tópicos a mostrar em uma página. 36viewlastdiscussions30 Quantas últimas discussões para mostrar na 1ª página, 0 desabilita as últimas discussões (veja abaixo o que significa as últimas discussões). 36viewmaxreplys30 Quantas respostas para mostrar em uma página. 36viewmaxsearch40 Máximo resultado da pesquisa por página. 36viewpagelim50 páginas Max você pode visualizar em qualquer pesquisa, postagem ou lista de tópicos. 36viewTopicsIfOnlyOneForum0 Se você tiver apenas um fórum, os tópicos dentro dele podem ser exibidos automaticamente na 1ª página. 1 para sim, 0 para não. 36protectWholeForum 0 Devemos proteger todos os fóruns por uma senha Se valor for 1, dois valores abaixo também são definidos. Else definido como 0. 36protectWholeForumPwd SOMEPWD Senha para proteger todo o fórum. 36postRange 60 Antispam: intervalo de tempo em seg. O usuário não pode postar uma mensagem menos do que após esse tempo. Atenção: zero (0) desabilita antispam 36dateFormat j F Y H: i: s Formato de data para exibição em fóruns. A mesma sintaxe como no próprio PHP. Os títulos de mês de inglês em inglês definidos por F são substituídos por definições de meses tiradas de um arquivo de linguagem. 36cookiedomain Domínio de cookies. O mais provável é que você precise deixar isso em branco, no entanto, se você tiver problemas logon no fórum, defina isso para o seu nome de domínio, sem o. F. e. Se o seu fórum está em mysiteminiBB, em seguida, defina esse valor para mysite. 36cookiename miniBBsite Nome do cookie. Utilize apenas letras latinas, dígitos e sinal de sublinhado especificando-o. Não são permitidos espaços, pontos ou símbolos especiais, tornando impossível o login. Deve começar com uma carta latina. 36cookiepath Configuração de cookies. Geralmente você não precisa mudar isso. 36cookiesecure FALSE Cookie setting. Geralmente você não precisa mudar isso. 36cookieexpires 3600 Este é o número de segundos que uma sessão dura, 3600 1 hora, 2592000 30 dias. A sessão será exprire se o usuário não visualizar uma página no fórum dentro desse período de tempo. Se você estiver tendo problemas com usuários internacionais, defina isso como 25 horas. 36cookierenew 1800 Este é o momento após o qual a sessão foi enviada novamente, por exemplo, o usuário foi logado uma vez, e depois registra novamente (a senha não é solicitada), funciona e essa quantidade de tempo é alcançada. Geralmente não é necessário alterar isso. 36disallowNamesarray (anonymous, ass, etc.) Esta funcionalidade impede que os utilizadores registrem nomes proibidos. Em apóstrofes, defina nomes de registro de usuários não convidados. Se você estiver usando mais de um pacote de idioma, defina aqui todas as seqüências sob o nome 36lanonymous no pacote de idiomas, senão o visitante poderá se registrar em Nome anônimo, por exemplo. Caso não importa quando você define uma palavra. Você também pode definir um fragmento de palavras aqui, para que os usuários não possam registrar o nome de login que contenha esse fragmento. DisallowNamesIndexarray (admin) Combinado com disallowNames, permite definir uma lista de nomes de usuários proibidos que não podem ser usados por meio do registro de usuários. A diferença é que o script verifica um fragmento de palavra definido em disallowNames e correspondência exata com palavras definidas em disallowNamesIndex. Por exemplo, ter administrador no disallowNames você proíbe usuários registrarem mesmo os nomes como b admin ton. Então, coloque fragmentos na primeira matriz e correspondências exatas na segunda. 36sortingTopics0 Se 1, os tópicos são classificados por novos tópicos, mesmo para usuários anônimos, eles são classificados por novas respostas. 36topStats4 Deve ser 1, 2, 3 ou 4 - correspondente para estatísticas Top5, Top10, Top20 e Top40. 36genEmailDisable0 1 desabilita totalmente os envios de e-mail do sistema: envio de senha esquecida e envio de senha de registro, se você habilitou 36closeRegister (veja abaixo). Útil para aqueles que não tem sendmail ou outro programa instalado no servidor. 36defDays365 Valor do termo padrão que define as estatísticas desse período de dias (por exemplo, se você deseja mostrar estatísticas dentro de 1 mês como valor padrão, configure-o para 30). 36userUnlock0 Se estiver definido como 0, o usuário registrado não poderá desbloquear seu tópico novamente após ele ter sido bloqueado (por admin ou ele mesmo) e vice-versa. Se configurado para 2, os usuários não conseguem bloquear seus tópicos em geral (disponível a partir do ver. 2.0 RC3). 36emailadmposts0 Isso significa que o administrador recebe e-mails apenas sobre o novo registro de usuário. Se os postagens de email estiverem configurados para 1, o administrador também receberá uma notificação sobre cada nova postagem. Se não estiver definido ou for igual a 0, o administrador não receberá esses e-mails, mas poderá subscrever os tópicos manualmente. 36useredit86400 O parâmetro define o número de segundos, após o qual o usuário NÃO PODERÁ editar sua mensagem. Por padrão é 1 dia (86400 sec.) Se 0 ou não definido, o usuário será capaz de editar o seu post everytime. 36metaLocationgo Esta opção deve resolver o problema de loginlogout que foi experimentado por alguns usuários em servidores IIS e outros servidores exóticos. Esses servidores não podem enviar 2 cabeçalhos (cookie e localização) um após o outro. Ter o arquivo go. html (ou qualquer outro arquivo, causar o nome do arquivo pode ser configurado aqui) no diretório dos fóruns de modelos com o cabeçalho meta nele, você primeiro irá visitar esse arquivo e, em seguida, você será deslocado dele para outro lugar. Você pode editar go. html se o seu desejo for agora, sua estrutura é muito simples e redireciona dentro de 0 segundos, então provavelmente você nunca vai realmente vê-lo. Esta opção não está ativada por padrão. 36closeRegister1 configurando isso para 1, é possível evitar registros abertos. Por padrão, quando o usuário se registra, ele entra na senha de login desejada e, da primeira etapa, torna-se um usuário registrado. É possível evitar o endereço de e-mail incorreto após o registro nesse caso. Se você definir esta configuração como 1 (o padrão ainda é 0 ou não definido), no formulário de registro o usuário não verá o campo da senha e irá recebê-lo por e-mail após o registro (a senha será gerada automaticamente). No modelo userdataform. html deve haver lt - PASSWORD - gtlt - PASSWORD - gt tags ao se registrar, o usuário não verá o conteúdo interno entre essas tags, mas verá apenas editar o perfil (para que as tags sejam necessárias Porque o mesmo modelo é usado para registrar e modificar o perfil). Tendo esta opção definida, você deve definir genEmailDisable parâmetro igual a 0. E, claro, você deve ter sendmail funcionando ok. Se você definir esta opção como 1, não se esqueça de editar a mensagem de registro lgoToLogin no pacote de idiomas, quando você deve informar o usuário que receberá sua senha no e-mail. Alternativamente, no manual do seu fórum, mencione que os usuários registrados devem inserir seu endereço de e-mail correto, porque a senha será enviada aqui. Se você tiver esta opção definida, o usuário deve confirmar o e-mail também se ele o alterar em Preferências. 36timeDiff21600 Permite que você defina a diferença de tempo entre você e o servidor, para que todas as datas sejam exibidas em seu fuso horário. Isso pode ser uma coisa rara e necessária somente se você, por exemplo, tiver servidor nos EUA e estiver visitando a Noruega. Você precisa configurar timeDiff em segundos. Positivo 21600 configura 6 horas de diferença de tempo. Note que o miniBB ainda está guardando o tempo do servidor no banco de dados SQL. Esta opção apenas irá recalcular as horas do servidor em seu formato. Definir isso, é claro, irá abrandar a execução de scripts. 36statsbarWidthLim31 esta configuração afeta o tamanho da barra de estatísticas. Na maioria dos casos, você não altera isso. DbUserSheme array (usernamegtarray (1, username, login), userpasswordgtarray (3, userpassword, passwd), useremailgtarray (4, useremail, email), usericqgtarray (5, usericq, icq), userwebsitegtarray 7, userocc, ocupação), userfromgtarray (8, userfrom, from), userinterestgtarray (9, userinterest, interest), userviewemailgtarray (10, userviewemail, userviewemail), usersorttopicsgtarray (11, usersorttopics, usersorttopics) ), Usercustom1gtarray (18, usercustom1, usercustom1), usercustom2gtarray (19, usercustom2, usercustom2), usercustom3gtarray (20, usercustom3, usercustom3)) Esta matriz de esquema de banco de dados descreve Relações entre nomes de campo em userdataform. html (registro, perfil) correspondentemente ao banco de dados e índices de banco de dados usados na visualização de userinfo. Assim, você pode usar sua própria tabela de banco de dados para nomes de usuários (por exemplo, como outra parte do seu site) e definir apenas as relações aqui. Formato de relação: MINIBB DEF gt array (NUMERICALINDEXKEY, TABLEFIELDNAME, FORMFIELDNAME) Preste atenção que a estrutura dos campos, seus tipos devem ser padrão, como no banco de dados miniBB, por exemplo, userpassword deve ser salvo no formato md5. Edite esta opção apenas se NÃO for NEWBIE Como funciona o script de registro de perfil: ele passa por cada DEFINIÇÃO MINIBB e, correspondentemente, analisa um POSTFORMFIELDNAME. Ao visualizar o perfil, o INDEX é levado em consideração. Campos como userregdate ou atividade não são definidos pelo usuário, portanto, não é necessário (e até proibido) defini-los aqui. O segundo campo de senha deve ser chamado passwd2. Todos os valores em um formulário devem ser nomeados como seus campos. Exemplo: login de campo será avaliado como. Para visualizar campos novos ou personalizados na página Informações do usuário, você precisa definir a variável lusrInfo correspondente. As teclas desta matriz são as mesmas para os campos da tabela (por exemplo, se a chave para usericq for 5, a definição do idioma ICQ é lusrInfo5). Usercustom1, usercustom2, usercustom3 campos de banco de dados podem ser exibidos na página de informações do usuário, você também precisará adicionar valores correspondentes para o pacote de idiomas: lusrInfo12, lusrInfo13 e lusrInfo14, - em conformidade. Você também pode adicionar campos personalizados adicionais, nomeando-os para que eles contenham usercustom na definição da chave do sistema. Nesse caso, defina o lusrInfo correspondente para que ele comece a partir de 15. Por exemplo, se você tiver usercustom1, usercustom2, usercustomname, usercustomsurnome listados em ordem um por um, lusrInfo chaves são 12, 13, 14, 15. Se você tiver habilitado notificações por e-mail Sobre novos registros de usuários e ou enviar informações de registro para o email dos usuários, você DEVE também corrigir variáveis que definem dados do usuário, nos modelos: templates: emailadminuserregister. txt, emailuserregister. txt. As variáveis devem corresponder aos seus campos do formulário de inscrição (por exemplo, se você tiver o campo de formulário chamado e-mail, a variável será). Com a estrutura de banco de dados miniBB padrão, não é necessário alterar esses modelos. DbUserIduserid dbUserDateuserregdate dbUserDateKey2 dbUserActactivity dbUserNpusernewpasswd dbUserNkusernewpwdkey Nomes dos campos que são atualizados AUTOMÁTICAMENTE. NÃO os inclua na lista de esquema do db. EnableNewRegistrationsTRUE Se você deseja habilitar novos usuários, fale-se FALSE em outro caso. EnableProfileUpdateTRUE Se você deseja que o usuário possa atualizar seus próprios perfis FALSO em outro caso. Indexphpindex. php O nome do seu arquivo de índice pode ser renomeado para outra coisa se o índice de miniBBs estiver em conflito com o nome de índice de sites existente. Não se esqueça de colocar depois filename. UsersEditTopicTitleTRUE Se você deseja que os autores do tópico possam editar seus tópicos, siga o mesmo FALSO. PathToFiles. Caminho completo do sistema de arquivos para seus arquivos miniBB (poderia ser, usrhomepublichtmlforum, por exemplo, no Linux). Deve ter SLASH no final. Você pode usar uma cópia do núcleo geral do miniBB, mas com apenas um arquivo diferente de índice e opções, crie muitas comunidades baseadas nesse núcleo. Esta opção também poderia resolver algum arquivo, incluindo problemas em sistemas como a Novell. Você pode definir o caminho completo para os scripts ou deixar o padrão se a placa estiver funcionando normalmente. Esta opção também é necessária para configurar, se você incluir o seu cabeçalho e rodapé php (veja abaixo). IncludeHeaderheader. php Descomente e defina o cabeçalho alternativo, se você não quiser usar o mini-padrão padrão principalheader. html (útil se você usar algum header. php a partir do seu próprio site, para uma melhor integração). IncludeFooterfooter. php O mesmo que acima, para o rodapé. Não se esqueça de que o nosso link de direitos autorais deve migrar do nosso rodapé para o seu neste caso. EmptySubscribeTRUE Descomplicação e defina para TRUE se você quiser que seus usuários possam se inscrever no tópico sem publicar algum texto. AllForumsRegTRUE Se você quiser fazer todos os fóruns para usuários registrados apenas por um toque mais FALSO. RegisterInactiveUsersTRUE Se você quiser que todos os usuários registrados se tornem inativos até que você os aceite. Usado para aceitação manual de atividade do usuário. Se o valor dos campos de atividade no banco de dados for 1, o usuário poderá criar novos tópicos, posts e outras operações no fórum. Se 0, o usuário só é capaz de fazer login, mas não usar nada. It means his account is in database, but has been blocked for a while. With this, miniBB turns into a powerful anti-flood message board: you can make all your forums for registered users only with one option you can use only live emails, sending registration passwords there, you can set an option to view all new registrations on your email, and even if flooder has been registered, entering his Profile, you as admin or moderator can disable his activity (if you are logged as admin, at the end of members profile, you will see a cell Member and YesNo in it. Clicking on Yes, you enable member status, and vice versa). In combination with sending all new user registration on admins email, you always will know who was registered on your forums. If user is registered and not accepted, he will always see a message You dont have access to this forum. or something else defined in languages lprivateForum. Correct this variable according to your needs OR just mention in your forum rules, that user is inactive until accepted. enableViewsTRUE By default, miniBB counts topic views, but does it only by simple way, when user opens some topic from the first page. Actually, topic views is not really necessary column, but could be useful for small communities. When counting views, SQL-server makes an UPDATE request on large databases, it could cause speed problems. So there is also possibility to comment or set this option to FALSE so this kind requests will not happen. modrewriteTRUE Set only if you are using Apache server and would to use virtual addresses via it in miniBB. Read for more below. Not for newbies userInfoInPostsarray(dbUserShemeuserfrom1, dbUserShemeuserwebsite1) Available from version 2.0 RC2b, this option defines list of users table fields, which values may be displayed in every post user makes. You can put exact field values here (not based on dbUserSheme), for example: but be sure these fields are appearing in users table itself. After setting this, in mainpostscell. html template you can set, for example, userfrom posterid and userwebsite posterid, and you will get actual values instead of variables when template will be parsed. Operating with users info table this way, you can get the value of any user field (like avatar, signature etc.) Combining this with plugins, we are achieving very smart level of customization. userDeleteMsgs1 Available from version 2.0 RC3a, this option allows users to delete their own topics andor messages (set 1 for allowing to delete only replies, 2 - for deleting both topics and replies). This option is tied up with userEdit option (see above) - when topic or message is expired for editing, it can not be deleted anymore. When deleting a record, PHP script makes many updates in another fields (number of posts per forum, posts per topic, posts per user etc.) - so, use this function on your own risk. Creatingdeleting their topics often, users may overload your database. textLd1 Available from 2.0 RC4, setting textLd1 or textLd2 you will get variable available in latest discussions section on the first page (templatesmainlastdiscusscell. html). If set to 2, all HTML formatting is removed from the post text, and you can use it in ltacronymgt tag, for example. If set to 1, post text is left as it is. startIndexindex. php Available from 2.0 RC5, this obligatory option sets the basic filename of index file, which will be displayed in backlinks to the main forum on the intermediate forum pages. Prevents duplicated content of search engines indexing. Default is index. php. Set index. html for modrewrite (when only setting modrewrite index. html rule - read below). manualIndexindex. phpactionmanual The same principle as for obligatory setting above displays backlink to manual page. You may set manual. html for modrewrite. descriptionHow to make up a forum Get miniBB - free and paid discussion custom forum software, bulletin board system script, written in php amp mysql. Download now - mandatory option specifying default description tag for the forums start page and other internal pages. Description in topics list is generated basing upon the forum description, and messages list description is based upon the first characters of the first message. enableGroupMsgDeleteTRUE Available from 2.0 RC5, enables or disables group messages deleting by admin or moderator - he is able to delete many messages at once, checkmarking them and clicking on necessary link. Specially useful on anonymous boards, when you are forced to fight the spam or flood. For enabling this option, just uncomment the variable and set it any value. 36posttextminlength10 Available from 2.0 RC5, this not obligatory option sets minimum amount of symbols needed for posting a message, preventing unmeaningful posts. Default is 10 symbols. Uncomment and set to 0 if you want to disable this. loginsCaseTRUE Available from 2.0 RC6, not mandatory option. If is not set, or set to FALSE, all logins are CASE SENSITIVE (by default). For example, if you have registered username Paul, you must type Paul in your login field. Not PAUL, and not paul - this will not work. If this option is enabled and set to TRUE, you can type anything - paul, PAUL, Paul etc. - anything will be compared in lowercase. Notice: nobody is able to register PAUL or paul usernames, if there is already one Paul in database - this doesnt depend on setting this option. This option also DOES NOT affect passwords password must be entered the same manner as via registration. enablePhpMailer array( smtphostmail. server, Specify SMTP host here smtpauthFALSE, If TRUE for SMTP auth, set to TRUE, else to FALSE smtpusername, If TRUE for SMTP auth, set SMTP username smtppass If yes for SMTP auth, set SMTP password ) Available from 2.0 RC5, this hidden setting (not included by default) allows to use external PHPmailer class for advanced SMTP sendings. For enabling PHPMailer, copy PHPmailer files to forums root directory (class. phpmailer. php, class. smtp. php) and add PHPMailer SMTP settings described below, to the setupoptions. php file. Using this class may be helpful, if you have no SMTP installed on server, and want to use external SMTP, which you know settings for, and which is allowed to accept connections from your server. No need to use this class, if the scripts are able to send emails through default servers SMTP. allowHyperlinks10 mandatory option if greater than zero, it means hyperlinks will be allowed for members only who made not less than allowHyperlinks postings. If set to zero, hyperlinks will be automated also for guests. By hyperlinks, we mean highlighted URLs in postings: when you post anything beginning from . or or enclosed in urlurl BB codes, it is converted to a clickable hyperlink. addMainTitle1 non-mandatory option which is turned off by default: if it is set, then on topics listing pages and on the thread listing pages, forum generic title is added after certain forums or topics title. For example, if you have My Forums specified in sitename . and you have a forum called Forum One , and the topic Test Topic in this forum, then: if you set this option to 1, lttitlegt tag of topics listing page will be Forum One - My Forums , lttitlegt tag of topics listing page will be Test Topic - My Forums , else it will be just Forum One and Test Topic correspondingly. emailCharsetUTF-8 non-mandatory option which is turned off by default: if it is set to the certain value (like for example UTF-8), and your forums email templates are stored in specific encoding (like UTF-8), it is recommended to set up this option, so emails are sent in the proper encoding and not garbled on the client side. Thats all, folks We did the advanced miniBB setup. After that, your forums will work according to your needs and preferences. But, you need to do something corresponding to your pages design, didnt you So, lets go to the next level. Templates are used to separate HTML code from PHP. They are located in templates directory and are usual HTML files (or TXT files - if we talk about email templates). If you dont like our templates, you can change them or design yours. It is important to save all variables (they look like usual PHP variable variables: ) like shown. Template parser turns every of this variables in its VALUE, giving necessary results. We dont recommend editing templates with WYSIWYG editors. Try to work with clear code, since all PHP variables included in templates will not work in HTML separately. We hope, that it will be enough for you to use any kind of simple text editor with our templates: they are very clean and tide, hand-made. We tried to make all templates compliant to W3C recommendations. We cant guarantee, that they will work as 100 W3C standart works, but they look the same in different browsers. If you decide to change templates, you need to refer to the miniBB logic in building them. We hope, all templates names are pretty clear to understand, what they mean. Also, leave ALL the variables inside the templates as they shown. Most templates are used in different operations (thats why we call this mini - BB ). F. e. userdataform. html is used both for registering new user and editing user preferences, mainpostform. html is used on all posts, topics and editing pages. It is necessary to pay attention to email templates (begins with email and ends with. txt). They have special format: first line of every template should contain SUBJECTltlt. gtgt line, with some text instead of . . As you understand, between SUBJECTltlt and gtgt there is subject of email. Dont remove this line, else you emails will be garbled In mainheader. html . you will find page title as lttitlegt36titlelttitlegt. Title is changing dynamically according to the page, f. e. on topic page it becomes topic name, and on topic lists it becomes forum name. This is very smart feature for search indexers (like Google or AllTheWeb for example) to INDEX your forum, since these engines are working mostly with page titles. Also, thats why we recommend to think about right forum names: as more simple they will be, as better. In this case, also dont forget to include (or change) META-tags in header. There is possibility to make a custom template and call it from the script. For example, you need to create separate page before user registration (agreement): you can add any custom template, which is not included in miniBB. Design your template as usual (all script pre-defined variables also work), put it in templates directory and call from the script like: where tplName is a name for your created template (in this case, customtemplate. html). In that way you can also create stuff like Most loved topics and answers with the direct list of topics, any FAQs, manuals, description pages, agreements etc. etc. as like as the whole site For international (non-english) users, we offer language packs feature. You can get them from our Downloads page. If you have not found a pack for your language, please translate it basing on the English (or other) translation, and send back to us. This way you may help many users from your country, which also choose miniBB. Language packs can be found in forums lang directory. Usually, only eng. php pack is included for default english language on the board. Language pack name is changed in options file. Language pack simply contains PHP variables with their values. Note for editors: use instead of in the sentences, or use slashed apostrophe 92. Technically, it is better to use apostrophes ( ) instead of quotes ( ), because of the engines speed increase. We hope, it is pretty simple to understand, whats going on inside of language pack, if you want to change it. Despite there are more notes (and any language pack should contain these settings): 36Lang:English:36 string is referred to language name, which appears in Language menu. When making another version of pack, write language name in English between 36Lang: and :36 36lmeta tag is META-LANGUAGE value for your html encoding. Usually it looks like ltmeta http-equivcontent-type contenttexthtmlcharsetiso-8859-1gt where you need to change only charset value. Refer to W3C docs for more info on encoding. Note: if you want users to make posts on different language encodings (f. e. english, russian and latvian on the same forum), make lmeta blank (). 36lmonths variable defines array of month names separated by :. Be sure to include EXACTLY 12 values Other variables are in assorting order. While working on miniBB, we have added them in order of appearance. If you will see a string looking like Language variables miniBB vX. X, it means that, variables after this string were added or changed for corresponding version. If we add more features, we will also add variables, and for better finding they will be added in another section. Language packs describe ALL language used in board, incl. admin panel. Importante. language packs filename can have only of 3 letters (examples: eng. php, alb. php, rus. php). On a multilingual forum where more than 1 language is installed, and if you are using boards emailing features, you will probably need to create emailing templates for each language separately, naming them with corresponding prefix. For example, if you want English and French interfaces available, and make it possible for registered users to change their preferred language in Preferences, do the following: Download and copy eng. php, fre. php files to lang folder Create emailing templates for the French language, taking English templates from templates folder, which begin with email and end with eng. txt leave English templates as they are, but create French language templates, naming them with fre postfix, i. e. they should begin with email and end with fre. txt copy all these templates to the templates folder For allowing members to receive email notifications on the preferred language, set emailusers2 in setupoptions. php (read more above this option above). Having multilingual forums, be always sure you have installed additional, or other than English languages successfully. Specially test any processes related to the email notifications: new user sign up, notification about new post made, passwords restoration. If your language is installed improperly, it may cause the software working wrong. If you have multilanguage forum, it would be a good idea to create many manuals on each language, naming it manualLNG. html . where LNG is the prefix for your language pack. By default, only manualeng. html is included. If there is no manual for users language, empty page will be displayed. Please note: some variables specified in language pack, are both used in PHP scripts and JavaScript interface notices. Thats why in some places it is not suitable to use apostrophes in your custom translation . This specially affects 3rd party language packs not checked by miniBB team, or for example, the variable called laccessDenied . which could be edited upon special rules on forums, and some other variables from the premium add-ons, which are mentioned in plugins instructions. If you are experiencing troubles posting a messages or getting a JavaScript error on page, it could be the reason of the wrong interpretation of apostrophes. Check the JavaScript Error Console of your browser for errors. CSS (cascading style sheet named bbdefaultstyle. css) is designed to fit all font colors, table borders and sizes on the page in one file. It is included only once in mainheader. html . It is W3C compliant. You can edit it as you wish, to fit your forums design to your pages design. In our download section, you will find some free examples of another stylesskins. Even if you dont know CSS, it is very easy to change mostly a couple of colors in HEX, fonts and sizes in pixelspoints. Some example CSS skins downloadable from our site can also contain icon packages and image backgrounds and its easy to add your own background to any CSS skin. You can find skin parameter description in CSS file itself - all main parts of it have small notes explaining the meaning of subsequent fontcolorborder and other parameters. Administrative options You can go to the admin panel manually typing in your browser admin panels filename which you have entered in options file. But usually, you only need to login as admin into forums, and youll see admin panel link at the bottom of each page. Admin panel is very small and very simple. Here is the list of options: Add forum. We have talked about it earlier. With this operation, you can add forum name, description, icon. Forum icons are displayed near forums table. They are placed in directory imgforumicons. Icon should be. GIF or. JPG with the size of 16x16 pixels. Here you just need to type a filename of image WITHOUT directory name. If no image specified, default. gif is loaded. You may use straight HTML in forums name or description, putting, for example, direct HTML links there. Edit forum. Click on it, choose forum to edit from drop-down list. Editing form appears. You can change forum name, description, and order there. For editing, press Edit form button. Below you can see fast preview of how forums will look like. Re-ordering forums is simple: you just need to click on uarr or darr symbols to move forum up or down (this is avalable only beginning from version 2.0 RC3). From this menu you can also DELETE forum. Note that deleting forum will immediately deletes ALL posts and topics corresponding to it. We dont recommend to do that, cause there is no way back. If you still need to delete forum, just click on the checkbox saying Delete forum and press Edit. Forum will be deleted and there will be NO ASKING TWICE, so be careful with this thing. Deleting forums brings us headache, so, if you will never delete forums, open your admin panel file for editing, find the following line: and add after it the following line: You should have: etc. This will avoid forum deleting in any case - even if intruders will know out about your password (we hope this never happens). Forums supertitles (categories). Since miniBB is designed for smallmedium communities, we have not planned to make splitting forums list by additional category. If you have 4-5 forums, there is no need to create categories, because in this case, your forums will look badly organised. However, there is a possibility to emulate categories for forums, this feature is invented since version 2.0 RC3 and called supertitles. Supertitles appear BEFORE main forum title, emulating category, and you probably may add supertitles AFTER you created a list of forums and arranged them in desired order. Go to forums preview when editing any forum, click on forums title when you want to put supertitle, and add it in corresponding field. Notice that moving the main forum title affects also supertitle, so putting one forum from one category to another means actually that you need to remove supertitle from this forum and add it to another forums title. You may use straight HTML in supertitles. Remove user. This immediately deletes selected user. You need to write in users ID . How to know about that ID Go to the forums, search for user you want to delete, find user message and mouse over your cursor on members title below the username. The link will be something like . actionuserinfoampuser243. The last digit (f. e. 243) will be user ID. Checking box, you can also remove all user MESSAGES and TOPICS (with other users messages). And all user email notifications, too. We do not recommend to do this. If you wont check this box, only info about registered user will be removed, and all his topics and posts left will be signed as if he is unregistered user (and from now on he will be, actually). See below miniBB users hierarchy. Note: on large forums, it takes some time to remove user with topics and posts. Seja paciente. Programming notes: removing user operation can cause some bad forums security issues(if someone knows your password, of course). For disabling delete, find this line in your admin PHP file: and add after it the following line: You should have: Ban user IP. We have, basically, the simplest and the strongest bans. They are based on user IP (usual proxies also checked), and prohibit user even to enter forums. For banning user IP, just enter his correct IP (contained maximum 15 symbols, including dots). You can also ban so called IP mask, entire network. Example: if IP to ban is 191.88.32.12, you can ban all IPs within local network (enter 191.88.32. . or more stronger - 191.88. How to know about user IP Log into forums as admin, and open any thread. In every user message, you will see his IP. Extended feature: clicking on this IP, you can see a list of usernames, under which posts were made. It is nice option for viewing all anonymous user nicknames. This options is also available for moderators. Banning IP, you can also set comment why it was banned, so you can be oriented in ban list in the future easily. For unsetting ban on IP, just do Unsetunban selected IPs in the admin panel. When you click on this link, a list of all bans is offered. Just check necessary bans and press the button. Ban user by ID. You can also ban registered users by their ID. This is really useful if, for example, you have forums only for registered members, and someone begins to flood the board. This operation can be done in the same form where you can ban us er ID (see above), you need only to enter correct user ID, not IP. You can view users ID clicking on his Member title (ID goes straight after user in URL string). You cant ban user with 0 (zero) ID. Search users. Admin is allowed to search users by ID, username (login) or email, also inactive users (havent posted anything since registration) and havent made new posts since defined date. Each record found displays users login with link to userinfo on the board, registration date, email (even if hidden) and last replys post date. In some cases, also found records count is displayed. Search users results are splitted by pages, if results count is really big. Searching on ID, you need to enter decimal. Searching on email or login, you need to enter some string. If you do not enter something on ID or login, ALL users list will be displayed. When searching inactive users, you do not need to enter something. Receiving inactive users list, you can delete many of them by one-time, checking boxes and clicking Delete button. When you search users that havent posted anything since date, you need to define this date in YYYY-MM-DD format, which means: 4-digits-year-2-digits-month-2-digits-day. Script is looking for people, whos last reply date is EARLIER than entered date (not including). That means, if you enter 2002-03-07, for example, you will look for people, whos last reply was earlier than on 7th March, 2002. People with last reply on 7th March will not be shown, also as inactive users, too. Clicking on Delete, you can pop-up window with Remove user option, where users ID will be automatically written in form. Remove user operation is described above. Delete email notifications. If user emailing option in your setup is set to 1, it may happen, that some users emails are already dead. In this case, you, as the administrator, should receive mailer-daemon feedback messages saying Could not deliver message or something. In that case you can simply delete dead emails. To do that, type in an email to delete or simply press button for clearing up the whole table. Export emails. This operation is necessary, if you want to make a mass-mail for your users. PLEASE, DONT SPAM YOUR FORUM USERS You need the email list only for important news, f. e. sites moving to new address, forums reconstruction etc. You can extract only emails or emailusername, use tab separator or comma between these values, and output emails to the screen or separate file attachment. If youve chosen last one you will get a download window after pressing submit button. Restore Admin data in database. This option updates users table and sets new admin password, username and email if you have changed any of these in the options file. Yes, you can change your admin name anytime you want, more so - we recommend to do it regularly. Hidden admin forums options Only site owner can define private forums and users which are allowed to post and view them. Edit bbspecials. php file, find variable 36clForumsarray() and add 36clForumsUsersarray() . clForums array defines closed forums ID(s), and clForumsUsers elements defines users which are allowed to post in this forum. Here is an example: That means: forums with IDs 1,3,6 are private. Users with IDs 2 and 5 are allowed to post and view forum under ID 1, users with IDs 10 and 11 are allowed to post and view forum under ID 3, users with IDs 12 and 22 are allowed to post and view forum under ID 6. If you are able to think logically, it must not be difficult for you to set these arrays, and it be more simplier for you to edit this file once, else for us to write giant interface, which would be out of concepts of miniBB. If you dont want to have private forums, leave these arrays blank (but dont remove them). Note 1: when setting clForums array without clForumsUsers array, you wont get any results, and these forums will be available to anyone . until you define user IDs, which have access to a private forum. Specify empty 36clForumsUsers array for some forum, even if it has no users allowed. Another words, these settings are working only together . not separately. Note 2: it is not necessary define admin ID (1), because admin can enter any private forum and has full access to it. Note 3: topic titles from private forums dont appear on statistics, last discussions, user info and search pages, and first forums page, too. Anyway, if allowed user or admin is logged, they will appear everywhere automatically. Site owner can create so called archive forums. In read-only forums, nobody except admin or defined moderator can make or edit posts. Edit bbspecials. php with array variable 36roForums in it. Like in private forums (see above), add read-only comma-separated forums IDs into this array. Site owner can create so called post-only forums. That means, users can do anything except for creating new topics in these forums. It is very useful, if you combine your forums with guestbook or administrative news flash, for example. Edit bbspecials. php with array variable 36poForums in it. Like in private forums (see above), add read-only comma-separated forums IDs into this array. In post-only forums, nobody except admin can make or edit topics. That means, forum with ID 1 is post-only. If you have post-only forum as guestbook, for example, or just want to redirect user to some thread exactly when he is clicking on forums title to view topics, you can define it in bbspecials. php as redthread array. Example from our forums: means when user visits some forum with ID 8, he will redirected to the topic with ID 355, so the full URL will be like actionvthreadampforum8amptopic355 . This is optional feature, it is not necessary to include this array if you dont need it. By default, miniBB doesnt use ranking system (user ranks like Administrator, Member are displayed only, and if it is anonymous user, nothing is displayed). We have special solution addon for displaying user ranks basing on their posts amount, but it is possible to define special user rankings, for special members (for example, most-active-poster-of-all-time). Open bbspecials. php for that, find 36userRanks array, and edit it. That means, users rank with ID 1 is Boss (of course. ), and users with IDs 17 and 9 are Team members. These rankings will be displayed under nickname in every post. In this way, you also can define so called special avatars, when image is displayed instead of rank. Just provide full image URL as the ranks description. These forums mean, that only registered (and logged correspondly) users can make new topics, new posts and edit their messages here. Use this setting only if you want to separate some forums for all and registered only members at the same time. Use general setting variable 36allForumsReg (see above), if you want to make registered-users-only forums for everybody. Variable 36regUsrForumsarray() in bbspecials. php means array of forums IDs which are protected. That means, forums with ID 1,2 are only for registered users. In a case of registered-user-only forums, the post-topic or post-thread box with login information WILL APPEAR even if user is not logged in. User will be able to enter his loginpass to make a post. Anonymous or incorrectly logged users will be informed with Access denied message. In many cases, they can loose the information they typed, so please warn users of your board someway, that they must register before making any post In the latest releases, we have defined language packs variables for it, they are called lanonAllowed, and lanonDisallowed, and contain the text appearing near each message form, if user is not logged in. Moderators are people who can help admin in managing forums (read more in moderators section. Variable 36modsarray() in bbspecials. php defines the the array of forumuser IDs which have moderators possibilities. means that user with ID 9 is the moderator for forums with IDs 1 and 2, and user 996 is moderator for forum 1. Moderators have access only to specified forum. Displaying list of moderators is available on the first forums page. In default version, it is hidden. If you want to display this list, in HTML template mainforumscell. html add variable (for example, directly after ). It will display usernames of moderators for current foru M. If there is no moderator specified, nothing will be displayed. If you want to exclude some forum from Recent discussions list, you can set it in the bbspecials array lastOut. For example: lastOutarray(6) excludes forum with ID 6 from Last discussions list on the first page. Its not necessary to add this new value if you dont need this. You can specify the ID of the thread (topic), which messages can be sorted in DESCending order. By default, every thread is sorted in ASCending order. Specially useful for questbooks. For this, set new array in your bbspecials. php file: where THREADIDs can be array of IDs of topics. For example: will set DESC order for topics with ID 355 and 11. Note that this option will not affect page listing in last discussions and topics list. When some topic is splitted by pages, last replies will be available when you click on topics title. If you have such kind of sorted thread (like guestbook), it is better to exclude it from last discussions and set the exact redirect from forums title (see Post-only forums and redthread). When you set this kind of topic, near its title, users will see an icon from imgtopicreverse. gif. Only admin is allowed to delete user messages. Admin needs to be logged into the system. For deleting any message, go to the topicthread list and click on Delete on the top of the message. JavaScript alert should appear click Ok, and the post will be deleted. After delete, message is not available for recovering. We are not keeping Recycle Bins. NOTE: you can not delete FIRST message of the topic. Thats because the first message in thread list is TOPIC TEXT in reality. If you want to delete first message, it means you want to delete the WHOLE TOPIC. For this, see Deleting topics. Admin or moderators are allowed to delete all available user topics (moderator - for each specified forum) also if userDeleteMsgs setting is defined, this is possible for regular members, too (for their own topicsreplies). Login, go to the bottom of topic page. You will find the link Delete topic. Click on it. JavaScript alert should appear click Ok, and topic will be deleted, with all associated posts, too. Click on Cancel, and youll keep the old things. After delete, topic is not available for recovering. No Trash Cans. Cleaning up the board solution. When your board runs for a big time, youll probably want to remove some old necessary topics. miniBB has a smart solution build-in, how to do it easy (beginning from version 2.0 RC2). Login as admin and in your Preferences, set default sorting to New topics, then go to some forum, which you want to clean-up, and go to the last page of topics within this forum. Another words, begin the cleaning from the oldest topics to the newest topics. Go inside some topic, review it, and if you find it unnecessary, delete it as described above. After that, you will be redirected to the page where topic was previously found near next topic that you need to check, you will find a little mark raquo. This will help you to not lose the last topic you stayed on. Board administrator can edit any message from the forum at any time, plus, if it is new topic text, he can edit also topic title. Moderator can edit any message within allowed forum at any time, and also change topics title. For editing the message, click on Edit link on the top of each message in posts list (it appears when allowed person is logged in). When editing message, admin or moderator can choose, either this message could be edited by user after, or not. Beginning from version 2.0 RC2, by default, all messages become opened for further editing however, checking the box marked as Edit , admin or moderator can disable this. If you want to override strike through Edit text near checkbox, when editing a message as admin or moderator, just add leditLockMark as edited and lock post in your language pack (if leditLock variable is set, it will overwrite default setting). Message author can edit topics title only, if administrator has set necessary option (see above ). When admin or moderator edits his own message, Edited by string will show his name instead of simple Admin or Moderator title when editingdisabling anothers message at the same time, if admin or moderator do not check Edit box when editing anothers message, status of this message will be kept as it was (or like it was not edited by admin at all). Only administrator can move topics from one forum to another. Moving topics is a specific operation, we dont recommend to do it often (since many users will not understand whats going on). Do it only if topics thematics is not the same as the one of a forum. After decision, login as admin, go to the bottom of the topic page, click on Move topic and move topic correspondly to the forum you want. You can move topic only to the another forum, else there is no sense for this action (dont move topic to the same forum). When moving topics, only forum info is updated, nor datetime or anything. If topic is moved from one closed forum to another, and subscribers are NOT in this forum, their subscriptions will be DELETED. This is very smart censorship operation, which prohibits users from making new posts in special topics. For locking topic, log in as admin, go to the bottom of each page. You will find kinda lock topic link. When you press it, topic will be locked. On an old place instead of lock topic you should see unlock topic link. Click on it, and topic will be unlocked. Both topics author (if he is a registered user) and admin can lockunlock topics. Even if admin has locked this topic, registered author can unlock it - if the corresponding value not set in your options (see userUnlock option above). Beginning from version 2.0 RC3, it is also could be prohibited, that topics author can not lock his topic at all (see userUnlock option above). At the same time, when topic is locked, nobody from participants of topic is not able to edit his message anymore. Sticky topic means the topic, which will be shown on the top of the topics list every time . This is useful for some announcements or really hot discussions, which you want to present first. Sticky topics appear ONLY in topics list. Last discussions page stays untouched Last discussions is actually fresh meat, there is no necessarity to show sticky posts every day, in the time when new stuff is going. Sticky topics are available for setting both for admin and moderators. For stickying topic, go to the bottom of the thread and find the Make sticky link. Just click on it. When the topic is already sticky, you will find the Make unsticky link. Sticky topics also can be locked. If you lock sticky topic, and then unlock it again, the sticky status will be kept, and vice versa. Entering topic, logged admin can view which users are subscribed to this topic (Subscriptions link). Entering view panel, admin can also delete unwanted subscriptions, checking boxes near users email. Note: if there are no subscriptions, link will not appear. Actually, admins preferences doesnt change anything special. As usual user, Admin can go to that panel and edit something, but all forums-working datas (Admin email, login and password) are taken from options file. In the admin panel, you will find operation called Restore Admin data in database, clicking on it, you will automatically copy (or insert) your options data to corresponding Admin field in database. Then you can choose another email and other stuff (ICQ, for example) that will be shown on the about user page. So, your email shown in the above mentioned user info page can be independent on the email in the setup options file. If you are using Direct email plugin, you can set another email for emailing admin, so you can have 2 different emails for system messages and direct user emailing. In miniBB concepts, moderators are people who can: Lock, unlock, delete and move any topic - the same way as admin Edit any message (with topics title) - the same way as admin Post a new topic in post-only forum View poster IP (and view all users that have posted under this IP). Moderators have no admins privileges and have no access to the administration panel. Moderators privileges are splitted by forums. Each moderator can be defined only by administrator in bbspecials. php file (see above). Each moderator has special description near his nickname (defined in 36lmoderator variable in language). If moderator has special rank, his rank will be displayed instead of it. Forums-wide user options There is liberal users hierarchy in miniBB. Topics can be made both by anonymous users and registered users. Vamos ver o que acontece. Anonymous users. If you are lazy, or do not register for some reasons, you can make anonymous post, even under your usual nick, if its not taken by another already. Simply type your username in Login field without password, and make a post under this name. If you leave both fields blank, your name automatically will be Anonymous (it depends on forums language setup even). However, if you will enter the nick which corresponds to any registered user you wont be able to post. This feature is only available, if forums administrator has not set the forums for registered users. Notice that Administrator may disable some anonymous nicknames for using - in that case, your nickname will be posted as default Anonymous. Registered users. WE STRONGLY RECOMMEND all users to register - in any way, will you visit this forum often or not. Why First, no one else will take your unique usernamenick, and anonymous users will not be able to post messages under your nick. Second, if you will post some messages under your nick, and register it later, it is NOT POSSIBLE to edit these anonymous messages anymore. And finally, any registered user can take your anonymous or not registered nick simply by filling registration form. User info is displayed on the separate page. On the threads page, youll find only users nick and, if this user is registered, a member beneath. Clicking on it, youll get all possible info about user, which either is specifiedallowed or not (see below). NOTE: by clicking on users nickname, you quote his nickname in the reply form Users must have cookies enabled in the browser. Cookie passwords are saved in encrypted format. User login form is located on every topics or threads page, as well as on the first page. On the topic or thread pages, you are able just to log-in without posting any text. You need to type your login and password correctly. Depending on forums setup, user login can expire in different time. Usually it expires within 1-2 hours, but administator can also make more longer expire (especially on international forums). Cookies renew mechanism also allows users to stay logged during longer periods of time - until the browser is closed. Anyway, we recommend to do logout before you are leaving forums. Anonymous users also receive cookie that goes from one page to another. Enjoy comfort Registered users can change their boards interface language in their profile, choosing from dropdown list. However, administrator of multilanguage board also can set some links for anonymous users, so they will be able to view the board on desired language. For this, you need to put the link containing variable setlang and the value corresponding to the language file name. Example: . index. phpsetlangrus will display board in Russian however this setting will not affect logged-in user. For registering, just click on Registration menu and fill in the form. Necessary fields are: LOGIN: your username, must be unique - if a user with the identical login already exists, you wont be able to register. Login must contain only symbol combination defined by admin. Usually, we recommend to use only A-Z letters, digits and maybe sign. But, if admin defines more symbols, you can also use them. There is only one possibility to view defined symbols - to make a mistype in username. Then you will see them in error message. Anyway, dont choose exotic usernames - at least, it is stupid. You can use a name with length from 3 to 40 symbols. PASSWORD: your password for BB. Must contain only A-Z letters, digits and sign (no spaces). You can use password with length from 5 to 32 symbols. Why exactly 32 We dont know ) If seriously, try to use not more than 10 symbols. PASSWORD ONCE AGAIN: this must be the same symbol combination, as the PASSWORD. This is just for checking - have you entered password correctly, or not. Pay attention: all passwords are saved in encoded way. There is no possibility to view user password even by admin Despite you can anyway receive new password via email, but it will be different from your orignal one (randomly generated). EMAIL: your email. Must be also unique (no 2 users with the same email are possible). Email is checked by simple regular expression for avoiding stupid emails. If you cant register some email, please report to admin, or at least, miniBB team. Even we have checked this combination in many cases, there are some exotic emails that can not be validated with our function. But this is a rare thing. Depending on what option current forum has, you can be registered just after filling the form, and can login to forums straight forward after it. Otherwise, if administrator has set avoiding of open registration, youll need to check for the password your email first. When open registrations are forbidden, your password will be generated by the system, thats why you need to enter the correct email-address. Beginning from the version 2.0 RC4, it is allowed for admin to disallow user registrations (set enableNewRegistrationsFALSE in setupoptions. php), but at the same time, to register them, logging as admin and visiting the link under actionregisternew . For example, paste in your templatesadminpanel. html : this link will drive you in registration form. Enter necessary user data, click Submit button - you will see regular registration message, and your new user will be created with the data you provided. An implementation for those who want to open forums only for REALLY trusted users New topic form is placed at the bottom of each topics listing page. You need to type topics title (New topic) and body (Message). At least, New topic field must be filled in. If you write in it and dont write in Message, message will be automatically equal to topics title. New post form is located at the bottom of each threads page. Note: if the anti-spam protection is enabled (usually it is), you can make posts and topics only once-per-defined-time. Usually, this time is 1-2 minutes - and it means, you can make posts not often than 1 per 1-2 minutes as well. Note 2: before making a post, make sure you have corresponding ENCODING for this. F. e. if you have to make post on non-english language, lets say, chinese, be sure your browser encoding is set to it. To do it: In Internet Explorer, click the right mouse button on the screen, choose Encoding, and then set it In Netscape NavigatorOpera, choose menus View - gt Character Set (Encoding) and then set it. Note 3: text breaks (newlinescarriage returns) are automatically converted to physical breaks. Note 4: dont use a lot of apostrophes, quotes and specific tags in your messages. Actually, they are converted to real HTML-tags like amp039 (apostrophe), ampamp (amp sign) etc. As you see, HTML special char takes at least 4 times more space than usual symbol. So, if topics title limitation is set, lets say, to 70 symbols by administrator, your sentence can contain maximum 17 special symbols. Practical example: your topic is Quick brown fox jumps over lazy dogs ears amp nose (49 symbols). Actual title is converted to: Quick brown fox jumps over lazy dogamp039s ears ampamp nose (58 symbols). If the limitation would be 50 symbols, the sentence would be cutted to Quick brown fox jumps over lazy dog039s ears (minus nose minus 5 special-symbols). Email notifications can be enabled or disabled by forums admin. Usually, on large forums they are disabled. If enabled, every user who makes a post, can subscribe to them. Alternatively, there us also a way to make notifications available without posting some text. Notifications are sent to users email when someone replies to the topic after this user. Users can subscribe to notifications even if they are not topic authors. Users can also unsubscribe from notifications. For that, got to the desired topic and find Unsubscribe link instead of notifications checkbox, and just click on it. According to the setup, user may receive notifications on custom language (in multilanguage forums). Admin receives notifications on default boards language. If you are using links like minibb (beginning with , , ftp:, www or mailto:), they are automatically converted to real links. But, when checking Disable box, links ARE NOT automatically highlighted, both as BB-codes (see below). miniBB doesnt support straight HTML code, it is displayed like you type it. However the message text can contain so called BB-codes - special codes which are transformed to the allowed HTML code upon submission. Currently, miniBB supports the following codes: urlSOMEURLHYPERLINK TEXTurl, urlSOMEURLurl Available to everybody. The codes could be properly nested, for example you can put a Bold tag for URL however you should follow the order of the code. If the Bold code opens first, it should be closed last. The codes could be typed in UPPERCASE or lowercase but there should be no spaces in tags themselves (for example b text b will not work, b text b will). Above the message form, when you compose new topic, new reply or edit the message, there are buttons which help to apply the styling to your message in BB codes format quickly. Highlight the text you have wrote in the form, then click the button to apply the attribute. In some cases, like for URL or IMG tag, you will be asked to enter additional attributes. In Internet Explorer, scripted windows must be enabled to use this feature. Topic posters can quote other messages. There is no quote BB-code included, as on some bulletin boards. Instead of it, you can use italic style to separate quotes. For better comfort, there is a quote link near every post made. For making a quote, you need to select some text and press this link. Selected text will be automatically inserted into reply box at the bottom of the page. This feature is based on JavaScript code and works only in newest browser versions. Specific or old browsers users may experience some troubles with it. Topic authors can lock their topics, if they think it is correct. In order to do it, topic author needs to be logged in. At the bottom of the topics page he must see small lock topic link. Clicking on it, topic becomes closed. Nobody except topic author or administrator can lock the topic. If topic was locked by admin, topic author can unlock it ONLY if it is defined in forum options (in most cases its not). Registered users (and only registered) can edit THEIR messages, but only if they are cookie-logged and only if the time of the message is not expired. For this, just click on Edit near each post (if it is your message, youll see the link, else not). When editing message, automatic highlights are replaced with real BB-codes, so there is no need to delete them once again. Also, real HTML tags are replaced back to codes. Via editing, user can add new BB-codes, links etc. - like in any new post or topic. User can edit only his POST, not topics title, even if he is the author of the topic. After message is edited by user, info about that is displayed near each post. There is no way to delete your message (and if not allowed, to edit topics title), if you are topics author. Only admin can do this. In some cases, after administrator has edited users message, for user, it is no way to edit it once again. For editing user preferences, you need to log in and go to the preferences appearing in menu. You can type new data for your account, except login, that can not be changed. If you dont want to change your password leave the password field and go next to the fields you want to edit, you dont need to write your password once more, cause are already logged. Then done just press submission button below. This action works exactly like registration: you need to type grammatically correct data. Thus, you can not change your email to the one of someone who already registered (incl. admins email ) ). Updating preferences, you dont need to enter password, if you dont want to change it. Just leave these fields blank. Show email public . that option allows (or not) other users to view your email in user info. It does not affect emailing notifications etc. Sort topics by . that option switches sorting filter. On topics and last discussions pages, you can view topic names sorted by new topics or new posts. This is one of the points of why to register: logging into the forums, you can quickly view, whats new. This option is saved on all pages, since anonymous users will need to click on sort every time. Login, go to the preferences, type new password 2 times in password fields. Your password will be updated to the new one. Note: after changing password your old password will not be valid, and you will need to re-login on the login page. If you will edit more settings, youll get the message not allowed or something similar. miniBB passwords are encrypted using MD5 algorithm. You can decode MD5-hash only with special hacker tools, using forces or dictionaries it is impossible to decode it in easy way. As longer password you have, as it more difficult to encode it. If you have forgotten your password, PHP-script cant restore it anymore, but instead, it generates new random password. Follow these steps to receive new password: Click on password links near login form Enter an email youve mentioned in the registration form If your email is correct (we hope, yes :) you will receive further instructions via email Follow link described in email and confirm your password Your password will be changed only after confirmation . You will be able to change it to something human in preferences. You can quickly search forums for keywords. Search panel is placed under the Search link in menu. You can search text in topics and posts, in topics only, in poster names, in specified forums, by all words, any words or the whole phrase. Newest messages are shown first. Search phrase length cant be more than 100 chars. Minimum length of any word is 3 symbols. As more search parameters you specify, as more longer by time and specific by content will be search results. Search within specified forums is also available. You can either search in all forums or choose a forum you want to search in. Search algorithm tries to perform a search on a comprehend words. By fragment . we mean here fragment of the whole word from the beginning. For example if you search for a word fox, it will be found in the sentense The quick brown fox jumps over the lazy dog., also as the word jump will be found. But the word foxy will not be found, also as row wont be found. Searching by whole phrase, script will find fox jumps over, but wont find fox dog - use Words or fragments criteria for finding many words in the text at the same time. Under Statistics menu, you can get all available information about forums. This is the most not needed part of a forum. In statistics, you will find: Total number of registered users (except admin) Total number of topics Total number of posts Who is administrator Who is last registered user Most popular topics list (top 5, top 10, top 20, top 40), which is generated according to how many answers were posted in topic Most viewed topics list (top 5, top 10, top 20, top 40), which is generated according to how many views each topic has Most active registered users list (top 5, top 10, top 20, top 40). You can define period of days which will be used in calculating stats (this setting affects only most popular topics and most viewed topics, username stats are NOT affected). Setting lstatspopular, lstatsaUsers, lstatsviewed in language pack to empty values (for example, lstatsaUsers ), will remove corresponding panel from Statistics page. Some notes for developers Please, dont study this section if you are unfamiliar with PHP, mySQL and programming at all, more so - dont even try described below. We are not giving additional support on these topics. They all are working like described if something is not working on your side, miniBB is not the reason here. Default version of miniBB is supported only by mySQL database. Anyway, we have developed special SQL-functions module which contains basic SQL-functions, which could be extended by another databases, supported by PHP. We plan to work on it in near future, but every developer who can help us in making another DB module is welcome. Youll get all necessary credits. Making a DB module is average simple. Since SQL functions are mostly the same (at least, by logic), in many cases you just need to make another database connection which is supported by PHP, and design database request if necessary. SQL requests mostly are parsed into array pointers, which can be accessed, f. e. via mysqlfetchrow() function. Probably, most databases can support this operation. In other words: just look, how mySQL parser works, and include other commands. Note: dont change names of variables, like 36result or 36sus, because some are called from the outside script. Below are described miniBB generaluniversal functions available in setup my sql. php and prepared for programmers who want to extend plugins via this SQL-module separately. Returns SQL-string like limit 10,20 prepared for inserting in SQL-request. If page0, returns only single like limit 10 string. numRows is the amount of total database request rows received via request. vieMax is the maximum amount of rows should be displayed (set in setupoptions. php). Returns SQL-string like where id1 or id2 or id3 prepared for inserting additionally in SQL-request. closedForums must be a simple array of values which request will be compared to. more could be where or simply . prefix inserts a point . after table name. field is field name which values are compared to. syntax is alternatively and or or. condition is or . Example: if closedForumsarray(6,7) Returns resource identifier on successfull SQL-request or FALSE on failure. sus determines either we need to make a first request (if 0) or just go through request rows (1). table is table name, fields are request fields separated by comma. uniF, uniC, uniV describes correspondly unique values which is used in additional request like where id1, if set. orderby specifies field name which is used in ordering result, and limit adds limit statement (could be set via makeLim() function). uniF2, uniC2, uniV2 are another set of additional unique fields. Example: returns resource ID for the following request: Returns SQL error-number after executing the request like insert into users (id, name) values (1, Paul) . insertArray must be prepared simple array of variable names which MUST correspond to their values. In the given example, it should be array(id, name), and in that case, in the script itself, there must be variable id and name, and their values correspondly must be 1 and Paul. tabh is table name where values must be inserted (users in the given example). Returns affected rows amount after executing an update request. In many cases similar to insertArray(). updateArray must be the same type array, and tabh is table name. uniq is unique fields name, and uniqVal is its value. Example: if we have updateArrayarray(id, name), and variable names, tabh are the same as in the insertArray() example, and uniquserid and uniqVal2, SQL-command will be the following: Executes DELETE request in SQL-query, return amount of affected rows. Field names mean the same as in dbsimpleSelect. Function to get amount of values from table tbName by criteria tbKeytbVal then update another necessary tables setName field setField by this amount. Call this function after deleting reply, topic, user, or moving topic, or inserting new reply. Another functions in SQL-module are specific. They either dont fit to described universal functions or are too complex for designing something special for them. You can make your own specific functions, identificating them with prefix db at the beginning. If you are the creator of your own PHP site, you probably have the same header and footer for the whole site, or just want to use another functions that fit into your project and miniBB together. As usual, they are. php files, and are included in, for example, index. php. Since miniBB owns the same index. php in its structure by default, you can change the name of miniBBs index to something else, setting indexphp option in setupoptions. php. Including forums from your own script requires a knowledge of PHP and things what are happening inside of miniBB. If you simply include your board using include() you will get errors like Headers already sent or similar. This could happen when user loggs in to the forums, and cookies are set (they can not be set in that case, because some of your HTML stuff goes before include() ). In this case, miniBB is a stick on two ends. The most efficient solution is to include your board this way: where echo header stands for the output of your common header, and echo footer stands for the output of your common footer. Most probably you will have completely another paths and filenames we hope you are able to turn your thinking on for changing them. You may also change pathToFiles setting in setupoptions. php, which will make your life easier with including files from different paths. If you have Apache server with modrewrite module turned on, you probably already know what benefits it could give to you. We will not give advices here, how you could enable this feature in Apache youll find tons of documentation in Internet. How could you use modrewrite with miniBB Actually, it could be used only for one purpose - so your miniBBs URLs look not like. index. phpactionvtopicampforum4 for example, or. index. phpactionvthreadampforum1amptopic75 . but: 40.html or 1750.html . These links will be more likely interpreted with search crawlers like Google. for example, and probably youll get your forums pages indexed more faster and more higher, than usual. php pages. miniBB will build some of internal links of this type automatically (for example, when building splitting pages), and for this, you need to enable (uncomment and set to TRUE ) modrewrite option in setupoptions. php. Notice that only links to threads and forums listings will be replaced. There is no special need in changing links to Registration, Statistics, User profiles and other pages. Search indexers need just your content. Beginning from version 2.0 RC2, links inside templates are changed automatically depending on your modrewrite setting. As you might imagine, links are build under the following scheme: List of topics: FORUMIDPAGE. html List of threads: FORUMIDTOPICIDPAGE. html Hope you see the logics in it Now, when your miniBB is prepared, and you are sure that modrewrite module is working correctly on your site, you need to create. htaccess file and place it in forums directory. It should look like this: where index. php is your forums file. Be sure you have no. HTML files under the same scheme in the forums directory Else they will not be displayed. htaccess example above is similar to what we are using on minibbforums. If you dont want index. php would be interpreted as index. html, remove the second line in the mentioned code. Your forums manual could be also interpreted as content page if you want to avoid it, remove the third line in the code. Beginning from version 2.0 RC5, pay attention at mdrw variable, it must be set ONLY in. htaccess configuration, telling the script to put NOINDEX, NOFOLLOW tags in the HTML header. So crawlers will index your modrewrite-like pages, 10.html . for example, but not index. phpactionvforumampforum1 . These 2 different addresses point to the same page, and it could be interpreted as duplicated content. So, putting mdrw variable, we force search crawler to not index your. php page, if its URL already publically available as. html. If you use modrewrite, providing links to your forum pages from another sources, try to avoid. php addresses for content pages. In PHP scripts, no tabs were used by us. All functions and operations are separated by newlines only. Most of the comments were removed in final miniBB release, however, there are some very necessary comments left, that will help you understand whats going on. Also, in many string variables cases we have used apostrophes () instead of quotes (), because that increases the speed of the scripts dramatically. If you want to have always up-to-date miniBB version, check for updates constantly. Our RSS feed contains any news related to miniBB new versions. When the new version is coming out, it is recommended for all users to upgrade immediately, because having the newest version you get a bigger chance to keep your forums safe, and all our plugins are tested only with the latest release. As soon you upgrade - as easy will be your next upgrade. For upgrading miniBB, you will need to do the following: BACK UP YOUR CURRENT FILES AND DATABASE - else you may lose your work with no way back almost always overwrite core script files in some cases update customized files, settings, laguage pack andor templates in rare cases update database structure. By core script files, we mean here basic. php scripts, which in most cases are not necessary to edit. You probably could change these files only if you have heavily customized your version. In this case, you are losing possibility to upgrade easily. All core scripts in the package by default have prefix bb, also as index. php, setupmysql. php are also core scripts. Exceptions are: bbcodes. php - this file could be modified to have your own BB codes bbcookie. php - could be modified to have your own authorization routine bbdefaultstyle. css - could and should be modified to have your own unique colorsfonts layout bbplugins. php - could be modified to have various extensions (addons and plugins) bbspecials. php - could be modified to have additional special options of forums One file you modify in any case, is called setupoptions. php. This is a settings file, and upgrading miniBB, you should never to overwrite this file, keeping your settings. Additionally, you may add new settings at the end of file, if needed. We are always adding new options at the end of this file in new version. Customizing your board, you probably always will change the template called mainheader. html. It is kept in templates directory amongst other HTML templates. Upgrading miniBB, keep in mind all templates you have upgraded. If some changed template is mentioned in upgrade history, you can either overwrite it, either edit it, changing updated code or variables, and keeping your previous work. Language pack (eng. php or whatever is placed in lang directory) is also subject to update in many cases. Since we ourselves are supporting only English version of the board, other language packs, created by 3rd party, most commonly need to be updated, if English pack is changed. If you have other language than English, or have made some changes even to your default English version, you shouldnt overwrite new original language pack, bud edit your own. miniBB 2.x series releases contain very detailed upgrading history. It is kept in a file called UPDATE. txt , which you can download in our Downloads section in Update History package. This file contains a list of all changes, which have been done from version to version. History begins from the release 2.0 RC1, the first release of 2.x series - if youre uprading from older 1.x series, start checking from this section. Before upgrade, you must get the clue how youll upgrade (hopefully, you got it from the description above), and to know your current version of miniBB. It is hidden from public for security reasons however, it is always kept in a file bbfunctions. php. Edit this file and notice your version at the very top. In most common cases, you should close your forums before upgrade, so users dont affect database with new postings or registrations. Rename your default forums index file, commonly index. php, to indexu. php, and then set the option indexphp in setupoptions. php as indexu. php. You can set another filename, of course, any filename. Create a NEW index. php file and put there simple text like We are upgrading. Please, come again in few minutes . then upload it to server. In that case, users visiting your forum, will see the warning message, at the time only you will know the name of temporary index file, and will be able to run it in order to see your results after upgrading. When you are ready to upgrade, download latest miniBB release, and start checking UPDATE. txt file from the version you currently have. For example, if youre having version 2.0 RC1f, find the section Changes comparision: 2.0 RC1f - 2.0 RC1g and follow down below the history file content until the end. So you should pass all comparision versions: 2.0 RC1g - 2.0 RC2, 2.0 RC2 - 2.0 RC2a, 2.0 RC2a - 2.0 RC2b etc. Each section provides you detailed information, on which core files you need to overwrite . which customized files you should modify . and which SQL commands you should execute in order for upgrading your database structure. Take all newest files from the latest release . despite they are mentioned as earlier versions. If you will some way notice or remember, which files you have overwritten already, it is not necessary to upgrade them twice, if they are mentioned in the next history sections. For example, index. php of bbfunctions. php are 2 files which are almost always necessary to upgrade. So you just need to ovewrite these files once, despite they are mentioned in many cases. When adding new option(s), language variables, special arrays, take a look at the default file(s) from the latest package - in most common cases, you need to paste these options the same way in your modified files. History file may also contain some non-critical updates, or just mention miniBB changes, which will not affect your old installation. They are mentioned just for your knowledge, and there is nothing to upgrade. After you have done all upgrade changes, test your board, manually pointing to the indexu. php file you have renamed before. If there are no critical errors shown from the first step, and you are able to loginout, post new topic and reply - the board should work ok. In any way, if some errors will be found after your upgrade, users will notice you. Obligately create new topic titled Forum software upgraded and notice the users about your software changes. Finally, rename your index file back and put its name in setupoptions. php file. Forums are ready to rock again If upgrading process seems difficult to you, we are always ready to help you for a reasonable rate. Check our Paid Support section for more details. Welcome to DonnaForex Need support or want to contact Donna Email admindonnaforex New to the forum Get started by creating an account. Todos os membros têm seus primeiros 5 posts moderados para spam, mas depois disso você pode postar livremente. Tem um produto que você acha que nossos membros podem querer falar sobre o fórum. Entre em contato com admindonnaforex ou com a mensagem privada donnaforex e peça uma introdução ao fórum. NÃO publique tópicos novos e, definitivamente, nenhum trabalho de copypaste de marketing, banners ou outro hype que nossos membros possam achar irritante. Mailing List Inscreva-se abaixo para receber e-mails de mim (Donna). Vou enviar-lhe informações, sugestões, dicas, estratégias ocasionais em linha reta de minha própria experiência comercial. Também vou enviar-lhe informações sobre produtos interessantes que aparecem de vez em quando no fórum. EU NÃO envio marketing preguiçoso de copipastes, se eu achar que você vai gostar de algo, eu vou discutir exatamente por quê e compartilhar tanta informação com você quanto possível ao tentar garantir ofertas especiais apenas para nossos assinantes. Uma vez que você se inscrever, você precisará clicar no link "opt-in" em seu e-mail para começar a receber atualizações. Mensagens recentes Equipe do fórum Top Boards
Regulated amp Legal para Residentes dos EUA A diferença entre uma bolsa e um corretor Como uma troca e Clearinghouse CFTC-registrados, Nadex adere aos regulamentos que incluem: Nadex combina compradores e vendedores e não participa em negociações Nadex prende todos os fundos de membro em segregado contas em cima - bancos norte-americanos (Fifth Third Bank, BMO Harris Bank) A Nadexs obtém seu rendimento unicamente de taxas de câmbio, não de tomar posições no mercado Faça uma escolha informada e segura Se você for um residente dos EUA negociando opções binárias com um corretor ou provedor offshore , Pergunte a seu corretor algumas perguntas duras mas justas: São baseadas nos EU e é legal para que recrutem clientes nos EU (Dica: seu não.) Será que prendem fundos do cliente em contas segregadas em bancos de alto nível dos EU Pode Você retira seus fundos a qualquer momento usando a web ou aplicativo móvel e receber um fio ou ACH transferência de imediato Será que eles nunca tomar o outro la...
Comments
Post a Comment