为您的KickApps社区提供人造社区隐私

【为您的KickApps社区提供人造社区隐私】丈夫志四海,万里犹比邻。这篇文章主要讲述为您的KickApps社区提供人造社区隐私相关的知识,希望能为你提供帮助。
This is a basic script that will redirect a non-member to the login page with a custom message. Place the code between script tags in your Affiliate Center header.

To use:
1) replace loginPage variable with your *login URL.

2) replace accessMessage variable with your custom message.

*If you' re current login URL does not contain a query string (?) you should change ' & a=nonmember' inside newLogin variable to ' ?a=nonmember' .

Note that real community privacy for KickApps is on the way and this method should be considered transitional -- it can be circumvented by simply disabling javascript before visiting your site.

--
For more tips and tricks checkout the < a href=https://www.songbingjia.com/android/" http://www.kickdeveloper.com/resources" > KickApps resources page< /a> .

  1. // place in your header
  2. ( function( ) {
  3. // Your login page
  4. var loginPage = " http://awesome.krunkosaurus.com/user/displayUserLoginPage.kickAction?as=5166" ;
  5. var registerPage = " http://awesome.krunkosaurus.com/user/displayUserRegisterPage.kickAction?as=5166& STATUS=MAIN" ;
  6. var accessMessage = " You must be a member to access this site." ;
  7. var newLogin = loginPage + '& a=nonmember';
  8.  
  9.  
  10. // if user is not logged-in and not on login page send them to login page
  11. if ( Ka.Info.USERID === '' & & window.location.href !== loginPage & & window.location.href !== newLogin & & window.location.href !== registerPage) {
  12. window.location = newLogin;
  13. }
  14.  
  15. // if nonmember detected and on login page display message
  16. if ( window.location.href =https://www.songbingjia.com/android/== newLogin & & Ka.Util.getLocationParam('a') === 'nonmember') {
  17. $j( function( ) {
  18. $j( '#loginHeader') .after( '< p class=" ka_Alert" > ' + accessMessage + '< /p> ') ;
  19. } ) ;
  20. }
  21. } ) ( ) ;


    推荐阅读