Mostrando postagens com marcador Dolphin Template. Mostrar todas as postagens
Mostrando postagens com marcador Dolphin Template. Mostrar todas as postagens

quarta-feira, 15 de junho de 2011

Boonex Dolphin 7 - Como mudar o template do site sem quebrar o Orca Forum

Minha primeira experiência com Dolphin está sendo um pouco difícil pois a falta de suporte, documentação pobre e falta de livros sobre o assunto torna as coisas mais árduas. O Dolphin é uma ferramenta complicada quando se trata de personalização.

Passei pelo seguinte: Criando meu layout personalizado, notei que cada vez que escolhia meu layout, Meu Forum parava de funcionar. Quando voltava ao template padrão (Uni) tudo voltava ao normal. Descobri o porquê.

Quando você cria um novo template no Dolphin, você precisa criar um novo layout para o Orca Forum, com o mesmo nome do seu novo template. Vou guiá-los passo-a-passo. Eu presumo que você saiba como criar um template pro Dolphin.


1. Via FTP ou Gerenciado de Arquivos do seu painel de controle, siga este caminho: your_site/modules/boonex/forum/layout e lá, faça uma cópia da pasta chamada Uni e renomeie com o mesmo nome do seu template, meu template é chamado jenniferpayne.

2. Dentro da pasta que renomeou (jenniferpayne) a minha, abra num editor de texto o arquivo chamado params.php .

Lá você verá as seguintes linhas:

$gConf['dir']['xsl'] = $gConf['dir']['layouts'] . 'uni/xsl/'; // xsl dir
$gConf['url']['css'] = $gConf['url']['layouts'] . 'uni/css/'; // css url
$gConf['url']['xsl'] = $gConf['url']['layouts'] . 'uni/xsl/'; // xsl url

Renomeie "uni" com o nome do seu template e você terá algo deste tipo:

$gConf['dir']['xsl'] = $gConf['dir']['layouts'] . 'jenniferpayne/xsl/'; // xsl dir
$gConf['url']['css'] = $gConf['url']['layouts'] . 'jenniferpayne/css/'; // css url
$gConf['url']['xsl'] = $gConf['url']['layouts'] . 'jenniferpayne/xsl/'; // xsl url

3. Salve o arquivo, envie-o de volta ao servidor e estamos quase prontos.

Ao fazer isto, você notará alguns colchetes [[ ]] em volta de alguns textos, isto acontece porque se você modifica qualquer coisa no forum, como layout ou arquivos de linguagens, este precisa ser recompilado. Mesmo que você não tenha alterado o arquivo de linguagem. vá para o link "Manage Forum", clique em "[[Compile Language]]" ou algo do tipo e está pronto! Agora você pode começar a trabalhar no seu layout.

Para quem percebeu, meu site está fora do ar hoje, mas isso porque a hospedagem anterior não estava aguentando o tráfico de informações geradas por vocês, que fazem vários downloads da minha apostila! Estou mudando para uma beeeeem melhor.

Próximo post sobre Dolphin, ensinarei aos iniciantes como criar seu próprio template e alguns truques para trabalhar com o HTML e CSS padrão gerado pelo Dolphin.

Até a próxima!

Dolphin 7 - how to change template without break Orca Forum /

Hello guys, this is my first time using Boonex Dolphin 7 and my first post talking about it. It's a pain for the newbies. It's kinda hard to figger it out and even harder when it comes to customization. It's just so much to talk about and so poor documentation.

I had the following experience: creating my customised layout, i noticed that everytime i changed it, my Orca Forum stopped working. Back to Uni template, everything went back to normal. Finally discovered why.

When you create a new template at Dolphin, you need to create a new layout for the Orca Forum, with the same name. Let's go through this step-by-step. I assume you do know how to create a template by now.

1. Via FTP or CPanel File Manager, reach out this path: your_site/modules/boonex/forum/layout and there, make a copy the folder named Uni and rename it with your template's name, my template is called jenniferpayne.

2. Inside the folder you named (jenniferpayne) for me, open on a text editor like notepad, eclipse or any other the file called params.php .

There you'll see these lines:


$gConf['dir']['xsl'] = $gConf['dir']['layouts'] . 'uni/xsl/'; // xsl dir
$gConf['url']['css'] = $gConf['url']['layouts'] . 'uni/css/'; // css url
$gConf['url']['xsl'] = $gConf['url']['layouts'] . 'uni/xsl/'; // xsl url

Replace the "uni" with your templates name and you'll have something like this:

$gConf['dir']['xsl'] = $gConf['dir']['layouts'] . 'jenniferpayne/xsl/'; // xsl dir
$gConf['url']['css'] = $gConf['url']['layouts'] . 'jenniferpayne/css/'; // css url
$gConf['url']['xsl'] = $gConf['url']['layouts'] . 'jenniferpayne/xsl/'; // xsl url

3. save the file, send it back to your server and we're almost done.

When you do this, you'll notice some brackets [[ ]] around some texts, it happens because if you change any file from Orca, layout, Language files, it needs to be recompiled. So, go to Manage Forum link, click at "[[Compile Language]]" or something like this. Click on it and it's done.

This is my first post in English, i'm a web designer teacher, my resume is at www.jenniferpayne.com.br <--- Still translating my site, but basically Joomla, web design Teacher, do also some 3D applications.

You'll find some useful information about Dolphin, Joomla, Wordpress, other CMS's and stuffs related to the web world.

follow me at twitter @JennyPayneDZN

Next time, i'll teach the noobs how to create their own template and some tricks to work with Dolphin CORE Generated HTML and CSS.

That's all.