https://www.icyphoenix.com/viewtopic.php?f=36&t=6090 ----------------------------------- KugeLSichA Sun 12 Jul, 2009 20:26 Ads Block Position Left/right ----------------------------------- Hey guys, if have a problem that i cant solve by myself, and its drive me crazy... [img]http://www.icyphoenix.com/files/images/6/unbenannt.png[/img] as you can see on the image, there are 2 block positions i want to have... im using ip rc2, and hope that someone of you can help me to solve the problem... the php thing is not a problem to code... but the html code i´ve already tried, does not work like i wish... thanks ----------------------------------- spydie Sun 12 Jul, 2009 23:20 Re: Ads Block Position Left/right ----------------------------------- so you want to include the ad´s in the backround ??? ----------------------------------- KugeLSichA Sun 12 Jul, 2009 23:44 Re: Ads Block Position Left/right ----------------------------------- no... just beside the forum column ----------------------------------- spydie Mon 13 Jul, 2009 00:14 Re: Ads Block Position Left/right ----------------------------------- hm have you seen this topic ??? [url=http://www.icyphoenix.com/viewtopic.php?f=6&t=6031]CSS Help I Guess i think thats something similar but with PhpBB3 maybe that give´s you a clou ----------------------------------- KugeLSichA Mon 13 Jul, 2009 00:46 Re: Ads Block Position Left/right ----------------------------------- hey spydie, yes i saw this topic... but with this solution the block would be in the forumtable... thats not what i want... i want it out of the forum table... like the number 1 in the pic from limun in the other topic... ----------------------------------- Lopalong Mon 13 Jul, 2009 05:38 Re: Ads Block Position Left/right ----------------------------------- KS, Assuming you have the forumtable width at 760px, you could try this; for Google "Skyscraper" ads etc. overall_header.tpl [code linenumbers=false] Find: After Add:


[/code] overall_footer.tpl [code linenumbers=false] Find: {BOTTOM_HTML_BLOCK} After Add:
[/code] You should get roughly what's in the pic for 1024 and higher resolutions - though you will probably have to adjust it for what you are actually trying to do. [img]http://www.icyphoenix.com/files/images/3531/demo.gif[/img] And of course, you can use html markup instead of the pic uri's etc, etc... Now I'm going fishing again.... ;) ----------------------------------- elpulgas Wed 15 Jul, 2009 05:31 Re: Ads Block Position Left/right ----------------------------------- I think you can use this: HTML: [code linenumbers=false]
left ad
right ad
[/code] CSS: [code linenumbers=false].ad{ position:absolute;/*or fixed*/ width:100%; text-align:left; } .ad2{ position:absolute;/*or fixed*/ width:100%; text-align:right; }[/code] That will put them in the top left/right corners. To align them you'll have to either ad a container before them (don't know if the absolute positioning will keep the margins of it), change the widths or use left(right):percentage or pxs; to get them where you eant them. Hope it helps ----------------------------------- Lopalong Wed 15 Jul, 2009 12:11 Re: Ads Block Position Left/right ----------------------------------- If KS wants to go "Global" for more than one theme, then it is better to avoid .css per theme and add the extra markup to the default.cfg and use arguments for each style; as no doubt either way it's done will not suit all themes. Something like this: [code linenumbers=false]if($color == 'floreal') { $images['google_begin'] = '


'; $images['google_end'] = '
'; } else { $images['google_begin'] = ''; $images['google_end'] = ''; } And we end up with something like this for the default overall_header.tpl: {GOOGLE_BEGIN}, and {GOOGLE_END} for the footer. [/code] And by adding different "if" and "else" arguments, all markup will end up in the same file. So many style variations - - - - So many complications. Ice and its associated themes for example will need yet another container added. :mricy: ----------------------------------- KugeLSichA Wed 15 Jul, 2009 22:06 Re: Ads Block Position Left/right ----------------------------------- Hey my friends thank both of you for your solutions... i dont have much time now... but i´ll test your code until weekend and lets you know what is my favorite... Thanks! :) ----------------------------------- Lopalong Thu 16 Jul, 2009 12:02 Re: Ads Block Position Left/right ----------------------------------- You're welcome, It's always nice to help nice people. :P There is one other trap in compressing the theme to 760px, and if you have problems with that - - - - - Just yell out! ;) [b]Hint:[/b] It's in the footer. :mryellow: