The Arcive of vBulletin Modifications Site. |
|
Different "username_loggedin" per forum and position in thread Details »»
|
|||||||||||||||||||||||||||
|
Different "username_loggedin" per forum and position in thread
Developer Last Online: Nov 2023
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.) Show Your Support
|
|||||||||||||||||||||||||||
| Comments |
|
#2
|
|||
|
|||
|
Ok, it's global.php. Think I got it myself.
|
|
#3
|
|||
|
|||
|
Got the "per forum" part figured out, now I'm trying to find out how to use "$isfirst" in global.php.
|
|
#4
|
|||
|
|||
|
Well, just wrote a $differentlogincode. Easier. Done.
|
![]() |
|
|