The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#21
|
||||
|
||||
Quote:
I'll check out my perks. Thank you, sir. |
#22
|
|||
|
|||
I tried to add that code to my editpost template, but it does not work. I still see the Title field in all the posts.
Code:
<!-- subject field --> <if condition="$post['postid'] == $thread['firstpostid']"> <table cellpadding="0" cellspacing="0" border="0" style="margin-bottom:$stylevar[formspacer]px"> <tr> <td class="smallfont" colspan="3">$vbphrase[title]:</td> </tr> <tr> <td><input type="text" class="bginput" name="title" value="$title" size="50" maxlength="85" tabindex="1" title="$vbphrase[optional]" /></td> <td> </td> <td><img id="display_posticon" src="$selectedicon[src]" alt="$selectedicon[alt]" /></td> </tr> </table> </if> <!-- / subject field --> |
#23
|
||||
|
||||
The conditional needs to be in the postbit and postbit_legacy templates.
Quote:
|
#24
|
||||
|
||||
Sandman is right because $thread['firstpostid'] isn't defined in the editpost.php, only in the functions_showthread.php.
|
#25
|
|||
|
|||
I'm confused. What exactly do I have to do then to make it so the Title field only shows up when Editing the first post?
I assumed the editpost template needed to be modified only. |
#26
|
||||
|
||||
OK - I figured out how to modify the editpost template to remove the title field and message icon box when editing posts which are replies (not first posts). To do this simply use the conditional:
Code:
<if condition="$show['firstpostnote']"> Code:
<!-- subject field --> <if condition="$show['firstpostnote']"> <table cellpadding="0" cellspacing="0" border="0" style="margin-bottom:$stylevar[formspacer]px"> <tr> <td class="smallfont" colspan="3">$vbphrase[title]:</td> </tr> <tr><td><input type="text" class="bginput" name="title" value="$title" size="50" maxlength="85" tabindex="1" title="$vbphrase[optional]" /></td> <td> </td> <td><img id="display_posticon" src="$selectedicon[src]" alt="$selectedicon[alt]" /></td> </tr> </table> </if> <!-- / subject field --> Code:
<if condition="$show['firstpostnote']"> $posticons </if> |
#27
|
|||
|
|||
Thank you Sandman! Now it works perfect.
|
#28
|
|||
|
|||
Works like a charm fellas! Thanks. Exactly what I needed. I noticed that a "Preview" still has the Subject field in it tho... not a big deal... just thought I'd mention it.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|