Posted By

Jdonner on 06/29/09


Tagged

rss hide jquery links profile member kickapps


Versions (?)

Kickapps: use jQuery & CSS to hide MYRSS & MYLINKS buttons in member profile edit pages


 / Published in: jQuery
 

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.

  1. jQuery code to remove toolbar buttons:
  2.  
  3.  
  4. <script type="text/javascript" charset="utf-8">
  5. $j(document).ready(function() {
  6. $j("#ka_mkpMyRSS").remove();
  7. $j("#ka_mkpMyLinks").remove();
  8. });
  9. </script>
  10.  
  11.  
  12.  
  13.  
  14. Css code to hide the toolbar buttons:
  15.  
  16. #ka_manageSubNav.ka_mkpMyLinks, #ka_manageSubNav.ka_mkpMyRSS {display: none !important;}

Report this snippet  

Comments

RSS Icon Subscribe to comments
Posted By: Jdonner on June 29, 2009

The Snipplr system removed part of the description above... the sentence should read "The relevant spans used to display the buttons on the member pages' toolbar..."

Also, the comments in the above code are not properly notated (lines 1 & 14), so shouldn't be included in the page code, otherwise they will display as visible text.

You need to login to post a comment.