But I found an annoying number in the URL that means I can't get to it… not using a live template, any way.
Now, the User ID is part of the URL. Because of per-site profiles, I can use the %%name%% variable for that part.
However, if you have a look at the number before the user ID, you'll notice that at first glance it looks random. That's why I added commas to separate the thousands in the User ID column. It's not a random number, but the number of thousands in the User ID. For pieterh with a user Id of 99 … the number is 0. For me with a user ID of 32,953 … the number is 32.
Now, how am I meant to access these images using the [[image ...]] syntax when I have no way of entering that part of the URL? I can predict it just by looking at the person's user Id, but as far as I know there's no way to figure it out using wikidot syntax.
I'll give you an example…
[!-- This will only work for users that have a User ID of 999 or less. --]
[[image http://www.wikidot.com/common--images/avatars/0/%%name%%/a48.png]]
Now, I can think of two possible solutions, that someone here may be able to help me with?
- javascript, to pull out the correct number, given the User ID
- another, more reliable URL for profile images that exists somewhere, but that I haven't discovered yet
And another possible solution, which means I'll have to wait for it to be implemented:
- A variable like %%user_image%% that returns the link to the image. However, I suspect the a48.png part relates to the size — so are there other sizes available? How would this be implemented into the %%user_image%% variable?
~ Leiger - Wikidot Community Admin - Volunteer
Wikidot: Official Documentation | Wikidot Discord server