![]() |
[RESOLVED] Developer postbit image problem
I'm trying to make an addition to the mod system we have installed on our site and am getting nowhere fast. You see here on vB.org when you post a Skin or Mod thread you get a DEVELOPER image in the sig sort of area of that thread, I'm trying to emulate that.
I have asked the mod system author but my question has got no reply. This is what I'm using as the code: Code:
<if condition="in_array($thread['forumid'], array(28,29,32,10,39,43,41,51)) && $threadinfo['postuserid'] == $bbuserinfo['userid']"> I have tried placing it in the postbit here (I don't know the best place to put it!): Code:
$template_hook[postbit_signature_start] |
I think this is wrong in your condition:
HTML Code:
$threadinfo['postuserid'] == $bbuserinfo['userid'] |
I must just be monumentally dim Lynne, I've tried the code below and the image still wont show, is the conditional correct now do you think?
Code:
<if condition="in_array($thread['forumid'], array(28,29,32,10,39,43,41)) && $threadinfo['postuserid'] == $post['userid']"> |
I have no idea if it's correct because I haven't tested it or anything. However, I do notice you are using both $threadinfo and $thread in the condition. I think $thread is the correct one.
You should print out the variables in the postbit and see what turns up. Print $threadinfo['postuserid'] and $post['userid'] (and $thread['postuserid'] ). That is how I debug conditions. |
That was it Lynne, thank you very very much for your excellent help. :-)
|
All times are GMT. The time now is 12:34 AM. |
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:
|