
Announcement
Collapse
No announcement yet.
Pre-filled New Post
Collapse
X
-
This won't work with the WYSIWYG editor, cool?
Okay, you're going to need the forumid's of the seprate forums. Also, these edits will be made to the templates editor_toolbar_off and editor_toolbar_standard.
Find: $newpost[message]
Before it, add this:<if condition="THIS_SCRIPT==newthread">
<if condition="$forumid==X">Name:
Address:
City:
State:
Country:
</if>
</if>
If you want more forums, just copy what is between the 2nd and 3rd <if> tags(including the tags themselves). ie.:<if condition="$forumid==X">Name:
Address:
City:
State:
Country:
</if>
<if condition="$forumid==Y">Name:
Address:
Age:
Weight:
Height:
</if>
<if condition="$forumid==Z">Name:
Address:
Password:
Birthday:
</if>Last edited by Austin Dea; Sun 27th Mar '05, 12:22am.
Comment
-
Ok.. Looks simple enough. Here's what I have...
Code:<!-- START NORMAL TEXT AREA --> $vBeditTemplate[clientscript] <div class="controlbar" style="text-align:$stylevar[left]"> <textarea name="message" rows="20" cols="60" wrap="virtual" style="width:$stylevar[messagewidth]; height:250px" tabindex="1"><if condition="THIS_SCRIPT==newthread"> <if condition="$forumid==2">Name: Address: City: State: Country: </if> </if> $newpost[message]</textarea> </div> <!-- END NORMAL TEXT AREA -->
Thanks,Last edited by ldove; Sun 27th Mar '05, 7:20am.-Lyle
Comment
-
Very interesting!
Am I correct in that one could use this to create a forum for conducting a survey/questionare/list for members to fill in?
I suppose if there was a reply to the first post, the list would also be in the reply too, right?
MarkMark
Comment
-
Hmm, that would be a little different. You would use THIS_SCRIPT==newreply, you wouldn't be able to use the quickreply, and you would have to define each set by threadid's, which might be kind of a pain. If you would like to get more advanced than what I have here, I would suggest Erwin's cool hack located here.
Comment
-
Austin... Doesn't work. Can you cut and paste your test code?
BTW, that Erwin's thing looks pretty cool. I might look into that to replace what I'm asking for here, but I'm really just wanting the default text in the newthread window.
Thanks,Last edited by ldove; Sun 27th Mar '05, 8:43pm.-Lyle
Comment
-
Success!
Originally posted by Austin DeaAre you sure you have the right forum id? Did you make the edit to both editor_toolbar_off and editor_toolbar_standard? Are you using the WYSIWYG editor?
Regards,-Lyle
Comment
-
Originally posted by NBSFlak View PostBig Bump!
Is there any way to do this with newer versions? There is no longer a editor_toolbar_standard template
# add in red.
# replace 'X' with forum (id)
Code:<td class="controlbar"> <textarea name="message" id="{$editorid}_textarea" rows="10" cols="60" style="display:block; width:$stylevar[messagewidth]; height:{$editor_height}px" tabindex="1" dir="$stylevar[textdirection]"><if condition="THIS_SCRIPT==newthread"> <if condition="$forumid==X">Name: Address: City: State: Country: </if> </if>$newpost[message]</textarea> </td>
Comment
Related Topics
Collapse
-
by kvn75Hello! Need help!
For finding and replacing text in Vbulletin 4 i used this Hook:
Product : vBulletin
Hook Location: postbit_display_complete
Execution Order: 5
Plugin...-
Channel: Support Issues & Questions
Tue 7th Jan '14, 5:35am -
Comment