Q-Proje Dosyası ise aşağıdaki kodlardan oluşmakta.. Yardımcı olabilirseniz minnettar kalırım. İlgilenecek arkadşalara çok teşekkürler..
<?php
/************************************************** ******************\
** qp_tagcloud - Joomla! Etiket Mambot / Cloud Mambot **
** Copyright (C) 2009 by Hasan ERZI **
** Versiyon / Version : 1.0 **
** Site / Website :
http://www.qproje.com **
** Lisans / Licence : GNU GPL Lisans **
\************************************************* *******************/
defined( '_VALID_MOS' ) or die( 'Kısıtlı Erisim' );
global $_VERSION;
if ( $_VERSION->RELEASE < '1.5' ) {
$_MAMBOTS->registerFunction( 'onPrepareContent', 'QP_TagsJ10x' );
}else{
$_MAMBOTS->registerFunction( 'onPrepareContent', 'QP_TagsJ15x' );
}
function QP_TagsJ10x(&$published, &$row, $mask=0, $page=0) {
global $mainframe;
if (!$published) {
return true;
}
$regex = "#{qptags}(.*?){/qptags}#s";
// degisimi gerceklestir
$row->text = preg_replace_callback( $regex, 'QP_Tags_replacer', $row->text );
return true;
}
function QP_TagsJ15x(&$row, $mask=0, $page=0 ) {
$regex = "#{qptags}(.*?){/qptags}#s";
// degisimi gerceklestir
$row->text = preg_replace_callback( $regex, 'QP_Tags_replacer', $row->text );
return true;
}
// Etiketleri Ayıkla+Linkle
function QP_Tags_replacer( &$qp_tags ) {
if ($qp_tags[1]) $tum_etiketler = split("==", $qp_tags[1]);
// Itemid al
$Itemid = $_GET["Itemid"];
// sef icin bos itemid kontrlü
if ($Itemid == NULL) {
$Itemid = '';
} else {
$Itemid = '&Itemid='. $Itemid;
}
$cikti .= '';
foreach ($tum_etiketler as $etiket) {
$cikti .= '<a href="' . sefRelToAbs('index.php?option=com_search'.$Itemid. '&searchword='.strip_tags($etiket)).'"><strong>' ;
$cikti .= strip_tags($etiket);
$cikti .= '</strong></a>, ';
}
return '<div style="margin-bottom: 1.5em;padding: 1em 1.5em 1em 2.7em;border-bottom: 2px solid #fff; border-top: 2px solid #fff; color: #444; background: #e2ecee url(images/M_images/weblink.png) 1.0em center no-repeat; border-color: #9ddae6"> <strong>Etiketler</strong> : '.$cikti.'</div>';
}
?>