Kickapps:使用jQuery&CSS在成员配置文件编辑页面中隐藏MYRSS&MYLINKS按钮
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Kickapps:使用jQuery&CSS在成员配置文件编辑页面中隐藏MYRSS&MYLINKS按钮相关的知识,希望对你有一定的参考价值。
I'm new to jQuery, so please be kind if there are any errors or redundancies in the code.The problem: Basically, we were getting tons of scammers signing up on our Kickapps hosted community. They were immediately posting dozens of RSS feeds & links on their profiles, in order to raise their search engine rankings. Since our community doesn't need these features enabled for members, we decided that we should just eliminate them to help deal with the scamming problem.
Notes: Kickapps includes the jQuery library automatically during page renders. While this jQuery code is useful, it is not a permanent solution. The relevant on the member pages' toolbar (inside the #ka_manageSubNav div) should also be hidden with CSS, otherwise they will be visible to the usesr before the script kicks in and removes them from the page. Also, the generated code is still present in the page source, so savvy scammers can problably still get around it to some extent. To that end, we've also eliminated the display of links and feeds on the public front-end of the members' profile pages using similar techniques.
The jQuery code should be placed in your custom global page template. It is found at the Kickapps Affiliate Center > Configure > Pages > Global Page Template. The CSS can either be included in the template or in a custom attatched style sheet. These same techniques can be used to hide other Kickapps-generated page elements, also.
jQuery code to remove toolbar buttons: $j(document).ready(function() { $j("#ka_mkpMyRSS").remove(); $j("#ka_mkpMyLinks").remove(); }); </script> Css code to hide the toolbar buttons: #ka_manageSubNav.ka_mkpMyLinks, #ka_manageSubNav.ka_mkpMyRSS {display: none !important;}
以上是关于Kickapps:使用jQuery&CSS在成员配置文件编辑页面中隐藏MYRSS&MYLINKS按钮的主要内容,如果未能解决你的问题,请参考以下文章
AngularJS 配哪个 CSS 框架好?SemanticUI,Bootstrap,还是其他