The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

How to get member link mod_news

4 posters

Go down

Solved How to get member link mod_news

Post by zzlasperpen January 16th 2022, 12:10 pm

{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?
zzlasperpen
zzlasperpen
Forumember

Male Posts : 42
Reputation : 1
Language : VietNam

View user profile

Back to top Go down

Solved Re: How to get member link mod_news

Post by TheCrow January 16th 2022, 2:26 pm

@zzlasperpen,

I did not quite understand what you are looking for. Can you please share some more information in what exact area of your forum you are referring to and maybe post an image so we understand your problem better?

Best regards,
TC.
TheCrow
TheCrow
Manager
Manager

Male Posts : 6780
Reputation : 785
Language : Greek, English

View user profile https://forumote.forumotion.com

Back to top Go down

Solved Re: How to get member link mod_news

Post by Niko January 16th 2022, 4:44 pm

Dear @zzlasperpen

If your forum is Invision as your profile stated, Go to ACP > Modules > Javascript & HTML > Javascript codes management and create a new one:
  • Title: as you prefer
  • Where: in all pages
  • Code:

    Code:
    $(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>');
              }
        });
    });});


Now edit the
Code:
 mod_news
templates and
Find:
Replace with:

If it does not work or if your forum is not invisiion, or again if your profiles are edited heavily - please provide your forum address :thanks:
Niko
Niko
Hyperactive

Male Posts : 2462
Reputation : 127
Language : English, Italian, French
Location : Italy

View user profile https://www.fmcodes.net/

skouliki, SarkZKalie, TheCrow and zzlasperpen like this post

Back to top Go down

Solved Re: How to get member link mod_news

Post by zzlasperpen January 16th 2022, 8:01 pm

thank you so much my problem is solved How to get  member link mod_news 1f60d
zzlasperpen
zzlasperpen
Forumember

Male Posts : 42
Reputation : 1
Language : VietNam

View user profile

Niko likes this post

Back to top Go down

Solved Re: How to get member link mod_news

Post by Niko January 16th 2022, 8:15 pm

You are welcome How to get  member link mod_news 3706843607
Niko
Niko
Hyperactive

Male Posts : 2462
Reputation : 127
Language : English, Italian, French
Location : Italy

View user profile https://www.fmcodes.net/

Back to top Go down

Solved Re: How to get member link mod_news

Post by Ape January 16th 2022, 11:21 pm

Thank you for your help @Niko

Problem solved & topic archived.
Please read our forum rules: ESF General Rules
The topic was posted in the wrong section, so I have moved it to the correct section.
Please read our forum rules: ESF General Rules


How to get  member link mod_news Left1212How to get  member link mod_news Center11How to get  member link mod_news Right112
How to get  member link mod_news Ape_b110
How to get  member link mod_news Keep_s10
How to get  member link mod_news Ape1010
Ape
Ape
Administrator
Administrator

Male Posts : 17639
Reputation : 1884
Language : fluent in dork / mumbojumbo & English haha

View user profile http://chatworld.forumotion.co.uk/

Niko likes this post

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum