← Joomla

Joomla

Lida 7698 vezes

Offline

Bruno Mota 
Membro
Mensagens 1733 Gostos 3
Troféus totais: 28
Trófeus: (Ver todos)
Super Combination Combination Topic Starter 10 Poll Votes Poll Voter Level 5 Level 4 Level 3 Level 2 Level 1

hel.souza,  percisas de ter o smf e o joomla na mesma base de dados, isso que tas a fazer já me aconteceu a quando da primeira interegração que fiz entre forum e portal ,ou seja, entre SMF e Joomla... eu não me posso considerar um especialista como o exit... mas percebo alguma coisa destas andanças  :wink:
Offline

Souza 
Elite
Mensagens 1816 Gostos 1
Troféus totais: 28
Trófeus: (Ver todos)
Super Combination Combination Topic Starter 10 Poll Votes Poll Voter Level 5 Level 4 Level 3 Level 2 Level 1

Sim mota77, ontem reparei nisso, já consegui!
Agora alguém me diz como faço um post de maneira a aparecer na front page do joomla?
Como se instala o mod_smf_joomla login 1.4?
ja tentei instalar normalmente plo admin do joom, mas não funca no fim!
Offline

Nuno 
Administrador
Mensagens 7780 Gostos 216
Feedback +2

Troféus totais: 42
Trófeus: (Ver todos)
100 Poll Votes Level 7 Search Mobile User Level 6 Super Combination Combination Topic Starter 50 Poll Votes 10 Poll Votes

Não era necessário por na mesma bd, nessa situação bastava dar permissão aos users para ambas as bd...

Q erro te da no mod?
Offline

Souza 
Elite
Mensagens 1816 Gostos 1
Troféus totais: 28
Trófeus: (Ver todos)
Super Combination Combination Topic Starter 10 Poll Votes Poll Voter Level 5 Level 4 Level 3 Level 2 Level 1

Nenhum erro exit, simplesmente instalo, ficando a front page vazia, para voltar ao normal tenho de desligar o mod!
E para postar no forum para aparecer na front page como se faz?
Desculpem estas perguntas de noob mas eu comecei a trabalhar com joomla a 2 dias.
Offline

Nuno 
Administrador
Mensagens 7780 Gostos 216
Feedback +2

Troféus totais: 42
Trófeus: (Ver todos)
100 Poll Votes Level 7 Search Mobile User Level 6 Super Combination Combination Topic Starter 50 Poll Votes 10 Poll Votes

Os post aparecem na frontpage não é assim tão simples... eu tenho isso feito mas numa costumização para o meu site:

Código: [Seleccione]
<?php
// Require SSI
require&#40;'SSI.php'&#41;;

// Some variables. Change these to test this script &#58;&#41;
$boards = array&#40;1, 2, 3&#41;; // Boards to use
$number 10// Number of items to return
$length 300// Return this number of characters, followed by "...".

