PDA

View Full Version : Help with pseudocode -> vbulletin code


DeanLag
08-10-2009, 03:43 PM
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 :)

RTMdotORG
08-10-2009, 04:06 PM
<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.

DeanLag
08-10-2009, 04:18 PM
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 :)

Lynne
08-10-2009, 04:18 PM
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 .

DeanLag
08-10-2009, 04:40 PM
Thanks so much Lynne :) <3

Still need help on 2nd part of my question D: