https://www.icyphoenix.com/viewtopic.php?f=32&t=4304 ----------------------------------- dutchwii Tue 10 Jun, 2008 21:50 Advertising Mod ----------------------------------- What mod does icyphoenix.com uses to show their ads after the first post? i found this one: http://www.phpbb.com/community/viewtopic.php?f=70&t=552813&st=0&sk=t&sd=a&hilit=advertising but i want that it looks like it's send by a member i added a example: [IMG]http://i30.tinypic.com/250js5z.gif[/IMG] If wrong forum please move to correct one Thanks in Advance ----------------------------------- Mighty Gorgon Thu 12 Jun, 2008 11:19 Re: Advertising Mod ----------------------------------- Hi, in Icy Phoenix Sponsor details are "hardcoded" in template, it shouldn't be difficult to make the same in phpBB 3... just create a new condition in the template to insert a new row after first post and duplicate poster details inserting what you like. The file to customize is viewtopic_body.html, if you need further help, just ask... I will try in my free time. ----------------------------------- dutchwii Thu 12 Jun, 2008 11:59 Re: Advertising Mod ----------------------------------- could you copy/paste here the code? and where after to add. Thanks in advance :) and funny smileys you got here :chef: ----------------------------------- Methusala Sat 14 Jun, 2008 02:45 Re: Advertising Mod ----------------------------------- The mod by Highway of Life is a very simple one but is written for Prosilver and SubSilver2 naturally. The code for Subsilver2 is as follows and needs the classes updated to match that of MG Autumn: This code is from the page titled ad_banner.html and the download site is http://www.phpbb.com/community/viewtopic.php?f=70&t=552813&hilit=Adsense [code]
Google
 
google adsense
{INFO_IMG}
[/code] It would be appreciated if the classes could be edited to reflect MG Autumn style thanks. ----------------------------------- dutchwii Sat 14 Jun, 2008 09:05 Re: Advertising Mod ----------------------------------- Well i am not gona use adsense from google, but probably a other ad service ----------------------------------- Methusala Sat 14 Jun, 2008 20:47 Re: Advertising Mod ----------------------------------- You can use this mod with any ad service simply by replacing the google info in it ----------------------------------- dutchwii Sat 14 Jun, 2008 21:28 Re: Advertising Mod ----------------------------------- but home to make it look like if its posted by a member how add "username" usergroup etc ----------------------------------- Methusala Sat 14 Jun, 2008 23:03 Re: Advertising Mod ----------------------------------- I have now got this advertisement code worked out to be used in MG Autumn style for phpBB3. You need to edit the Google details to your own of course and as well as that you can change the details to run banner ads if you want to as it is not necessarily made just for Google ads. [b]Open viewtopic_body.html[/b] [b]Find:[/b] [code linenumbers=false][/code] [b]Before add:[/b] [code linenumbers=false] Google

google adsense
 
{INFO_IMG}
[/code] Save this image and upload it to Styles > Template > Theme > Images [img]http://www.icyphoenix.com/files/images/2451/google.jpg[/img] ----------------------------------- Mighty Gorgon Tue 24 Jun, 2008 12:32 Re: Advertising Mod ----------------------------------- Thanks for sharing [b]Methusala[/b], I really appreciate. :wink: ----------------------------------- tbird412 Wed 06 May, 2009 17:30 Re: Advertising Mod ----------------------------------- Would that code work with Black Pearl? ----------------------------------- DWho Wed 06 May, 2009 20:29 Re: Advertising Mod ----------------------------------- [quote user="tbird412" post="39104"]Would that code work with Black Pearl?[/quote] There is no reason why not if the code is not exact look for similar code... without look at Black Pearl I cannot tell you exactly.. but as most themes are quite similar mostly... there should be no problem :mrgreen: :mrgreen: ----------------------------------- Franc Wed 27 May, 2009 17:20 Re: Advertising Mod ----------------------------------- [quote user="Methusala" post="29203"]I have now got this advertisement code worked out to be used in MG Autumn style for phpBB3. You need to edit the Google details to your own of course and as well as that you can change the details to run banner ads if you want to as it is not necessarily made just for Google ads. [b]Open viewtopic_body.html[/b] [b]Find:[/b] [code linenumbers=false][/code] [b]Before add:[/b] [code linenumbers=false] Google

google adsense
 
{INFO_IMG}
[/code] Save this image and upload it to Styles > Template > Theme > Images [img]http://www.icyphoenix.com/files/images/2451/google.jpg[/img][/quote] Thank you Methusala, but with this code i have adsense like in the picture, please check picture. Maybe change some lines to get ads on right, after "Google" picture, not below? I'm begginer, so... ----------------------------------- Mighty Gorgon Sun 31 May, 2009 18:53 Re: Advertising Mod ----------------------------------- The modification proposed by [b]Methusala[/b] is for my set of templates... for what I can see in the picture you posted you are not using any of my templates. Maybe you should ask the style author or trying to use the code for proSilver to check if it works (and it will if the style you are using is based on proSilver tpl files). ----------------------------------- aminwasu Thu 11 Jun, 2009 10:21 Re: Advertising Mod ----------------------------------- I recently have installed Phpbb 3.0.5 with seo mod. Can i use this advertising mod with phpbb 3.0.5? [quote user="Methusala" post="29203"]I have now got this advertisement code worked out to be used in MG Autumn style for phpBB3. You need to edit the Google details to your own of course and as well as that you can change the details to run banner ads if you want to as it is not necessarily made just for Google ads. [b]Open viewtopic_body.html[/b] [b]Find:[/b] [code linenumbers=false][/code] [b]Before add:[/b] [code linenumbers=false] Google

google adsense
 
{INFO_IMG}
[/code] Save this image and upload it to Styles > Template > Theme > Images [img]http://www.icyphoenix.com/files/images/2451/google.jpg[/img][/quote] ----------------------------------- Mighty Gorgon Fri 12 Jun, 2009 08:29 Re: Advertising Mod ----------------------------------- This modification is based on my templates set... if you are using any of my templates you should be able to get it work correctly. ----------------------------------- Informpro Fri 12 Jun, 2009 17:08 Re: Advertising Mod ----------------------------------- the adversiting message is hardcoded ??? I can change it by ACP oo" ? ----------------------------------- novice programmer Sun 14 Jun, 2009 13:18 Re: Advertising Mod ----------------------------------- [b]Informpro[/b], this is for phpbb3, mind that first. I guess you cannot edit the script files in phpbb3 from the ACP, so as longer as the template is from those scripts....