MyBB Community Forums
Ad code problem - Printable Version

+- MyBB Community Forums (https://community.mybb.com)
+-- Forum: Community Archive (https://community.mybb.com/forum-106.html)
+--- Forum: Archived Forums (https://community.mybb.com/forum-143.html)
+---- Forum: Archived Development and Support (https://community.mybb.com/forum-155.html)
+----- Forum: MyBB 1.6 (https://community.mybb.com/forum-138.html)
+------ Forum: 1.6 General Support (https://community.mybb.com/forum-127.html)
+------ Thread: Ad code problem (/thread-129645.html)



Ad code problem - baandiyo - 2012-11-19

This is my ad code
<IFRAME FRAMEBORDER=0 MARGINWIDTH=0 MARGINHEIGHT=0 SCROLLING=NO WIDTH=100% HEIGHT=90 SRC="http://ad.yieldads.com/st?ad_type=iframe&ad_size=728x90&section=3824962&pub_url=${PUB_URL}"></IFRAME>

But when i put it in header it says its potentially harmful and i cant use it...???


RE: Ad code problem - Nathan Malcolm - 2012-11-19

You can't use ${PUB_URL} in templates as the current templating system uses eval() which is evil and is very risky so we black list certain patterns to help prevent arbitrary code execution.


RE: Ad code problem - baandiyo - 2012-11-19

So what next?? I've to compromise my earnings Sad


RE: Ad code problem - Nathan Malcolm - 2012-11-19

Contact the company which you're using and ask them if there's a way to display advertisements without using ${PUB_URL}. If they say it's not possible, then you'd need to use an advertisement plugin (MyAdvertisements or My Ad Manager for example) which doesn't require code to be inserted in to the templates directly.