### INFORMATION ### Plugin: Ads after first post Version 1.0 Autor: MyBBoard.de Website: http://www.mybboard.de ### INSTALLATION ### Copy the plugin file into the plugin directory "inc/plugins". After that you can activate the plugin via Admin-CP and edit the settings for the plugin. Open the file inc/functions_post.php and search for the line: ---------- eval("\$seperator = \"".$templates->get("postbit_seperator")."\";"); ---------- Add above the line the following code: ---------- // Ads after first post if ($mybb->settings['adsafp_code_onoff'] != "no") { $query = $db->query("SELECT pid FROM ".TABLE_PREFIX."posts WHERE tid = '".$post['tid']."' ORDER BY pid LIMIT 0,1"); $firstpost_id = $db->fetch_array($query); if ($post['pid'] == $firstpost_id['pid']) { if ($mybb->settings['adsafp_align'] == "1") { $ads_align = "left"; } if ($mybb->settings['adsafp_align'] == "2") { $ads_align = "center"; } if ($mybb->settings['adsafp_align'] == "3") { $ads_align = "right"; } $adsafp = "
settings['adsafp_bgcolor'].";\">".$mybb->settings['adsafp_code']."
"; } else { $adsafp = ""; } } // Ads after first post ---------- ### NOTE ### You agree that the author of this plugin will not be held responsible for anything which may happen as a result of downloading, installing or using any of the files that you are downloading, including any instructions included in the download. ### CHANGELOG ### 1.0 - First release