عرض مشاركة مفردة
 
  #1  
قديم 17-01-2011, 04:25 PM
ارسال دوت كوم ارسال دوت كوم غير متصل
عضو
 
تاريخ التسجيل: Oct 2008
مشاركة: 96
مستوى تقييم العضوية: 16
ارسال دوت كوم is on a distinguished road
الافتراضي طريقة وضع ايقونة مشاركة الفيس بوك في موقعك

حصلت طريقة ممتازة لوضع مواضيع النشر مثل الفيس بوك وقوقل وهي كتالي تابعي معي الشرح

1- اختر النماذج والاستايلات بعدين الاستايل اللي تبي تضع فيه الكود
2- اختر shownews.htm
3- ابحث عن الكود
كود:
:<!-- START BLOCK : bookmarksites -->

<div>
<ul class="postbar clearfix">
<li style="padding: 0pt 3px;float:{lang_left};">{phrase_bookmarks} : </li>
<!-- START BLOCK : bookmarksite -->
<li style="padding: 0pt 3px;float:{lang_left};">
<a href="{bmurl}" target="_blank" title="{submit_content_to}" rel="nofollow"><img class="bockmark-hovers" src="{script_url}/images/bookmark/{iconpath}" alt="{submit_content_to}" /></a>

</li>
<!-- END BLOCK : bookmarksite -->

وضع بعده هذا الكود

كود:

Code:<table class="tborder" border="0" cellSpacing="1" cellPadding="6">
                <tr>

<td class="thead" style="width: 152px"><font face="Tahoma"><span 

class="smallfont">
                    <span style="font-size: 9pt; font-weight: 700">
<!-- AddThis Button BEGIN -->
<div class="addthis_toolbox addthis_default_style">
<a href="http://www.addthis.com/bookmark.php?v=250&amp;pub=alkhulaqi" 

class="addthis_button_compact">انشر</a>
<span class="addthis_separator">|</span>
<a class="addthis_button_facebook"></a>
<a class="addthis_button_myspace"></a>
<a class="addthis_button_google"></a>
<a class="addthis_button_twitter"></a>
</div>
<script type="text/javascript" 

src="http://s7.addthis.com/js/250/addthis_widget.js#pub=alkhulaqi"></scrip

t>
<!-- AddThis Button END -->
</span></span></font></td>
                    </span></font> </td>
<td class="thead"><b><font face="Tahoma"><span class="smallfont">
                    <span style="font-size: 9pt"><a name="fb_share" 

type="button_count" href="http://www.facebook.com/sharer.php">انشر 

الموضوع</a><script src="http://static.ak.fbcdn.net/connect.php/js/FB.Share" 

type="text/javascript"></script></span></span><span style="font-size: 

9pt">
                    </span></font></b> </td>
                </tr>
            </table>
ليصبح الشكل النهاي للكودذ كامل بهدذا الشكل

هذا كود shownews.htm

كود:
 
<!-- INCLUDE BLOCK : header -->
<script type="text/javascript" language="javascript" src="{script_url}/scripts/show.js"></script>
<!-- start main table -->
<table width="100%">
<tr>
<td valign="top" width="{style_menuwidth}">
<!-- INCLUDE BLOCK : menucontent -->
</td>
<td valign="top">
<div id="contents" style='height: 100%;'>	
<table align="{lang_left}">
<tr>
<td align="{lang_left}" height="16"><img alt="" src="images/subs/se.gif" width="12" height="12" />
<!-- START BLOCK : rewriteon -->
<a href="news-action-listnews.htm">{phrase_news}</a>
<!-- END BLOCK : rewriteon -->
<!-- START BLOCK : rewriteoff -->
<a href="news.php?action=listnews">{phrase_news}</a>
<!-- END BLOCK : rewriteoff -->
<br /></td>
</tr><tr><td align="{lang_left}" height="16">
 <!-- START BLOCK : rewriteonnav -->
{output} <a href="news-action-listnewsm-id-{catid}.htm"> {catname}</a></td></tr><tr><td align="{lang_left}" height="16">
 <!-- END BLOCK : rewriteonnav -->
 <!-- START BLOCK : rewriteoffnav -->
{output} <a href="news.php?action=listnewsm&id={catid}"> {catname}</a></td></tr><tr><td align="{lang_left}" height="16">
 <!-- END BLOCK : rewriteoffnav -->
<!-- START BLOCK : rewriteoncurrcat -->
{output} <a href="news-action-listnewsm-id-{catid}.htm"> {catname}</a><br />
{outputcaption}   {caption}
 <!-- END BLOCK : rewriteoncurrcat -->
<!-- START BLOCK : rewriteoffcurrcat -->
{output} <a href="news.php?action=listnewsm&id={catid}"> {catname}</a><br />
{outputcaption}   {caption}
 <!-- END BLOCK : rewriteoffcurrcat -->
 <br /></td>
</tr>
</table>

</div>
<table width="100%">
<tr>
<td valign="top" width="{style_contwidth}">
<div class="whitecontent">
<script type="text/javascript" src="{script_url}/images/mediaplayer/swfobject.js"></script>
<div id="more" title="Dimofinf Player">Dimofinf Player</div>
<script type="text/javascript">
var so2 = new SWFObject('{script_url}/images/mediaplayer/more.swf','more','98%','110',"7");
so2.addVariable("x","blocks/xml/news-latest-xml.php");
so2.addVariable("t","{phrase_latest} {phrase_news}");
so2.addParam("quality", "high");
so2.addParam("wmode", "transparent");
so2.addParam("menu", "false");
so2.addParam("align", "center");
so2.write('more');
</script>
</div>
<!-- START BLOCK : greet -->
<div class="module-title">{phrase_greeting_word}</div>
<div id="contents">{greeting}<p align="{lang_right}">{sender_name}</p>
</div>
<!-- END BLOCK : greet -->
<!-- START BLOCK : news -->
<div class="module-title">{caption}</div>
<div id="contents" class="justify">
<span style='float:{lang_left};margin-{lang_right}:3px;'>{picture}{picdesc}</span>
<div class="largfont"><b>{secondcaption}</b></div>
<div class="time">{date}</div>
<span class="alert">{source}</span>
<span class="largfont">{text}</span>
<p>
<div class="smallfont"><img src="{img_dir}/buttons/comments.gif" alt="{phrase_comments}" title="{phrase_comments}" />  {comnum}   |   <img src="{img_dir}/buttons/emailed.gif" alt="{phrase_emailed}" title="{phrase_emailed}" />  {greet}   |   <img src="{img_dir}/buttons/views.gif" alt="{phrase_views}" title="{phrase_views}" />  {views}|<a href="dimcp/modules/news.php?action=editcontent&id={id}"> <img src="{img_dir}/buttons/edit.gif" /> </a> </div>
</p>
</div>
<br />
<div class="module-title">{phrase_content_services}</div>
<div id="contents">
<ul class="postbar clearfix">
<li style="padding: 0pt 3px;float:{lang_left};">{phrase_tools} : </li>
<li style="padding: 0pt 3px;float:{lang_left};cursor:{cursor};">{allowcomnt}</li>
<li style="padding: 0pt 3px;float:{lang_left};cursor:{cursor};">[<a rel="nofollow" onclick="DIM_addinline('0','greet.php?action=pregreet&id={id}&division=news'); return false;">{phrase_send_to_friend}</a>]</li>
<li style="padding: 0pt 3px;float:{lang_left};cursor:{cursor};">[<a rel="nofollow" onclick="DIM_action('news','print','','{id}');">{phrase_print}</a>]</li>
<li style="padding: 0pt 3px;float:{lang_left};cursor:{cursor};">[<a rel="nofollow" onclick="DIM_action('news','save','','{id}');">{phrase_saveas}</a>]</li>
<li style="padding: 0pt 3px;float:{lang_left};cursor:{cursor};">[<a rel="nofollow" onclick="DIM_action('pdf','save','newsm','{id}');">{phrase_pdf}</a>]</li>
</ul>
<!-- END BLOCK : news -->


<!-- START BLOCK : bookmarksites -->

<div>
<ul class="postbar clearfix">
<li style="padding: 0pt 3px;float:{lang_left};">{phrase_bookmarks} : </li>
<!-- START BLOCK : bookmarksite -->
<li style="padding: 0pt 3px;float:{lang_left};">
<a href="{bmurl}" target="_blank" title="{submit_content_to}" rel="nofollow"><img class="bockmark-hovers" src="{script_url}/images/bookmark/{iconpath}" alt="{submit_content_to}" /></a>

