مرجع پارسی MyBB

نسخه‌ی کامل: اشتراک گذاری مطالب در شبکه های اجتماعی
شما درحال مشاهده‌ی نسخه‌ی متنی این صفحه می‌باشید. مشاهده‌ی نسخه‌ی کامل با قالب‌بندی مناسب.
صفحه‌ها: 1 2
اشتراک گذاری مطالب انجمن در شبکه های اجتماعی زیر :

1- فیسبوک
2- تویتر
3- گوگل پلاس
4- کلوب
5- فیسنما
6- لینکداین
7- دیگ
و غیره .... هر چقدر دوست دارین با یک خط کد بهش اضافه کنین !

آموزش :
به مسیر زیر برین
 کنترل پنل مدیریت » قالب و پوسته ها » قالب‌ها » قالب مورد نظر » ویرایش قالب: postbit
کد زیر رو پیدا کنید

کد:
{$post['signature']}

و بعد از کد بالا کد زیر رو اضافه کنید


کد:
<br>
    <hr>
    <center><span style="font: 16px BYekan; bold; color: #fff; background: red; padding: 0 5px 2px 5px; border-radius: 3px; opacity: 0.8;">
    <strong>اشتراک گذاری این مطلب</strong></span></a></center><br>
    
<center><a href="http://www.facebook.com/sharer/sharer.php?u={$mybb->settings['bburl']}/showthread.php?tid={$tid}" target="_blank">
<span style="font: 16px BYekan; bold; color: #fff; background: #3498db; padding: 0 5px 2px 5px; border-radius: 3px; opacity: 0.8;">
    <strong>فیسبوک</strong></span></a>
    
    <a href="http://plus.google.com/share?url={$mybb->settings['bburl']}/showthread.php?tid={$tid}" target="_blank">
<span style="font: 16px BYekan; bold; color: #fff; background: #3498db; padding: 0 5px 2px 5px; border-radius: 3px; opacity: 0.8;">
    <strong>گوگل پلاس</strong></span></a>
    
    <a href="http://twitter.com/home?status=Browsing:%20{$mybb->settings['bburl']}/showthread.php?tid={$tid}" target="_blank">
<span style="font: 16px BYekan; bold; color: #fff; background: #3498db; padding: 0 5px 2px 5px; border-radius: 3px; opacity: 0.8;">
    <strong>تویتر</strong></span></a>
    
    <a href="http://www.cloob.com/share/link/add?url={$mybb->settings['bburl']}/showthread.php?tid={$tid}" target="_blank">
<span style="font: 16px BYekan; bold; color: #fff; background: #3498db; padding: 0 5px 2px 5px; border-radius: 3px; opacity: 0.8;">
    <strong>کلوب</strong></span></a>
    
    <a href="http://facenama.com/links/?url={$mybb->settings['bburl']}/showthread.php?tid={$tid}" target="_blank">
<span style="font: 16px BYekan; bold; color: #fff; background: #3498db; padding: 0 5px 2px 5px; border-radius: 3px; opacity: 0.8;">
    <strong>فیسنما</strong></span></a>
    
    <a href="http://digg.com/submit?url={$mybb->settings['bburl']}/showthread.php?tid={$tid}" target="_blank">
<span style="font: 16px BYekan; bold; color: #fff; background: #3498db; padding: 0 5px 2px 5px; border-radius: 3px; opacity: 0.8;">
    <strong>دیگ</strong></span></a>
    
    <a href="http://www.linkedin.com/shareArticle?mini=true&amp;url={$mybb->settings['bburl']}/showthread.php?tid={$tid}" target="_blank">
    <span style="font: 16px BYekan; bold; color: #fff; background: #3498db; padding: 0 5px 2px 5px; border-radius: 3px; opacity: 0.8;">
    <strong>لینکداین</strong></span></a>
    
    <a href="https://telegram.me/share/url?url={$mybb->settings['bburl']}/showthread.php?tid={$tid}" target="_blank">
    <span style="font: 16px BYekan; bold; color: #fff; background: #3498db; padding: 0 5px 2px 5px; border-radius: 3px; opacity: 0.8;">
    <strong>تلگرام</strong></span></a>
    
    </center>
    <hr>


[تصویر:  photos.png] نمونه:
فونتش یکان نمیاد
از این استفاده کنید: 
کد:
<br>
   <hr>
   <center><span style="font: 16px B Yekan; bold; color: #fff; background: red; padding: 0 5px 2px 5px; border-radius: 3px; opacity: 0.8;"><strong>اشتراک گذاری این مطلب</strong></span></a></center><br>
<center><a href="http://www.facebook.com/sharer/sharer.php?u={$mybb->settings['bburl']}/showthread.php?tid={$tid}" target="_blank">
<span style="font: 16px B Yekan; bold; color: #fff; background: #3498db; padding: 0 5px 2px 5px; border-radius: 3px; opacity: 0.8;">
   <strong>فیسبوک</strong></span></a>
   <a href="http://plus.google.com/share?url={$mybb->settings['bburl']}/showthread.php?tid={$tid}" target="_blank">
