Support How can I use an external image host in Xenforo 2?

DarKMaSK

Loyal Member
Hi!

As I have limited space in my shared hosting account, I want to use external host, 'postimages.org' specifically and this is the javascript code from postimages.org:
JavaScript:
<script type='text/javascript' src='//mod.postimage.org/zetaboards.js' charset='utf-8'></script>

I want to place it as shown in the image below (my phpBB forum editor screenshot) just like in here at Xnforo.ir:

phpbb-external-imagehost-link.md.jpg
 
Solution
Please try disabling the addon and edit PAGE_CONTAINER template
JavaScript:
<script type='text/javascript' src='//mod.postimage.org/zetaboards.js' charset='utf-8'></script>
Above:
</head>
  • This is also our code
  • Line 66
JavaScript:
<script async src="//add.pics/sdk/pup.js" data-url="https://add.pics/upload"></script>

Screenshot.png

DarKMaSK

Loyal Member
Please try disabling the addon and edit PAGE_CONTAINER template
JavaScript:
<script type='text/javascript' src='//mod.postimage.org/zetaboards.js' charset='utf-8'></script>
Above:
</head>
  • This is also our code
  • Line 66
JavaScript:
<script async src="//add.pics/sdk/pup.js" data-url="https://add.pics/upload"></script>

Screenshot.png
WOW!!! It is working!!! Thank you... thank you soooo much!!! Now tell me, I want to remove the image button (Red marked in the image below):

remove-image-button06434e3d6b7e3d44.md.jpg
 

DarKMaSK

Loyal Member
JavaScript:
<xf:if is="$xf.visitor.isMemberOf(3)">
<script type='text/javascript' src='//mod.postimage.org/zetaboards.js' charset='utf-8'></script>
</xf:if>
I understand your point friend! :) I replaced this code:
JavaScript:
<script async src="//add.pics/sdk/pup.js" data-url="https://add.pics/upload"></script>
with this from postimages.org:
JavaScript:
<script type="text/javascript" src="//mod.postimage.org/phpbb3-english-family.js" charset="utf-8"></script>
and it is working. Thanks for your awesome help friend. 😍❤️

Note: add.pics is also a wonderful site. I have made an account there. ☺️
 
  • Tags
    image imagehost support how can i use an external image host in xenforo 2? xenforo 2.2.4
  • Back
    Top Bottom