Mobile app version of vmapp.org
Login or Join
Michele947

: How to link to Avatar image in BlueSpice MediaWiki of fixed size? The BlueSpice MediaWiki adds a profile picture that a user can set for themselves or take an automatically generated one.

@Michele947

Posted in: #Css #Html #Mediawiki

The BlueSpice MediaWiki adds a profile picture that a user can set for themselves or take an automatically generated one. These images are visible on pages to see who has edited or viewed a page recently. I'd like to include the pictures in other places, such as a list of people and phone numbers to include their pictures too.

Looking at the generated html, I see how the image comes in to those places:

<img alt="WilliamKF"
src="/index.php?action=ajax&amp;title=-&amp;rs=SecureFileStore::getFile&amp;f=/bluespice/Avatars/thumb/BS_avatar_3.png/40px-BS_avatar_3.png"
width="40"
height="40"
/>


The image path is relative to the root of public_html on the server. How can I add MediaWiki syntax markup to include an image in a wiki web page? I tried enabling $wgAllowExternalImages = true; in the PHP and used a raw path in the wiki:
wiki.domain.com/index.php?action=ajax&title=-&rs=SecureFileStore::getFile&f=/bluespice/Avatars/BS_avatar_3.png

But that gives me a full sized image instead of a thumb that is 40x40, so how can I add more wiki markup syntax to limit the size? I tried wrapping <div style="height: 32px; width: 32px;"> but that only caused the text to overlap the image.

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Michele947

1 Comments

Sorted by latest first Latest Oldest Best

 

@Fox8124981

The thumbnail is not produced by the BlueSpice extension but by thumb.php.

Your example has f=/bluespice/Avatars/thumb/BS_avatar_3.png/40px-BS_avatar_3.png, just replace 40px- with 32px-.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme