Collection Images Not Showing For Non-Signed-In Users

I’m a new Glide user. I have a collection of companies with logos showing as a card list in my app, but I noticed that the logos don’t show if the user is not signed in. How can I change this behaviour, because I can’t see anywhere I may have specified such a setting, and I can’t see any way to change it.

Hi @Basoene_Oruye,

Welcome to the community :partying_face:

Do you have any visibility conditions or filters applied in the table or in the collection? Can you share a screenshot of what you see when the user is not signed?

Thank you

Hi Dilon, here are the screenshots of a signed-in user and otherwise.


The signed-in user can see the logos, while the visitor can’t. I didn’t set any visibility rules, just a filter specifying that only companies with an “Active” status from the data tables should be in the list

The collection doesn’t even provide me with an option for specific items to be visible or invisible to non-signed-in users, so I’m wondering if this the built-in behaviour of the collection-type.

I also notice that when you go into the details of a company, more details are hidden from visitors, like phone numbers, email addresses, and of course the logo.

I tried using a custom collection to create the same list of companies. The logo shows properly in the editor, but when I view it on my phone, the logo still doesn’t show if I’m not signed in.

Where are you storing your images? Did you upload them directly to Glide or are they Drive links?

My images are uploaded directly to Glide

Basoene, do you use user-specific columns? ( The columns that the icon colored in purple color : User-specific columns ) Could you share a screenshot of your companies table in the data editor?

YES!!! I just checked now and all the affected columns are marked as user-specific, though I can’t remember specifying them that way.

Sadly it seems I can’t just change the setting by editing the column. Or is there a way to do that? I’ve tried and it isn’t changing

You cannot edit now! What you have to do is delete the columns and create a new ones that is not user-specific! Before deleting the columns and re-adding, export the data already entered viewing as the user that shows the data and then delete the columns and re-add them and import that csv!

Thanks guys. Its fixed. Have to careful with those table columns.

Now I gotta figure out how to let users rate each company.

Thanks for all your help @Dilon_Perera and @ThinhDinh

2 Likes

I’d be grateful for an assist on the rating.

I’ve added the rating component on the details page for each company. Added a Rating column on the company table, set to User-Specific. I guess I’m supposed to do a Rollup column (never used one yet) to get a calculation of the ratings but don’t understand how that works.

In Adalo, I would create a ratings table, capture each rating against the user and the company being rated, then I could calculate the average for each company and also display each user’s rating for them. Do I use the same approach here?

This video made by @Robert_Petitto will help you! : https://youtu.be/CZkIcLXui10

2 Likes

Yep! Thanks for that video link @Dilon_Perera. I had actually searched for “Glide Rating” on YouTube before but I didn’t see this video.

Not only am I learning how to add the ratings feature I need, but I’m actually learning more about Glide than their tutorials have shown me like using the Lookup Column, the Math Column and If-Then-Else. Coming from Adalo, these are accomplished quite differently, so its great to understand how Glide does it

2 Likes

Done adding the ratings! Thanks again @Dilon_Perera

1 Like

Please feel free to add more questions as needed when you’re developing your solution. It’ll be nice for us to help achieve what you need, with Glide.

1 Like

I’m also using Adalo and in Glide it’s very different because in Glide everything is done by the powerful columns and in Adalo with actions and API’s! Everything is not same know, so we have to learn them :smiley: :raised_hands:

At first I’m also like this but with asking questions in here, checking docs and videos helped me to get better using Glide! If you have more questions, share them here and you will get a quick help from the talented people in here like Thinh mentioned!

3 Likes

How do I do date manipulations like this:

I have a “Date of Birth” Column in a Members table that collects the month/day/year dates. I want to be able to show upcoming birthdays on a separate screen.

Hi @Basoene_Oruye,

Correct? : Upcoming Birthdays.mp4 - Google Drive

JS Codes

Formatted Birthday

const currentDate = new Date();
const currentYear = currentDate.getFullYear();
const someDate = new Date(p1);

const formattedDate = `${(someDate.getMonth() + 1).toString().padStart(2, '0')}/${someDate.getDate().toString().padStart(2, '0')}/${currentYear}`;

return formattedDate

( p1 is birthday column )


If Birthday present?

const isDateTodayOrAfter = date => {
  const today = new Date().setHours(0, 0, 0, 0);
  date = new Date(date).setHours(0, 0, 0, 0);
  return date >= today || date === today;
};

const inputDate = new Date(p1);
const result = isDateTodayOrAfter(inputDate);
return result

( p1 is formatted birthday column )


Days for birthday

function checkBirthday(date) {
  const today = new Date();
  date = new Date(date);
  today.setHours(0, 0, 0, 0);
  date.setHours(0, 0, 0, 0);
  const diff = Math.floor((date - today) / (1000 * 60 * 60 * 24));
  
  if (diff < 0) return "Birthday is already passed!";
  if (diff === 0) return "Birthday is today!";
  
  return diff === 1 ? "1 day for your birthday!" : `${diff} days for your birthday!`;
}

const inputDate = new Date(p1);
const result = checkBirthday(inputDate);
return result

(p1 is formatted birthday column )

And also I recommend to create new topics for new questions :raised_hands:

Thank you

1 Like

How do you define “upcoming”? Anything that is in the next 7, 30 days?

Thanks @Dilon_Perera, and I will remember to create a new topic next time :blush: