جافا سكربت: قنبلة اضفني كصديق في المواضيع بدون تمبلت مثل ترايدنتمميزاته : يجعل الأشخاص يتعرفون على مزايا المنتدى ويجعل لديك اصدقاء اكثر وهو كود رائع.
| صورة للمعينة الكود |
1. هذا الكود يوضع في الجافا
- الكود:
-
var
CopyrightNotice = 'Adding Add as Friend link to post profiles for
Invision and phpbb3 boards for forumotion. Copyright © by LGforum. All
Rights Reserved. Use, modification, and/or distribution of this script
is not allowed this entire copyright in the original, copied, or
modified script';
$(function () {
var a = $('.postprofile').get();
for (i = 0; i < a.length; i++) {
var b = $(a ).find('dl')[0];
var c = $(b).find('a')[1];
x = $(c).find('strong')[0];
if (x) {
y = x.innerHTML;
$(b).append('<div
class="wall_last_post"><br /><div
class="add_as_friend"><span><a href="/profile?friend=' + y +
'&mode=editprofile&page_profil=friendsfoes" style="color:
rgb(233, 109, 16);">أضفني كصديق</a></span>
</div><div class="wall_last_post_footer"></div></div>')
} else {
y = c.innerHTML;
$(b).append('<div
class="wall_last_post"><br /><div
class="add_as_friend"><span><a href="/profile?friend=' + y +
'&mode=editprofile&page_profil=friendsfoes" style="color:
rgb(233, 109, 16);">أضفني كصديق</a></span>
</div><div class="wall_last_post_footer"></div></div>')
}
}
});
هذا الكود يوضع في الـ css
- الكود:
-
#post_on_wall {
cursor: pointer;
}
.wall_last_post {
background: none repeat scroll 0 0 #F6F6F6;
border-color: #CCCCCC YellowGreen;
border-radius: 0 21px 21px 0;
border-style: dotted solid;
border-width: 3px;
float: right;
left: -750px;
height: 65px;
margin-bottom: 10px;
margin-right: 10px;
position: absolute;
width: 226px;
top: 50px;
}
.wall_last_post .wall_last_post_auhor {
background: url("http://i41.servimg.com/u/f41/16/61/91/38/1-ta1010.png") 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: 4px;
text-shadow: 1px 0 1px #88CED8;
}
.wall_last_post .wall_last_post_auhor a {
color: #1CA6BA;
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: #0B5A73;
font-family: Tahoma;
font-size: 11px;
font-weight: normal;
}
.wall_last_post_footer span.wall_last_time {
background: url("http://i41.servimg.com/u/f41/16/61/91/38/1-t10.png") no-repeat scroll right center transparent;
margin-right: 9px;
padding-right: 12px;
}
.wall_last_post_footer span.wall_last_like {
background: url("http://i41.servimg.com/u/f41/16/61/91/38/heart10.gif") no-repeat scroll right center transparent;
float: left;
margin-left: 7px;
padding-right: 13px;
text-align: right;
}
.add_as_friend {
background: url("http://i41.servimg.com/u/f41/16/61/91/38/1-a1010.png") no-repeat scroll left center transparent;
height: 28px;
margin: auto;
padding-left: 40px;
width: 151px;
}
.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: 21px;
line-height: 23px;
margin-top: 9px;
padding-bottom: 5px;
padding-left: 5px;
padding-right: 5px;
text-align: center;
}
.lecode li{
margin-right:15px;
color: blcak;
line-height:20px;
font-size:12px;
font-family:Tahoma, Geneva, sans-serif;
}
.lecode li a{
color: #006;
font-size:12px;
font-family:Tahoma, Geneva, sans-serif;
}
.mod_can_blue {
background-color: #CFDCE8;
border: 1px solid #B8C5D0;
border-radius: 3px 3px 3px 3px;
color: #26547A;
font-weight: 700;
width: 97%;
padding:2px 15px 22px 600px;
}
.bg_inform {
background-image: url("http://i41.servimg.com/u/f41/16/61/91/38/inform10.png");
background-position: right center;
background-repeat: no-repeat;
}
.bg_lock {
background-image: url("http://i41.servimg.com/u/f41/16/61/91/38/lock1010.png");
background-position: right center;
background-repeat: no-repeat;
}
.mod_can_red {
background-color: #F2C7C7;
border: 1px solid #ED6B6B;
border-radius: 3px 3px 3px 3px;
color: #A11F1F;
font-weight: 700;
padding: 5px 5px 5px 30px;
padding:2px 15px 22px 600px;
width: 97%;
}
.mod_can_brown {
background-color: #D7E2B7;
border: 1px solid #B7C19A;
border-radius: 3px 3px 3px 3px;
color: #626F3D;
font-weight: 700;
padding: 5px 5px 5px 30px;
padding:2px 15px 22px 600px;
width: 97%;
}
.bg_tick {
background-image: url("http://i41.servimg.com/u/f41/16/61/91/38/tick1010.png");
background-position: right center;
background-repeat: no-repeat;
}
الكود مجرب على النسخة الثالثة و لا ادري ان يشتغل على النسخ الاخرى في انتظار التجريب و الرد