The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#11
|
||||
|
||||
![]() Quote:
Quote:
|
#12
|
|||
|
|||
![]()
Kirk....Kirk....Kirk..............
I THINK YOU'VE DONE IT. :up: I've looked over about 100 posts and so far, the image IS showing up exactly where it should! After struggling with this all day, I can't tell you how much I appreciate your expertise and help with this. Thank you for taking the time to follow through on this. I wonder why it wouldn't work the other way ![]() I would NEVER have thought to use a plug in like that. I owe ya! Best Regards, MP |
#13
|
||||
|
||||
![]()
I really don't know why it wouldn't work; unless it is as SirAdrian suggested, that 1000 and 1,000 are treated differently.
In any event, I'm glad it's working for you. |
#14
|
||||
|
||||
![]()
Your code works because the plugin is processed before it adds the commas in. But yeah, that's why (for future reference). I've seen this happen to 3-4 different people know so it's an easy one to spot!
|
#15
|
|||
|
|||
![]()
Thanks to you both :up:
|
#16
|
|||
|
|||
![]()
Like SirAdrian already mentioned, $post['posts'] is NOT numeric, but formatted so it is a string.
Doing a numeric comparison on a string will first cast the variable to numeric ('1,000' will result in the longest integer possible from the start of the variable, resulting in '1' - everything after the comma gets ignored). If you want to run a conditional on this, you will need to create a plugin that stores the original numeric value in a seperate variable, before formatting occurs. |
#17
|
||||
|
||||
![]()
Interesting, I never realized this.
|
#18
|
||||
|
||||
![]()
Most numeric values displayed by vBulletin are formatted with vb_number_format().
|
#19
|
||||
|
||||
![]()
I actually discovered that last night while I was looking at the Forumhome statistics.
|
![]() |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|