How to add a HTML block to footer articles (as banner of footer) ?
(https://www.tinyportal.net/proxy.php?request=http%3A%2F%2Fimg62.imageshack.us%2Fimg62%2F3006%2Ftest7in.jpg&hash=56416a84dc210304601c700514e210f9281c8480)
See demo at: http://information.5gigs.com/ (I creat it with PCNUKE :))
And I just want apply it for my TP at the site: http://www.elpvn.org/Ã, :uglystupid2:
Thanks for care
ELPVN
Are you wanting to make it a static footer at the bottom of each and every page?
If so, that is relatively simple.
Open index.template.php and find:
function template_main_below()
{
global $context, $settings, $options, $scripturl, $txt;
echo '</td>';
// TinyPortal integrated bars
Change it to something like the following:
function template_main_below()
{
global $context, $settings, $options, $scripturl, $txt;
echo '<table width="100%"cellspacing="0" cellpadding="5" align="center" class="tborder"><tr><td class="windowbg">This is a static footer.</td></tr></table>';
echo '</td>';
// TinyPortal integrated bars
Where I have it saying "This is a static footer" is where you would place the banner code. Also, the table cell does not center the content at the moment, so you might want to change that.
If you were wanting something more dynamic, such as creating a block using Edit Blocks withing TPAdmin, then that would be more problematical as TP currently isn't set up to allow for that (Bottom Blocks), though it has been discussed...
The image below shows a screenshot of what the code I gave you looks like in use. Notice that it shows up below the links to additional pages on those pages which have such links (on those without such links, is shows up directly beneath the last element in the center).
[attachment deleted by admin]
That's great !
Thanks ! I'm an architectural student then I'm not good in IT major so sorry for my stupid :uglystupid2:
Regards.
ELPVN
rasyr, THANK YOU!! i was asking for blocks on the bottom just so i could setup my amber alert script. i didnt want it running across the top so i didn't think i was going top be able to use it. well, this little bit of info fixed me right up. the code worked perfectly.
Can this be added to the FAQ Forum