By default OUGC Crypto Prices uses the API returned image URLs to display crypto coin images. This means that administrators don't have control over the resources served by default.
To change this and render images directly from your server, follow the next steps.
Please note the max height set with the
To change this and render images directly from your server, follow the next steps.
- Download the attached package, it stores all coin icons for all supported currencies of the plugin in SVG format.
- Unpack the file, inside you should find the
ougc_crypto_prices
directory holding all icon SVG files.
- Upload the contents of the package to your server, inside the
images
directory. At the end all SVG files should be accessible through the pathmybb/images/ougc_crypto_prices/
.
- Edit the
ougccryptoprices_item
template, find:
<img src="{$image}" title="{$name}" alt="{$name}" loading="lazy" />
Replace with:
<img src="{$mybb->asset_url}/images/ougc_crypto_prices/{$symbol}.svg" title="{$name}" alt="{$name}" loading="lazy" style="max-height: 24px;" />
Please note the max height set with the
style
element in the img
tag.