MyBB Community Forums

Full Version: How to manually remove ads from registration page?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I am using My Advertisements plugin to show ads on my forum. It shows ads on registration page too. I could not find any solution to remove ads from that page. I want to remove this manually. Would you please guide me in this regard?

Thanks in advance! Smile
Thank you .m.
But one of the MyBB Staffs said, using template conditionals is dangerous. And I always try to use less 3rd party plugin it I don't need it badly. That's why I asked for manual coding giude for it.
^ well, have you seen this post on the referred thread ?
(2011-11-20, 07:01 PM)Dylan M. Wrote: [ -> ]... ... ...
At start of function after any globals put:
if(THIS_SCRIPT == 'member.php' || THIS_SCRIPT == 'usercp.php')
{
   return;
}

You can add more places by finding out the THIS_SCRIPT for that page (located at the top of each php file, but should match the filename) and putting another || THIS_SCRIPT == 'filename.php' in the if statement.
you can add the suggested code in the plugin file itself!