TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,973
  • Latest: NonStop
Stats
  • Total Posts: 196,217
  • Total Topics: 21,351
  • Online today: 556
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 1
  • Guests: 318
  • Total: 319
  • illori

How to add a HTML block to footer articles ?

Started by elpvn, January 13, 2006, 06:29:56 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

elpvn

How to add a HTML block to footer articles (as banner of footer) ?



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

Rasyr

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]

elpvn

 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

rbh

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.

Ray


This website is proudly hosted on Crocweb Cloud Website Hosting.