All posts will be exactly the same. Unless you can do it on a forum by forum basis. That would be the ultimate. Baby steps though, baby steps. LOL
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; Sat 26 Mar '05, 11:22pm.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 27 Mar '05, 6: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?
MarkMarkComment
-
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 27 Mar '05, 7:43pm.-Lyle
Comment
-
Are 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?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
-
# add in red.
# replace 'X' with forum (id)
Code:[COLOR="Blue"]<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]">[COLOR="#ff0000"]<if condition="THIS_SCRIPT==newthread"> <if condition="$forumid==[COLOR="Green"]X[/COLOR]">Name: Address: City: State: Country: </if> </if>[/COLOR]$newpost[message]</textarea> </td>[/COLOR]
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 7 Jan '14, 4:35am -
Comment