Cze.
Mam problem z:
http://www.joomla.pl/index.php/compo...leinfo/id,112/
Nie chce mi bajer niestety dzialac a bardzo potrzebuje kodu PHP w artykulach na stronie glownej !!
A wiec zrobilem tak:
1.mam Joomal-e wgrana na http://www.vipmuzyka.yoyo.pl/joomala/ wiec utworzylem katalog "mojeplikiphp" w katalogu "joomala"
2.wgralem do niego plik PHP "moj_plik.php" a w nim dodalem potrzebny kod ktory chce by sie wyswietlal w artykole (KOD JEST NA SAMYM DOLE PODANY)
3.nastepnie utworzylem arta i dodalem go na strone glowna a w nim umiescilem tylko kod ktory nalezalo wkleic, czyli "{rdaddphp file=mojeplikiphp/moj_plik.php}"
4.Efekt jest taki ze nic sie nie wyswietla - a mial sie wyswietlic kod Shoutboxa ktory chcialem by sie pojawial wraz z artem zaraz gdy sie zaloguje jakis uzytkownik
BLAGAM O POMOC !! !! !! :o :o :o
TO JEST KOD O KTORYM WCZESNIEJ PISALEM:
<?php
/**
* @version 2.3 $
* @package SmileTAG
* @copyright (C) 2006 Yuniar Setiawan
* @license http://www.gnu.org/copyleft/gpl.HTML GNU/GPL
*/
$widthx = $params->get('widthx',160);
$heighty = $params->get('heighty',300);
$infolink = $params->get('infolink',0);
$link = $params->get('link','http://mambo-joomla.go.pl');
/** ensure this file is being included by a parent file */
if (defined( '_VALID_MOS' )){
require_once("configuration.php");
}
else{
die( 'Direct Access to this location is not allowed.' );
}
$smiletagURL = $mosConfig_live_site.'/modules/smiletag/';
?>
<!-- Edit HTML Below to customize the look of your smiletag form and iframe -->
<style type="text/css">
<!--
.smiletagFrame{
border-right: #cccccc 1px solid;
border-top: #cccccc 1px solid;
border-left: #cccccc 1px solid;
border-bottom: #cccccc 1px solid;
}
-->
</style>
<script type="text/javascript" language="JavaScript">
<!--
var smiletagURL = "<?php echo $smiletagURL; ?>";
//-->
</script>
<script type="text/javascript" language="JavaScript" src="<?php echo $smiletagURL; ?>smiletag-script.js"></script>
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td valign="top">
<iframe name="iframetag" marginwidth="0" marginheight="0" src="<?php echo $smiletagURL; ?>view.php" width="<?php echo $widthx ?>" height="<?php echo $heighty ?>" frameborder="0" class="smiletagFrame">
Your Browser must support IFRAME to view
this page correctly
</iframe>
</td>
</tr>
<tr>
<td>
<form name="smiletagform" method="post" action="<?php echo $smiletagURL; ?>post.php" target="iframetag"><br />
Nick<br /><input type="text" name="name"/><br />
URL lub Email<br /><input type="text" name="mail_or_url" value="" /><br />
Wiadomość<br /><textarea name="message_box" rows="2" cols="17"></textarea><br />
<input type="hidden" name="message" value="" />
<input type="submit" name="submit" value="Wyślij!" onclick="clearMessage()" />
<input type="reset" name="reset" value="Kasuj" /><br />
</form>
</td>
</tr>
<?php
if ($infolink == 0){
?>
<tr>
<td>
Jeśli chcesz dowiedzieć się jakie buźki można wstawiać do tekstu -
<a href="<?php echo $link ?>">kliknij tutaj</a>.
</td>
</tr>
<?php
}
?>
</table>