PDA

View Full Version : Different "username_loggedin" per forum and position in thread


Sho
11-10-2002, 01:52 AM
Hi,

I added the ability to use a unique template for the first post in a thread (enable/disable per forum). With help from others, I also got it working to have a different editpost template for this first post.

The problem is, I also need different "username_loggedin" and "username_loggedout" templates. Not per styleset, but per forum. Also, only for the first post in a thread (= newthread, editpost for first post).

This gets done in functions.php, but I really have no idea how to use "$isfirst" and "$forumid" there to form an if clause. Please help me! :)

(Sorry for my cruel English.)

Sho
11-10-2002, 02:02 AM
Ok, it's global.php. Think I got it myself.

Sho
11-10-2002, 02:10 AM
Got the "per forum" part figured out, now I'm trying to find out how to use "$isfirst" in global.php.

Sho
11-10-2002, 03:37 AM
Well, just wrote a $differentlogincode. Easier. Done.