The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
![]()
Is it possible to structure a function like this:
PHP Code:
- miSt |
#2
|
||||
|
||||
![]()
Note sure exactly what your asking.
BTW, thats an expression, not a function ![]() |
#3
|
||||
|
||||
![]()
NTLDR is right
![]() nevertheless the structure of it will work perfect ![]() |
#4
|
||||
|
||||
![]()
Ahhh i'm learning the words hehe
![]() Can't wait to start my course in September next year ![]() PHP Code:
- miSt |
#5
|
||||
|
||||
![]()
Provided both $thread['forumid'] and $post['userid'] are set I can't see any reason why it wouldn't work
![]() |
#6
|
||||
|
||||
![]()
Its the basic structure im worried about
I'll give it a try... - miSt |
#7
|
||||
|
||||
![]()
I'm not entirely sure, but I wasn't aware that the "getpostbit" function store's what the usergroupid of the poster is...
If that is so, then try the following code: Code:
if (ismoderator($thread['forumid']) or $post['userid'] == $bbuserinfo['userid']) { eval("\$post[editreport] = \"".gettemplate('postbit_edit2')."\";"); } elseif ($bbuserinfo[usergroupid] == "6") { eval("\$post[editreport] = \"".gettemplate('postbit_report2')."\";"); } else { eval("\$post[editreport] = \"".gettemplate('postbit_report2')."\";");} ![]() Satan |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|