Show / Hide IPB Specify Topic Time

17Sep06

This modification adds to Invision Power Board ACP (Administration Control Panel) under TOOLS & SETTINGS -> Topics, Posts and Polls -> Allow Specify Topic Time? (under “Making a Post”) option; FOR FRESH INSTALL ONLY :)

Invision Power Board version 2.1.7 and most probably future versions also.

Open ./install/installfiles/ipb_settings.xml

Find – just search for: <conf_id>84</conf_id>

<setting>
<conf_id>84</conf_id>
<conf_title>Stop Quote Embedding?</conf_title>
<conf_description><![CDATA[This will remove any quoted text when quoting a post that contains quotes<br><a href='#' title='and if that made any sense, then you are far cleverer than I.'>..</a>]]></conf_description>
<conf_group>5</conf_group>
<conf_type>yes_no</conf_type>
<conf_key>strip_quotes</conf_key>
<conf_value></conf_value>
<conf_default>1</conf_default>
<conf_extra></conf_extra>
<conf_evalphp></conf_evalphp>
<conf_protected>1</conf_protected>
<conf_position>49</conf_position>
<conf_start_group></conf_start_group>
<conf_end_group>0</conf_end_group>
<conf_help_key>0</conf_help_key>
<conf_add_cache>1</conf_add_cache>
<conf_title_keyword>topicspostsandpolls</conf_title_keyword>
<conf_is_title>0</conf_is_title>
</setting>

Add after

<setting>
<conf_id>1337</conf_id>
<conf_title>Allow Specify Topic Time?</conf_title>
<conf_description><![CDATA[If set to "Yes" Specify Topic Time fields can be set.]]></conf_description>
<conf_group>5</conf_group>
<conf_type>yes_no</conf_type>
<conf_key>post_timeset</conf_key>
<conf_value></conf_value>
<conf_default>0</conf_default>
<conf_extra></conf_extra>
<conf_evalphp></conf_evalphp>
<conf_protected>1</conf_protected>
<conf_position>49</conf_position>
<conf_start_group></conf_start_group>
<conf_end_group>0</conf_end_group>
<conf_help_key></conf_help_key>
<conf_add_cache>1</conf_add_cache>
<conf_title_keyword>topicspostsandpolls</conf_title_keyword>
<conf_is_title>0</conf_is_title>
</setting>

Open ./ipb_templates.xml

Find

<if="can_set_open_time == 1">

Replace with

<if="can_set_open_time == 1 AND ipb.vars['post_timeset']">

Find

<if="can_set_close_time == 1">

Replace with

<if="can_set_close_time == 1 AND ipb.vars['post_timeset']">

Now “Specify Topic Open Time” and “Specify Topic Close Time” fields (the entire element) are not showing (by default) for User Groups defined by IPB & your ACP will have another option Allow Specify Topic Time? added to “Topics, Posts and Polls” right next to the most annoying option of all time Merge member’s concurrent posts :) Install your Invision Power Board & sing :P Translated literally from Serbian onpurpose.

ipb_specify_topic_time_on ipb_specify_topic_time_off ipb_specify_topic_time_acp

Advertisements


%d bloggers like this: