Mobile user search, no stamp image

Tamás Varga Posted in Beginning Developers 3 years ago

Does OSSN know that when used on a mobile, when a user searches, it also shows a thumbnail in addition to the user?

Replies
Hungarian Tamás Varga Replied 3 years ago

Thanks for the help, I keep the GreenByGreen theme.

us Michieal ~ Coder ~ Replied 3 years ago

The short answer is "yes".
The long answer is that it is in the @media{} sections of the default and administrator CSS in the theme section.
The @media allows you to make responsive changes based on screen size. And, by checking the document's element in javascript, you can see that it's mobile, based on it having a specific property set to a value.
That, would allow you to effectively know the device is a mobile.
Or, you can check the browser identifier string - because usually it includes a device or OS marker. But, I don't think that these things are visible to php (I might be wrong.)
-M.

German Michael Zülsdorff Replied 3 years ago

I think, basically Ossn could 'know' everything. It simply depends on what a theme developer is willing to implement ...
Thus, we have themes like Goblue WITHOUT member icons

enter image description here

and other themes like GreenByGreen WITH member icons

enter image description here