The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
Hello,
I am in the process of moving most of the fields in the postbit into a dropdown. The issue that I am seeing is this: When I use $post[joindate] it prints the joindate in UNIXTIME. I then tried wrapping FROM_UNIXTIME($post[joindate]) but got the error about using expressions in VB. Full code is below, thanks for your help ![]() Code:
<if condition="$post[joindate]"> <tr><td class="vbmenu_option">Join Date: $post[joindate]</td></tr> </if> |
#2
|
||||
|
||||
![]()
I just added this exact line to my postbit and it works just fine:
HTML Code:
<if condition="$post['joindate']"><tr><td class="vbmenu_option">$vbphrase[join_date]: $post[joindate]</td></tr></if> |
#3
|
|||
|
|||
![]()
Lynne,
Yes, if I leave the normal joindate intact, it prints just fine. But with this, it prints like it's reading it directly from the db. |
#4
|
||||
|
||||
![]()
What do you mean "leave the normal joindate intact"? You mean if you leave it where it is supposed to be and *also* add it to the dropdown, then it works? But it doesn't work if you remove it from the normal place in the postbit and only add it to the dropdown?
|
#5
|
|||
|
|||
![]()
Lynne,
The normal placement in the postbit of joindate works as it should; however, if I add the line above to the dropdown, it prints out in unixtime, regardless of whether the normal joindate line is there, or not. |
#6
|
||||
|
||||
![]()
Did you try putting in exactly what I posted cuz I put that into my template and it worked just fine.
The only thing I can think of is you *can* change a variable via a template - it seems unlikely you are doing this, but.... So, I wonder if you are doing something in your template between where it prints out OK (near the beginning of the template) and where you put the code into your dropdown (near the end of the template). You could try adding the variable into several parts of your template between the two areas and see where it is that it changes from OK to unixtime. And.... you are talking about the dropdown in the postbit, right? Suddenly I'm getting the feeling you are not. And if not, you need to say where this dropdown is. You may have to create a plugin to use vbdate to create the non-unixtime format for your joindate. |
#7
|
|||
|
|||
![]()
Lynne,
I am indeed referring to the postbit. I will PM you a link to my website so that you can see for yourself, don't want to self-promote here. |
#8
|
||||
|
||||
![]()
This seriously makes no sense. Can you post your postbit template?
Actually, can you try disabling your plugins and checking to see if that fixes it? Note: To temporarily disable the plugin system, edit config.php and add this line right under <?php PHP Code:
|
![]() |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|