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 : 58
Reputation : 3
Language : VietNam

https://raovat24.forumvi.com/

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.


How to get  member link mod_news Thecro10
Forum of the Forums

Forumotion Rules | Tips & Tricks |
FAQ | Did you forget your password?



*** The Support Forum will never ask you for your email or password, so please do not post them anywhere! ***
No support via PM!
TheCrow
TheCrow
Manager
Manager

Male Posts : 6916
Reputation : 795
Language : Greek, English

https://www.inforumgr.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
Helper
Helper

Male Posts : 3311
Reputation : 255
Language : English, Italian, French
Location : Italy

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 : 58
Reputation : 3
Language : VietNam

https://raovat24.forumvi.com/

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
Helper
Helper

Male Posts : 3311
Reputation : 255
Language : English, Italian, French
Location : Italy

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 Ape1010
Ape
Ape
Administrator
Administrator

Male Posts : 19452
Reputation : 2012
Language : fluent in dork / mumbojumbo & English haha

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