</li>
<!-- END BLOCK : bookmarksite -->
<table class="tborder" border="0" cellSpacing="1" cellPadding="6">
                <tr>

<td class="thead" style="width: 152px"><font face="Tahoma"><span 

class="smallfont">
                    <span style="font-size: 9pt; font-weight: 700">
<!-- AddThis Button BEGIN -->
<div class="addthis_toolbox addthis_default_style">
<a href="http://www.addthis.com/bookmark.php?v=250&amp;pub=alkhulaqi" 

class="addthis_button_compact">انشر</a>
<span class="addthis_separator">|</span>
<a class="addthis_button_facebook"></a>
<a class="addthis_button_myspace"></a>
<a class="addthis_button_google"></a>
<a class="addthis_button_twitter"></a>
</div>
<script type="text/javascript" 

src="http://s7.addthis.com/js/250/addthis_widget.js#pub=alkhulaqi"></scrip

t>
<!-- AddThis Button END -->
</span></span></font></td>
                    </span></font> </td>
<td class="thead"><b><font face="Tahoma"><span class="smallfont">
                    <span style="font-size: 9pt"><a name="fb_share" 

type="button_count" href="http://www.facebook.com/sharer.php">انشر 

الموضوع</a><script src="http://static.ak.fbcdn.net/connect.php/js/FB.Share" 

type="text/javascript"></script></span></span><span style="font-size: 

9pt">
                    </span></font></b> </td>
                </tr>
            </table>

</ul>
</div>
<!-- END BLOCK : bookmarksites -->
</div>
<br />

<div id="replaceme0" style="align:center;position:relative; display:none"></div>
<script type="text/javascript" language="javascript">
var h,replacemearr = [{replacemearr}];
{commentonload}
</script>
<br />
<!-- START BLOCK : belowbanners -->
<table align="center" cellpadding="1">
<tr>
<!-- START BLOCK : belowbanner -->
<td align="center"{colspan}>{banner}</td>
{tr}
<!-- END BLOCK : belowbanner -->
</tr>
</table>
<br />
<!-- END BLOCK : belowbanners -->
<!-- START BLOCK : commentrecords -->
{prev_next}
<div class="module-title">{phrase_comment} </div>
<!-- START BLOCK : commentrecord -->
<div class="module-title"><a name="{commentid}">#{commentid}</a> {iptoc} <span dir="rtl">[{name}]</span> <span style="float:{lang_right}">
<!-- START BLOCK : comrating -->
<div id="comunit_long{id}" dir="ltr">
<ul id="unit_ul{id}" class="unit-rating" style="width:75px;">
<li class="current-rating" style="width:{ratewidth}px;"> </li>
<!-- START BLOCK : comrate -->
<li><a href="rate.php?action=comment&star={star}&amp;id={id}&amp;m={m}&amp;c=5&amp;v={votes}&amp;av={rate}&amp;r=1&amp;div=comunit_long" title="{star}" class="r{star}-unit rater" rel="nofollow"></a></li>
<!-- END BLOCK : comrate -->
</ul>
<span class="xsmallfont"> {rate}</strong>/5 ({votes} {phrase_votes})</span>
</div>
<!-- END BLOCK : comrating -->
</span>
<br /><span class="time">{date}</span>

</div>
<div id="contents">
<!-- START BLOCK : commentreport -->
 <span style="float:{lang_right}">
 <div id="comreportdiv{commentid}" style="position:relative;">
<div id="comreportdiv{commentid}status" style="position:relative; display:none"><div align="center" id="comreportdiv{commentid}procces"></div></div>
<span id="comreportcont{commentid}"> <input title="{phrase_report_abuse}" type="image" src="images/report.gif" onclick="javascript:makeRequest('report.php?action=comment&id={commentid}','GET','','comreportdiv{commentid}','comreportcont{commentid}','');" /></span></div>
</span>
<!-- END BLOCK : commentreport -->
 {comment}
<div>{allowcomnt}<br /><div id="replaceme{commentid}" style="position:relative; display:none"></div></div>
<!-- START BLOCK : commentrepliesnote -->
<br />
<div style="width:98%;margin:auto">
<div class="module-title">{replies_on_x}</div>
<div id="blocktable">
<!-- START BLOCK : commentreplies -->

