{post_row.POSTER} in mod_news there is no link to the profile page
Can anyone help me how to make /u personal page link?
Can anyone help me how to make /u personal page link?
This is a Hitskin.com skin preview
Install the skin • Return to the skin page
Forum of the Forums Forumotion Rules | Tips & Tricks | FAQ | Did you forget your password? |
$(function() { $(".mod_news_poster").each(function() {
var element = $(this);
var username = $(this).text();
var URL = '/memberlist?mode=lastvisit&order=DESC&submit=Ok&username='+username;
$.ajax({
url: URL,
type:'GET',
success: function(data){
var userlink = $(data).find('.popupmenu li:first-of-type a.profile-icon').attr('href'); console.log(userlink);
$(element).html('<span class="mod_news_poster" style="color:#219CB5"><a href="'+userlink+'"><strong>'+username+'</strong></a></span>');
}
});
});});
|
{post_row.POSTER}
<span class="mod_news_poster">{post_row.POSTER}</span>
skouliki, SarkZKalie, TheCrow and zzlasperpen like this post
Niko likes this post
Problem solved & topic archived.
|
The topic was posted in the wrong section, so I have moved it to the correct section.
|
Niko likes this post