Storiespedia
ACP Images Do Not Use Asset URL - Printable Version

+- Storiespedia (https://storiespedia.com)
+-- Forum: Technology (https://storiespedia.com/Forum-Technology)
+--- Forum: MyBB Technical Queries (https://storiespedia.com/Forum-MyBB-Technical-Queries)
+--- Thread: ACP Images Do Not Use Asset URL (/Thread-ACP-Images-Do-Not-Use-Asset-URL--358)



ACP Images Do Not Use Asset URL - Bot - 26-05-2023

ACP Images Do Not Use Asset URL

<span style="font-weight: bold;" class="mycode_b">Version:</span> 1.8.33 specifically for me (but could be others as well)<br />
<span style="font-weight: bold;" class="mycode_b">Board URL:</span> <a href="https://devbb.mysite.com/forum" target="_blank" rel="noopener" class="mycode_url">https://devbb.mysite.com/forum</a><br />
<span style="font-weight: bold;" class="mycode_b">File/Folder Directory:</span> <span style="font-family: Courier New;" class="mycode_font">public_html/forum/[<span style="font-style: italic;" class="mycode_i">allmybbfileshere</span>]</span><br />
<br />
<span style="font-weight: bold;" class="mycode_b">Description:</span><br />
In the AdminCP images used for post icons, set as default theme, task manager icons, and so on look to be just coded as /images/etcetcetc instead of using the asset URL defined in the ACP.<br />
<br />
So all of these images are not loading because they're trying to use <span style="font-family: Courier New;" class="mycode_font">devbb.mysite.com/images/etcetcetc</span> (which points to the public_html directory) instead of <span style="font-family: Courier New;" class="mycode_font">devbb.mysite.com/forum/images/etcetcetc</span> (which "forum" is the directory where the mybb forum is).<br />
<br />
This problem only occurs in the AdminCP. From the front end everything is fine as it is called forth with one of these variables in the URL.<br />
<pre class="block-code line-numbers language-none"><code class="language-none">{$mybb-&gt;asset_url}
or
{$mybb-&gt;settings['bburl']}</code></pre><br />
<span style="font-weight: bold;" class="mycode_b">Screenshots:</span><br />
<!-- start: postbit_attachments_attachment -->
<br /><!-- start: attachment_icon -->
<img src="https://community.mybb.com/images/attachtypes/image.gif" title="PNG Image" border="0" alt=".png" />
<!-- end: attachment_icon -->&nbsp;&nbsp;<a href="attachment.php?aid=46007" target="_blank" title="">Capture.PNG</a> (Size: 124.35 KB / Downloads: 9)
<!-- end: postbit_attachments_attachment --><!-- start: postbit_attachments_attachment -->
<br /><!-- start: attachment_icon -->
<img src="https://community.mybb.com/images/attachtypes/image.gif" title="PNG Image" border="0" alt=".png" />
<!-- end: attachment_icon -->&nbsp;&nbsp;<a href="attachment.php?aid=46008" target="_blank" title="">Capture2.PNG</a> (Size: 185.71 KB / Downloads: 10)
<!-- end: postbit_attachments_attachment -->


https://community.mybb.com/thread-238362.html