Forum breadcrumbs – You are here:Asgaros Support ForumSupportCan't save ads
Please or Register to create posts and topics.

Can't save ads

Every time I try to set up ads in the forum I installed it won’t ad the advertisement.

Hello @michaeljburns

Have you disabled your ad-blocker for testing/adding them? Otherwise the ads will be filtered of course. šŸ™‚

If you want to support the development of Asgaros Forum, you can leave a good review or donate. Thank you very much!

Of course, but the problem is not with ads displaying. The problem is in admin when I try to ad a new ad. I click save, and nothing happens.

Hello again @michaeljburns

Can you provide a screenshot of the ad-editor and the ad-code? It is possible that the code somehow gets filtered out or that the code-editor for the ad is not loading correctly.

If you want to support the development of Asgaros Forum, you can leave a good review or donate. Thank you very much!

Sure

Uploaded files:
  • 2019-06-30_1500.png

Hello again @michaeljburns

I tried to save your ad-code on my testing-installation and it works fine so far. You mentioned that you click onĀ “Save”, but after clicking it, nothing happens and the editor stays open as in your screenshot, right?

If this is the case, then it sounds like something on your backend is producing a JavaScript error. If you use Google Chrome, you can pressĀ F12 to open the developer-tools. After that you have to switch to theĀ Console tab. Do you see any errors there?

If you want to support the development of Asgaros Forum, you can leave a good review or donate. Thank you very much!

There is this, I have no idea what it means though

Uploaded files:
  • 2019-06-30_2149.png

Hello again @michaeljburns

Are you comfortable with changing a single line of code in a specific file? If so, please have a look at the following file:

wp-content\plugins\asgaros-forum\admin\views\ads.php

Around lineĀ 24 you find the following line of code:

<td><textarea class="large-text" data-code-editor-mode="htmlmixed" rows="8" cols="80" type="text" name="ad_code" id="ad_code" required></textarea></td>

Change it to:

<td><textarea class="large-text" data-code-editor-mode="htmlmixed" rows="8" cols="80" type="text" name="ad_code" id="ad_code"></textarea></td>

 

If you want to support the development of Asgaros Forum, you can leave a good review or donate. Thank you very much!

Hello Thomas, I have a same problem. With the removal of “required” it works.

Hello @guillaume

Thank you for the feedback. I will fix this issue with the upcoming update.

If you want to support the development of Asgaros Forum, you can leave a good review or donate. Thank you very much!