<div class="lightcontent">{repliptoc} <span dir="rtl">[{replname}]</span> <span class="time">{crdate}</span></div>
<div class="whitecontent">
<!-- START BLOCK : commentreplyreport -->
<span style="float:{lang_right}">
 <div id="comrepreportdiv{replid}" style="position:relative;">
<div id="comrepreportdiv{replid}status" style="position:relative; display:none"><div align="center" id="comrepreportdiv{replid}procces"></div></div>
<span id="comrepreportcont{replid}"> <input title="{phrase_report_abuse}" type="image" src="images/report.gif" onclick="javascript:makeRequest('report.php?action=commentreply&id={replid}','GET','','comrepreportdiv{replid}','comrepreportcont{replid}','');" /></span></div>
</span>
<!-- END BLOCK : commentreplyreport -->
{commentrepl}
</div>

<br />
<!-- END BLOCK : commentreplies -->
</div>
</div>
<!-- END BLOCK : commentrepliesnote -->

</div>
<br />
<!-- END BLOCK : commentrecord -->
<!-- END BLOCK : commentrecords -->
<div>{prev_next}</div>
</td>
<td valign="top" width="{style_bservwidth}">
<!-- START BLOCK : rating -->
<div class="module-title">{phrase_rate}</div>
<div id="contents" style='height: 100%;'>
<div class="ratingblock" style="float:{lang_left};">
<div id="unit_long{id}" dir="ltr">
<ul id="unit_ul{id}" class="unit-rating" style="width:150px;">
<li class="current-rating" style="width:{ratewidth}px;"> </li>
<!-- START BLOCK : rate -->
<li><a href="rate.php?action=content&amp;star={star}&amp;id={id}&amp;m={m}&amp;c=10&amp;v={votes}&amp;av={rate}&amp;r=1&amp;div=unit_long" title="{star}" class="r{star}-unit rater" rel="nofollow"></a></li>
<!-- END BLOCK : rate -->
</ul>
<strong> {rate}</strong>/10 ({votes} {phrase_votes})
</div>

</div>
</div>
<br />
<!-- END BLOCK : rating -->

<div id="accordion">
<!-- START BLOCK : extrablocks -->
<h2>{extrablockname}</h2>
<div class="pane"{firstblockstyle}>
<div id="contents">
{extracont}
<div id="extradiv{blockid}" style="position:relative;">
<div id="extradiv{blockid}status" style="position:relative; display:none">
<div id="extradiv{blockid}procces" style="margin:5px 5px 5px 5px"></div>
</div>
<span id="extracont{blockid}">{moreless}</span>
</div>
</div>
</div>
<!-- END BLOCK : extrablocks -->
</div>
<script type="text/javascript" language="javascript">
$(function() {
$("#accordion").tabs("#accordion div.pane", {tabs: 'h2', effect: 'fade', initialIndex: null, event:'click'});
});
</script>
</td>
</tr>
</table>
</td>
</tr>
</table>

