Register Arama Bugünkü Mesajlar Mark Forums Read

Reply
 
Thread Tools
Nag Users Using Ad Block - Popup Alert For Adblock Users Detaylar »
Nag Users Using Ad Block - Popup Alert For Adblock Users
 
TTayfun's Avatar
TTayfun
TTayfun has a brilliant futureTTayfun has a brilliant futureTTayfun has a brilliant futureTTayfun has a brilliant futureTTayfun has a brilliant futureTTayfun has a brilliant futureTTayfun has a brilliant futureTTayfun has a brilliant futureTTayfun has a brilliant futureTTayfun has a brilliant future
Gerçek Ad: Tayfun T.
Kayıt Tarihi: Nov 2017
Mesajlar: 223

Güzergah: Istanbul Anadolu
Show Printable Version Email this Page
Mod: vBulletin 3.8, yazar TTayfun 08 Jan 2018, 17:05

First let me state that while I had used this for a while I have since turned it off. Personally I'd rather have the traffic then potentially lose someone who won't or can't figure out how to turn off Ad Block. That said, if you're interested, keep reading...

I've tested this on 3.8 but I'm very confident it will indeed work on 4.x as well, this is just javascript and doesn't tend to be affected by VB versions.

I've also tested this on Firefox with Ad Block Plus and Chrome with it's Ad Block and both showed the alert. I've been told it also works with Safari ad-block but can't confirm since I can get ad-block for Safari to install...

Download the .txt file for a backup of these instructions.

This is a couple of fairly simple template edits. One thing you need to do before hand though is download the "jquery" library. jquery is set of advanced javascript functions freely available and distributed. It is use in many websites all over for advanced functionality.

Download the latest copy HERE.
Scroll down to "Current Release" (1.4.4 as of this writing)
I suggest you download the "minified" version (smaller file size)
Download it and then upload it to your forums /clientscript directory.

Now go to your Admin CP -> Style Manager
Go to "All Style Options"

In the headinclude template scroll to the very bottom and add the following lines:


Kod Blok Kilitli:      (Kayıt veya giriş yapmalısın)  
Engellenmiş, kayıtlı olmayan veya onay bekleyen kişiler kodlara erişemezler.

You must CUSTOMIZE the text in red.

First set the path to the jquery file you uploaded, usually /forums/clientscript/ or simply /clientscript/ followed by the file name of the library you downloaded. The exact version may differ.

Second customize your ALERT message. This text will appear in a standard javascript alert box with an [OK] button for the user to press to dismiss the box. THIS IS ANNOYING. Plus it will pop up again every time someone goes to a new page, so this is VERY ANNOYING.

One more step... now you need to find an ad that is displayed on every page of your forum for every member... Personally for me it was the footer ad.

You need to enclose this ad in a new <div> element.

For me this was in my footer template.


Kod Blok Kilitli:      (Kayıt veya giriş yapmalısın)  
Engellenmiş, kayıtlı olmayan veya onay bekleyen kişiler kodlara erişemezler.

It's very important you find an ad on every page for all members... if an ad doesn't appear due to the page it's on or due to the member/usergroup viewing it then the special <div> will have zero dimension and the alert will show for them.

If you have pages or members ads are disabled for you should use the same <IF> conditionals around the headinclude code above to make sure this script doesn't run in those instances. The script at top is what matters here, the <div> can remain whether the top code is present or not, it won't hurt anything.

Please Mark as Installed if you use this.


There are some interesting things you can do by surrounding the <script> code in template conditions. For instance you can have the message show only when actually viewing a thread instead of on every single page by enclosing it in the following condition:


Kod Blok Kilitli:      (Kayıt veya giriş yapmalısın)  
Engellenmiş, kayıtlı olmayan veya onay bekleyen kişiler kodlara erişemezler.

VB3 Users can find more Template Conditionals HERE.
And VB4 User can look HERE.

[Source]: İçerik Kaynağı

Şimdi İndir

Premium eklentileri indirebilmek için, LD premium üyeliği satın almalısınız.

File Type: txt adblocknag_install.txt (3.2 KB, 0 views)

Ekran Resimleri

Nag Users Using Ad Block - Popup Alert For Adblock Users-ss_adblock.png  

Premium Eklentiler Hakkında

  • Premium bölümlerinden download yapabilmek için premium üyeliğe sahip olmalısınız.
  • Premium üyelik hakkında soru ve sorunlarınız için buraya tıklayınız.
Views: 62
Reply

Etiket
adblock

Thread Tools

Posting Rules
Yeni konu açamazsınız.
You may not post replies
You may not post attachments
Mesajınızı düzenleyemezsiniz.

BB code is Açık
Smilies are Açık
[IMG] code is Açık
HTML code is Kapalı

Forum Atla


New To Site? Need Help?

All times are GMT +3. The time now is 04:10.

Tasarım Özelliği | Genişlik: Geniş Renk: Nag Users Using Ad Block - Popup Alert For Adblock Users Nag Users Using Ad Block - Popup Alert For Adblock Users Nag Users Using Ad Block - Popup Alert For Adblock Users Nag Users Using Ad Block - Popup Alert For Adblock Users Nag Users Using Ad Block - Popup Alert For Adblock Users