Biplob_Mondol
Hello everybody. The Notification system is one thing indispensable for forum or many website type. It help the interaction between users will be better. Formerly, we was shared very many versions and all of them are working fine. But now, in 2016. The Notification system will simply. Omitted some functions unnecessary. This version will faster!
.
Omitted functions:
- Save count of likes (votes)
- Like/Dislike
- Display list of users who click Like/Vote
.
Well, let's start
.
First you must active the
Comment in profile (CIP)
Go to User > User profile > And looking for
.

.
Then you must make users automatic update
Comment in profile ID (CIPID) of them
.
Read: Get CIPID without redirection
.
.
Then change your
MIF
Box.1 MIF
.
Vote button:
<a href="::url+vote::&get-uid=::prvar-74::&get-msgid=::msg_id::#t::msg_id::">Vote</a>
Copy code
Quote button:
<a href="::url_quote::&get-cipid=::prvar-74::&get-msgid=::msg_id::" class="member">Quote</a></span>
Copy code
.
Box.3 MIF
Place this code at bottom of box:
<script language="javascript"> window.onload=sub; function setCookie(cname,cvalue,exdays) { var d = new Date(); d.setTime(d.getTime() + (exdays*24*60*60*1000)); var expires = "expires=" + d.toGMTString(); docu ment cookie = cname+"="+cvalue+"; "+expires; } function sub(){ topicname = '::THEME_NAME::'; setCookie("topicname", topicname, 300); } </script>
Copy code
Then place this code at Bottom forum, Set visibility
L
.
<script language="javascript"> tema=document.getElementsByName('tema')[0].value; function getCookie(cname) { var name = cname + "="; var ca = docu ment cookie.split(';'); for(var i=0; i<ca.length; i++) { var c = ca[i]; while (c.charAt(0)==' ') c = c.substring(1); if (c.indexOf(name) == 0) { return c.substring(name.length, c.length); } } return ""; } if(':getid-url:'.match(/get-cipid/ig)){ if(':get-cipid:'!==':user-prvar-74:'){topicname = getCookie("topicname"); document.write('<img src="forum3_add_:get-cipid:.xhtml?d_token='+token+'&text=[$'+token+'$]rpquoterpthang:get-msgid:rpuforum2_theme_:getid-forum:rpxh'+tema+'rpthang:get-msgid:]'+topicname+'rpen&submit=OK" style="display:none"/>'); } } if(':getid-url:'.match(/vmsg=/ig)){ topicname = getCookie("topicname"); document.write('<img src="forum3_add_:get-uid:.xhtml?d_token='+token+'&text=[$'+token+'$]rpvoterpthang:get-msgid:rpuforum2_theme_:getid-forum:rpxh'+tema+'rpthang:get-msgid:]'+topicname+'rpen&submit=OK" style="display:none"/>'); } </script>
Copy code
.
Finally this code will display list of Notification, place it in New page
.
:forumlist:f=c,s=:get-site(1):,l=15,t=--::
<div class="each_topic"> <div class="views w52 inline-block ava_notif" style="background:url('%urlpicture%') no-repeat;"></div> <div class="main_each_topic inline-block notif_index"><h3 style="font-weight:normal;white-space:normal;font-size: 16px;">%lname% %text%</h3><div class="info_each_topic mo" name="fix">%time%</div></div> </div>
:: :/forumlist:<br/><br/>
<div class="page" align="right" style="color:black">
:paging: n=:geti-site(1):, u=site_account.xhtml?get-site=%n%:: %prev% %next% %n% %n% %n% %n% %n% %nlast% :/paging:
</div>
<img src=":url-usr-prcom:" style="display:none"/>
<script language="javascript"> all=document.getElementsByName('all')[0].innerHTML; all=all.replace(/[$(.+?)$]/ig,''); document.getElementsByName('all')[0].innerHTML=all; </script>
Copy code
.
And update
Spam black list Box.3 of Spam black list
.
"rpvote">"has voted your post ";"rpu">" in topic [url=";"rpxh">".xhtml?tema=";"rpen">"[/url]";"vagte">"&get-tema=";"vthang">"#";"rpba">"=";"%E2%80%A2">"•";"[binhchon][bc1][/bc1]
[bc2][/bc2]
[bc3][/bc3]
[bc4][/bc4]
[bc5][/bc5][/binhchon]">" ";"
[bc3][/bc3]
[bc4][/bc4]
[bc5][/bc5]">" ";"
[bc4][/bc4]
[bc5][/bc5]">" ";"
[bc5][/bc5]">" ";"jumptopage">"&n=";"gotomsgidst">"#";"acpuploadcreator">" ";"forum_del_">"forum_dël_";"forum2_del_">"forum2_dël_";"rpva">"&";"rpthang">"#";"
[cloud] [/cloud]">" ";"rpquote">"has quoted your post ";"rpfollow">"has posted comment in topic [url=";
Copy code
.
Well. I was shared you the Notification system of Wapka in 2016. For more question, please comment here!