سلام و خسته نباشید
دوستان و مدیران محترم،
چطوری سوشال بوکمارکو ( اینو میگم http://datalifeengine.ir/hacks/953-social-bookmark.html) رو داخل short story فعال کنم در حال حاضر این هک فقط داخل full story فعال میشه( قابل ذکره که کد {social-bookmark} رو داخل shortstory.tpl قرار دادم هیچ اتفاق خاصی نیفتاد در حالی که تو full story کار میکنه)
نمایش سوشال بوکمارک در short story
آغاز شده توسط
sneaker
, 1388/05/29 ساعت 23:20
5 پاسخ برای این موضوع
#2
ارسالی 1388/05/29 ساعت 23:58
فایل engine/modules/show.short.php رو باز كنید و كد زیر رو پیدا كنید:
بعد از كد بالا ، كد زیر رو قرار بدید:
$tpl->set( '', $news_find );
بعد از كد بالا ، كد زیر رو قرار بدید:
if( $config['allow_alt_url'] == "yes" ) {
if( $row['flag'] and $config['seo_type'] ) {
if( $row['category'] and $config['seo_type'] == 2 ) {
$full_link = $config['http_home_url'] . get_url( $row['category'] ) . "/" . $row['id'] . "-" . $row['alt_name'] . ".html";
} else {
$full_link = $config['http_home_url'] . $row['id'] . "-" . $row['alt_name'] . ".html";
}
} else {
$full_link = $config['http_home_url'] . jdate( 'Y/m/d/', $row['date'] ) . $row['alt_name'] . ".html";
}
} else {
$full_link = $config['http_home_url'] . "index.php?newsid=" . $row['id'];
}
$addLink = "<a href=\"ymsgr:im?msg=".urlencode($row['title'])." : $full_link\" title=\"ارسال لینک برای دوستان از طریق یاهو مسنجر\">
<img border=0 src=\"".$config['http_home_url']."uploads/linkimg/yahoo.gif\" alt=\"ارسال لینک برای دوستان از طریق یاهو مسنجر\">
</a>
<a target=\"_blank\" href=\"http://www.google.com/bookmarks/mark?op=add&bkmk=$full_link&title=".urlencode($row['title'])."\" title=\"افزودن به علایق گوگل\">
<img border=0 src=\"".$config['http_home_url']."uploads/linkimg/google.png\" alt=\"افزودن به علایق گوگل\">
</a>
<a href=\"http://www.cloob.com/share/link/add?url=$full_link&title=".urlencode($row['title'])."\" target=\"_parent\" title=\"افزودن به کلوب 100 درجه\">
<img border=0 src=\"".$config['http_home_url']."uploads/linkimg/cloob.png\" alt=\"افزودن به کلوب 100 درجه\">
</a>
<a href=\"http://digg.com/submit?phase=2&url=$full_link&title=".urlencode($row['title'])."\" target=\"_parent\" title=\"افزودن به دیگ\">
<img border=0 src=\"".$config['http_home_url']."uploads/linkimg/digg.png\" alt=\"افزودن به دیگ\">
</a>
<a href=\"http://del.icio.us/post?&url=$full_link&title=".urlencode($row['title'])."\" target=\"_parent\" title=\"افزودن به خوشمزه\">
<img border=0 src=\"".$config['http_home_url']."uploads/linkimg/delicious.png\" alt=\"افزودن به خوشمزه\">
</a>
<a href=\"http://friendfeed.com/share?url=$full_link&title=".urlencode($row['title'])."\" target=\"_parent\" title=\"افزودن به فرندفید\">
<img border=0 src=\"".$config['http_home_url']."uploads/linkimg/friendfeed.png\" alt=\"افزودن به فرندفید\">
</a>
<a href=\"http://balatarin.com/links/submit?phase=2&url=$full_link&title=".urlencode($row['title'])."\" target=\"_parent\" title=\"افزودن به بالاترین\">
<img border=0 src=\"".$config['http_home_url']."uploads/linkimg/balatarin.png\" alt=\"افزودن به بالاترین\">
</a>
<a href=\"http://www.mohand.es/submit?phase=1&url=$full_link&title=".urlencode($row['title'])."\" target=\"_parent\" title=\"افزودن به مهندس\">
<img border=0 src=\"".$config['http_home_url']."uploads/linkimg/mohandes.png\" alt=\"افزودن به مهندس\">
</a>
<a href=\"https://www.donbaleh.com/submit.php?url=$full_link&title=".urlencode($row['title'])."\" target=\"_parent\" title=\"افزدون به دنباله\">
<img border=0 src=\"".$config['http_home_url']."uploads/linkimg/donbaleh.gif\" alt=\"افزدون به دنباله\">
</a>";
$tpl->set( '{social-bookmark}', $addLink);
if( $row['flag'] and $config['seo_type'] ) {
if( $row['category'] and $config['seo_type'] == 2 ) {
$full_link = $config['http_home_url'] . get_url( $row['category'] ) . "/" . $row['id'] . "-" . $row['alt_name'] . ".html";
} else {
$full_link = $config['http_home_url'] . $row['id'] . "-" . $row['alt_name'] . ".html";
}
} else {
$full_link = $config['http_home_url'] . jdate( 'Y/m/d/', $row['date'] ) . $row['alt_name'] . ".html";
}
} else {
$full_link = $config['http_home_url'] . "index.php?newsid=" . $row['id'];
}
$addLink = "<a href=\"ymsgr:im?msg=".urlencode($row['title'])." : $full_link\" title=\"ارسال لینک برای دوستان از طریق یاهو مسنجر\">
<img border=0 src=\"".$config['http_home_url']."uploads/linkimg/yahoo.gif\" alt=\"ارسال لینک برای دوستان از طریق یاهو مسنجر\">
</a>
<a target=\"_blank\" href=\"http://www.google.com/bookmarks/mark?op=add&bkmk=$full_link&title=".urlencode($row['title'])."\" title=\"افزودن به علایق گوگل\">
<img border=0 src=\"".$config['http_home_url']."uploads/linkimg/google.png\" alt=\"افزودن به علایق گوگل\">
</a>
<a href=\"http://www.cloob.com/share/link/add?url=$full_link&title=".urlencode($row['title'])."\" target=\"_parent\" title=\"افزودن به کلوب 100 درجه\">
<img border=0 src=\"".$config['http_home_url']."uploads/linkimg/cloob.png\" alt=\"افزودن به کلوب 100 درجه\">
</a>
<a href=\"http://digg.com/submit?phase=2&url=$full_link&title=".urlencode($row['title'])."\" target=\"_parent\" title=\"افزودن به دیگ\">
<img border=0 src=\"".$config['http_home_url']."uploads/linkimg/digg.png\" alt=\"افزودن به دیگ\">
</a>
<a href=\"http://del.icio.us/post?&url=$full_link&title=".urlencode($row['title'])."\" target=\"_parent\" title=\"افزودن به خوشمزه\">
<img border=0 src=\"".$config['http_home_url']."uploads/linkimg/delicious.png\" alt=\"افزودن به خوشمزه\">
</a>
<a href=\"http://friendfeed.com/share?url=$full_link&title=".urlencode($row['title'])."\" target=\"_parent\" title=\"افزودن به فرندفید\">
<img border=0 src=\"".$config['http_home_url']."uploads/linkimg/friendfeed.png\" alt=\"افزودن به فرندفید\">
</a>
<a href=\"http://balatarin.com/links/submit?phase=2&url=$full_link&title=".urlencode($row['title'])."\" target=\"_parent\" title=\"افزودن به بالاترین\">
<img border=0 src=\"".$config['http_home_url']."uploads/linkimg/balatarin.png\" alt=\"افزودن به بالاترین\">
</a>
<a href=\"http://www.mohand.es/submit?phase=1&url=$full_link&title=".urlencode($row['title'])."\" target=\"_parent\" title=\"افزودن به مهندس\">
<img border=0 src=\"".$config['http_home_url']."uploads/linkimg/mohandes.png\" alt=\"افزودن به مهندس\">
</a>
<a href=\"https://www.donbaleh.com/submit.php?url=$full_link&title=".urlencode($row['title'])."\" target=\"_parent\" title=\"افزدون به دنباله\">
<img border=0 src=\"".$config['http_home_url']."uploads/linkimg/donbaleh.gif\" alt=\"افزدون به دنباله\">
</a>";
$tpl->set( '{social-bookmark}', $addLink);
0 کاربر در حال خواندن این موضوع است
0 کاربر، 0 مهمان و 0 عضو مخفی