How do I store crypto coins icons locally?

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.

  1. Download the attached package, it stores all coin icons for all supported currencies of the plugin in SVG format.
  2. Unpack the file, inside you should find the ougc_crypto_prices directory holding all icon SVG files.
  3. Upload the contents of the package to your server, inside the images directory. At the end all SVG files should be accessible through the path mybb/images/ougc_crypto_prices/.
  4. 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.
Files

You do not have permission to download files.

There are currently no posts to display. Be the first one to leave a reply.
Stream

« see more

New thread Omar G. 3 Apr, 2025, 6:26 am

Plugin Releases Plugin Contract Thread

New thread Omar G. 3 Apr, 2025, 6:02 am

Plugin Releases Plugin Extra Forum Permissions

New reply Omar G. 3 Apr, 2025, 4:34 am

Plugin Releases Plugin Forum Cleaner

New reply Omar G. 3 Apr, 2025, 3:59 am

Plugin Releases Plugin Lock Content

New thread Omar G. 3 Apr, 2025, 3:57 am

Plugin Releases Plugin Forum Cleaner

New thread Omar G. 3 Apr, 2025, 3:35 am

Plugin Releases Plugin Lock Content

New thread Omar G. 3 Apr, 2025, 2:16 am

Plugin Releases Paid Plugin Moderator Quick Buttons

New thread Omar G. 29 Mar, 2025, 1:44 am

Plugin Releases Paid Plugin Awards Rules

New thread Omar G. 27 Mar, 2025, 5:53 pm

Plugin Releases Plugin My2FA

New reply Omar G. 23 Mar, 2025, 10:57 am

Plugin Releases Plugin Awards



Current time: 17 Apr, 2025 11:00 am