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

Recent

Welcome to TinyPortal. Please login or sign up.

June 25, 2024, 07:34:47 AM

Login with username, password and session length
Members
Stats
  • Total Posts: 195,280
  • Total Topics: 21,227
  • Online today: 190
  • Online ever: 3,540 (September 03, 2022, 01:38:54 AM)
Users Online
  • Users: 0
  • Guests: 175
  • Total: 175

Table align question

Started by dimdom, October 03, 2009, 01:35:19 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Freddy

OK that was a bit more complicated than I expected.  Basically to do this I took the output from each bit and put it all into an array.  Then at the end it was simple to just output the array into the table.

File is attached, don't forget to remove the PHP tag at the top.

The language in the articles function may be corrupted because I don't have that language here, but it doesn't matter as you don't use that part of the code - in fact you could strip a lot of that out if you wanted.

You'll just need to change the headings I did in English near the end of the file.

dimdom

Excellent work and very fast!

QuoteFile is attached, don't forget to remove the PHP tag at the top.

In fact, i find it more convenient to use the

include('recentsBlock.php');

in a php block while my recentsBlock.php is in the forum directory...

Once again, great work!


Freddy

Ah yes, good thinking on the include, I find editing live in TP a bit difficult sometimes and there are no line numbers to help.

Thanks for the screenshot :)  Glad it works.

Freddy

Mind if I add this to the block code and snippets board in case anyone else likes it ?

dimdom

Go ahead...

it is mostly your work after all!