![]() |
well, your predefined text then should look like that:
Code:
[disable]"Phone Detail\nColor"[/disable] |
thats not what i did
|
i did this
PHP Code:
|
nope, keep it that way, that's possible and ok as well (and also looks better when reviewing the file ;)
|
Quote:
|
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)? |
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']); |
Quote:
PHP Code:
|
Quote:
|
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. |
All times are GMT. The time now is 02:36 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|