الويب العربي

الويب العربي (http://www.arabwebtalk.com/index.php)
-   مجتمع ديموفنف (http://www.arabwebtalk.com/forumdisplay.php?f=73)
-   -   لاول مرة وحصريا ادوات AddThis لمواضيع مجلتك ( ادوات النشر ) (http://www.arabwebtalk.com/showthread.php?t=148864)

شبكة ومجلة ليبيات 29-11-2010 11:03 PM

لاول مرة وحصريا ادوات AddThis لمواضيع مجلتك ( ادوات النشر )
 
بسم الله الرحمن الرحيم
والصلاة والسلام على اشرف الانبياء والمرسلين سيدنا محمد صلى الله عليه وسلم
الاخوة الافاضل في منتدى الويب العربي لاحظت في بعض المنتديات ان بعض الاخوة دائما يطلبون اضافات اعلى مواضيعهم وبما ان الشرح فقط للمنتديات فاليوم انا اقدم لكم الشرح في اي مجلة او اي سكربت تريد فقط بخطوات بسيطة جداً ...
ملاحظة : الشرح سيطبق على شبكة ومجلة ليبيات الالكترونية - مجلة انفنتي

وطبعا اكيد في بعض الاخوة يريدون مثال قبل الشرح تفضلوا بالنقر على الرابط التالي :

http://libyat.ly/news.php?action=show&id=314


نبدا مع بعض الشرح وارجوا التركيز الجيد ...
اولا وقبل كل شيء بسم الله الرحمن الرحيم

ثانيا تفضل ندخل على موقع AddThis على الرابط التالي :

http://www.addthis.com

طبعا بعد الدخول للموقع يجب علينا التسجيل حتى نظمن بقاء الاداة تعمل دائما ودوما ان شاء الله تعالى وطريقة التسجيل سهلة ستجد اعلى الموقع على اليمين مكتوب Join Now بمعنى ادخل الان ( سجل الان ) او انقر على الرابط التالي مباشرة للدخول الى نموذج التسجيل :

https://www.addthis.com/register

طبعا راح يظهر لنا نموذج ويجب علينا ملئه والصورة التالية توضح ذلك :



طبعا بعد التسجيل ستظهر لك رسالة تبلغك بانك استلمت بريد وطبعا هذه الرسالة ليست هامة على طول انقر على GetAddThis بمعنى احصلى على الاضافة والصورة التالية للتوضيح :



ستفتح لك صفحة نجتاز المستطيل الاول لاننا اساسا سنعمل على مجلة لذا ننتقل الى المستطيل التالي ونتبع مافي الصورة التالي :



الخطوة التالية سيظهر لنا الرمز ( الكود ) للشكل الذي اخترناه والصورة التنالية توضح ذلك :



الان انتهينا من انشاء حسابنا والحصول على ما نريد من اضافات والان ناتي
لطريقة التركيب وهنا يجب التركيز جيدا علما بان التطبيق سيتم على
مجلة انفنتي لذا نبدا بالدخول الى لوحة التحكم الخاصة بانفنتي :

www.libyat.ly/cp

طبعا غير مسار الموفع لموقعك ^

الان نذهب مباشرة الى :

النماذج والقوالب > نماذج العرض > قائمة الستايلات

ستظهر لنا قائمة بالستايلات نختار الاستايل الذي نريد التعديل عليه وننقر :

( تحرير )

ستظهر لنا صفحة جديدة بها قائمة والى جانبها كلمة عرض النماذج

نفتح القائمة ونختار منها :

( shownews.htm ) ثم ننقر عرض النماذج فيفتح لنا النموذج المطلوب ...

الان نقوم بوضع الكود الذي قمنا بنسخه قبل قليل من موقع AddThis ونضعه في بداية

النموذج بعد :

كود:

<!-- INCLUDE BLOCK : header -->
نضعه بعد السطر السابق مباشرة ثم نتوجه الى اخر الصفحة ونختار :

تعديل النموذج

ثم نذهب الى اي موضوع في مجلتك وستجد الكود في البداية وهذا مثال :

http://libyat.ly/news.php?action=show&id=314

وطبعا يمكنك وضع ايضا الكود ايضا في البوم الصور والمقالات واي قسم اخر بنفس الطريقة

اما بالنسبة للاخوة الذين يستخدمون سكربتات او مجلات ادارة محتوى اخرى فالطريقة واحد ما عدا اذا حصلت مشكلة فما عليك الا وضع الكود بين <body> و <body/> او اي مكان بعد وسم <head>

ولاي استفسار فانا متواجد لخدمتكم

مقابل هذا العمل هو الدعاء لوالدي أحميدة بالرحمة والمغفرة

مدير عام شبكة ومجلة ليبيات الالكترونية

www.libyat.ly

alkebar 02-12-2010 01:58 PM

مشكور أخي الكريم

وأسال الله ان يغفر لوالدك ويرحمه ويسكنه فسيح جناته

شبكة ومجلة ليبيات 02-12-2010 10:13 PM

اللهم امين يارب العالمين
اشكرك كل الشكر اخي العزيز على مرورك ودعواك
كل الود لك

elkasaby 24-12-2010 08:57 PM

بارك الله فيك اخي الله يحفظك لولديك

عنود نجد 11-05-2011 09:10 PM

جربت وما زبطت معي ، ممكن احد يساعدني هدا الكود ويضع لي اي شكل


<!-- INCLUDE BLOCK : header -->
<link rel="stylesheet" href="{img_dir}/rate.css" type="text/css">
<script type="text/javascript" language="javascript" src="scripts/behavior.js"></script>
<script type="text/javascript" language="javascript" src="scripts/rating.js"></script>
<table align="center" border="0" cellpadding="2" cellspacing="0" class="dcitbce" width="95%">
<tr>
<td>
<table {ldir} align="right" border="0" cellpadding="0" cellspacing="0" class="dcitbce">
<tr>
<td align="right" height="16"><img border="0" src="{img_dir}/se.gif" width="12" height="12">
<!-- START BLOCK : rewriteon -->
<a href="news-action-listnews.htm">{news}</a>
<!-- END BLOCK : rewriteon -->
<!-- START BLOCK : rewriteoff -->
<a href="news.php?action=listnews">{news}</a>
<!-- END BLOCK : rewriteoff -->
<br></td>
</tr><tr><td align="right" height="16">
<!-- START BLOCK : rewriteonnav -->
{output} <a href="news-action-listnewsm-id-{catid}.htm"> {catname}</a></td></tr><tr><td align="right" height="16">
<!-- END BLOCK : rewriteonnav -->
<!-- START BLOCK : rewriteoffnav -->
{output} <a href="news.php?action=listnewsm&id={catid}"> {catname}</a></td></tr><tr><td align="right" height="16">
<!-- END BLOCK : rewriteoffnav -->
<!-- START BLOCK : rewriteoncurrcat -->
{output} <a href="news-action-listnewsm-id-{catid}.htm"> {catname}</a><br />
{output} {caption}
<!-- END BLOCK : rewriteoncurrcat -->
<!-- START BLOCK : rewriteoffcurrcat -->
{output} <a href="news.php?action=listnewsm&id={catid}"> {catname}</a><br />
{output} {caption}
<!-- END BLOCK : rewriteoffcurrcat -->
</td>
</tr>
</table>
</td>
</tr>
</table>
<script type="text/javascript" language="javascript" src="{script_url}/scripts/poetry.js"></script>
<br>
<!-- START BLOCK : greet -->
<div id="blocktable" style="width:88%">
<div class="contenttitle2"><span style='float: right'><img border="0" src="{img_dir}/arroww2.gif"></span>كلمة الإهداء</div>
<table align="center" border="0" cellpadding="3" cellspacing="1" class="tborder" width="100%" height="40">
<tr>
<td class="tdc" width="100%" {ldir}><span class="news">{greeting}</span><p align=left>{sender_name}</p></td>
</tr>
</table>
</div>
<br>
<!-- END BLOCK : greet -->
<table align="center" border="0" cellpadding="1" cellspacing="0" width="99%">
<tr>
<td valign="top">
<!-- START BLOCK : extrablocks -->
<div id="blocktable" style="width: 130px;float:left">
<div class="blocktitle"><span style='float: right'><img border="0" src="{img_dir}/arroww.gif"></span>{extrablockname} </div>
{extracont}
<div id="extradiv{blockid}" style="position:relative;">
<div id="extradiv{blockid}status" style="position:relative; width:130px; display:none">
<div id="extradiv{blockid}procces" style="margin:5px 5px 5px 5px"></div>
</div>
<span id="extracont{blockid}">{moreless}</span>
</div>
</div>
<br><br>
<!-- END BLOCK : extrablocks -->
</td>
<td valign="top" width="100%">
<!-- START BLOCK : news -->
<div id="blocktable">
<div class="contenttitle2"><span style='float: right'><img border="0" src="{img_dir}/arroww2.gif"></span>{caption}</div>
<table align="center" border="0" cellpadding="8" cellspacing="1" class="tborder" width="100%">
<tr>
<td class=tdc {ldir}><span style='float:left'>{media}</span><div class="news">{text}</div></td>
</tr>
</table>
</div>
تم إضافته يوم {dab}
<br>
<div align="center" class="dcitbce">شوهد {views} مرة - تم إرسالة {greet} مرة</div>
<br>
<div align="center" id="commentico" style="cursor:pointer;display:block">{allowcomnt}
<input type="image" src="{script_url}/infimages/email.gif" name="submit" title="ارسل الخبر لصديق" onclick="makeRequest('greet.php?division=news&amp; id={id}&amp;action=pregreet','GET','','commentdiv' ,'content','');">
<input type="image" src="{script_url}/infimages/print.gif" name="submit" onclick="infaction('print','print','newsm','{id}') ;" title="اطبع المحتوى">
<input type="image" src="{script_url}/infimages/html.gif" name="submit" onClick="infaction('html','save','newsm','{id}');" title="html حفظ بصيغة">
<input type="image" src="{script_url}/infimages/pdf.gif" name="submit" onclick="infaction('pdf','save','newsm','{id}');" title="pdf حفظ بصيغة">
</div>
<!-- END BLOCK : news -->
<!-- START BLOCK : rating -->
<table class="tb" cellpadding="0" cellspacing="0" width="100%"><tbody><tr><td class="largertext" align="left" valign="top" width="50%">
<div class="ratingblock"><div id="unit_long{id}"> <ul id="unit_ul{id}" class="unit-rating" style="width:150px;"> <li class="current-rating" style="width:{ratewidth}px;">التقييم {rate}/10</li>
<!-- START BLOCK : rate -->
<li><a href="rate.php?star={star}&amp;id={id}&amp;m={m}&a mp;c=10&amp;v={votes}&amp;av={rate}&amp;r=1" title="{star}" class="r{star}-unit rater" rel="nofollow">{star}</a></li>
<!-- END BLOCK : rate -->
</ul> اضف تقييمك<p {ldir}>التقييم: <strong> {rate}</strong>/10 ({votes} صوت) </p></div></div>
</td></tr></tbody></table>
<!-- END BLOCK : rating -->
<div id="commentdiv" style="position:relative; display:none">
<div id="commentdivstatus" style="position:relative; width:150px; display:none">
<div id="commentdivprocces" style="margin:5px 5px 5px 5px"></div>
</div>
<span id="content">
<script language="javascript">
function smilie(smilietext) {
document.commentform.comment.value += smilietext+" ";
document.commentform.comment.focus();
}
function Check(){
var the = document.commentform;
if (the.name.value == ""){
alert("يرجى كتابة اسمك");
the.name.focus();
the.name.style.background = "#FFD2D2";
return false;
}
if (the.email.value == ""){
the.name.style.background = "";
alert("يرجى كتابة بريدك");
the.email.focus();
the.email.style.background = "#FFD2D2";
return false;
}
if (the.comment.value == ""){
the.email.style.background = "";
alert("يرجى كتابة تعليقك");
the.comment.focus();
the.comment.style.background = "#FFD2D2";
return false;
}
return true;
}
function Checkn(){
var thenews = document.newsform;
if (thenews.yourname.value == ""){
alert("يرجى كتابة اسمك");
thenews.yourname.focus();
thenews.yourname.style.background = "#FFD2D2";
return false;
}
if (thenews.youremail.value == ""){
thenews.yourname.style.background = "";
alert("يرجى كتابة بريدك");
thenews.youremail.focus();
thenews.youremail.style.background = "#FFD2D2";
return false;
}
if (thenews.name.value == ""){
thenews.yourname.style.background = "";
thenews.youremail.style.background = "";
alert("يرجى كتابة اسم صديقك");
thenews.name.focus();
thenews.name.style.background = "#FFD2D2";
return false;
}
if (thenews.email.value == ""){
thenews.name.style.background = "";
thenews.yourname.style.background = "";
thenews.youremail.style.background = "";
alert("يرجى كتابة بريد صديقك");
thenews.email.focus();
thenews.email.style.background = "#FFD2D2";
return false;
}
return true;
}
</script>
</span>
</div>
<br>
<!-- START BLOCK : commentrecords -->
<div id="comt">
<div class="contenttitle2">الـتـعـلـيـقـا ت</div>
</div>
<br>
<!-- START BLOCK : commentrecord -->
<div id="comt">
<div class="dcitb">
<div class="{class}"><span style="float:left">{iptoc}</span> [{name}] [{date}] {allowcomnt}</div>
<div class="comment">{comment}</div>
</div>
</div>
<!-- START BLOCK : commentreplys -->
<div id="comt">
<div class="dcitb">
<div class="{class}"><span style="float:left">{repliptoc}</span> [{replname}] [{crdate}]</div>
<div class="comment">{commentrepl}</div>
</div>
</div>
<!-- END BLOCK : commentreplys -->
<br />
<!-- END BLOCK : commentrecord -->
<!-- END BLOCK : commentrecords -->
</td>
</tr>
</table>
<div class="dcitbce">{prev_next}</div>
<!-- INCLUDE BLOCK : footer -->

general shadi 12-05-2011 01:16 PM

الاخت عنود واضح مكان وضع الكود
<!-- INCLUDE BLOCK : header -->
بعد هي العبارة حطي الكود المطلوب
وبنسبة الي تم التركيب وهي مثال http://www.dardashchat.net/news-action-show-id-451.htm

مشكور صاحب الموضوع ولله يرحم والدك

عنود نجد 31-05-2011 12:04 PM

مشكور ربي يسعدك

طيب والمقالات اش اسم القائمه

مجمع حلقات التويم 17-12-2011 10:46 AM

يا إخواني هذا الكود وما ضبط معي

<!-- INCLUDE BLOCK : header -->
<!-- AddThis Button BEGIN -->
<div class="addthis_toolbox addthis_default_style ">
<a class="addthis_button_facebook_like" fb:like:layout="button_count"></a>
<a class="addthis_button_tweet"></a>
<a class="addthis_button_google_plusone" g:plusone:size="medium"></a>
<a class="addthis_counter addthis_pill_style"></a>
</div>
<script type="text/javascript" src="http://s7.addthis.com/js/300/addthis_widget.j s#pubid=ra-4eec429136200a6f"></script>
<!-- AddThis Button END -->
<link rel="stylesheet" href="{img_dir}/rate.css" type="text/css">
<script type="text/javascript" language="javascript" src="scripts/behavior.js"></script>
<script type="text/javascript" language="javascript" src="scripts/rating.js"></script>
<table align="center" border="0" cellpadding="2" cellspacing="0" class="dcitbce" width="95%">
<tr>
<td>
<table {ldir} align="right" border="0" cellpadding="0" cellspacing="0" class="dcitbce">
<tr>
<td align="right" height="16"><img border="0" src="{img_dir}/se.gif" width="12" height="12">
<!-- START BLOCK : rewriteon -->
<a href="news-action-listnews.htm">{news}</a>
<!-- END BLOCK : rewriteon -->
<!-- START BLOCK : rewriteoff -->
<a href="news.php?action=listnews">{news}</a>
<!-- END BLOCK : rewriteoff -->
<br></td>
</tr><tr><td align="right" height="16">
<!-- START BLOCK : rewriteonnav -->
{output} <a href="news-action-listnewsm-id-{catid}.htm"> {catname}</a></td></tr><tr><td align="right" height="16">
<!-- END BLOCK : rewriteonnav -->
<!-- START BLOCK : rewriteoffnav -->
{output} <a href="news.php?action=listnewsm&id={catid}"> {catname}</a></td></tr><tr><td align="right" height="16">
<!-- END BLOCK : rewriteoffnav -->
<!-- START BLOCK : rewriteoncurrcat -->
{output} <a href="news-action-listnewsm-id-{catid}.htm"> {catname}</a><br />
{output} {caption}
<!-- END BLOCK : rewriteoncurrcat -->
<!-- START BLOCK : rewriteoffcurrcat -->
{output} <a href="news.php?action=listnewsm&id={catid}"> {catname}</a><br />
{output} {caption}
<!-- END BLOCK : rewriteoffcurrcat -->
</td>
</tr>
</table>
</td>
</tr>
</table>
<script type="text/javascript" language="javascript" src="{script_url}/scripts/poetry.js"></script>
<br>
<!-- START BLOCK : greet -->
<div id="blocktable" style="width:88%">
<div class="contenttitle2"><span style='float: right'><img border="0" src="{img_dir}/arroww2.gif"></span>كلمة الإهداء</div>
<table align="center" border="0" cellpadding="3" cellspacing="1" class="tborder" width="100%" height="40">
<tr>
<td class="tdc" width="100%" {ldir}><span class="news">{greeting}</span><p align=left>{sender_name}</p></td>
</tr>
</table>
</div>
<br>
<!-- END BLOCK : greet -->
<table align="center" border="0" cellpadding="1" cellspacing="0" width="99%">
<tr>
<td valign="top">
<!-- START BLOCK : extrablocks -->
<div id="blocktable" style="width: 130px;float:left">
<div class="blocktitle"><span style='float: right'><img border="0" src="{img_dir}/arroww.gif"></span>{extrablockname} </div>
{extracont}
<div id="extradiv{blockid}" style="position:relative;">
<div id="extradiv{blockid}status" style="position:relative; width:130px; display:none">
<div id="extradiv{blockid}procces" style="margin:5px 5px 5px 5px"></div>
</div>
<span id="extracont{blockid}">{moreless}</span>
</div>
</div>
<br><br>
<!-- END BLOCK : extrablocks -->
</td>
<td valign="top" width="100%">
<!-- START BLOCK : news -->
<div id="blocktable">
<div class="contenttitle2"><span style='float: right'><img border="0" src="{img_dir}/arroww2.gif"></span>{caption}</div>
<table align="center" border="0" cellpadding="8" cellspacing="1" class="tborder" width="100%">
<tr>
<td class=tdc {ldir}><span style='float:left'>{media}</span><div class="news">{text}</div></td>
</tr>
</table>
</div>
تم إضافته يوم {dab}
<br>
<div align="center" class="dcitbce">شوهد {views} مرة - تم إرسالة {greet} مرة</div>
<br>
<div align="center" id="commentico" style="cursor:pointer;display:block">{allowcomnt}
<input type="image" src="{script_url}/infimages/email.gif" name="submit" title="ارسل الخبر لصديق" onclick="makeRequest('greet.php?division=news&amp; id={id}&amp;action=pregreet','GET','','commentdiv' ,'content','');">
<input type="image" src="{script_url}/infimages/print.gif" name="submit" onclick="infaction('print','print','newsm','{id}') ;" title="اطبع المحتوى">
<input type="image" src="{script_url}/infimages/html.gif" name="submit" onClick="infaction('html','save','newsm','{id}');" title="html حفظ بصيغة">
<input type="image" src="{script_url}/infimages/pdf.gif" name="submit" onclick="infaction('pdf','save','newsm','{id}');" title="pdf حفظ بصيغة">
</div>
<!-- END BLOCK : news -->

<!-- START BLOCK : rating -->
<table class="tb" cellpadding="0" cellspacing="0" width="100%"><tbody><tr><td class="largertext" align="left" valign="top" width="50%">
<div class="ratingblock"><div id="unit_long{id}"> <ul id="unit_ul{id}" class="unit-rating" style="width:150px;"> <li class="current-rating" style="width:{ratewidth}px;">التقييم {rate}/10</li>
<!-- START BLOCK : rate -->
<li><a href="rate.php?star={star}&amp;id={id}&amp;m={m}&a mp;c=10&amp;v={votes}&amp;av={rate}&amp;r=1" title="{star}" class="r{star}-unit rater" rel="nofollow">{star}</a></li>
<!-- END BLOCK : rate -->
</ul> اضف تقييمك<p {ldir}>التقييم: <strong> {rate}</strong>/10 ({votes} صوت) </p></div></div>
</td></tr></tbody></table>
<!-- END BLOCK : rating -->

<div id="commentdiv" style="position:relative; display:none">
<div id="commentdivstatus" style="position:relative; width:150px; display:none">
<div id="commentdivprocces" style="margin:5px 5px 5px 5px"></div>
</div>
<span id="content">
<script language="javascript">
function smilie(smilietext) {
document.commentform.comment.value += smilietext+" ";
document.commentform.comment.focus();
}
function Check(){
var the = document.commentform;
if (the.name.value == ""){
alert("يرجى كتابة اسمك");
the.name.focus();
the.name.style.background = "#FFD2D2";
return false;
}
if (the.email.value == ""){
the.name.style.background = "";
alert("يرجى كتابة بريدك");
the.email.focus();
the.email.style.background = "#FFD2D2";
return false;
}
if (the.comment.value == ""){
the.email.style.background = "";
alert("يرجى كتابة تعليقك");
the.comment.focus();
the.comment.style.background = "#FFD2D2";
return false;
}
return true;
}

function Checkn(){
var thenews = document.newsform;
if (thenews.yourname.value == ""){
alert("يرجى كتابة اسمك");
thenews.yourname.focus();
thenews.yourname.style.background = "#FFD2D2";
return false;
}
if (thenews.youremail.value == ""){
thenews.yourname.style.background = "";
alert("يرجى كتابة بريدك");
thenews.youremail.focus();
thenews.youremail.style.background = "#FFD2D2";
return false;
}
if (thenews.name.value == ""){
thenews.yourname.style.background = "";
thenews.youremail.style.background = "";
alert("يرجى كتابة اسم صديقك");
thenews.name.focus();
thenews.name.style.background = "#FFD2D2";
return false;
}
if (thenews.email.value == ""){
thenews.name.style.background = "";
thenews.yourname.style.background = "";
thenews.youremail.style.background = "";
alert("يرجى كتابة بريد صديقك");
thenews.email.focus();
thenews.email.style.background = "#FFD2D2";
return false;
}
return true;
}
</script>
</span>
</div>
<br>

<!-- START BLOCK : commentrecords -->
<div id="comt">
<div class="contenttitle2">الـتـعـلـيـقـا ت</div>
</div>
<br>
<!-- START BLOCK : commentrecord -->
<div id="comt">
<div class="dcitb">
<div class="{class}"><span style="float:left">{iptoc}</span> [{name}] [{date}] {allowcomnt}</div>
<div class="comment">{comment}</div>
</div>
</div>
<!-- START BLOCK : commentreplys -->
<div id="comt">
<div class="dcitb">
<div class="{class}"><span style="float:left">{repliptoc}</span> [{replname}] [{crdate}]</div>
<div class="comment">{commentrepl}</div>
</div>
</div>
<!-- END BLOCK : commentreplys -->
<br />
<!-- END BLOCK : commentrecord -->
<!-- END BLOCK : commentrecords -->
</td>
</tr>
</table>
<div class="dcitbce">{prev_next}</div>
<!-- INCLUDE BLOCK : footer -->

أرجو الحل الله يعافيكم


جميع الأوقات بتوقيت مكة المكرمة. الساعة الآن » 05:15 PM.

Powered by vBulletin
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright © ArabWebTalk.Com 2004-2012