// Get the news
$news_items ssi_boardNews&#40;$boards, $number, null, $length, 'array'&#41;; // array&#40;boards&#41;, number of items, item to start at, number of characters, output method
// Loop through all items
foreach &#40;$news_items as $news&#41;
&#123;
// Output this item
echo '
<div>
<a href="'
$news['href'&#93;, '">', $news['icon'&#93;, '</a> <b>', $news['subject'&#93;, '</b>
<div class="smaller">', $news['time'&#93;, ' by ', $news['poster'&#93;['link'&#93;, ' in ', $news['board'&#93;['link'&#93;, '</div>

<div class="post" style="padding&#58; 2ex 0;">', $news['body'&#93;, '</div>

', $news['link'&#93;, $news['locked'&#93; ? '' &#58; ' ' . $news['comment_link'&#93;, '
</div>';

// If it isn'
t the last itemoutput a <hr />
if &#40;!$news['is_last'&#93;&#41;
echo '
<hr style="margin&#58; 2ex 0;" width="100%" />'
;
&
#125;
?>


Este é o codigo é o que deves introduzir na template para te aparecer os posts completos ou com o nº de caracteres que queres... se quiseres apenas os ultimos topicos já exisem modulos para instalaçao no site k fizeste o download da bridge!
Offline

Souza 
Elite
Mensagens 1816 Gostos 1
Troféus totais: 28
Trófeus: (Ver todos)
Super Combination Combination Topic Starter 10 Poll Votes Poll Voter Level 5 Level 4 Level 3 Level 2 Level 1

Se quiser usar o teu código onde devo colar no template?
Podes ser mais especifico por favor!
É que é mesmo o que eu preciso!
E mais um obrigado exit
Offline

Nuno 
Administrador
Mensagens 7780 Gostos 216
Feedback +2

Troféus totais: 42
Trófeus: (Ver todos)
100 Poll Votes Level 7 Search Mobile User Level 6 Super Combination Combination Topic Starter 50 Poll Votes 10 Poll Votes

Só vendo a o codigo da template que estas a usar...

Mas adiciona antes do "main body" para aparecer na zona principal do site, se é isso que prentendes
Offline

Souza 
Elite
Mensagens 1816 Gostos 1
Troféus totais: 28
Trófeus: (Ver todos)
Super Combination Combination Topic Starter 10 Poll Votes Poll Voter Level 5 Level 4 Level 3 Level 2 Level 1

Fica aqui o codigo do index do template, se puderes ajudar agradecia exit!

Código: [Seleccione]

<?php

defined
&#40; '_VALID_MOS' &#41; or die&#40; 'Restricted access' &#41;;

// needed to seperate the ISO number from the language file constant _ISO

$iso explode&#40; '=', _ISO &#41;;

// xml prolog

echo '<?xml version="1.0" encoding="'$iso[1&#93; .'"?' .'>';

?>


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"><head>

<?php 

require &#40;'templates/darkportal_plazza/mysplitcssmenu.php'&#41;;

require &#40;'templates/darkportal_plazza/template_config.php'&#41;; ?>




<?php mosShowHead&#40;&#41;; ?>



<?php 

$headtxt_width 
$templatewidth -420;

if &
#40; $my->id &#41; &#123; initEditor&#40;&#41;; &#125; 

if &#40; mosCountModules&#40;'left'&#41;&#41; &#123;

$mwidth $templatewidth 225

$mwidth_ie $templatewidth 248

&
#125;

if &#40; mosCountModules&#40;'right'&#41;&#41; &#123;

$mwidth $templatewidth 225

$mwidth_ie $templatewidth 248

&
#125;

if &#40;mosCountModules&#40;'left'&#41; && mosCountModules&#40;'right'&#41;&#41; &#123; 

$mwidth $templatewidth 433;

$mwidth_ie $templatewidth 456;  &#125;

if &#40;mosCountModules&#40;'left'&#41; + mosCountModules&#40;'right'&#41;==0&#41; &#123; 

$mwidth $templatewidth 16;

$mwidth_ie $templatewidth 39; &#125;







if &
#40;mosCountModules&#40;'user11'&#41; || mosCountModules&#40;'user12'&#41; || mosCountModules&#40;'user13'&#41; || mosCountModules&#40;'user14'&#41;&#41; &#123;

$botsecmodwidth "100%";

$botsecmodwidth_ie "99%";  &#125;

if &#40;mosCountModules&#40;'user11'&#41; && mosCountModules&#40;'user12'&#41; && mosCountModules&#40;'user13'&#41; && mosCountModules&#40;'user14'&#41;&#41; &#123;

$botsecmodwidth "25%";

$botsecmodwidth_ie "24.8%";  &#125;

if &#40;mosCountModules&#40;'user11'&#41; + mosCountModules&#40;'user12'&#41; + mosCountModules&#40;'user13'&#41; + mosCountModules&#40;'user14'&#41;==3&#41; &#123; 

$botsecmodwidth "33.3%";

$botsecmodwidth_ie "33%"; &#125;

if &#40;mosCountModules&#40;'user11'&#41; + mosCountModules&#40;'user12'&#41; + mosCountModules&#40;'user13'&#41; + mosCountModules&#40;'user14'&#41;==2&#41; &#123; 

$botsecmodwidth "50%";

$botsecmodwidth_ie "49.5%"; &#125;

 
?>




<link rel="stylesheet" href="templates/darkportal_plazza/css/template_css.css" type="text/css" />

<link rel="stylesheet" href="templates/darkportal_plazza/css/sfish.css" type="text/css" />





<script type="text/javascript" src="templates/darkportal_plazza/js/match.js"></script>

</head>



<body class="bodies">

<div id="wrapper" align="center" >

<div  id="pagewrapper" style="width:<?php echo $templatewidth?>px;">

<div id="bodywrapper">

<?php if &#40;$menutype=="suckerfish"&#41; &#123; ?>

<div id="xtd_menu">

<?php mosLoadModules &#40; 'user8',-2 &#41;; ?>

</div>

<?php &#125; ?>

<?php if &#40;$menutype=="splitmenu"&#41; &#123; ?>

<div id="xtd_top">

<?php echo $mycssPSPLITmenu_content?>

</div>

<div id="xtd_sec">

<?php echo $mycssONLY_SUB_menu?>

</div>



<div style="clear:both; line-height:0px; "> &nbsp;</div>





<?php &#125; ?>



<div id="top_head">

<div id="logos">

<a href="<?php echo $mosConfig_live_site;?>">

<img src="templates/darkportal_plazza/images/logo.gif" alt="<?php echo $mosConfig_sitename?>" border="0" /></a>

</div>

<div id="headtxt" style="width:<?php echo $headtxt_width?>px">

<div id="headtxt_inner">

<?php mosLoadModules &#40; 'inset',-2 &#41;; ?>

</div>



</div>

</div>

<div id="tpath">

<?php if &#40;$option == 'com_frontpage' &#41;&#123; ?>

<span style="line-height:22px; font-weight:bold;">Home</span> <?php &#125; else &#123; ?>

<?php mosPathWay&#40;&#41;; ?>

<?php &#125; ?>

</div>

<div style="clear:both"></div>

<div id="bodysection">

<?php if &#40;mosCountModules&#40;'left'&#41;&#41; &#123; ?>

<div id="lsection" class="column">

<?php mosLoadModules &#40; 'left',-2&#41;; ?>

</div>

<?php &#125; ?>

<div id="msection" style="width:<?php echo $mwidth?>px!important; width:<?php echo $mwidth_ie?>px " >

<div id="msection_box" class="column"  >

<?php if &#40;mosCountModules&#40;'user4'&#41;&#41; &#123; ?>

<div id="searchb">

<div style="background:url(templates/darkportal_plazza/images/search_img.gif) no-repeat; float:left; width:67px; height:25px;"> &nbsp;</div>

<?php mosLoadModules &#40; 'user4',-2 &#41;; ?>

</div>

<div style="clear:both;"></div>

<?php &#125;?>

<?php if &#40;mosCountModules&#40;'user5'&#41;&#41; &#123; ?>



<div id="bannerb">

<!--[if IE 6]><div style="float:left;"><![endif]-->

<?php mosLoadModules &#40; 'user5',-1 &#41;; ?>

<!--[if IE 6]></div><![endif]-->

<div style="clear:both;"></div>



</div>

<?php &#125;?>





<div id="bodyb">

<?php mosMainBody&#40;&#41;; ?>

</div>



<?php if&#40;mosCountModules&#40;'user1'&#41; || mosCountModules&#40;'user2'&#41;&#41; &#123; ?>

<div id="botmod1">

<div class="botmod_inner">

<?php if &#40;mosCountModules&#40;'user1'&#41;&#41; &#123; ?>

<div id="botmod_inner_1">

<?php mosLoadModules &#40; 'user1',-2 &#41;; ?>

</div>

<?php &#125; ?>

</div>

</div>

<div id="botmod2">

<div class="botmod_inner">

<?php if &#40;mosCountModules&#40;'user2'&#41;&#41; &#123; ?>

<div id="botmod_inner_2">

<?php mosLoadModules &#40; 'user2',-2 &#41;; ?>

</div>

<?php &#125; ?>

<div style="clear:both;"></div>

</div>

</div>

<?php &#125; ?>



</div>

</div>

<?php if &#40;mosCountModules&#40;'right'&#41;&#41; &#123; ?>

<div id="rsection"  class="column">

<div id="rsection_inner">

<?php mosLoadModules &#40; 'right',-2 &#41;; ?>

</div>

</div>

<?php &#125; ?>



<div style="clear:both; line-height:1px;"> &nbsp;</div>





</div><!-- end bodysection -->

<?php if&#40;mosCountModules&#40;'user11'&#41; || mosCountModules&#40;'user12'&#41; || mosCountModules&#40;'user13'&#41; || mosCountModules&#40;'user14'&#41;&#41; &#123; ?>



<div id="botsection">

<div id="botsection_inner">

<?php if &#40;mosCountModules&#40;'user11'&#41;&#41; &#123; ?>

<div id="botsection_1" style="width:<?php echo $botsecmodwidth?>!important; width:<?php echo $botsecmodwidth_ie?>"><?php mosLoadModules &#40; 'user11',-2 &#41;; ?></div>

<?php &#125; ?>



<?php if &#40;mosCountModules&#40;'user12'&#41;&#41; &#123; ?>

<div id="botsection_2" style="width:<?php echo $botsecmodwidth?>!important; width:<?php echo $botsecmodwidth_ie?>"><?php mosLoadModules &#40; 'user12',-2 &#41;; ?></div>

<?php &#125; ?>



<?php if &#40;mosCountModules&#40;'user13'&#41;&#41; &#123; ?>

<div id="botsection_3" style="width:<?php echo $botsecmodwidth?>!important; width:<?php echo $botsecmodwidth_ie?>"><?php mosLoadModules &#40; 'user13',-2 &#41;; ?></div>

<?php &#125; ?>



<?php if &#40;mosCountModules&#40;'user14'&#41;&#41; &#123; ?>

<div id="botsection_4" style="width:<?php echo $botsecmodwidth?>!important; width:<?php echo $botsecmodwidth_ie?>"><?php mosLoadModules &#40; 'user14',-2 &#41;; ?></div>

<?php &#125; ?>

<div style="clear:both;"></div>

</div>



</div>

<?php &#125; ?>



<?php if &#40;mosCountModules&#40;'user3'&#41;&#41; &#123; ?>

<div id="botmenusection">

<div id="botmenusection_inner">

<?php mosLoadModules &#40; 'user3',-2 &#41;; ?>



<div style="clear:both;"></div>

</div>

</div>

<?php &#125; ?>



<div id="footer"><?php include_once&#40;'includes/footer.php'&#41;; ?></div>





</div>

</div> <!-- end pagewrapper -->

</div> <!-- end wrapper -->

<br />



</body>

</html>


Peço desculpa plo tamanho do post  :)
Offline

Souza 
Elite
Mensagens 1816 Gostos 1
Troféus totais: 28
Trófeus: (Ver todos)
Super Combination Combination Topic Starter 10 Poll Votes Poll Voter Level 5 Level 4 Level 3 Level 2 Level 1

Alguém que saiba fazer isto pode entrar em contacto comigo? Eu pago :/