Icy Phoenix

     
 

Ads Block Position Left/right

Ads Block Position Left/right

Article
Reply with quote    Download Post  
Post Ads Block Position Left/right 
 
Hey guys,

if have a problem that i cant solve by myself, and its drive me crazy...

 unbenannt

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



 
KugeLSichA - View user's profile Send private message  
KugeLSichA [ Sun 12 Jul, 2009 20:26 ]
Icy Phoenix is an open source project, you can show your appreciation and support future development by donating to the project.

Support us


Ads Block Position Left/right

Comments
Reply with quote    Download Post  
Post Re: Ads Block Position Left/right 
 
so you want to include the ad´s in the backround ???



 
spydie - View user's profile Send private message  
spydie [ Sun 12 Jul, 2009 23:20 ]
Reply with quote    Download Post  
Post Re: Ads Block Position Left/right 
 
no... just beside the forum column



 
KugeLSichA - View user's profile Send private message  
KugeLSichA [ Sun 12 Jul, 2009 23:44 ]
Reply with quote    Download Post  
Post Re: Ads Block Position Left/right 
 
hm

have you seen this topic ???

CSS Help I Guess


i think thats something similar but with PhpBB3

maybe that give´s you a clou



 
spydie - View user's profile Send private message  
spydie [ Mon 13 Jul, 2009 00:14 ]
Reply with quote    Download Post  
Post 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...



 
KugeLSichA - View user's profile Send private message  
KugeLSichA [ Mon 13 Jul, 2009 00:46 ]
Reply with quote    Download Post  
Post 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: [Download] [Hide] [Select]

Find:

<!-- {GREETING_POPUP} -->

After Add:

<div align="center">
<div style="width:1000px;">

<div align="center" style="float:right; width:100px; padding-right:5px;" class="forumline">

<img src="girl.gif" width="90" alt="" />

<br />

<img src="sky.gif" width="90" alt="" />

</div>

<div align="center" style="float:left; width:100px; padding-left:5px;" class="forumline">

<img src="girl2.gif" width="90" alt="" />

<br />

<img src="sky.gif" width="90" alt="" />

</div>



overall_footer.tpl

Code: [Download] [Hide] [Select]

Find:

{BOTTOM_HTML_BLOCK}

After Add:

</div>
</div>



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.



And of course, you can use html markup instead of the pic uri's etc, etc...


Now I'm going fishing again....



 
Edited by Guest, Mon 13 Jul, 2009 14:10: Fixed the width for higher resolutions
   
Inactive User [ Mon 13 Jul, 2009 05:38 ]
Reply with quote    Download Post  
Post Re: Ads Block Position Left/right 
 
I think you can use this:

HTML:

Code: [Download] [Hide] [Select]
<div class="ad">left ad</div>
<div class="ad2">right ad</div>


CSS:

Code: [Download] [Hide] [Select]
.ad{
position:absolute;/*or fixed*/
width:100%;
text-align:left;
}
.ad2{
position:absolute;/*or fixed*/
width:100%;
text-align:right;
}



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



 
elpulgas - View user's profile Send private message  
elpulgas [ Wed 15 Jul, 2009 05:31 ]
Reply with quote    Download Post  
Post 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: [Download] [Hide] [Select]
if($color == 'floreal')
{
    $images['google_begin'] = '
        <div align="center">
        <div style="width:1000px;">
        <div align="center" style="float:right; width:100px; padding-right:5px;" class="forumline">
        <img src="girl.gif" width="90" alt="" />
    <br />
        <img src="sky.gif" width="90" alt="" />
        </div>
        <div align="center" style="float:left; width:100px; padding-left:5px;" class="forumline">
        <img src="girl2.gif" width="90" alt="" />
    <br />
        <img src="sky.gif" width="90" alt="" />
        </div>';
    $images['google_end'] = '</div></div>';
}
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.


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.  



 
   
Inactive User [ Wed 15 Jul, 2009 12:11 ]
Reply with quote    Download Post  
Post 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!



 
KugeLSichA - View user's profile Send private message  
KugeLSichA [ Wed 15 Jul, 2009 22:06 ]
Reply with quote    Download Post  
Post Re: Ads Block Position Left/right 
 
You're welcome, It's always nice to help nice people.

There is one other trap in compressing the theme to 760px, and if you have problems with that - - - - - Just yell out!

Hint: It's in the footer.  



 
   
Inactive User [ Thu 16 Jul, 2009 12:02 ]
Display posts from previous:    

HideWas this topic useful?

Post new topic  Reply to topic  Page 1 of 1