هيلبرنت | Helpernt

هيلبرنت | Helpernt (https://www.helpernt.com/vb/index.php)
-   ركن تطوير منتديات vb3.8.0 (https://www.helpernt.com/vb/forumdisplay.php?f=99)
-   -   الفتحة الاجبارية بدون هاكات (https://www.helpernt.com/vb/showthread.php?t=5907)

نسيت النوم 06-02-2017 09:12 PM

الفتحة الاجبارية بدون هاكات
 
السلام عليكم ورحمة الله وبركآته
اليوم جبت لكم كود فتحآت اجبارية جديد وشغال دائماً ليس مثل بعض الأكواد او الهاكات تشتغل على مزاجها ، يعمل الكود مع جميع المتصفحات وتم تجريبه ، يعمل بكفائة عالية مع الفايرفوكس ، يمكنك تحديد الفتحة للزوار فقط لكي لا تسبب الازعاج لمتصفحيك الأعضاء أن شاء الله تسفيدوا منه ،

طريقة التركيب :
نقوم بإضافة الكود المرفق في اسفل قالب الـ headinclude
اذا كنت لاتمتلك منتدى او كنت تمتلك منتج اخر وتريد الكود ،
افتح القالب المسؤول عن أعلى الصفحة قم بوضع الكود اعلى عبارة </head>
اولا:
pop open for all = يظهر لجميع زوار موقعك أو مدونتك او منتداك ،

كود:

<!-- بداية كود الانبثاق  -->

 <script language="JavaScript1.1">
var popunder
function get_cookie(Name) {
var search = Name + "="
var returnvalue = "";
if (document.cookie.length > 0) {
offset = document.cookie.indexOf(search)
if (offset != -1) { // if cookie exists
offset += search.length
// set index of beginning of value
end = document.cookie.indexOf(";", offset);
// set index of end of cookie value
if (end == -1)
end = document.cookie.length;
returnvalue=unescape(document.cookie.substring(offset, end))
}
}
return returnvalue;
}
popfrequency="0 minutes"
function resetcookie(){
var expireDate = new Date()
expireDate.setMinutes(expireDate.getMinutes()-0)
document.cookie = "popunder=;path=/;expires=" + expireDate.toGMTString()
}
function loadornot(){
if (get_cookie('popunder')==''){
loadpopunder()
var expireDate = new Date()
expireDate.setMinutes(expireDate.getMinutes()+parseInt(popfrequency))
document.cookie = "popunder="+parseInt(popfrequency)+";path=/;expires=" + expireDate.toGMTString()
}
}
function loadpopunder(){
document.write('<body onclick="rwmrgfdq_Popup()" >');
}
if (get_cookie('popunder')!=parseInt(popfrequency))
resetcookie()
loadornot()

</script>  <script type="text/javascript"> <!--
var opened;
function rwmrgfdq_Popup()
{
if(opened != 1)
{
opened = 1;
window.open("رابط صفحة الانبثاق الذي سوف تظهر ", "rwmrgfdqpop", "scrollbars = 1, resizable = 1,status = 1");
}
}
//--> </script>
<!-- نهاية كود الانبثاق  -->

ثانيا:
pop open for visitors = الكود يظهر لزوار المنتدى دون أعضاءه ،
كود:

<!-- بداية كود الانبثاق  -->

<if condition="$show['guest']">

 <script language="JavaScript1.1">
var popunder
function get_cookie(Name) {
var search = Name + "="
var returnvalue = "";
if (document.cookie.length > 0) {
offset = document.cookie.indexOf(search)
if (offset != -1) { // if cookie exists
offset += search.length
// set index of beginning of value
end = document.cookie.indexOf(";", offset);
// set index of end of cookie value
if (end == -1)
end = document.cookie.length;
returnvalue=unescape(document.cookie.substring(offset, end))
}
}
return returnvalue;
}
popfrequency="0 minutes"
function resetcookie(){
var expireDate = new Date()
expireDate.setMinutes(expireDate.getMinutes()-0)
document.cookie = "popunder=;path=/;expires=" + expireDate.toGMTString()
}
function loadornot(){
if (get_cookie('popunder')==''){
loadpopunder()
var expireDate = new Date()
expireDate.setMinutes(expireDate.getMinutes()+parseInt(popfrequency))
document.cookie = "popunder="+parseInt(popfrequency)+";path=/;expires=" + expireDate.toGMTString()
}
}
function loadpopunder(){
document.write('<body onclick="rwmrgfdq_Popup()" >');
}
if (get_cookie('popunder')!=parseInt(popfrequency))
resetcookie()
loadornot()

</script>  <script type="text/javascript"> <!--
var opened;
function rwmrgfdq_Popup()
{
if(opened != 1)
{
opened = 1;
window.open("رابط صفحة الانبثاق الذي سوف تظهر ", "rwmrgfdqpop", "scrollbars = 1, resizable = 1,status = 1");
}
}
//--> </script>
</if> 
<!-- نهاية كود الانبثاق  -->


Freight Club 04-15-2018 05:45 PM

رد: الفتحة الاجبارية بدون هاكات
 
[IMG]https://e.top4top.net/p_835z88ae1.png[/IMG]السلام عليكم

انا جربت الكود لكن مش شغال كويس

برجاء مشاهدة الصورة المرفقة

الحاجة التاانية انا عايزه يفتح مرة واحدة كل ساعة لنفس الزائر او العضو مش مع كل ضغطة عشان العضو مش يزهق

ومحتاج الكود لأكتر من موقع

Freight Club 04-18-2018 03:35 PM

رد: الفتحة الاجبارية بدون هاكات
 
فى انتظار الرد

Freight Club 04-23-2018 12:11 PM

رد: الفتحة الاجبارية بدون هاكات
 
Any news please


الساعة الآن 02:24 AM

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd. TranZ By Almuhajir