The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#11
|
||||
|
||||
well, your predefined text then should look like that:
Code:
[disable]"Phone Detail\nColor"[/disable] |
#12
|
||||
|
||||
thats not what i did
|
#13
|
||||
|
||||
i did this
PHP Code:
|
#14
|
||||
|
||||
nope, keep it that way, that's possible and ok as well (and also looks better when reviewing the file
|
#15
|
||||
|
||||
Quote:
|
#16
|
|||
|
|||
Xenon,
Thank you! IMHO, this should be added as a hack or "how to" as this is quite a handy bit of coding. One question: How would I go about adding a second set of prepopulated text (for a different [additional] array of forum ids)? |
#17
|
||||
|
||||
you can cascade the iif's so something like:
Code:
construct_edit_toolbar(iif($newpost['message'] == '', iif($foruminfo['forumid'] == 1,'Your predefinied text for forum 1 here', iif($foruminfo['forumid'] == 2,'Your predefinied text for forum 2 here', iif($newpost['message'])), 0, $foruminfo['forumid'], $foruminfo['allowsmilies']); |
#18
|
|||
|
|||
Quote:
PHP Code:
|
#19
|
|||
|
|||
Quote:
|
#20
|
|||
|
|||
You lack a lot of closing )
I suggest that you start with only 1 iif, test it. Then keep adding them and testing until you got them all. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|