The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Can anyone explain {1}
Can anyone explain the {1} that appears in strings, for example:
unread_x_nav "Unread {1}" I looked at the code and gets fed into a sprintf so I would have thought %s or %d etc would make more sense? :ermm: |
#2
|
||||
|
||||
well, but it'S possible that phrases have more than one variable, so {1} stands for the first parameter, {2} for the second...
|
#3
|
||||
|
||||
Yes I agree with that, but I don't see how sprintf knows {1} means 1st variable. I thought it expected things like %s, %d etc :nervous:
|
#4
|
||||
|
||||
ah, now i see what you mean, hmm, don't see it right now as well
oops ^^ |
#5
|
|||
|
|||
Quote:
|
#6
|
|||
|
|||
As far as I can judge, {1}, {2} etc. is just a nice and friendly user end thingy. In the $vbphrase array, these get replaced with % equivalents.
|
#7
|
||||
|
||||
build_language() converts the bracevars into the necessary %x$s stuff
|
#8
|
||||
|
||||
Ahhh, thanks for that. Somehow that spurred me on to complete my hack.
My hack is to make the Unread after Private messages red but only if there are unread messages: Being a bit of a newbie is this 1 line hack worth posting and if so where is the best place? |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|