【Kickapps(使用jQuery&CSS在成员配置文件编辑页面中隐藏MYRSS&MYLINKS按钮)】人生处万类,知识最为贤。这篇文章主要讲述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:
- < script type=" text/javascript" charset=" utf-8" >
- $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; }
推荐阅读
- 使用AppleScript构建和运行XCode
- 终端.app符号链接命令
- 终端.app打开Apache的命令?s码httpd.conf文件文本编辑中的文件
- 通过SMTP(Gmail)在Android上发送电子邮件
- 开发Android应用程序的提示(我的经验教训)
- 构建实时,多平台移动应用程序(使用Ionic Framework和Firebase的示例)
- 微软HoloLens评论-缩小AR与VR之间的鸿沟
- Smartwatch开发(Smartwatch是否值得解决())
- 我们是否正在创建不安全的物联网(IoT)(安全挑战与担忧)