PDA

View Full Version : Need some help with showthread variables


Mickie D
01-06-2014, 07:55 AM
Hi all,

Hope you all are having a great new year!

I am modding my showthread page, and wondered if there was any variables for the following.

I need the first post username
I need the first post usnerames avatar
I need the category name for the forumid you are in

And a long shot, but is there a variable for the date and time for the first post?

Thank you very much.

Scanu
01-06-2014, 10:52 AM
Where do you need them?

Mickie D
01-06-2014, 05:14 PM
Where do you need them?

Showthread template, looking for template conditional variables. :)

Cheers mate

Lynne
01-06-2014, 06:34 PM
The thread.firstpostid and thread.postusername should be available to use, but I think you will need to write a plugin to get the avatar for the user.

As for the category name, the forumid is available and so I would guess you can get the parent using that. Or actually, look where the navbits are created around line 2325 and you may be able to get it there.

Mickie D
01-06-2014, 10:06 PM
Hi Lynn, I found the category navbits where it constructs the forum categories in the order you are in.

But I have not found a variable that will output the EXACT category you are in

Example.

I can find

forum > General Chat > subforumname

But I cannot find

subforumname

if I am in that forum

Thanks Lynne for your time, and thanks for the other variables... very useful thanks!

Mick

Lynne
01-07-2014, 04:57 PM
So the forum title of the forum you are in? Shouldn't that just be $forum[title] ?