|
»Forumlar »SE ? Support
»konulari facebook ve twittere aktarmak
https://seditio.com.tr/eski1/forums.php?m=posts&q=1836 |
| Author: cyberthm, Posted: 2012-03-02 19:47 GMT. |
|
selam arkadawlar benim bi sorunum var awagidaki resimlere dikatle bakiniz ok iwaretleriyle olan yerlere ben paylawim kurmak istiyorum yani facebook ve twitter yani son forum mesajlarinin onunde facebook ve twitter iconlarin kurup paylawdigim konulari yani son forum konularini facebook-da ve twitterde paylawmak istiyorum,ve hemen iwaretlediyim yerlere iconlarin kurup konulari facebookda ve twittere aktarmak istiyorum ama beceremedim o yuzden awagida latestpost-da yaptigim kodlari koydum bi inceleyip bakarsaniz sevinirim arkadawlar..wimdide soyleyeyim ben sed 160 kullanicisiyim..awagidaki kodlarda nerede hata yapiyorum bi bakarmisiniz? ![]() ![]() Kod: <?PHP /* ==================== [BEGIN_SED] File=plugins/latestposts2/latestposts2.php Version=121 Updated=31-aralýk-2007 Type=Plugin Author=Aragorn-pc Description=kankayizz.net [END_SED] [BEGIN_SED_EXTPLUGIN] Code=latestposts2 Part=main File=latestposts2 Hooks=index.tags Tags=index.tpl:{LATEST_POSTS_2} Minlevel=0 Order=10 [END_SED_EXTPLUGIN] ==================== */ if ( !defined('SED_CODE') ) { die("Hacking attempt."); } $plimit = "35"; // define number of rows you want to see... $sql = sed_sql_query("SELECT t.ft_id, t.ft_sectionid, t.ft_title, t.ft_updated, t.ft_postcount, t.ft_viewcount, t.ft_lastposterid, t.ft_lastpostername, s.fs_id, s.fs_title, s.fs_category FROM $db_forum_topics t,$db_forum_sections s WHERE t.ft_sectionid=s.fs_id AND t.ft_movedto=0 AND t.ft_mode=0 ORDER by t.ft_updated DESC LIMIT $plimit"); $latestposts2 .= "<table class=\"cells\"><tr>"; $latestposts2 .= "<tr><td class=\"fscat\"><center>Payla?</b></center></td><td class=\"fscat\"><center>M?vzu</b></center></td><td class=\"fscat\"> <center>Mesajlar</b></center></td></td><td class=\"fscat\"><center>Oxunma</b></center></td><td class=\"fscat\"><center>Son G?ndərən</b></center></td><td class=\"fscat\"><center>Tarix</b></center></td></tr>"; $ii=0; while ($row = sed_sql_fetcharray($sql)){ if (sed_auth('forums', $row['fs_id'], 'R')){ $ii++; $img = ($usr['id']>0 && $row['ft_updated']>$usr['lastvisit']) ? "<a href=\"forums.php?m=posts&q=".$row['ft_id']."&n=unread#unread\"><img src=\"skins/$skin/img/system/arrow-unread.gif\" alt=\"\" /></a><font color='red'>" : "<a href=\"forums.php?m=posts&q=".$row['ft_id']."\"><img src=\"skins/$skin/img/system/arrow-follow.gif\" alt=\"\" /></a></b></font> "; $latestposts2 .= "<tr><td> "; $latestposts2 .= "<tr><td> "; $latestposts2 .= $img."<a href=\"https://www.facebook.com/pages/Azmobilnet-Azerbaijan-Mobile-Center/337431572961390=http://azmobil.net/q-".$row['ft_id'].".html"\"><img src=\"http://azmobil.net/images/facebook_icon.png\"></a><a href=\"http://twitter.com/intent/session?original_referer=http://azmobil.net/q-".$row['ft_id'].".hmtl\"><img src=\"http://cepteam.net/images/twitter_icon.png\"></a> <a href=\"forums.php?m=posts&q=".$row['ft_id']."\" title=\"".$row['ft_title']."\">".sed_cc(sed_cutstring(stripslashes($row['ft_title']),28))."</a></td>"; $latestposts2 .="<td><center> (" .$row["ft_postcount"]. ") </center></td>"; $latestposts2 .="<td><center> (" .$row["ft_viewcount"]. ")</center></td>"; $latestposts2 .= "<td><center>".sed_build_user($row['ft_lastposterid'], $row['ft_lastpostername'])."</td>"; $latestposts2 .= "<td><center> ".sed_build_timegap($row['ft_updated'], $sys['now_offset'])."</b></td></center></tr>"; } } if($ii==0){ $latestposts2 .= "<tr><td colspan=\"5\"><center>Son Forum Mesajlarýný G?rebilmek Ý?in Giriþ Yapýnýz..</center></td></tr>"; } $latestposts2 .= "</table>"; $t-> assign(array( "LATEST_POSTS_2" => $latestposts2, )); ?> |
| Author: Kaan, Posted: 2012-03-02 20:07 GMT. |
|
Bu kodlar? entegre et oralara Kod: //// Face <a name="fb_share" type="button_count" href="http://www.facebook.com/sharer.php">Payla?</a><script src="http://static.ak.fbcdn.net/connect.php/js/FB.Share" type="text/javascript"></script> /////// Twet <a href="http://twitter.com/share" class="twitter-share-button" data-count="horizontal" data-via="SeditioCMS">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script> |
| Author: cyberthm, Posted: 2012-03-02 20:16 GMT. |
|
kann yaptim dediyini ama site acilmiyo yalniz banner ust kismi gorunuyo ve oylece duruyo bundan oncede oyleydi site acilmiyodu yalniz banner kismi gorunuyo. |
| Author: Kaan, Posted: 2012-03-02 20:35 GMT. |
| eklentiyi kuruncam? oluyor yoksa kodlar? ekleyincemi anlamad?m. |
| Author: cyberthm, Posted: 2012-03-02 20:38 GMT. |
|
yoo eklentide bi sorun yox zaten ben latestposts2 kullaniyorum fakat kodlari kurunca site acilmiyo kaan sen wunu bawtan sona yapib wuraya kodlari ata bilirmisin bende onu kendiminki ile deyistireyim |
| Author: Kaan, Posted: 2012-03-02 21:04 GMT. |
| eklentiyi pm ile g?nder ayarlar?m uygun zamanda sana pm ile g?nderirim tekrar. |
| Author: cyberthm, Posted: 2012-03-02 21:18 GMT. |
|
tamam kaan gonderdim |
| Author: Kaan, Posted: 2012-03-03 16:00 GMT. |
|
Sadece facebook oluyor istedi?in gibi Twitter olmuyor kodu yok. Kod: <a href=\"http://www.facebook.com/sharer.php?u=".$cfg['mainurl']."/forums.php?m=posts&q=".$row['ft_id']."&t=".sed_cc(sed_cutstring(stripslashes($row['ft_title']),28))."\" target=\"blank\"><img src=\"plugins/latestposts2/facebook_icon.png\" alt=\"FaceBook ta payla?\" /></a> Bu kodu dosyana ekle facebook payla? c?k?cak. |
| Author: cyberthm, Posted: 2012-03-04 00:11 GMT. |
| ya kardewim olmuyo iwte ne yapalim..bow ver |
| Author: Kaan, Posted: 2012-03-04 00:27 GMT. |
|
Kod: <?PHP /* ==================== [BEGIN_SED] File=plugins/latestposts2/latestposts2.php Version=121 Updated=31-aralýk-2007 Type=Plugin Author=Aragorn-pc Description=kankayizz.net [END_SED] [BEGIN_SED_EXTPLUGIN] Code=latestposts2 Part=main File=latestposts2 Hooks=index.tags Tags=index.tpl:{LATEST_POSTS_2} Minlevel=0 Order=10 [END_SED_EXTPLUGIN] ==================== */ if ( !defined('SED_CODE') ) { die("Hacking attempt."); } $plimit = "35"; // define number of rows you want to see... $sql = sed_sql_query("SELECT t.ft_id, t.ft_sectionid, t.ft_title, t.ft_updated, t.ft_postcount, t.ft_viewcount, t.ft_lastposterid, t.ft_lastpostername, s.fs_id, s.fs_title, s.fs_category FROM $db_forum_topics t,$db_forum_sections s WHERE t.ft_sectionid=s.fs_id AND t.ft_movedto=0 AND t.ft_mode=0 ORDER by t.ft_updated DESC LIMIT $plimit"); $latestposts2 .= "<table class=\"cells\"><tr>"; $latestposts2 .= "<tr><td class=\"fscat\"><center>Mövzu</b></center></td><td class=\"fscat\"> <center>Mesajlar</b></center></td></td><td class=\"fscat\"><center>Oxunma</b></center></td><td class=\"fscat\"><center>Son Göndərən</b></center></td><td class=\"fscat\"><center>Tarix</b></center></td></tr>"; $ii=0; while ($row = sed_sql_fetcharray($sql)){ if (sed_auth('forums', $row['fs_id'], 'R')){ $ii++; $img = ($usr['id']>0 && $row['ft_updated']>$usr['lastvisit']) ? "<a href=\"forums.php?m=posts&q=".$row['ft_id']."&n=unread#unread\"><img src=\"skins/$skin/img/system/arrow-unread.gif\" alt=\"\" /></a><font color='red'>" : "<a href=\"forums.php?m=posts&q=".$row['ft_id']."\"><img src=\"skins/$skin/img/system/arrow-follow.gif\" alt=\"\" /></a></b></font> "; $latestposts2 .= "<tr><td> "; $latestposts2 .= $img." <a href=\"forums.php?m=posts&q=".$row['ft_id']."\" title=\"".$row['ft_title']."\">".sed_cc(sed_cutstring(stripslashes($row['ft_title']),28))."</a> <a href=\"http://www.facebook.com/sharer.php?u=".$cfg['mainurl']."/forums.php?m=posts&q=".$row['ft_id']."&t=".sed_cc(sed_cutstring(stripslashes($row['ft_title']),28))."\" target=\"blank\"><img src=\"plugins/latestposts2/facebook_icon.png\" alt=\"FaceBook ta payla?\" /></a> </td>"; $latestposts2 .="<td><center> (" .$row["ft_postcount"]. ") </center></td>"; $latestposts2 .="<td><center> (" .$row["ft_viewcount"]. ")</center></td>"; $latestposts2 .= "<td><center>".sed_build_user($row['ft_lastposterid'], $row['ft_lastpostername'])."</td>"; $latestposts2 .= "<td><center> ".sed_build_timegap($row['ft_updated'], $sys['now_offset'])."</b></td></center></tr>"; } } if($ii==0){ $latestposts2 .= "<tr><td colspan=\"5\"><center>Son forum mesajlar?n? g?rmək ???n sayta giri? edin...</center></td></tr>"; } $latestposts2 .= "</table>"; $t-> assign(array( "LATEST_POSTS_2" => $latestposts2, )); ?> |
| Author: cyberthm, Posted: 2012-03-04 00:40 GMT. |
|
abi cok saol wimdi oldu ama ben boyle istemiyordum ki boyle cok duzensiz gozukuyo ben duzenli wekilde istiyorum awagidaki resime dikkatle bak tam yerini gostermiwim orada: ![]() |
| Author: Kaan, Posted: 2012-03-04 00:51 GMT. |
?ok ?ey istiyorsun sende fazla zorlama ?ans?n? istersen. Kod: <?PHP /* ==================== [BEGIN_SED] File=plugins/latestposts2/latestposts2.php Version=121 Updated=31-aralýk-2007 Type=Plugin Author=Aragorn-pc Description=kankayizz.net [END_SED] [BEGIN_SED_EXTPLUGIN] Code=latestposts2 Part=main File=latestposts2 Hooks=index.tags Tags=index.tpl:{LATEST_POSTS_2} Minlevel=0 Order=10 [END_SED_EXTPLUGIN] ==================== */ if ( !defined('SED_CODE') ) { die("Hacking attempt."); } $plimit = "35"; // define number of rows you want to see... $sql = sed_sql_query("SELECT t.ft_id, t.ft_sectionid, t.ft_title, t.ft_updated, t.ft_postcount, t.ft_viewcount, t.ft_lastposterid, t.ft_lastpostername, s.fs_id, s.fs_title, s.fs_category FROM $db_forum_topics t,$db_forum_sections s WHERE t.ft_sectionid=s.fs_id AND t.ft_movedto=0 AND t.ft_mode=0 ORDER by t.ft_updated DESC LIMIT $plimit"); $latestposts2 .= "<table class=\"cells\"><tr>"; $latestposts2 .= "<tr><td class=\"fscat\"><center>Mövzu</b></center></td> <td class=\"fscat\"><center>Payla?</b></center></td> <td class=\"fscat\"> <center>Mesajlar</b></center></td></td><td class=\"fscat\"><center>Oxunma</b></center></td><td class=\"fscat\"><center>Son Göndərən</b></center></td><td class=\"fscat\"><center>Tarix</b></center></td></tr>"; $ii=0; while ($row = sed_sql_fetcharray($sql)){ if (sed_auth('forums', $row['fs_id'], 'R')){ $ii++; $img = ($usr['id']>0 && $row['ft_updated']>$usr['lastvisit']) ? "<a href=\"forums.php?m=posts&q=".$row['ft_id']."&n=unread#unread\"><img src=\"skins/$skin/img/system/arrow-unread.gif\" alt=\"\" /></a><font color='red'>" : "<a href=\"forums.php?m=posts&q=".$row['ft_id']."\"><img src=\"skins/$skin/img/system/arrow-follow.gif\" alt=\"\" /></a></b></font> "; $latestposts2 .= "<tr><td> "; $latestposts2 .= $img." <a href=\"forums.php?m=posts&q=".$row['ft_id']."\" title=\"".$row['ft_title']."\">".sed_cc(sed_cutstring(stripslashes($row['ft_title']),28))."</a></td>"; $latestposts2 .= " <td><a href=\"http://www.facebook.com/sharer.php?u=".$cfg['mainurl']."/forums.php?m=posts&q=".$row['ft_id']."&t=".sed_cc(sed_cutstring(stripslashes($row['ft_title']),28))."\" target=\"blank\"><img src=\"plugins/latestposts2/facebook_icon.png\" alt=\"FaceBook ta payla?\" /></a> </td>"; $latestposts2 .="<td><center> (" .$row["ft_postcount"]. ") </center></td>"; $latestposts2 .="<td><center> (" .$row["ft_viewcount"]. ")</center></td>"; $latestposts2 .= "<td><center>".sed_build_user($row['ft_lastposterid'], $row['ft_lastpostername'])."</td>"; $latestposts2 .= "<td><center> ".sed_build_timegap($row['ft_updated'], $sys['now_offset'])."</b></td></center></tr>"; } } if($ii==0){ $latestposts2 .= "<tr><td colspan=\"5\"><center>Son forum mesajlar?n? g?rmək ???n sayta giri? edin...</center></td></tr>"; } $latestposts2 .= "</table>"; $t-> assign(array( "LATEST_POSTS_2" => $latestposts2, )); ?> |
| Author: cyberthm, Posted: 2012-03-04 17:53 GMT. This post was edited by cyberthm (2012-03-04 18:00 GMT, 5314 Gün ago) |
|
kaan bu boyle olmaz bunda yalniwlik var tamam kodlarda bi hata yok ama mantik hatasi var.. kodlari latestpost-a atinca sitede ana sayfada facebooka aktar cikiyo bunda bi sorun yok ama facebooka aktardigimiz zaman sadece konun ismini aktariyo yani resim filan konu haqqinda bi bilgi bile aktarmiyo yalnizca konunun ismini cikartiyo,ismini derken konuya ait bir link atiyo facebooka bana lazim olansa paylawacagim konu ve onun resmi..wimdi bi wi sorayim bunu oyle yapmak olurmu kaan ? yani aktardigimiz zaman resmi konunun icinden ceksin yani tam konunu aktarsin facebooka..kendin bir dene o zaman ne dedigimi anlayacaksin..wimdide tewekkurler bide wunlari atdikdan sonra yani verdiyin kodlari ekledikten sonra kendi nikimle giris yapamiyorum giriw yapiyorum ama iwte : http://azmobil.net/users.php?m=auth&a=check boyle kaliyo site acilmiyo |
| Author: Kaan, Posted: 2012-03-04 18:38 GMT. |
|
?stedi?in forumlar i?in olmaz o ?ekilde eklenti haz?rlamak gerekiyor. Kodlarla giri? yapamama gibi bir sorun olu?maz ba?ka sorun vard?r. |
| Powered by Seditio | Print version |