The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
![]()
Hi i put this code into global.php in an attempt to get some user specific graphics in my postbits.
PHP Code:
how woul di get it to output the pictures in the postbit? soz if this is a newb question im just not to sure about the workings of eval and stuf in vbulletin. Any help is v.much appreciated ![]() |
#2
|
||||
|
||||
![]()
Put it in functions.php, getpostbit function. And use $post[usergroupid].
|
#3
|
|||
|
|||
![]()
Actually use $post['usergroupid']. The other way is deprecated.
|
#4
|
||||
|
||||
![]()
thnx guys will do
![]() |
#5
|
||||
|
||||
![]() Quote:
![]() |
#6
|
|||
|
|||
![]()
You shouldn't do it anymore
![]() Search around at php.net for the explanation but the short story is that you're implying that usergroupid is a constant when it's really a literal. |
#7
|
||||
|
||||
![]()
Shouldn't do what anymore?
![]() Won't it work either way, though? |
#8
|
|||
|
|||
![]()
It'll work either way but it's extremely bad programming practice to rely on deprecated methods.
|
#9
|
||||
|
||||
![]() Quote:
|
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|