![]() |
Help with pseudocode -> vbulletin code
Hello.
I've tried googling and everything but can't really find what I need. On threadbit, I want to change the background colour of my threads. The pseudocode is: <if condition = threadstarter = userid> then <td class = etc> <if condition="$thread['sticky'] == 1"> <td class="stickybg" id="td_threadtitle_$thread[realthreadid]" title="$thread[preview]"> <else /> <td class="alt1" id="td_threadtitle_$thread[realthreadid]" title="$thread[preview]"> </if> </if> I only need help for the first bit in that code. I was also wondering if theres any code along those lines: <if condition= first-5characters-of-thread-title = [#B50] and thread is in X forum and threadstarter = user id> then ... where [# are constant; B50 is variable; ] constant. So [#variable-variable-variable] Thanks to anyone who helps :) |
<a href="https://vborg.vbsupport.ru/showthread.php?t=202916&highlight=threadstarter" target="_blank">https://vborg.vbsupport.ru/showt...=threadstarter</a>
try implementing that mod. |
Thanks for that, but doesn't really suit my need as theres there will be more than 3 people who will be having custom threadbit backgrounds and the MOD you just posted can only be used by one usergroup, limited to only 1 type of CSS.
Thanks tho :) |
If you look at the thread table in the database, you'll see the fields postuserid and postusername. So you should be able to use those - $thread['postuserid'] == xx . forumid is also in that table, so $thread['forumid'] == yy .
|
Thanks so much Lynne :) <3
Still need help on 2nd part of my question D: |
All times are GMT. The time now is 01:10 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|