News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Help needed to place ad between the topic content

Started by engrz, May 01, 2020, 12:26:45 PM

Previous topic - Next topic

engrz

Hello

Im using ad management mod, but there is no any option to set advertisement in between the topic content or just below the topic, not below the menu.

for reference, image is attached. please help me to place ad here.


Forum url: https://www.engrz.org

Sir Osis of Liver

Placing ads in posts is not a great idea, it's really annoying.  Don't think there's a mod that does that (I hope not).  You could probably custom code it in display template, but I wouldn't.
Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

engrz


Mick.

You could have it after the first post only too ya know?  Instead of under all posts.

Mick.

Im thinking somewhere after signature...

Open Themes/default/Display.template.php and find:

<hr class="post_separator" />';
}

echo '
</form>
</div>
<a id="lastPost"></a>';


Replace with....

<hr class="post_separator" />';
}

echo '
</form>
</div>
<a id="lastPost"></a>';

// Google adsense, yay!

if ($message['id'] == $context['topic_first_message'])
{
    echo '
REPLACE THIS TEXT WITH GOOGLE AD CODE HERE ';
}


I have not tested this but i'm thinking it should work.

engrz

I will try it, but ad view shows 12% so i wand to add in between post to visible it in the screen.

Deaks

engrz did you get this working?  If not you may need to look at the pro version of the mod on the authors site.  I will mark this as solved for now.
~~~~
Former SMF Project Manager
Former SMF Customizer

"For as lang as hunner o us is in life, in nae wey
will we thole the Soothron tae owergang us. In truth it isna for glory, or wealth, or
honours that we fecht, but for freedom alane, that nae honest cheil gies up but wi life
itsel."

Advertisement: