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

XenForo

Administrative
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
 
Solution

DarKMaSK

Loyal Member
just for fun (if you want this function only available for Admin)

add like this

HTML:
<xf:if is="$xf.visitor.isMemberOf(3)">
<script async src="//add.pics/sdk/pup.js" data-url="https://add.pics/upload"></script>
</xf:if>
If I want to post using postimage.org? Can I do that?
 

XenForo

Administrative
If I want to post using postimage.org? Can I do that?
JavaScript:
<xf:if is="$xf.visitor.isMemberOf(3)">
<script type='text/javascript' src='//mod.postimage.org/zetaboards.js' charset='utf-8'></script>
</xf:if>
 
  • Tags
    image imagehost support how can i use an external image host in xenforo 2? xenforo 2.2.4
  • Back
    Top Bottom