vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   how can i hide additional option in post new thread (https://vborg.vbsupport.ru/showthread.php?t=287213)

azmoon 08-28-2012 08:42 PM

how can i hide additional option in post new thread
 
in post reply to a thread , you can post simply . ans there is not extended additional option ( go to advanced is optional ) .

i want to have a situation like post reply , i means :

when i want to create a new thread , only have a simply writing box , and there be hidden additional options , and be a key " go to advanced " . it is more beatiful . and more faster

regards , hasan

fjbindo 10-16-2012 08:02 AM

yes...same question....please help.

arrarrgee 05-27-2014 11:18 PM

Quote:

Originally Posted by azmoon (Post 2360795)
in post reply to a thread , you can post simply . ans there is not extended additional option ( go to advanced is optional ) .

i want to have a situation like post reply , i means :

when i want to create a new thread , only have a simply writing box , and there be hidden additional options , and be a key " go to advanced " . it is more beatiful . and more faster


regards , hasan

Hi Azmoon
Could you pls let me know if you were able to get it to work. If yes, could you pls point me to any link that does this pls

Thx
arr

Lynne 05-28-2014 12:43 AM

You could use jquery code to hide/show it, I suppose. http://www.w3schools.com/jquery/jquery_hide_show.asp

arrarrgee 05-28-2014 02:16 AM

Hi
I figured it out

Search for style 'newthread'

Remove or comment out the following code

<vb:if condition="$show['additional_options']">
<h3 class="blockhead">{vb:rawphrase additional_options}</h3>
<div class="blockbody formcontrols">
<div class="section">

<vb:if condition="$show['misc_options']">
<div class="blockrow">
<label>{vb:rawphrase miscellaneous_options}:</label>
<ul class="checkradio group rightcol">
<vb:if condition="$show['signaturecheckbox']">
<li>
<label for="cb_signature"><input type="checkbox" name="signature" value="1" id="cb_signature" tabindex="1" {vb:raw checked.signature} /> {vb:rawphrase show_your_signature}</label><p class="description">{vb:rawphrase show_your_signature_explain}</p>
</li>
</vb:if>
<vb:if condition="$show['parseurl']">
<li>
<label for="cb_parseurl"><input type="checkbox" name="parseurl" value="1" id="cb_parseurl" tabindex="1" {vb:raw checked.parseurl} /> {vb:rawphrase automatically_parse_links_in_text}</label><p class="description">{vb:rawphrase automatically_parse_links_description}</p>
</li>
</vb:if>
{vb:raw disablesmiliesoption}
</ul>
</div>
</vb:if> -->

{vb:raw htmloption}
{vb:raw attachmentoption}

<vb:if condition="$show['member']">
<fieldset class="blockrow">
<legend>{vb:rawphrase subscription}</legend>
<dl class="group dep_group">
<dt>
<label for="subscribe">{vb:rawphrase thread_subscription}:</label>
<input type="checkbox" id="subscribe" name="subscribe" value="1" class="dep_ctrl" {vb:raw checked.subscribe} tabindex="1" />
</dt>
<dd id="subscribe_deps" class="rightcol">
<ul class="group">
<li>
<select class="primary" name="emailupdate" tabindex="1">
<option value="0" {vb:raw emailchecked.0}>{vb:rawphrase no_email_notification}</option>
<option value="1" {vb:raw emailchecked.1}>{vb:rawphrase instant_email_notification}</option>
<option value="2" {vb:raw emailchecked.2}>{vb:rawphrase daily_email_notification}</option>
<option value="3" {vb:raw emailchecked.3}>{vb:rawphrase weekly_email_notification}</option>
</select>
</li>
<vb:if condition="$show['subscribefolders']">
<li>
<select class="primary" name="folderid" tabindex="1">{vb:raw folderbits}</select>
</li>
</vb:if>
</ul>
</dd>
</dl>
</fieldset>
</vb:if>

<vb:if condition="$show['poll']">
<fieldset class="blockrow">
<legend>{vb:rawphrase post_a_poll}</legend>
<dl class="group dep_group">
<dt>
<label for="postpoll">{vb:rawphrase create_a_poll} <vb:if condition="$vboptions['maxpolloptions']"> ({vb:rawphrase maximum} {vb:raw vboptions.maxpolloptions})</vb:if>:</label>
<input type="checkbox" name="postpoll" value="yes" id="postpoll" tabindex="1" {vb:raw checked.postpoll} class="dep_ctrl" />
</dt>
<dd id="postpoll_deps" class="rightcol">
<input type="text" class="textbox numeric" size="5" name="polloptions" value="{vb:raw polloptions}" id="polloptnum" tabindex="1" />
</dd>
</dl>
</fieldset>
</vb:if>

{vb:raw threadmanagement}
</div>

<vb:if condition="$show['podcasturl']">
<h4 class="blocksubhead">{vb:rawphrase podcast_options}</h4>
<div class="section">
<div class="blockrow">
<label>{vb:rawphrase podcast_options}:</label>
<ul class="checkradio group rightcol">
<li><label><input type="text" class="primary textbox" name="podcasturl" id="podcasturl" value="{vb:raw podcasturl}" maxlength="255" tabindex="1" title="{vb:rawphrase podcast_url}" /> {vb:rawphrase podcast_url}</label></li>
<li><label><input type="text" class="primary textbox" name="podcastsize" id="podcastsize" value="{vb:raw podcastsize}" tabindex="1" title="{vb:rawphrase podcast_size}" /> {vb:rawphrase filesize_bytes}</label></li>
<li><label><input type="text" class="primary textbox" id="podcastsubtitle" name="podcastsubtitle" value="{vb:raw podcastsubtitle}" maxlength="255" tabindex="1" title="{vb:rawphrase subtitle}" /> {vb:rawphrase subtitle}</label></li>
<li><label><input type="checkbox" id="podcastexplicit" name="podcastexplicit" value="1" tabindex="1" {vb:raw explicitchecked} title="{vb:rawphrase explicit}" /> {vb:rawphrase explicit}</label></li>
<li><label><input type="text" class="primary textbox" id="podcastkeywords" name="podcastkeywords" value="{vb:raw podcastkeywords}" maxlength="255" tabindex="1" title="{vb:rawphrase keywords}" /> {vb:rawphrase keywords}</label></li>
<li><label><input type="text" class="primary textbox" id="podcastauthor" name="podcastauthor" value="{vb:raw podcastauthor}" maxlength="255" tabindex="1" title="{vb:rawphrase author}" /> {vb:rawphrase author}</label></li>
</ul>
</div>
</div>
</vb:if>
</div>
<div class="blockfoot actionbuttons">
<div class="group">
<input type="submit" class="button" name="sbutton" value="{vb:rawphrase submit_new_thread}" accesskey="s" tabindex="1" />
<input type="submit" class="button" name="preview" value="{vb:rawphrase preview_post}" accesskey="r" tabindex="1" />
</div>
</div>
</vb:if>

tbworld 05-28-2014 02:39 AM

I posted a global form of this earlier on a similar question.
Create plugin at hook: newthread_form_complete

PHP Code:

 //Hook: newthread_form_complete
   
global $show;
   
$show['additional_options'] = FALSE

This will be effective on all styles. Additional conditionals should be added to exclude styles or user-groups. Really no need to edit the template, but good work @arrarrgee :) and thanks for sharing.

arrarrgee 05-28-2014 03:54 AM

Thanks tbworld....a noob here...appreciate the guidance :)

--------------- Added [DATE]1401252920[/DATE] at [TIME]1401252920[/TIME] ---------------

Quote:

Originally Posted by Lynne (Post 2499709)
You could use jquery code to hide/show it, I suppose. http://www.w3schools.com/jquery/jquery_hide_show.asp

Thx Lynne. Will try that

CAG CheechDogg 05-28-2014 04:02 AM

Nice ! ...


All times are GMT. The time now is 03:02 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01624 seconds
  • Memory Usage 1,750KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete