Avatar

tid or pid? (General)

by Alfie ⌂, Vienna, Austria, Thursday, March 26, 2015, 01:04 (3320 days ago) @ Magma

Hi Magma,

Alfie I will add, it would be nice to see the original subject title when you hover your mouse over one of the 'latest postings' links.

In principle that should be possible but requires one or two additional queries of the database.

Because if you have the order of threads set by date, and your looking at the 'latest postings' list and if somebody has changed the subject you really don't know what thread your going to end up in until you click on that link.

True. Never thought about that. Probably you are opening a can of worms. Are you interested in the subject line of the previous post in the tree or the first one?

  • Case 1
    Get the id, pid, and tid of the post. Query the DB for id == pid. Retrieve the subject line of this post, send to the template with a new CSS-class. Modify the template and style the CSS for hovering.
  • Case 2
    As above, but id == tid.

Doable. ;-)

--
Cheers,
Alfie (Helmut Schütz)
BEBA-Forum (v1.8β)


Complete thread:

 RSS Feed of thread