Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7850527
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T18:53:06+00:00 2026-06-02T18:53:06+00:00

I have a contributor list in different pages on my website, when printing contributor

  • 0

I have a contributor list in different pages on my website, when printing contributor list if logged in user is same with a contributor in list I should print “YOU”. For every user check this does not make sense. What is best practice for this situation.

Note that : There are a lot of items in website. When you go to details of an item you see contributor list.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T18:53:09+00:00Added an answer on June 2, 2026 at 6:53 pm

    Perhaps you could distribute the load and put that logic in your page itself using jQuery. Let’s say I’m logged in and my user ID is stored in a variable on the page called user_id. If you include the user ID in each element of the contributor list, you could do something like this…

    $('li[id*="' + user_id + '"]').append(" (YOU)")
    

    That would find every list element containing the user id and append the string (YOU) to it. It’s still done on every page, but now the workload is distributed to each user’s browser rather than on the server. Unless you have thousands of contributors, performance shouldn’t be an issue.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hi I have a class A with as abstract method protected abstract List<Contributor> GetContributors(List<SyndicationPerson>
Ok, this is an interesting problem I think I have a list of items
I have list of clients through which i have created SharePoint user groups with
So In Default.master.cs PageLoad I have the following: contObj = Session[Contributor] == null ?
have a php code like this,going to convert it in to C#. function isValid($n){
Have data that has this kind of structure. Will be in ascending order by
Have data that has this kind of structure: $input = [ { animal: 'cat',
Suppose I have a table with the following columns (a list of words): word:
I have a header file like this: /* * APP 180-2 ALG-254/258/772 implementation *
I have a problem with ArrayList. I'm using ArrayList like this: private ArrayList<Playlist> mPlaylists;

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.