ارفع لك الكود فقط وانت حطه بملف بصيغه xml
وسمه مثلا product-Add-friend
صوره المنتج
الكود :
<?xml version="1.0" encoding="ISO-8859-1"?>
<product productid="addme_postbit" active="1">
<title>هاك اضفني كصديق</title>
<description>اضفني كصديق تظهر في المواضيع والمشاركات</description>
<version>1.0</version>
<url>hayef5.yoo7.com</url>
<versioncheckurl>https://hayef5.yoo7.com/portal</versioncheckurl>
<dependencies>
</dependencies>
<codes>
<code version="*">
<installcode><![CDATA[define('DISABLE_PRODUCT_REDIRECT', true);
define('CP_REDIRECT', 'index.php?loc=' . urlencode('options.php?do=options&dogroup=addme_postbit'));]]></installcode>
<uninstallcode />
</code>
</codes>
<templates>
<template name="addme_postbit" templatetype="template" date="1328608250" username="admin" version="1.0"><![CDATA[<style type="text/css">
.wall_last_post {
background: none repeat scroll 0 0 #F6F6F6;
border-color: #CCCCCC #000000;
border-left: 3px solid #000000;
border-radius: 0 20px 20px 0;
border-right: 3px solid #000000;
border-style: dotted solid;
border-width: 3px;
float: left;
height: 63px;
margin-bottom: 10px;
margin-right: 10px;
padding-bottom: 5px;
width: 190px;
}
.wall_last_post_auhor {
background: url("https://gulf-missil.ucoz.com/_ph/20/2/781723650.gif") no-repeat scroll left center transparent;
color: #606060;
font-family: Tahoma;
font-size: 12px;
font-weight: normal;
margin-left: 10px;
padding-right: 11px;
padding-top: 7px;
text-shadow: 1px 0 1px #88CED8;
}
.wall_last_post .wall_last_post_auhor a {
color: #CC0000;
font-size: 12px;
font-weight: bold;
}
.wall_last_post p {
color: #606060;
font-family: Tahoma;
font-size: 11px;
font-weight: normal;
line-height: 15px;
margin: 0;
min-height: 27px;
padding: 3px;
}
.wall_last_post_footer {
color: #CC0000;
font-family: Tahoma;
font-size: 11px;
font-weight: normal;
}
.add_as_friend {
background: url("https://gulf-missil.ucoz.com/_ph/20/2/315962949.png") no-repeat scroll left center transparent;
height: 34px;
margin: auto;
padding-left: 40px;
width: 100px;
}
.add_as_friend span {
background: none repeat scroll 0 0 #FFE5CD;
border: 1px solid #F4C182;
border-radius: 3px 3px 3px 3px;
color: #E96D10;
display: block;
font-family: Tahoma;
font-size: 11px;
height: 20px;
line-height: 23px;
margin-top: 9px;
padding-bottom: 5px;
padding-left: 5px;
padding-right: 5px;
text-align: center;
}
</style>
<if condition="$vboptions[addme_postbit_place]==0">
<if condition="$post[postcount] == 1">
<div class="wall_last_post">
<div class="wall_last_post_auhor">
<font color="#000000">انا : </font>
<a href="member.php?$session[sessionurl]u=$post[userid]">
$post[username]</a></div>
<div class="add_as_friend">
<span><a rel="nofollow" href="profile.php?$session[sessionurl]do=addlist&userlist=friend&u=$post[userid]">
<phrase 1="$prepared[username]">اضفني كصديق</phrase></a></span></div>
<div class="wall_last_post_footer"></div></div></if>
<else />
<div class="wall_last_post">
<div class="wall_last_post_auhor">
<font color="#000000">انا : </font>
<a href="member.php?$session[sessionurl]u=$post[userid]">
$post[username]</a></div>
<div class="add_as_friend">
<span><a rel="nofollow" href="profile.php?$session[sessionurl]do=addlist&userlist=friend&u=$post[userid]">
<phrase 1="$prepared[username]">اضفني كصديق</phrase></a></span></div>
<div class="wall_last_post_footer"></div></div></if>]]></template>
</templates>
<plugins>
<plugin active="1" executionorder="5">
<title>Cashe templates</title>
<hookname>cache_templates</hookname>
<phpcode><![CDATA[$globaltemplates[] = 'addme_postbit';]]></phpcode>
</plugin>
<plugin active="1" executionorder="5">
<title>addme_postbit</title>
<hookname>postbit_display_start</hookname>
<phpcode><![CDATA[global $db ,$vbulletin;
if ($vbulletin->options['addme_postbit_onoff'])
{
eval('$addme_postbit = "' . fetch_template('addme_postbit') . '";');
}]]></phpcode>
</plugin>
<plugin active="1" executionorder="5">
<title>Showthread</title>
<hookname>showthread_start</hookname>
<phpcode><![CDATA[global $db ,$vbulletin;
if ($vbulletin->options['addme_postbit_onoff'])
{
$vbulletin->templatecache['postbit_legacy'] = str_replace('$post[message]','$addme_postbit<br /><br /> $post[message]',$vbulletin->templatecache['postbit_legacy']);
$vbulletin->templatecache['postbit'] = str_replace('$post[message]','$addme_postbit<br /><br /> $post[message]',$vbulletin->templatecache['postbit']);
$vbulletin->templatecache['helm_legacy'] = str_replace ('$post[message]','$addme_postbit<br /><br /> $post[message]',$vbulletin->templatecache['helm_legacy']);
$vbulletin->templatecache['helm_postbit'] = str_replace ('$post[message]','$addme_postbit<br /><br /> $post[message]',$vbulletin->templatecache['helm_postbit']);
}]]></phpcode>
</plugin>
</plugins>
<phrases>
<phrasetype name="vBulletin Settings" fieldname="vbsettings">
<phrase name="setting_addme_postbit_copyright_desc" date="1328705795" username="admin" version="1.0"><![CDATA[<a target="_blank" href="hayef5.yoo7.com">
<img border="0" src="https://gulf-missil.ucoz.com/_ph/14/2/663075804.gif" alt=":)-(:"></a>]]></phrase>
<phrase name="setting_addme_postbit_copyright_title" date="1328705795" username="admin" version="1.0"><![CDATA[حقوق المبرمج]]></phrase>
<phrase name="setting_addme_postbit_onoff_desc" date="1328705795" username="admin" version="1.0"><![CDATA[من هنا تتحكم في اطفاء وتشغيل الهاك]]></phrase>
<phrase name="setting_addme_postbit_onoff_title" date="1328705795" username="admin" version="1.0"><![CDATA[تشغيل او تعطيل الهاك]]></phrase>
<phrase name="setting_addme_postbit_place_desc" date="1328705795" username="admin" version="1.0"><![CDATA[تحكم في امكانيه ظهور ( اضفني كصديق )]]></phrase>
<phrase name="setting_addme_postbit_place_title" date="1328705795" username="admin" version="1.0"><![CDATA[مكان ظهور ( اضفني كصديق]]></phrase>
<phrase name="settinggroup_addme_postbit" date="1328705795" username="admin" version="1.0"><![CDATA[اعدادات هاك اضفني كصديق]]></phrase>
</phrasetype>
</phrases>
<options>
<settinggroup name="addme_postbit" displayorder="65535">
<setting varname="addme_postbit_onoff" displayorder="10">
<datatype>free</datatype>
<optioncode>yesno</optioncode>
<defaultvalue>1</defaultvalue>
</setting>
<setting varname="addme_postbit_place" displayorder="20">
<datatype>free</datatype>
<optioncode><![CDATA[<select name='setting[$setting[varname]]' tabindex='1' class='bginput'>
<option value='0' " . iif($setting['value']=='0','selected="selected"') . ">أول مشاركة فقط</option>
<option value='1' " . iif($setting['value']=='1','selected="selected"') . ">بكل المشاركات</option>
</select>]]></optioncode>
<defaultvalue>0</defaultvalue>
</setting>
<setting varname="addme_postbit_copyright" displayorder="30">
<datatype>free</datatype>
<optioncode>حقوق hayef5.yoo7.com</optioncode>
</setting>
</settinggroup>
</options>
<helptopics>
</helptopics>
<cronentries>
</cronentries>
<faqentries>
</faqentries>
</product>
عندك امرين
- المنتج والتعديل فقط الصور ويركب على جميع الاستايلات
والثاني
- ابحث عن قالب الاستايل المناسب لك postbit_legacy
والبحث عن
<!-- message -->
ونضف تحتها مباشرة هذا الكود
<!-- اضفني كصديق -->
<div class="wall_last_post" style="background-origin: initial; background-clip: initial; border-top-left-radius: 0px; border-top-right-radius: 20px; border-bottom-right-radius: 20px; border-bottom-left-radius: 0px; float: left; height: 63px; width: 190px; color: rgb(102, 102, 102); font-family: arial, helvetica, verdana; font-size: 16px; font-style: normal; font-variant: normal; font-weight: bold; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; border-left: 3px solid rgb(204, 0, 255); border-right: 3px solid rgb(204, 0, 255); border-top: 3px dotted rgb(204, 204, 204); border-bottom: 3px dotted rgb(204, 204, 204); margin-right: 10px; margin-bottom: 10px; padding-bottom: 5px; background: rgb(255, 255, 255) repeat repeat 0px 0px">
<div class="wall_last_post_auhor" style="background-origin: initial; background-clip: initial; color: rgb(96, 96, 96); font-family: Tahoma; font-size: 12px; font-weight: normal; text-shadow: rgb(136, 206, 216) '1px 0px 1px'; margin-left: 10px; padding-right: 11px; padding-top: 7px; background: url('http://yoursmileys.ru/csmile/friend/c0401.gif') no-repeat no-repeat 0% 50%">
<font color="#000000">انا : </font>
<a href="member.php?$session[sessionurl]u=$post[userid]">$post[username]</a></div>
<div class="add_as_friend" style="background-origin: initial; background-clip: initial; height: 38px; width: 127px; margin: auto; padding-left: 40px; background: url('http://yoursmileys.ru/img/rose.gif') no-repeat 0% 50%; ">
<span style="background-origin: initial; background-clip: initial; border-image: initial; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; color: rgb(233, 109, 16); display: block; font-family: Tahoma; font-size: 11px; height: 20px; line-height: 23px; text-align: center; border: 1px solid rgb(244, 193, 130); margin-top: 9px; padding-left: 5px; padding-right: 5px; padding-bottom: 5px; background: rgb(255, 229, 205) repeat repeat 0px 0px">
<a rel="nofollow" style="margin:0px; padding:0px; text-decoration: none; outline-width: 0px; outline-style: none; outline-color: initial; " href="profile.php?$session[sessionurl]do=addlist&userlist=friend&u=$post[userid]">
<font color="#000000">اضفني كصديق</font></a></span></div>
<div class="wall_last_post_footer" style="color: rgb(204, 0, 0); font-family: Tahoma; font-size: 11px; font-weight: normal; "></div>
</div>
<p align="center" style="font: normal normal normal 11px/normal tahoma, arial, helvetica, verdana; color: rgb(102, 102, 102); font-style: normal; font-variant: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); "></p>
<br class="Apple-interchange-newline">
<!-- /اضفني كصديق -->
=====================================
<!-- /اضفني كصديق تعديل وتصميم هايف السفراني-->
<div align="center">
<table border="1" width="15%" cellspacing="0" cellpadding="0" style="border-style: dotted; border-width: 1px">
<tr>
<td>
<p align="center"> <div class="wall_last_post_auhor" style="background-origin: initial; background-clip: initial; color: rgb(96, 96, 96); font-family: Tahoma; font-size: 12px; font-weight: normal; text-shadow: rgb(136, 206, 216) '1px 0px 1px'; margin-left: 10px; padding-right: 11px; padding-top: 7px; background: url('http://yoursmileys.ru/csmile/friend/c0401.gif') no-repeat no-repeat 0% 50%">
<font color="#000000">انا : </font>
<a href="member.php?$session[sessionurl]u=$post[userid]">$post[username]</a></div>
<div class="add_as_friend" style="background-origin: initial; background-clip: initial; height: 38px; width: 127px; margin: auto; padding-left: 40px; background: url('http://yoursmileys.ru/img/rose.gif') no-repeat 0% 50%; ">
<span style="background-origin: initial; background-clip: initial; border-image: initial; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; color: rgb(233, 109, 16); display: block; font-family: Tahoma; font-size: 11px; height: 20px; line-height: 23px; text-align: center; border: 1px solid rgb(244, 193, 130); margin-top: 9px; padding-left: 5px; padding-right: 5px; padding-bottom: 5px; background: rgb(255, 229, 205) repeat repeat 0px 0px">
<a rel="nofollow" style="margin:0px; padding:0px; text-decoration: none; outline-width: 0px; outline-style: none; outline-color: initial; " href="profile.php?$session[sessionurl]do=addlist&userlist=friend&u=$post[userid]">
<font color="#000000">اضفني كصديق</font></a></span></div>
<div class="wall_last_post_footer" style="color: rgb(204, 0, 0); font-family: Tahoma; font-size: 11px; font-weight: normal; "></div>
</div>
</td>
</tr>
</table>
</div>
<!-- /اضفني كصديق تعديل وتصميم هايف السفراني-->
=====================================
الاضافه تكون تحت
وسلامتكم





