horseguards Posted February 3, 2015 Report Share Posted February 3, 2015 Hello, I am installing a Kunena forum, and I need to insert in the first and fifth post an ad. I got this piece of code to hack: <?php if ($this->message->replynum == 1 || $this->message->replynum == 5 || $this->message->id == $this->topic->last_post_id) : echo KunenaHtmlParser::parseBBCode ($this->message->message, $this).'<p>THEADGOESHERE</p>'; else : echo KunenaHtmlParser::parseBBCode ($this->message->message, $this); endif; ?> How can I place an ad inside php? Can I put JavaScript or iFrame? Thanks for your help!! Quote Link to comment Share on other sites More sharing options...
Erik Geurts Posted February 3, 2015 Report Share Posted February 3, 2015 You'll need to put the invocation code where it says THEADGOESHERE. Quote Link to comment Share on other sites More sharing options...
horseguards Posted February 3, 2015 Author Report Share Posted February 3, 2015 Yes, I do understand this, but, what kind of code? iframe, javascript? do the run inside a php code? which one is better to use? Quote Link to comment Share on other sites More sharing options...
andrewatfornax Posted March 7, 2017 Report Share Posted March 7, 2017 Hi @horseguards, There is some information on what the pros/cons of the different zones are here: https://documentation.revive-adserver.com/display/DOCS/Creating+a+Zone https://documentation.revive-adserver.com/display/DOCS/Invocation+Code%3A+Zone+Level https://documentation.revive-adserver.com/display/DOCS/Tag+Settings Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.