It looks like the part that deals with size is the string large which is passed to the function as the first variable. If you look at the top of the file, that function is imported:
import { avatarImg } from 'discourse/widgets/post'
If you then go to discourse/widgets/post and find the avatarImg function, you’ll see that the first variable passed to it, wanted, is passed onto another function called translateSize.
If you look at the top of the file again, you’ll see that translateSize is imported from 'discourse/lib/utilities.
If you go to discourse/lib/utilities you’ll find that translateSize is what you’re after:
export function translateSize(size) {
switch (size) {
case 'tiny': return 20;
case 'small': return 25;
case 'medium': return 32;
case 'large': return 45;
case 'extra_large': return 60;
case 'huge': return 120;
}
return size;
}
Like you say, the ‘large’ size the profile widget currently uses translates to 45 pixels. So you’ll want to change the 'large' we saw in the first function to 'huge', which will give you a 120px image.
Hmn, just want to create somethink similar like mems site.There is always ranking of Top Week/Top Month/Top year most like pages/images by facebook button or similar social zone
What you’re after is better pursued through Topic List Previews itself, rather than Custom Layouts. I think @dalerka has used TLP to achieve a result similar to that.
If you are trying to build a marketplace maybe it is better to search for another open-source solution I’m no expert here, so you’ll have to do your research based on your needs. Take a look at Sharetribe.
If you want to do it with Discourse you’ll have to invest a lot of time in customizing CSS, and maybe custom logic with JavaScript and Ruby.
Also for data-fields like $Price search here on meta for “custom fields”
(just in case) you can hire someone like here:
For your other questions (not directly related to this plugin) creating a new topic might be better.
@angus
I installed the plugin.
Enabled it.
Went to plugin settings and then enabled left and right sidebars. Added routes like latest, topics, tags etc.
Went to categories -> settings -> enabled left and right sidebars for some routes there too.
I came back to the homepage, I can see that, it created space on the left and right side.
But nothing is showing up in the space. In other words, I can see the sidebar space for left and right sidebar but nothing is showing up there. Yes, I added stuffs there to be shown like latest, tags, topics etc.
You need some widgets. This plugin doesn’t come packaged with any widgets. A widget will typically live in a separate plugin. The selection of routes in the layouts_sidebar_left_enabled and layouts_sidebar_right_enabled settings determines where the sidebars appear, not what appears in them.
The first post gives a bit more detail on all of this, e.g.
Since the navigation widget link is 404, and your subsequent comment about using custom html widget instead, does it mean the navigation widget is gone for good? thanks.
No, it’s just been moved again, and subsumed into another plugin. If you’re interested in using it I can create a separate plugin. It’s basically just a wrapper for the map-widget in the locations plugin.
Yes. Most interested. If I understand correctly, its a place to display the map for the category being displayed? And if there is no map in that category, just leave blank?