<!-- Feedage.com RSS Feed Tracking -->
<table border="0" align="center" cellpadding="1" cellspacing="1">
<tr align="left">
<td><a href="http://www.feedage.com/feeds/18737845/-%D8%A3%D8%A8%D9%86%D8%A7%D8%A1-%D8%B9%D8%A7%D8%A6%D8%B4%D8%A9-%D8%B1%D8%B6%D9%8A-%D8%A7%D9%84%D9%84%D9%87-%D8%B9%D9%86%D9%87%D8%A7-%D9%85%D8%B9%D9%84%D9%88%D9%85%D8%A7%D8%AA-">
<img src="http://www.feedage.com/images/add2feedage.gif" width="69" height="17" border="0" alt="Preview on Feedage: -%D8%A3%D8%A8%D9%86%D8%A7%D8%A1-%D8%B9%D8%A7%D8%A6%D8%B4%D8%A9-%D8%B1%D8%B6%D9%8A-%D8%A7%D9%84%D9%84%D9%87-%D8%B9%D9%86%D9%87%D8%A7-%D9%85%D8%B9%D9%84%D9%88%D9%85%D8%A7%D8%AA-"></a></td>
<td><a href="http://www.feedage.com/subscribe.php?fid=18737845&amp;s=yahoo">
<img src="http://www.feedage.net/images/addtomyyahoo4.gif" width="92" height="17" border="0" alt="Add to My Yahoo! " 
></a></td>
<td><a href="http://www.feedage.com/subscribe.php?fid=18737845&amp;s=google">
<img src="http://www.feedage.net/images/addtogoogle.gif" width="92" height="17" border="0" alt="Add to Google! " 
></a></td>
<td><a href="http://www.feedage.com/subscribe.php?fid=18737845&amp;s=aol">
<img src="http://www.feedage.net/images/myaol_cta1.gif" width="63" height="14" border="0" alt="Add to AOL! " 
></a></td>
<td><a href="http://www.feedage.com/subscribe.php?fid=18737845&amp;s=msn">
<img src="http://www.feedage.net/images/rss_mymsn.gif" width="71" height="14" border="0" alt="Add to MSN " 
></a></td>
</tr>
<tr align="left">
<td><a href="http://www.feedage.com/subscribe.php?fid=18737845&amp;s=newsgator">
<img src="http://www.feedage.net/images/ngsub1.gif" width="92" height="17" border="0" alt="Subscribe in NewsGator Online " 
></a></td>
<td><a href="http://www.feedage.com/subscribe.php?fid=18737845&amp;s=netvibes">
<img src="http://www.feedage.net/images/add2netvibes.gif" width="91" height="17" border="0" alt="Add to Netvibes " 
></a></td>
<td><a href="http://www.feedage.com/subscribe.php?fid=18737845&amp;s=pageflakes">
<img src="http://www.feedage.net/images/add2pageflakes.gif" width="91" height="17" border="0" alt="Subscribe in Pakeflakes " 
></a></td>
<td><a href="http://www.feedage.com/subscribe.php?fid=18737845&amp;s=bloglines">
<img src="http://www.feedage.net/images/add2bloglines.gif" width="80" height="15" border="0" alt="Subscribe in Bloglines " 
></a></td>
<td><a href="http://www.feedage.com/subscribe.php?fid=18737845&amp;s=alesti">
<img src="http://www.feedage.net/images/alesti-rss-reader.gif" width="91" height="17" border="0" alt="Add to Alesti RSS Reader " 
></a></td>
</tr>
<tr align="left">
<td><a href="http://www.feedage.com/subscribe.php?fid=18737845&amp;s=feedagegroups">
<img src="http://www.feedage.net/images/add2feedagegroups.gif" width="91" height="17" border="0" alt="Add to Feedage.com Groups " 
></a></td>
<td><a href="http://www.feedage.com/subscribe.php?fid=18737845&amp;s=live">
<img src="http://www.feedage.net/images/add2live.gif" width="73" height="15" border="0" alt="Add to Windows Live " 
></a></td>
<td><a href="http://www.feedage.com/subscribe.php?fid=18737845&amp;s=iping-it">
<img src="http://www.feedage.net/images/add2iPing-it.gif" width="91" height="17" border="0" alt="iPing-it " 
></a></td>
<td><a href="http://www.feedage.com/subscribe.php?fid=18737845&amp;s=feedagealerts">
<img src="http://www.feedage.net/images/add2feedagealerts.gif" width="91" height="17" border="0" alt="Add to Feedage RSS Alerts " 
></a></td>
<td><a href="http://www.feedage.com/subscribe.php?fid=18737845&amp;s=fwicki">
<img src="http://www.feedage.net/images/add2fwicki_clicklet.png" width="91" height="15" border="0" alt="Add To Fwicki " 
></a></td>
</tr>
<tr align="left">
<td><a href="http://www.feedage.com/subscribe.php?fid=18737845&amp;s=spokentoyou">
<img src="http://www.feedage.net/images/add2spoken_to_you.gif" width="91" height="17" border="0" alt="Add to Spoken to You " 
></a></td>
</tr></table> 
<!-- Feedage.com RSS Feed Tracking -->

<!-- INCLUDE BLOCK : footer -->

وبعدين اذا اردت ان تضعها في المقالات والصور والفيديو والصوت كل اللي عليك ان تبحث عن

1- المقالات ابحث عن قالب اسمه showarticle.htm وهذا مثال على ما اقول
http://www.sonsaisha.com/articles.ph...n=show& id=98

2- قالب الاخبار اسمه shownews.html ومثاله
http://www.sonsaisha.com/news.php?action=show&id=5 8


قالب الصور اسمه showphoto.htm
قالب الفيديو اسمه showvideo.htm

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

تحياتي