<span style="font: 16px B Yekan; bold; color: #fff; background: #3498db; padding: 0 5px 2px 5px; border-radius: 3px; opacity: 0.8;">
   <strong>گوگل پلاس</strong></span></a>
   <a href="http://twitter.com/home?status=Browsing:%20{$mybb->settings['bburl']}/showthread.php?tid={$tid}" target="_blank">
<span style="font: 16px B Yekan; bold; color: #fff; background: #3498db; padding: 0 5px 2px 5px; border-radius: 3px; opacity: 0.8;">
   <strong>تویتر</strong></span></a>
   <a href="http://www.cloob.com/share/link/add?url={$mybb->settings['bburl']}/showthread.php?tid={$tid}" target="_blank">
<span style="font: 16px B Yekan; bold; color: #fff; background: #3498db; padding: 0 5px 2px 5px; border-radius: 3px; opacity: 0.8;">
   <strong>کلوپ</strong></span></a>
   <a href="http://facenama.com/links/?url={$mybb->settings['bburl']}/showthread.php?tid={$tid}" target="_blank">
<span style="font: 16px B Yekan; bold; color: #fff; background: #3498db; padding: 0 5px 2px 5px; border-radius: 3px; opacity: 0.8;">
   <strong>فیسنما</strong></span></a>
   <a href="http://digg.com/submit?url={$mybb->settings['bburl']}/showthread.php?tid={$tid}" target="_blank">
<span style="font: 16px B Yekan; bold; color: #fff; background: #3498db; padding: 0 5px 2px 5px; border-radius: 3px; opacity: 0.8;">
   <strong>دیگ</strong></span></a>
   <a href="https://www.linkedin.com/shareArticle?mini=true&amp;url{$mybb->settings['bburl']}/showthread.php?tid={$tid}" target="_blank"><span style="font: 16px B Yekan; bold; color: #fff; background: #3498db; padding: 0 5px 2px 5px; border-radius: 3px; opacity: 0.8;"><strong>لینکدون</strong></span></a>
   </center>
   <hr>
سلام خسته نباشید
برای اشتراک گذاری در تلگرام چه کدی رو باید قرار بدیم؟
(۱۳۹۵/۲/۳۰، ۱۴:۵۱:۲۰ عصر)autopayamak نوشته است: [ -> ]سلام خسته نباشید
برای اشتراک گذاری در تلگرام چه کدی رو باید قرار بدیم؟

درود
دوست عزیز کپی رایت برداشتید !
لطفا درستش کنید تا رایگان پشتیبانی بشید
رایگان شد

کد:
<a href="https://telegram.me/share/url?url={$mybb->settings['bburl']}/showthread.php?tid={$tid}" target="_blank"><span style="font: 16px BYekan; bold; color: #fff; background: #3498db; padding: 0 5px 2px 5px; border-radius: 3px; opacity: 0.8;"><strong>تلگرام</strong></span></a>
این روش کار نمی کنه و هنگام اشتراک گذاری خطا میده.
پلاگین نشانه های اجتماعی خیلی بهتره و اوکی هست.
ضمنا تو کدهایی که نوشتین کلمه " لینکدون" رو تصحیح کنین.  درستش " لینکداین" هست Linkedin

راجع به کپی رایت هم باید عرض کنم بنده مای بی بی و فارسی سارش رو از این انجمن دانلود نکردم.
درود
دوست عزیز

1- کد آخری که برای تلگرام قیمت گذاری کردم تست شده هست و هیچ گونه خطای مشاهده نشد !
2- هر کدوم برای شما مناسب تر هست استفاده کنید
3- چشم تصحیح شد . ممنون

4- خب حالا که از اینجا پارسی ساز رو دانلود نکردید ، رایگان پشتیبانی نخواهید شد !


موفق باشید
درود بر شما
بنده کدهایی که در پست اول گذاشته بودین در پست بیت قرار دادم ولی هنگام اشتراگ گذاری خطا داد.
برای مثال پس از اشتراک گذاری در لینکداین، وارد سایت لینکداین شد ولی پیغام زیر نمایش داده شد و اشتراک گذاری انجام نشد.
There was an unexpected problem that prevented us from completing your request.

در هرحال  ممنون .موفق باشید
درود

1- میتونید از انجمن خودم همه رو تست کنید !
2- لینک اشترک گذاری لینکداین تصحیح شد 
درود بر شما
با آپدیتی که در کدها انجام دادین مشکل حل شد. کد سایر شبکه ها درست بود. بنده  ابتدا با لینکداین تست کردم که جواب نگرفتم.
از لطف شما بزرگوار سپاسگزارم.
یه تصحیح دیگه: "کلوپ" رو به " کلوب" نغییر دهید.cloob
شاد باشین و بهترین
صفحه‌ها: 1 2