| Author | Message |
samba
64 posts |
#12772 2008-01-25 13:39 GMT |
|
neocromede kaan kardeşimizin bu eklentinin ldu versiyonunun kodları verildi ancak ben bunu seditio yada çevirmeyi denedim ancak olmadı ne hatam var? ldu orjinal kaanın kodları; Code: <?PHP /* ==================== Land Down Under - Website engine Copyright Neocrome http://www.neocrome.net [BEGIN_LDU] File=plugins/extended/tagcloud/tagcloud.php Version=802 Updated=2005-dec-12 Type=Plugin Author=Neocrome Description= [END_LDU] [BEGIN_LDU_EXTPLUGIN] Code=tagcloud Part=main File=tagcloud Hooks=index.tags Tags=index.tpl:{KaanMetaAutoTags} Minlevel=0 Order=10 [END_LDU_EXTPLUGIN] ==================== */ if (!defined('LDU_CODE')) { ldu_diefatal('Wrong URL.'); } $s = cv('s','G','ALP',3); $plugin_title = "<a href=\"plug.php?e=tagcloud\">Tag Cloud</a>"; $plugin_subtitle = "Sitedeki en popüler kelimelerin listesi "; $sql = ldu_query("SELECT ft_title, ft_id FROM $db_forum_topics WHERE ft_state=0 AND ft_id NOT LIKE 'system' "); while ($row = ldu_fetch_array($sql)) { $tags[] = " ".$row['ft_title']." ".$row['ft_id']." "; } $tags = implode('',$tags); $key_array = explode(" ", $tags); $value_array_1 = array_change_key_case($key_array, CASE_LOWER); $value_array = array_count_values($value_array_1); if ($s=="pop") { arsort($value_array); } else { ksort($value_array); } $max_size = 12; $min_size = 10; $max_qty = max(array_values($value_array)); $min_qty = min(array_values($value_array)); $spread = $max_qty - $min_qty; if ($spread == 0) { $spread = 1; } $step = ($max_size - $min_size) / ($spread); foreach ($value_array as $key => $value) { $key = strtolower($key); if ($value==1) { unset($key); } $size = round($min_size + (($value - $min_qty) * $step)); $plugin_tagcloud .= "<a href=\"\" style=\"font-size:".$size."px;\" title=\"".$value." things tagged with ".$key."\">".$key."</a> "; } $plugin_tagcloud .= "</div>"; $t-> assign(array( "KaanMetaAutoTags" => $plugin_tagcloud)); ?> benim sed e çevirdiğim kodlar; Code: <?PHP
/* ==================== Seditio - Website engine Copyright Neocrome http://www.neocrome.net [BEGIN_SED] File=plugins/tagcloud/tagcloud.php Version=121 Updated=2007-jul-24 Type=Plugin Author=Hodges Description= [END_SED] [BEGIN_SED_EXTPLUGIN] Code=tagcloud Part=main File=tagcloud Hooks=header.tags Tags=header.tpl:{tag} Order=10 [END_SED_EXTPLUGIN] ==================== */ if (!defined('SED_CODE') || !defined('SED_PLUG')) { sed_diefatal('Wrong URL.'); } $s = sed_import('s','G','ALP',3); $plugin_title = "<a href=\"plug.php?e=tagcloud\">Tag Cloud</a>"; $plugin_subtitle = "A list of the most popular things on the site"; $plugin_body = "<div style=\"text-align:right;\">Sort: <a href=\"plug.php?e=tagcloud\">alphabetically</a> | by <a href=\"plug.php?e=tagcloud&s=pop\">popularity</a></div><div style=\"margin:auto;width:80%;text-align:justify;\">"; $sql = sed_sql_query("SELECT page_title, page_cat FROM $db_pages WHERE page_state=0 AND page_cat NOT LIKE 'system' "); while ($row = sed_sql_fetcharray($sql)) { $tags[] = " ".$row['page_cat']." ".$row['page_title']." "; } $tags = implode('',$tags); $key_array = explode(" ", $tags); $value_array_1 = array_change_key_case($key_array, CASE_LOWER); $value_array = array_count_values($value_array_1); if ($s=="pop") { arsort($value_array); } else { ksort($value_array); } $max_size = 32; $min_size = 12; $max_qty = max(array_values($value_array)); $min_qty = min(array_values($value_array)); $spread = $max_qty - $min_qty; if ($spread == 0) { $spread = 1; } $step = ($max_size - $min_size) / ($spread); foreach ($value_array as $key => $value) { $key = strtolower($key); if ($value==1) { unset($key); } $size = round($min_size + (($value - $min_qty) * $step)); $plugin_body .= "<a href=\"plug.php?e=search&pre=".$key."\" style=\"font-size:".$size."px;\" title=\"".$value." things tagged with ".$key."\">".$key."</a> "; } $plugin_body .= "</div>"; $t-> assign(array( "Tag" => $plugin_tagcloud)); ?> |
|
|
sambac?
|
|
Mahkum
183 posts |
#12773 2008-01-25 14:01 GMT |
|
bu konuyu senin de dediğin gibi kaan bilir çünkü kendi sitesinde Ldu sistem Kullanıyor
|
|
|
Arkana bakmadan istikbaline ula?amass?n önce arkay? sa?lama al sonra gerisi gelir
ileti?im : by_kanunsuz@hackturkiye.org ?mhatimi Arayüzü http://rs168.rapidshare.com/files/89316776/imhatimi.rar indrin |
|
kript0tr
19 posts |
#12856 2008-01-25 17:08 GMT |
|
Eklentinin seditio versiyonunu Kaan yayinlanmisti zaten, arama yaparsaniz görürsünüz http://www.seditio-tr.com/son1313-meta-tag-olusturma-sistemi-free-plugin-last.html |
|
samba
64 posts |
#12857 2008-01-25 17:45 GMT |
|
ben Metatag eklentisinden bahsetmiyorum
|
|
|
sambac?
|
|
Dvdbil
2,179 posts |
#12878 2008-01-25 18:07 GMT |
|
Hata nedir ?
|
|
Kaan
2,036 posts |
#12886 2008-01-25 21:07 GMT |
Quote Tagclout un aynısı metatag da ben adını degiştirdim hiç bir farkı yok metatag la tagclout eklentisin sadece isim farkı var. |
|
samba
64 posts |
#14402 2008-02-04 11:34 GMT |
|
hata:
siteadi 2008-01-31 22:14 Fatal error : Wrong URL. |
|
|
sambac?
|
|
Dvdbil
2,179 posts |
#14463 2008-02-04 13:18 GMT |
|
Hooks olarak index.tags ile test et..
|
|
samba
64 posts |
#14465 2008-02-04 13:22 GMT |
|
aynı sorun yine var |
|
|
sambac?
|
|
Kaan
2,036 posts |
#14471 2008-02-04 13:26 GMT |
|
O Eklenti index de çalışmıyor standalone çalışıyor yani etiketsiz.
|
|
samba
64 posts |
#14472 2008-02-04 13:27 GMT |
|
bu sitede çalışıyor ama
|
|
|
sambac?
|
|
Kaan
2,036 posts |
#14473 2008-02-04 13:31 GMT |
|
Onla burdakinin bir alakası yok. Burdaki gibi yapmak istiyorsan kendin yapıcaksın.
|
|
Dvdbil
2,179 posts |
#14475 2008-02-04 13:42 GMT |
|
kodlarıda hiç incelemedim, kaan'ın dediği gibi standalone kodlarda hook kullanamazsın. |
|
Kaan
2,036 posts |
#14477 2008-02-04 14:03 GMT |
Quote Eklemesini bilirsen çalışır |
|
Benzer konular (Similar topics) #BETA
| Konular | Mesajlar | Son Yazar | Güncelleme |
| yardım forum mesajı hatası ile ilgili yardım | 2 | Dvdbil | 363 Gün |
| yardım pls | 9 | TurkSecurity | 90 Gün |
| yardım plz | 3 | Kaan | 321 Gün |
| yardım pls ? | 2 | S3rHat | 91 Gün |
| yardım | 3 | S3rHat | 93 Gün |






