TinyPortal

Development => Feedback => Topic started by: JPDeni on July 12, 2006, 01:44:25 AM

Title: Request: Center bottom block
Post by: JPDeni on July 12, 2006, 01:44:25 AM
I don't know if this would be possible, but I'd love to have a block that appears at the bottom of the page in the center, just above the copyright information. Specifically, I want to have a copyright notice for the site above the copyright notices for SMF and TP. I would just put it as a center block, but any other content on the page comes after the center blocks and I would like this to be after the page content.
Title: Re: Request: Center bottom block
Post by: agridoc on July 12, 2006, 01:49:48 AM
If you want it displayed in all your pages, a small modification in index.template.php of your theme would do what you want.
Title: Re: Request: Center bottom block
Post by: JPDeni on July 12, 2006, 01:59:04 AM
I haven't got into themes as yet, so I wasn't sure where it would be. Thanks for the info. I am trying not to hard-code any more than I have to, but I will if I need to.
Title: Re: Request: Center bottom block
Post by: Xarcell on July 12, 2006, 02:22:13 AM
Bloc intends to add this. I think .96 version or later.
Title: Re: Request: Center bottom block
Post by: JPDeni on July 12, 2006, 02:26:59 AM
Cool. Thanks much.
Title: Re: Request: Center bottom block
Post by: Allsomaliforum on December 07, 2007, 11:22:47 PM
yes im still looking for this??
Title: Re: Request: Center bottom block
Post by: IchBin on December 07, 2007, 11:24:01 PM
Well stop looking, its coming in TP 1.0. No release date for that yet.
Title: Re: Request: Center bottom block
Post by: Allsomaliforum on December 07, 2007, 11:26:36 PM
is there any otherway i can do this, thanks fo the quick reply.
Title: Re: Request: Center bottom block
Post by: IchBin on December 07, 2007, 11:30:44 PM
No, there's far too much code involved to just tell you of a way to do it. If you really want a bottom block, hard code it into your theme with a custom made block of your own.
Title: Re: Request: Center bottom block
Post by: Allsomaliforum on December 07, 2007, 11:37:17 PM
yeah but i dont know what to do?  :-X
Title: Re: Request: Center bottom block
Post by: IchBin on December 07, 2007, 11:54:33 PM
Then do what everyone else does around here. Try. :) Open your index.template.php and add some code before the ending </body> tag, or right before the copyright code.
Title: Re: Request: Center bottom block
Post by: Allsomaliforum on December 08, 2007, 02:43:21 AM
im trying to add this, just before the </body> tag

<table border="0">
<tr>
<td>
<div id='vu_ytplayer_vjVQa1PpcFOP0-Iewrm2UhN23jqV-tBm87rF6kjY9wI='><a href='http://www.youtube.com/browse'>Watch the latest videos on YouTube.com</a></div><script type='text/javascript' src='http://www.youtube.com/cp/vjVQa1PpcFOP0-Iewrm2UhN23jqV-tBm87rF6kjY9wI='></script></td>
<td><!-- Begin: AdBrite -->
<style type="text/css">
   .adHeadline {font: bold 10pt Arial; text-decoration: underline; color: #666666;}
   .adText {font: normal 10pt Arial; text-decoration: none; color: #333333;}
</style>
<script type="text/javascript" src="http://ads.adbrite.com/mb/text_group.php?sid=508532&br=1&dk=72656c6174696f6e73686970735f385f325f776562">
</script>
<div><a class="adHeadline" target="_top" href="http://www.adbrite.com/mb/commerce/purchase_form.php?opid=508532&afsid=1">Your Ad Here</a></div>
<!-- End: AdBrite --></td>
</tr>
<tr>
</table>



should i put echo tags in?, cos i did it as it is and its not showing up?
Title: Re: Request: Center bottom block
Post by: IchBin on December 08, 2007, 05:50:27 AM
Remember, its a good idea to use HTML with the standard double quotes. In your code you have a mix of them on different lines (single/double quotes).. Which causes problems with the echo statement.

You can just copy and paste this if you'd like:
echo '
<table border="0">
<tr>
<td>
<div id="vu_ytplayer_vjVQa1PpcFOP0-Iewrm2UhN23jqV-tBm87rF6kjY9wI="><a href="http://www.youtube.com/browse">Watch the latest videos on YouTube.com</a></div><script type="text/javascript" src="http://www.youtube.com/cp/vjVQa1PpcFOP0-Iewrm2UhN23jqV-tBm87rF6kjY9wI="></script></td>
<td><!-- Begin: AdBrite -->
<style type="text/css">
   .adHeadline {font: bold 10pt Arial; text-decoration: underline; color: #666666;}
   .adText {font: normal 10pt Arial; text-decoration: none; color: #333333;}
</style>
<script type="text/javascript" src="http://ads.adbrite.com/mb/text_group.php?sid=508532&br=1&dk=72656c6174696f6e73686970735f385f325f776562">
</script>
<div><a class="adHeadline" target="_top" href="http://www.adbrite.com/mb/commerce/purchase_form.php?opid=508532&afsid=1">Your Ad Here</a></div>
<!-- End: AdBrite --></td>
</tr>
<tr>
</table>';