Keyword

onK2CommentsBlock documents ?

  • JOOBLOGs.COM
  • JOOBLOGs.COM's Avatar Topic Author
  • Offline
  • Premium Member
More
14 years 9 months ago #78713 by JOOBLOGs.COM
onK2CommentsBlock documents ? was created by JOOBLOGs.COM
Hi,Any one have this event document ?I'm trying to use plugin based on this event that can change user link but still not found.In this case i have no choice by use jQuery to do that :| (not good idea)var authorNameBlock = jQuery('.commentAuthorName a');for ( var index=0; index <authorNameBlock.length; index++ ) {    var jsUserLink = 'index.php?option=com_community&view=profile&Itemid=53&userid=';    var href = authorNameBlock[index].href;    var userIdSlug = jQuery.url.setUrl(href).param('id');    var userId = userIdSlug.indexOf('%3');    userId = userIdSlug.substr(0,userId);    jsUserLink = jsUserLink + userId;    authorNameBlock[index].href = jsUserLink;    }This can work in my local development but im not sure in another case (specially in case have SEF url)

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum