[ABD] News Forum

Any abandoned MODs will be moved to this forum.

WARNING: MODs in this forum are not currently being supported or maintained by the original MOD author. Proceed at your own risk.
Forum rules
IMPORTANT: MOD Development Forum rules

WARNING: MODs in this forum are not currently being supported nor updated by the original MOD author. Proceed at your own risk.
Locked
User avatar
Erik Frèrejean
Former Team Member
Posts: 9899
Joined: Tue Oct 09, 2007 9:09 am
Location: The Netherlands, 3.0.x Support Forum
Name: Erik Frèrejean
Contact:

Re: [BETA] News Forum

Post by Erik Frèrejean » Sun Jan 13, 2008 1:48 pm

Sorry, an other typo.
Replace:

Code: Select all

'POST'    => $message, 
With:

Code: Select all

'POST'    => $news_message, 
Support Toolkit | Support Request Template | Knowledge Base | phpBB 3.0.x documentation
I don't give support via PM or IM! (all unsolicited pms will be trashed!)

DevilsAcid
Registered User
Posts: 6
Joined: Thu May 10, 2007 5:51 am

Re: [BETA] News Forum

Post by DevilsAcid » Sun Jan 13, 2008 6:37 pm

So I'm trying to install this mod and after I've done everything I simply can not see the "yes" or "no" button on the admin CP. There is no option to set it to news.
I've looked through this entire thread and triple checked all the modifications and it all seems like it should work but it doesn't.
I've tried to refresh my cache on my browser, even on the template page. Nothing.

acp_forums.php (the section where I added the code)

Code: Select all

<div id="forum_post_options">
		<fieldset>
			<legend>{L_GENERAL_FORUM_SETTINGS}</legend>
		<dl>
			<dt><label for="forum_status">{L_FORUM_STATUS}:</label></dt>
			<dd><select id="forum_status" name="forum_status">{S_STATUS_OPTIONS}</select></dd>
		</dl>
		<dl>
			<dt><label for="display_on_index">{L_LIST_INDEX}:</label><br /><span>{L_LIST_INDEX_EXPLAIN}</span></dt>
			<dd><label><input type="radio" class="radio" name="display_on_index" value="1"<!-- IF S_DISPLAY_ON_INDEX --> id="display_on_index" checked="checked"<!-- ENDIF --> /> {L_YES}</label>
				<label><input type="radio" class="radio" name="display_on_index" value="0"<!-- IF not S_DISPLAY_ON_INDEX --> id="display_on_index" checked="checked"<!-- ENDIF --> /> {L_NO}</label></dd>
		</dl>
		<dl>
			<dt><label for="enable_post_review">{L_ENABLE_POST_REVIEW}:</label><br /><span>{L_ENABLE_POST_REVIEW_EXPLAIN}</span></dt>
			<dd><label><input type="radio" class="radio" name="enable_post_review" value="1"<!-- IF S_ENABLE_POST_REVIEW --> id="enable_post_review" checked="checked"<!-- ENDIF --> /> {L_YES}</label>
				<label><input type="radio" class="radio" name="enable_post_review" value="0"<!-- IF not S_ENABLE_POST_REVIEW --> id="enable_post_review" checked="checked"<!-- ENDIF --> /> {L_NO}</label></dd>
		</dl>
		<dl>
			<dt><label for="enable_indexing">{L_ENABLE_INDEXING}:</label><br /><span>{L_ENABLE_INDEXING_EXPLAIN}</span></dt>
			<dd><label><input type="radio" class="radio" name="enable_indexing" value="1"<!-- IF S_ENABLE_INDEXING --> id="enable_indexing" checked="checked"<!-- ENDIF --> /> {L_YES}</label>
				<label><input type="radio" class="radio" name="enable_indexing" value="0"<!-- IF not S_ENABLE_INDEXING --> id="enable_indexing" checked="checked"<!-- ENDIF --> /> {L_NO}</label></dd>
		</dl>
		<dl>
			<dt><label for="enable_icons">{L_ENABLE_TOPIC_ICONS}:</label></dt>
			<dd><label><input type="radio" class="radio" name="enable_icons" value="1"<!-- IF S_TOPIC_ICONS --> id="enable_icons" checked="checked"<!-- ENDIF --> /> {L_YES}</label>
				<label><input type="radio" class="radio" name="enable_icons" value="0"<!-- IF not S_TOPIC_ICONS --> id="enable_icons" checked="checked"<!-- ENDIF --> /> {L_NO}</label></dd>
		</dl>
		<dl>
			<dt><label for="display_recent">{L_ENABLE_RECENT}:</label><br /><span>{L_ENABLE_RECENT_EXPLAIN}</span></dt>
			<dd><label><input type="radio" class="radio" name="display_recent" value="1"<!-- IF S_DISPLAY_ACTIVE_TOPICS --> id="display_recent" checked="checked"<!-- ENDIF --> /> {L_YES}</label>
				<label><input type="radio" class="radio" name="display_recent" value="0"<!-- IF not S_DISPLAY_ACTIVE_TOPICS --> id="display_recent" checked="checked"<!-- ENDIF --> /> {L_NO}</label></dd>
		</dl>
		<dl>
			<dt><label for="topics_per_page">{L_FORUM_TOPICS_PAGE}:</label><br /><span>{L_FORUM_TOPICS_PAGE_EXPLAIN}</span></dt>
			<dd><input type="text" id="topics_per_page" name="topics_per_page" value="{TOPICS_PER_PAGE}" size="4" maxlength="4" /></dd>
		</dl>
		<!-- News forum -->
		<dl>
			<dt><label for="enable_news_forum">{L_ENABLE_NEWS_FORUM}:</label><br /><span>{L_ENABLE_NEWS_FORUM_EXPLAIN}</span></dt>
			<dd><label><input type="radio" class="radio" name="enable_news_forum" value="1"<!-- IF S_NEWS_FORUM --> id="enable_icons" checked="checked"<!-- ENDIF --> /> {L_YES}</label>
				<label><input type="radio" class="radio" name="enable_news_forum" value="0"<!-- IF not S_NEWS_FORUM --> id="enable_icons" checked="checked"<!-- ENDIF --> /> {L_NO}</label></dd>
		</dl>
		<!-- /News forum -->
		</fieldset>

User avatar
Erik Frèrejean
Former Team Member
Posts: 9899
Joined: Tue Oct 09, 2007 9:09 am
Location: The Netherlands, 3.0.x Support Forum
Name: Erik Frèrejean
Contact:

Re: [BETA] News Forum

Post by Erik Frèrejean » Sun Jan 13, 2008 6:53 pm

Can't tell the problem right away. Can you post the complete html output of the acp page?
Support Toolkit | Support Request Template | Knowledge Base | phpBB 3.0.x documentation
I don't give support via PM or IM! (all unsolicited pms will be trashed!)

DevilsAcid
Registered User
Posts: 6
Joined: Thu May 10, 2007 5:51 am

Re: [BETA] News Forum

Post by DevilsAcid » Sun Jan 13, 2008 8:41 pm

Erik Frèrejean wrote:Can't tell the problem right away. Can you post the complete html output of the acp page?

Code: Select all

<!-- INCLUDE overall_header.html -->

<a name="maincontent"></a>

<!-- IF S_EDIT_FORUM -->

	<script type="text/javascript">
	// <![CDATA[
		/**
		* Handle displaying/hiding several options based on the forum type
		*/
		function display_options(value)
		{
			<!-- IF not S_ADD_ACTION and S_FORUM_ORIG_POST -->
				if (value == {FORUM_POST})
				{
					dE('type_actions', -1);
				}
				else
				{
					dE('type_actions', 1);
				}
			<!-- ENDIF -->

			<!-- IF not S_ADD_ACTION and S_FORUM_ORIG_CAT and S_HAS_SUBFORUMS -->
				if (value == {FORUM_LINK})
				{
					dE('cat_to_link_actions', 1);
				}
				else
				{
					dE('cat_to_link_actions', -1);
				}
			<!-- ENDIF -->

			if (value == {FORUM_POST})
			{
				dE('forum_post_options', 1);
				dE('forum_link_options', -1);
				dE('forum_rules_options', 1);
				dE('forum_cat_options', -1);
			}
			else if (value == {FORUM_LINK})
			{
				dE('forum_post_options', -1);
				dE('forum_link_options', 1);
				dE('forum_rules_options', -1);
				dE('forum_cat_options', -1);
			}
			else if (value == {FORUM_CAT})
			{
				dE('forum_post_options', -1);
				dE('forum_link_options', -1);
				dE('forum_rules_options', 1);
				dE('forum_cat_options', 1);
			}
		}

		/**
		* Init the wanted display functionality if javascript is enabled.
		* If javascript is not available, the user is still able to properly administrate.
		*/
		onload = function()
		{
			<!-- IF not S_ADD_ACTION and S_FORUM_ORIG_POST -->
				<!-- IF S_FORUM_POST -->
					dE('type_actions', -1);
				<!-- ENDIF -->
			<!-- ENDIF -->

			<!-- IF not S_ADD_ACTION and S_FORUM_ORIG_CAT and S_HAS_SUBFORUMS -->
				<!-- IF S_FORUM_CAT -->
					dE('cat_to_link_actions', -1);
				<!-- ENDIF -->
			<!-- ENDIF -->

			<!-- IF not S_FORUM_POST -->
				dE('forum_post_options', -1);
			<!-- ENDIF -->

			<!-- IF not S_FORUM_CAT -->
				dE('forum_cat_options', -1);
			<!-- ENDIF -->

			<!-- IF not S_FORUM_LINK -->
				dE('forum_link_options', -1);
			<!-- ENDIF -->

			<!-- IF S_FORUM_LINK -->
			dE('forum_rules_options', -1);
			<!-- ENDIF -->
		}

	// ]]>
	</script>

	<a href="{U_BACK}" style="float: {S_CONTENT_FLOW_END};">&laquo; {L_BACK}</a>

	<h1>{L_TITLE} :: {FORUM_NAME}</h1>

	<p>{L_FORUM_EDIT_EXPLAIN}</p>

	<!-- IF S_ERROR -->
		<div class="errorbox">
			<h3>{L_WARNING}</h3>
			<p>{ERROR_MSG}</p>
		</div>
	<!-- ENDIF -->

	<form id="forumedit" method="post" action="{U_EDIT_ACTION}">

	<fieldset>
		<legend>{L_FORUM_SETTINGS}</legend>
	<dl>
		<dt><label for="forum_type">{L_FORUM_TYPE}:</label></dt>
		<dd><select id="forum_type" name="forum_type" onchange="display_options(this.options[this.selectedIndex].value);">{S_FORUM_TYPE_OPTIONS}</select></dd>
	</dl>
	<!-- IF not S_ADD_ACTION and S_FORUM_ORIG_POST -->
	<div id="type_actions">
		<dl>
			<dt><label for="type_action">{L_DECIDE_MOVE_DELETE_CONTENT}:</label></dt>
			<dd><label><input type="radio" class="radio" name="type_action" value="delete"<!-- IF not S_MOVE_FORUM_OPTIONS --> checked="checked" id="type_action"<!-- ENDIF --> /> {L_DELETE_ALL_POSTS}</label></dd>
			<!-- IF S_MOVE_FORUM_OPTIONS --><dd><label><input type="radio" class="radio" name="type_action" id="type_action" value="move" checked="checked" /> {L_MOVE_POSTS_TO}</label> <select name="to_forum_id">{S_MOVE_FORUM_OPTIONS}</select></dd><!-- ENDIF -->
		</dl>
	</div>
	<!-- ENDIF -->
	<!-- IF not S_ADD_ACTION and S_FORUM_ORIG_CAT and S_HAS_SUBFORUMS -->
	<div id="cat_to_link_actions">
		<dl>
			<dt><label for="action_subforums">{L_DECIDE_MOVE_DELETE_SUBFORUMS}:</label></dt>
			<!-- IF S_FORUMS_LIST -->
				<dd><label><input type="radio" class="radio" id="action_subforums" name="action_subforums" value="move" checked="checked" /> {L_MOVE_SUBFORUMS_TO}</label> <select name="subforums_to_id">{S_FORUMS_LIST}</select></dd>
			<!-- ELSE -->
				<dd><label><input type="radio" class="radio" id="action_subforums" name="action_subforums" value="delete" checked="checked" /> {L_DELETE_SUBFORUMS}</label></dd>
			<!-- ENDIF -->
		</dl>
	</div>
	<!-- ENDIF -->
	<dl>
		<dt><label for="parent">{L_FORUM_PARENT}:</label></dt>
		<dd><select id="parent" name="forum_parent_id"><option value="0"<!-- IF not S_FORUM_PARENT_ID --> selected="selected"<!-- ENDIF -->>{L_NO_PARENT}</option>{S_PARENT_OPTIONS}</select></dd>
	</dl>
	<dl>
		<dt><label for="forum_name">{L_FORUM_NAME}:</label></dt>
		<dd><input class="text medium" type="text" id="forum_name" name="forum_name" value="{FORUM_NAME}" maxlength="255" /></dd>
	</dl>
	<dl>
		<dt><label for="forum_desc">{L_FORUM_DESC}:</label><br /><span>{L_FORUM_DESC_EXPLAIN}</span></dt>
		<dd><textarea id="forum_desc" name="forum_desc" rows="5" cols="45">{FORUM_DESC}</textarea></dd>
		<dd><label><input type="checkbox" class="radio" name="desc_parse_bbcode"<!-- IF S_DESC_BBCODE_CHECKED --> checked="checked"<!-- ENDIF --> /> {L_PARSE_BBCODE}</label>
			<label><input type="checkbox" class="radio" name="desc_parse_smilies"<!-- IF S_DESC_SMILIES_CHECKED --> checked="checked"<!-- ENDIF --> /> {L_PARSE_SMILIES}</label>
			<label><input type="checkbox" class="radio" name="desc_parse_urls"<!-- IF S_DESC_URLS_CHECKED --> checked="checked"<!-- ENDIF --> /> {L_PARSE_URLS}</label></dd>
	</dl>
	<dl>
		<dt><label for="forum_image">{L_FORUM_IMAGE}:</label><br /><span>{L_FORUM_IMAGE_EXPLAIN}</span></dt>
		<dd><input class="text medium" type="text" id="forum_image" name="forum_image" value="{FORUM_IMAGE}" maxlength="255" /></dd>
		<!-- IF FORUM_IMAGE_SRC -->
			<dd><img src="{FORUM_IMAGE_SRC}" alt="{L_FORUM_IMAGE}" /></dd>
		<!-- ENDIF -->
	</dl>
	<dl>
		<dt><label for="forum_password">{L_FORUM_PASSWORD}:</label><br /><span>{L_FORUM_PASSWORD_EXPLAIN}</span></dt>
		<dd><input type="password" id="forum_password" name="forum_password" value="<!-- IF S_FORUM_PASSWORD_SET -->&#x20;&#x20;&#x20;&#x20;&#x20;&#x20;<!-- ENDIF -->" /></dd>
	</dl>
	<dl>
		<dt><label for="forum_password_confirm">{L_FORUM_PASSWORD_CONFIRM}:</label><br /><span>{L_FORUM_PASSWORD_CONFIRM_EXPLAIN}</span></dt>
		<dd><input type="password" id="forum_password_confirm" name="forum_password_confirm" value="<!-- IF S_FORUM_PASSWORD_SET -->&#x20;&#x20;&#x20;&#x20;&#x20;&#x20;<!-- ENDIF -->" /></dd>
	</dl>
	<!-- IF S_FORUM_PASSWORD_SET -->
	<dl>
		<dt><label for="forum_password_unset">{L_FORUM_PASSWORD_UNSET}:</label><br /><span>{L_FORUM_PASSWORD_UNSET_EXPLAIN}</span></dt>
		<dd><input id="forum_password_unset" name="forum_password_unset" type="checkbox" /></dd>
	</dl>
	<!-- ENDIF -->
	<dl>
		<dt><label for="forum_style">{L_FORUM_STYLE}:</label></dt>
		<dd><select id="forum_style" name="forum_style"><option value="0">{L_DEFAULT_STYLE}</option>{S_STYLES_OPTIONS}</select></dd>
	</dl>
	<!-- IF S_CAN_COPY_PERMISSIONS -->
		<dl>
			<dt><label for="forum_perm_from">{L_COPY_PERMISSIONS}:</label><br /><span>{L_COPY_PERMISSIONS_EXPLAIN}</span></dt>
			<dd><select id="forum_perm_from" name="forum_perm_from"><option value="0">{L_NO_PERMISSIONS}</option>{S_FORUM_OPTIONS}</select></dd>
		</dl>
	<!-- ENDIF -->
	</fieldset>

	<div id="forum_cat_options">
		<fieldset>
			<legend>{L_GENERAL_FORUM_SETTINGS}</legend>
		<dl>
			<dt><label for="display_active">{L_DISPLAY_ACTIVE_TOPICS}:</label><br /><span>{L_DISPLAY_ACTIVE_TOPICS_EXPLAIN}</span></dt>
			<dd><label><input type="radio" class="radio" name="display_active" value="1"<!-- IF S_DISPLAY_ACTIVE_TOPICS --> id="display_active" checked="checked"<!-- ENDIF --> /> {L_YES}</label>
				<label><input type="radio" class="radio" name="display_active" value="0"<!-- IF not S_DISPLAY_ACTIVE_TOPICS --> id="display_active" checked="checked"<!-- ENDIF --> /> {L_NO}</label></dd>
		</dl>
		</fieldset>
	</div>

	<div id="forum_post_options">
		<fieldset>
			<legend>{L_GENERAL_FORUM_SETTINGS}</legend>
		<dl>
			<dt><label for="forum_status">{L_FORUM_STATUS}:</label></dt>
			<dd><select id="forum_status" name="forum_status">{S_STATUS_OPTIONS}</select></dd>
		</dl>
		<dl>
			<dt><label for="display_on_index">{L_LIST_INDEX}:</label><br /><span>{L_LIST_INDEX_EXPLAIN}</span></dt>
			<dd><label><input type="radio" class="radio" name="display_on_index" value="1"<!-- IF S_DISPLAY_ON_INDEX --> id="display_on_index" checked="checked"<!-- ENDIF --> /> {L_YES}</label>
				<label><input type="radio" class="radio" name="display_on_index" value="0"<!-- IF not S_DISPLAY_ON_INDEX --> id="display_on_index" checked="checked"<!-- ENDIF --> /> {L_NO}</label></dd>
		</dl>
		<dl>
			<dt><label for="enable_post_review">{L_ENABLE_POST_REVIEW}:</label><br /><span>{L_ENABLE_POST_REVIEW_EXPLAIN}</span></dt>
			<dd><label><input type="radio" class="radio" name="enable_post_review" value="1"<!-- IF S_ENABLE_POST_REVIEW --> id="enable_post_review" checked="checked"<!-- ENDIF --> /> {L_YES}</label>
				<label><input type="radio" class="radio" name="enable_post_review" value="0"<!-- IF not S_ENABLE_POST_REVIEW --> id="enable_post_review" checked="checked"<!-- ENDIF --> /> {L_NO}</label></dd>
		</dl>
		<dl>
			<dt><label for="enable_indexing">{L_ENABLE_INDEXING}:</label><br /><span>{L_ENABLE_INDEXING_EXPLAIN}</span></dt>
			<dd><label><input type="radio" class="radio" name="enable_indexing" value="1"<!-- IF S_ENABLE_INDEXING --> id="enable_indexing" checked="checked"<!-- ENDIF --> /> {L_YES}</label>
				<label><input type="radio" class="radio" name="enable_indexing" value="0"<!-- IF not S_ENABLE_INDEXING --> id="enable_indexing" checked="checked"<!-- ENDIF --> /> {L_NO}</label></dd>
		</dl>
		<dl>
			<dt><label for="enable_icons">{L_ENABLE_TOPIC_ICONS}:</label></dt>
			<dd><label><input type="radio" class="radio" name="enable_icons" value="1"<!-- IF S_TOPIC_ICONS --> id="enable_icons" checked="checked"<!-- ENDIF --> /> {L_YES}</label>
				<label><input type="radio" class="radio" name="enable_icons" value="0"<!-- IF not S_TOPIC_ICONS --> id="enable_icons" checked="checked"<!-- ENDIF --> /> {L_NO}</label></dd>
		</dl>
		<dl>
			<dt><label for="display_recent">{L_ENABLE_RECENT}:</label><br /><span>{L_ENABLE_RECENT_EXPLAIN}</span></dt>
			<dd><label><input type="radio" class="radio" name="display_recent" value="1"<!-- IF S_DISPLAY_ACTIVE_TOPICS --> id="display_recent" checked="checked"<!-- ENDIF --> /> {L_YES}</label>
				<label><input type="radio" class="radio" name="display_recent" value="0"<!-- IF not S_DISPLAY_ACTIVE_TOPICS --> id="display_recent" checked="checked"<!-- ENDIF --> /> {L_NO}</label></dd>
		</dl>
		<dl>
			<dt><label for="topics_per_page">{L_FORUM_TOPICS_PAGE}:</label><br /><span>{L_FORUM_TOPICS_PAGE_EXPLAIN}</span></dt>
			<dd><input type="text" id="topics_per_page" name="topics_per_page" value="{TOPICS_PER_PAGE}" size="4" maxlength="4" /></dd>
		</dl>
		<dl>
			<dt><label for="enable_news_forum">{L_ENABLE_NEWS_FORUM}:</label><br /><span>{L_ENABLE_NEWS_FORUM_EXPLAIN}</span></dt>
			<dd><label><input type="radio" class="radio" name="enable_news_forum" value="1"<!-- IF S_NEWS_FORUM --> id="enable_icons" checked="checked"<!-- ENDIF --> /> {L_YES}</label>
				<label><input type="radio" class="radio" name="enable_news_forum" value="0"<!-- IF not S_NEWS_FORUM --> id="enable_icons" checked="checked"<!-- ENDIF --> /> {L_NO}</label></dd>
		</dl>
		</fieldset>

		<fieldset>
			<legend>{L_FORUM_PRUNE_SETTINGS}</legend>
		<dl>
			<dt><label for="enable_prune">{L_FORUM_AUTO_PRUNE}:</label><br /><span>{L_FORUM_AUTO_PRUNE_EXPLAIN}</span></dt>
			<dd><label><input type="radio" class="radio" name="enable_prune" value="1"<!-- IF S_PRUNE_ENABLE --> id="enable_prune" checked="checked"<!-- ENDIF --> /> {L_YES}</label>
				<label><input type="radio" class="radio" name="enable_prune" value="0"<!-- IF not S_PRUNE_ENABLE --> id="enable_prune" checked="checked"<!-- ENDIF --> /> {L_NO}</label></dd>
		</dl>
		<dl>
			<dt><label for="prune_freq">{L_AUTO_PRUNE_FREQ}:</label><br /><span>{L_AUTO_PRUNE_FREQ_EXPLAIN}</span></dt>
			<dd><input type="text" id="prune_freq" name="prune_freq" value="{PRUNE_FREQ}" maxlength="4" size="4" /> {L_DAYS}</dd>
		</dl>
		<dl>
			<dt><label for="prune_days">{L_AUTO_PRUNE_DAYS}:</label><br /><span>{L_AUTO_PRUNE_DAYS_EXPLAIN}</span></dt>
			<dd><input type="text" id="prune_days" name="prune_days" value="{PRUNE_DAYS}" maxlength="4" size="4" /> {L_DAYS}</dd>
		</dl>
		<dl>
			<dt><label for="prune_viewed">{L_AUTO_PRUNE_VIEWED}:</label><br /><span>{L_AUTO_PRUNE_VIEWED_EXPLAIN}</span></dt>
			<dd><input type="text" id="prune_viewed" name="prune_viewed" value="{PRUNE_VIEWED}" maxlength="4" size="4" /> {L_DAYS}</dd>
		</dl>
		<dl>
			<dt><label for="prune_old_polls">{L_PRUNE_OLD_POLLS}:</label><br /><span>{L_PRUNE_OLD_POLLS_EXPLAIN}</span></dt>
			<dd><label><input type="radio" class="radio" name="prune_old_polls" value="1"<!-- IF S_PRUNE_OLD_POLLS --> id="prune_old_polls" checked="checked"<!-- ENDIF --> /> {L_YES}</label>
				<label><input type="radio" class="radio" name="prune_old_polls" value="0"<!-- IF not S_PRUNE_OLD_POLLS --> id="prune_old_polls" checked="checked"<!-- ENDIF --> /> {L_NO}</label></dd>
		</dl>
		<dl>
			<dt><label for="prune_announce">{L_PRUNE_ANNOUNCEMENTS}:</label></dt>
			<dd><label><input type="radio" class="radio" name="prune_announce" value="1"<!-- IF S_PRUNE_ANNOUNCE --> id="prune_announce" checked="checked"<!-- ENDIF --> /> {L_YES}</label>
				<label><input type="radio" class="radio" name="prune_announce" value="0"<!-- IF not S_PRUNE_ANNOUNCE --> id="prune_announce" checked="checked"<!-- ENDIF --> /> {L_NO}</label></dd>
		</dl>
		<dl>
			<dt><label for="prune_sticky">{L_PRUNE_STICKY}:</label></dt>
			<dd><label><input type="radio" class="radio" name="prune_sticky" value="1"<!-- IF S_PRUNE_STICKY --> id="prune_sticky" checked="checked"<!-- ENDIF --> /> {L_YES}</label>
				<label><input type="radio" class="radio" name="prune_sticky" value="0"<!-- IF not S_PRUNE_STICKY --> id="prune_sticky" checked="checked"<!-- ENDIF --> /> {L_NO}</label></dd>
		</dl>
		</fieldset>
	</div>

	<div id="forum_link_options">
		<fieldset>
			<legend>{L_GENERAL_FORUM_SETTINGS}</legend>
		<dl>
			<dt><label for="link_display_on_index">{L_LIST_INDEX}:</label><br /><span>{L_LIST_INDEX_EXPLAIN}</span></dt>
			<dd><label><input type="radio" class="radio" name="link_display_on_index" value="1"<!-- IF S_DISPLAY_ON_INDEX --> id="link_display_on_index" checked="checked"<!-- ENDIF --> /> {L_YES}</label>
				<label><input type="radio" class="radio" name="link_display_on_index" value="0"<!-- IF not S_DISPLAY_ON_INDEX --> id="link_display_on_index" checked="checked"<!-- ENDIF --> /> {L_NO}</label></dd>
		</dl>
		<dl>
			<dt><label for="forum_link">{L_FORUM_LINK}:</label><br /><span>{L_FORUM_LINK_EXPLAIN}</span></dt>
			<dd><input class="text medium" type="text" id="forum_link" name="forum_link" value="{FORUM_DATA_LINK}" maxlength="255" /></dd>
		</dl>
		<dl>
			<dt><label for="forum_link_track">{L_FORUM_LINK_TRACK}:</label><br /><span>{L_FORUM_LINK_TRACK_EXPLAIN}</span></dt>
			<dd><label><input type="radio" class="radio" name="forum_link_track" value="1"<!-- IF S_FORUM_LINK_TRACK --> id="forum_link_track" checked="checked"<!-- ENDIF --> /> {L_YES}</label>
				<label><input type="radio" class="radio" name="forum_link_track" value="0"<!-- IF not S_FORUM_LINK_TRACK --> id="forum_link_track" checked="checked"<!-- ENDIF --> /> {L_NO}</label></dd>
		</dl>
		</fieldset>
	</div>

	<div id="forum_rules_options">
		<fieldset>
			<legend>{L_FORUM_RULES}</legend>
		<dl>
			<dt><label for="forum_rules_link">{L_FORUM_RULES_LINK}:</label><br /><span>{L_FORUM_RULES_LINK_EXPLAIN}</span></dt>
			<dd><input class="text medium" type="text" id="forum_rules_link" name="forum_rules_link" value="{FORUM_RULES_LINK}" maxlength="255" /></dd>
		</dl>
	<!-- IF FORUM_RULES_PREVIEW -->
		<dl>
			<dt><label>{L_FORUM_RULES_PREVIEW}:</label></dt>
			<dd>{FORUM_RULES_PREVIEW}</dd>
		</dl>
	<!-- ENDIF -->
		<dl>
			<dt><label for="forum_rules">{L_FORUM_RULES}:</label><br /><span>{L_FORUM_RULES_EXPLAIN}</span></dt>
			<dd><textarea id="forum_rules" name="forum_rules" rows="4" cols="70">{FORUM_RULES_PLAIN}</textarea></dd>
			<dd><label><input type="checkbox" class="radio" name="rules_parse_bbcode"<!-- IF S_BBCODE_CHECKED --> checked="checked"<!-- ENDIF --> /> {L_PARSE_BBCODE}</label>
				<label><input type="checkbox" class="radio" name="rules_parse_smilies"<!-- IF S_SMILIES_CHECKED --> checked="checked"<!-- ENDIF --> /> {L_PARSE_SMILIES}</label>
				<label><input type="checkbox" class="radio" name="rules_parse_urls"<!-- IF S_URLS_CHECKED --> checked="checked"<!-- ENDIF --> /> {L_PARSE_URLS}</label></dd>
		</dl>
		</fieldset>
	</div>

	<fieldset class="submit-buttons">
		<legend>{L_SUBMIT}</legend>
		<input class="button1" type="submit" id="submit" name="update" value="{L_SUBMIT}" />&nbsp;
		<input class="button2" type="reset" id="reset" name="reset" value="{L_RESET}" />
		{S_FORM_TOKEN}
	</fieldset>
	</form>

<!-- ELSEIF S_DELETE_FORUM -->

	<a href="{U_BACK}" style="float: {S_CONTENT_FLOW_END};">&laquo; {L_BACK}</a>

	<h1>{L_FORUM_DELETE}</h1>

	<p>{L_FORUM_DELETE_EXPLAIN}</p>

	<!-- IF S_ERROR -->
		<div class="errorbox">
			<h3>{L_WARNING}</h3>
			<p>{ERROR_MSG}</p>
		</div>
	<!-- ENDIF -->

	<form id="acp_forum" method="post" action="{U_ACTION}">

	<fieldset>
		<legend>{L_FORUM_DELETE}</legend>
	<dl>
		<dt><label>{L_FORUM_NAME}:</label></dt>
		<dd><strong>{FORUM_NAME}</strong></dd>
	</dl>
	<!-- IF S_FORUM_POST -->
		<dl>
			<dt><label for="delete_action">{L_ACTION}:</label></dt>
			<dd><label><input type="radio" class="radio" id="delete_action" name="action_posts" value="delete" checked="checked" /> {L_DELETE_ALL_POSTS}</label></dd>
			<!-- IF S_MOVE_FORUM_OPTIONS -->
				<dd><label><input type="radio" class="radio" name="action_posts" value="move" /> {L_MOVE_POSTS_TO}</label> <select name="posts_to_id">{S_MOVE_FORUM_OPTIONS}</select></dd>
			<!-- ENDIF -->
		</dl>
	<!-- ENDIF -->
	<!-- IF S_HAS_SUBFORUMS -->
		<dl>
			<dt><label for="sub_delete_action">{L_ACTION}:</label></dt>
			<dd><label><input type="radio" class="radio" id="sub_delete_action" name="action_subforums" value="delete" checked="checked" /> {L_DELETE_SUBFORUMS}</label></dd>
			<!-- IF S_FORUMS_LIST -->
				<dd><label><input type="radio" class="radio" name="action_subforums" value="move" /> {L_MOVE_SUBFORUMS_TO}</label> <select name="subforums_to_id">{S_FORUMS_LIST}</select></dd>
			<!-- ENDIF -->
		</dl>
	<!-- ENDIF -->

	<p class="quick">
		<input class="button1" type="submit" name="update" value="{L_SUBMIT}" />
	</p>
	{S_FORM_TOKEN}
	</fieldset>
	</form>

<!-- ELSEIF S_CONTINUE_SYNC -->

	<script type="text/javascript">
	// <![CDATA[
		var close_waitscreen = 0;
		// no scrollbars...
		popup('{UA_PROGRESS_BAR}', 400, 240, '_sync');
	// ]]>
	</script>

	<h1>{L_FORUM_ADMIN}</h1>

	<p>{L_FORUM_ADMIN_EXPLAIN}</p>

	<p>{L_PROGRESS_EXPLAIN}</p>

<!-- ELSE -->

	<script type="text/javascript">
	// <![CDATA[
		/**
		* Popup search progress bar
		*/
		function popup_progress_bar()
		{
			var close_waitscreen = 0;
			// no scrollbars...
			popup('{UA_PROGRESS_BAR}', 400, 240, '_sync');
		}
	// ]]>
	</script>

	<h1>{L_FORUM_ADMIN}</h1>

	<p>{L_FORUM_ADMIN_EXPLAIN}</p>

	<!-- IF ERROR_MSG -->
		<div class="errorbox">
			<h3>{L_WARNING}</h3>
			<p>{ERROR_MSG}</p>
		</div>
	<!-- ENDIF -->

	<!-- IF S_RESYNCED -->
		<script type="text/javascript">
		// <![CDATA[
			var close_waitscreen = 1;
		// ]]>
		</script>

		<div class="successbox">
			<h3>{L_NOTIFY}</h3>
			<p>{L_FORUM_RESYNCED}</p>
		</div>
	<!-- ENDIF -->

	<p><strong>{NAVIGATION}<!-- IF S_NO_FORUMS --> [<a href="{U_EDIT}">{L_EDIT}</a> | <a href="{U_DELETE}">{L_DELETE}</a><!-- IF not S_LINK --> | <a href="{U_SYNC}">{L_RESYNC}</a><!-- ENDIF --->]<!-- ENDIF --></strong></p>

	<!-- IF .forums -->
		<table cellspacing="1">
			<col class="row1" /><col class="row1" /><col class="row2" />
		<tbody>
		<!-- BEGIN forums -->
			<tr>
				<td style="width: 5%; text-align: center;">{forums.FOLDER_IMAGE}</td>
				<td>
					<!-- IF forums.FORUM_IMAGE --><div style="float: {S_CONTENT_FLOW_BEGIN}; margin-right: 5px;">{forums.FORUM_IMAGE}</div><!-- ENDIF -->
					<strong><!-- IF forums.S_FORUM_LINK -->{forums.FORUM_NAME}<!-- ELSE --><a href="{forums.U_FORUM}">{forums.FORUM_NAME}</a><!-- ENDIF --></strong>
					<!-- IF forums.FORUM_DESCRIPTION --><br /><span>{forums.FORUM_DESCRIPTION}</span><!-- ENDIF -->
					<!-- IF forums.S_FORUM_POST --><br /><br /><span>{L_TOPICS}: <strong>{forums.FORUM_TOPICS}</strong> / {L_POSTS}: <b>{forums.FORUM_POSTS}</b></span><!-- ENDIF -->
				</td>
				<td style="vertical-align: top; width: 100px; text-align: right; white-space: nowrap;">
					<!-- IF forums.S_FIRST_ROW && not forums.S_LAST_ROW -->
						{ICON_MOVE_UP_DISABLED}
						<a href="{forums.U_MOVE_DOWN}">{ICON_MOVE_DOWN}</a>
					<!-- ELSEIF not forums.S_FIRST_ROW && not forums.S_LAST_ROW-->
						<a href="{forums.U_MOVE_UP}">{ICON_MOVE_UP}</a>
						<a href="{forums.U_MOVE_DOWN}">{ICON_MOVE_DOWN}</a>
					<!-- ELSEIF forums.S_LAST_ROW && not forums.S_FIRST_ROW -->
						<a href="{forums.U_MOVE_UP}">{ICON_MOVE_UP}</a>
						{ICON_MOVE_DOWN_DISABLED}
					<!-- ELSE -->
						{ICON_MOVE_UP_DISABLED}
						{ICON_MOVE_DOWN_DISABLED}
					<!-- ENDIF -->
					<a href="{forums.U_EDIT}">{ICON_EDIT}</a>
					<!-- IF not forums.S_FORUM_LINK -->
						<a href="{forums.U_SYNC}" onclick="popup_progress_bar();">{ICON_SYNC}</a>
					<!-- ELSE -->
						{ICON_SYNC_DISABLED}
					<!-- ENDIF -->
					<a href="{forums.U_DELETE}">{ICON_DELETE}</a>
				</td>
			</tr>
		<!-- END forums -->
		</tbody>
		</table>
	<!-- ENDIF -->

	<form id="fselect" method="post" action="{U_SEL_ACTION}">

	<fieldset class="quick">
		{L_SELECT_FORUM}: <select name="parent_id" onchange="if(this.options[this.selectedIndex].value != -1){ this.form.submit(); }">{FORUM_BOX}</select>

		<input class="button2" type="submit" value="{L_GO}" />
		{S_FORM_TOKEN}
	</fieldset>
	</form>

	<form id="forums" method="post" action="{U_ACTION}">

	<fieldset class="quick">
		<input type="hidden" name="action" value="add" />

		<input type="text" name="forum_name" value="" maxlength="255" />
		<input class="button2" name="addforum" type="submit" value="{L_CREATE_FORUM}" />
		{S_FORM_TOKEN}
	</fieldset>
	</form>

<!-- ENDIF -->

<!-- INCLUDE overall_footer.html -->
Hopefully that'll help.

User avatar
Erik Frèrejean
Former Team Member
Posts: 9899
Joined: Tue Oct 09, 2007 9:09 am
Location: The Netherlands, 3.0.x Support Forum
Name: Erik Frèrejean
Contact:

Re: [BETA] News Forum

Post by Erik Frèrejean » Sun Jan 13, 2008 8:59 pm

Sorry,
I meant the html output of the module it self. When you browse to the acp page with your browser, there left mouse click -> view source (or something like that).
Support Toolkit | Support Request Template | Knowledge Base | phpBB 3.0.x documentation
I don't give support via PM or IM! (all unsolicited pms will be trashed!)

User avatar
Spider M. Mann
Registered User
Posts: 73
Joined: Sat Dec 01, 2007 3:06 pm

Re: [BETA] News Forum

Post by Spider M. Mann » Sun Jan 13, 2008 9:00 pm

Erik Frèrejean wrote:Sorry, an other typo.
Replace: .... etc.
Sorry, boss. That was one of the things I tried, still no love. I can't figure this one out for the life of me.
Thanks again for taking the time.

-Spider

DevilsAcid
Registered User
Posts: 6
Joined: Thu May 10, 2007 5:51 am

Re: [BETA] News Forum

Post by DevilsAcid » Sun Jan 13, 2008 9:08 pm

Erik Frèrejean wrote:Sorry,
I meant the html output of the module it self. When you browse to the acp page with your browser, there left mouse click -> view source (or something like that).
Sorry, ok I'm going to assume you mean the page to which I'm trying to get the radio buttons at so here is that,

Code: Select all

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en-gb" xml:lang="en-gb">
<head>

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<meta http-equiv="Content-Language" content="en-gb" />
<meta http-equiv="imagetoolbar" content="no" />
<title>Edit forum</title>

<link href="style/admin.css" rel="stylesheet" type="text/css" media="screen" />

<script type="text/javascript">
// <![CDATA[
var jump_page = 'Enter the page number you wish to go to.:';
var on_page = '';
var per_page = '';
var base_url = '';

var menu_state = 'shown';


/**
* Jump to page
*/
function jumpto()
{
	var page = prompt(jump_page, on_page);

	if (page !== null && !isNaN(page) && page > 0)	
	{
		document.location.href = base_url.replace(/&/g, '&') + '&start=' + ((page - 1) * per_page);
	}
}

/**
* Set display of page element
* s[-1,0,1] = hide,toggle display,show
*/
function dE(n, s, type)
{
	if (!type)
	{
		type = 'block';
	}

	var e = document.getElementById(n);
	if (!s)
	{
		s = (e.style.display == '') ? -1 : 1;
	}
	e.style.display = (s == 1) ? type : 'none';
}

/**
* Mark/unmark checkboxes
* id = ID of parent container, name = name prefix, state = state [true/false]
*/
function marklist(id, name, state)
{
	var parent = document.getElementById(id);
	if (!parent)
	{
		eval('parent = document.' + id);
	}

	if (!parent)
	{
		return;
	}

	var rb = parent.getElementsByTagName('input');
	
	for (var r = 0; r < rb.length; r++)
	{
		if (rb[r].name.substr(0, name.length) == name)
		{
			rb[r].checked = state;
		}
	}
}

/**
* Find a member
*/
function find_username(url)
{
	popup(url, 760, 570, '_usersearch');
	return false;
}

/**
* Window popup
*/
function popup(url, width, height, name)
{
	if (!name)
	{
		name = '_popup';
	}

	window.open(url.replace(/&/g, '&'), name, 'height=' + height + ',resizable=yes,scrollbars=yes, width=' + width);
	return false;
}

/**
* Hiding/Showing the side menu
*/
function switch_menu()
{
	var menu = document.getElementById('menu');
	var main = document.getElementById('main');
	var toggle = document.getElementById('toggle');
	var handle = document.getElementById('toggle-handle');

	switch (menu_state)
	{
		// hide
		case 'shown':
			main.style.width = '93%';
			menu_state = 'hidden';
			menu.style.display = 'none';
			toggle.style.width = '20px';
			handle.style.backgroundImage = 'url(images/toggle.gif)';
			handle.style.backgroundRepeat = 'no-repeat';

							handle.style.backgroundPosition = '100% 50%';
				toggle.style.left = '0';
					break;

		// show
		case 'hidden':
			main.style.width = '76%';
			menu_state = 'shown';
			menu.style.display = 'block';
			toggle.style.width = '5%';
			handle.style.backgroundImage = 'url(images/toggle.gif)';
			handle.style.backgroundRepeat = 'no-repeat';

							handle.style.backgroundPosition = '0% 50%';
				toggle.style.left = '15%';
					break;
	}
}

// ]]>
</script>
</head>

<body class="ltr">

<div id="wrap">
	<div id="page-header">
		<h1>Administration Control Panel</h1>
		<p><a href="./index.php?sid=7a894b87af30263ced54a48359b42c40">Admin index</a> &bull; <a href="./../index.php?sid=7a894b87af30263ced54a48359b42c40">Board index</a></p>
		<p id="skip"><a href="#acp">Skip to content</a></p>

	</div>
	
	<div id="page-body">
		<div id="tabs">
			<ul>
							<li><a href="./index.php?sid=7a894b87af30263ced54a48359b42c40&i=1"><span>General</span></a></li>
							<li id="activetab"><a href="./index.php?sid=7a894b87af30263ced54a48359b42c40&i=6"><span>Forums</span></a></li>
							<li><a href="./index.php?sid=7a894b87af30263ced54a48359b42c40&i=9"><span>Posting</span></a></li>

							<li><a href="./index.php?sid=7a894b87af30263ced54a48359b42c40&i=12"><span>Users and Groups</span></a></li>
							<li><a href="./index.php?sid=7a894b87af30263ced54a48359b42c40&i=16"><span>Permissions</span></a></li>
							<li><a href="./index.php?sid=7a894b87af30263ced54a48359b42c40&i=21"><span>Styles</span></a></li>
							<li><a href="./index.php?sid=7a894b87af30263ced54a48359b42c40&i=24"><span>Maintenance</span></a></li>
							<li><a href="./index.php?sid=7a894b87af30263ced54a48359b42c40&i=27"><span>System</span></a></li>
						</ul>

		</div>

		<div id="acp">
		<div class="panel">
			<span class="corners-top"><span></span></span>
				<div id="content">
					 
					<div id="toggle">						
						<a id="toggle-handle" accesskey="m" title="Hide or display the side menu" onclick="switch_menu(); return false;" href="#"></a></div>
										<div id="menu">
						<p>You are logged in as:<br /><strong>Blackacid</strong> [&nbsp;<a href="./../ucp.php?mode=logout&sid=7a894b87af30263ced54a48359b42c40">Logout</a>&nbsp;]</p>

						<ul>
													<li class="header">Manage forums</li>
															<li id="activemenu"><a href="./index.php?sid=7a894b87af30263ced54a48359b42c40&i=forums&icat=6&mode=manage"><span>Manage forums</span></a></li>
															<li><a href="./index.php?sid=7a894b87af30263ced54a48359b42c40&i=prune&mode=forums"><span>Prune forums</span></a></li>
														<li class="header">Forum based permissions</li>
															<li><a href="./index.php?sid=7a894b87af30263ced54a48359b42c40&i=permissions&mode=setting_forum_local"><span>Forum permissions</span></a></li>

															<li><a href="./index.php?sid=7a894b87af30263ced54a48359b42c40&i=permissions&mode=setting_mod_local"><span>Forum moderators</span></a></li>
															<li><a href="./index.php?sid=7a894b87af30263ced54a48359b42c40&i=permissions&mode=setting_user_local"><span>Users’ forum permissions</span></a></li>
															<li><a href="./index.php?sid=7a894b87af30263ced54a48359b42c40&i=permissions&mode=setting_group_local"><span>Groups’ forum permissions</span></a></li>
													</ul>
					</div>
	
					<div id="main">
<a name="maincontent"></a>

	<script type="text/javascript">
	// <![CDATA[
		/**
		* Handle displaying/hiding several options based on the forum type
		*/
		function display_options(value)
		{
							if (value == 1)
				{
					dE('type_actions', -1);
				}
				else
				{
					dE('type_actions', 1);
				}
			
			if (value == 1)
			{
				dE('forum_post_options', 1);
				dE('forum_link_options', -1);
				dE('forum_rules_options', 1);
				dE('forum_cat_options', -1);
			}
			else if (value == 2)
			{
				dE('forum_post_options', -1);
				dE('forum_link_options', 1);
				dE('forum_rules_options', -1);
				dE('forum_cat_options', -1);
			}
			else if (value == 0)
			{
				dE('forum_post_options', -1);
				dE('forum_link_options', -1);
				dE('forum_rules_options', 1);
				dE('forum_cat_options', 1);
			}
		}

		/**
		* Init the wanted display functionality if javascript is enabled.
		* If javascript is not available, the user is still able to properly administrate.
		*/
		onload = function()
		{
								dE('type_actions', -1);
								dE('forum_cat_options', -1);
							dE('forum_link_options', -1);
					}

	// ]]>
	</script>

	<a href="./index.php?i=forums&sid=7a894b87af30263ced54a48359b42c40&icat=7&mode=manage&parent_id=25" style="float: right;">&laquo; Back</a>

	<h1>Edit forum :: Current News</h1>

	<p>The form below will allow you to customise this forum. Please note that moderation and post count controls are set via forum permissions for each user or usergroup.</p>

	
	<form id="forumedit" method="post" action="./index.php?i=forums&sid=7a894b87af30263ced54a48359b42c40&icat=7&mode=manage&parent_id=25&action=edit&f=1">

	<fieldset>
		<legend>Forum settings</legend>
	<dl>
		<dt><label for="forum_type">Forum type:</label></dt>
		<dd><select id="forum_type" name="forum_type" onchange="display_options(this.options[this.selectedIndex].value);"><option value="0">Category</option><option value="1" selected="selected">Forum</option><option value="2">Link</option></select></dd>

	</dl>
		<div id="type_actions">
		<dl>
			<dt><label for="type_action">Delete content or move to forum:</label></dt>
			<dd><label><input type="radio" class="radio" name="type_action" value="delete" /> Delete posts</label></dd>
			<dd><label><input type="radio" class="radio" name="type_action" id="type_action" value="move" checked="checked" /> Move posts to</label> <select name="to_forum_id"><option value="25" disabled="disabled" class="disabled-option">News</option><option value="1" disabled="disabled" class="disabled-option">&nbsp; &nbsp;Current News</option><option value="2">&nbsp; &nbsp;Archived News</option><option value="26" disabled="disabled" class="disabled-option">General Access</option><option value="3">&nbsp; &nbsp;The Lounge</option><option value="4">&nbsp; &nbsp;Media Section</option><option value="5">&nbsp; &nbsp;Gaming Section</option><option value="6">&nbsp; &nbsp;Tech Support</option><option value="7">&nbsp; &nbsp;Recruitment Section</option><option value="27" disabled="disabled" class="disabled-option">Glory and Beer</option><option value="8">&nbsp; &nbsp;General Section</option><option value="9">&nbsp; &nbsp;Guild Information</option><option value="10">&nbsp; &nbsp;Raid Information</option><option value="11">&nbsp; &nbsp;Quest Information</option><option value="12">&nbsp; &nbsp;Introduce Yourself</option><option value="28" disabled="disabled" class="disabled-option">Zud's Brigade</option><option value="23">&nbsp; &nbsp;General Section</option><option value="24">&nbsp; &nbsp;Raid Information</option><option value="29" disabled="disabled" class="disabled-option">Class Section</option><option value="13">&nbsp; &nbsp;Tank Class</option><option value="14">&nbsp; &nbsp;Melee DPS Class</option><option value="15">&nbsp; &nbsp;Healing Class</option><option value="16">&nbsp; &nbsp;Range DPS Class</option><option value="30" disabled="disabled" class="disabled-option">Officer's Area</option><option value="17">&nbsp; &nbsp;General Section</option><option value="18">&nbsp; &nbsp;Class Leaders</option><option value="19">&nbsp; &nbsp;Members</option><option value="20">&nbsp; &nbsp;Recruits</option><option value="31" disabled="disabled" class="disabled-option">Admins Section</option><option value="21">&nbsp; &nbsp;General Area</option><option value="22">&nbsp; &nbsp;Help Section</option><option value="32">Hidden</option><option value="34">&nbsp; &nbsp;FAQ</option><option value="35">&nbsp; &nbsp;Rules</option><option value="36">&nbsp; &nbsp;Ranks</option><option value="37">&nbsp; &nbsp;Raid Details</option><option value="38">&nbsp; &nbsp;Required Mods</option><option value="39">&nbsp; &nbsp;Recruitment</option></select></dd>		</dl>

	</div>
		<dl>
		<dt><label for="parent">Parent forum:</label></dt>
		<dd><select id="parent" name="forum_parent_id"><option value="0">No parent</option><option value="25" selected="selected">News</option><option value="1" disabled="disabled" class="disabled-option">&nbsp; &nbsp;Current News</option><option value="2">&nbsp; &nbsp;Archived News</option><option value="26">General Access</option><option value="3">&nbsp; &nbsp;The Lounge</option><option value="4">&nbsp; &nbsp;Media Section</option><option value="5">&nbsp; &nbsp;Gaming Section</option><option value="6">&nbsp; &nbsp;Tech Support</option><option value="7">&nbsp; &nbsp;Recruitment Section</option><option value="27">Glory and Beer</option><option value="8">&nbsp; &nbsp;General Section</option><option value="9">&nbsp; &nbsp;Guild Information</option><option value="10">&nbsp; &nbsp;Raid Information</option><option value="11">&nbsp; &nbsp;Quest Information</option><option value="12">&nbsp; &nbsp;Introduce Yourself</option><option value="28">Zud's Brigade</option><option value="23">&nbsp; &nbsp;General Section</option><option value="24">&nbsp; &nbsp;Raid Information</option><option value="29">Class Section</option><option value="13">&nbsp; &nbsp;Tank Class</option><option value="14">&nbsp; &nbsp;Melee DPS Class</option><option value="15">&nbsp; &nbsp;Healing Class</option><option value="16">&nbsp; &nbsp;Range DPS Class</option><option value="30">Officer's Area</option><option value="17">&nbsp; &nbsp;General Section</option><option value="18">&nbsp; &nbsp;Class Leaders</option><option value="19">&nbsp; &nbsp;Members</option><option value="20">&nbsp; &nbsp;Recruits</option><option value="31">Admins Section</option><option value="21">&nbsp; &nbsp;General Area</option><option value="22">&nbsp; &nbsp;Help Section</option><option value="32">Hidden</option><option value="34">&nbsp; &nbsp;FAQ</option><option value="35">&nbsp; &nbsp;Rules</option><option value="36">&nbsp; &nbsp;Ranks</option><option value="37">&nbsp; &nbsp;Raid Details</option><option value="38">&nbsp; &nbsp;Required Mods</option><option value="39">&nbsp; &nbsp;Recruitment</option></select></dd>

	</dl>
	<dl>
		<dt><label for="forum_name">Forum name:</label></dt>
		<dd><input class="text medium" type="text" id="forum_name" name="forum_name" value="Current News" maxlength="255" /></dd>
	</dl>
	<dl>
		<dt><label for="forum_desc">Description:</label><br /><span>Any HTML markup entered here will be displayed as is.</span></dt>

		<dd><textarea id="forum_desc" name="forum_desc" rows="5" cols="45">This the current news concerning the guild, website, current events in wow, and guild members.</textarea></dd>
		<dd><label><input type="checkbox" class="radio" name="desc_parse_bbcode" checked="checked" /> Parse BBCode</label>
			<label><input type="checkbox" class="radio" name="desc_parse_smilies" checked="checked" /> Parse smilies</label>
			<label><input type="checkbox" class="radio" name="desc_parse_urls" checked="checked" /> Parse links</label></dd>
	</dl>

	<dl>
		<dt><label for="forum_image">Forum image:</label><br /><span>Location, relative to the phpBB root directory, of an additional image to associate with this forum.</span></dt>
		<dd><input class="text medium" type="text" id="forum_image" name="forum_image" value="" maxlength="255" /></dd>
			</dl>
	<dl>
		<dt><label for="forum_password">Forum password:</label><br /><span>Defines a password for this forum, use the permission system in preference.</span></dt>
		<dd><input type="password" id="forum_password" name="forum_password" value="" /></dd>

	</dl>
	<dl>
		<dt><label for="forum_password_confirm">Confirm forum password:</label><br /><span>Only needs to be set if a forum password is entered.</span></dt>
		<dd><input type="password" id="forum_password_confirm" name="forum_password_confirm" value="" /></dd>
	</dl>
		<dl>
		<dt><label for="forum_style">Forum style:</label></dt>

		<dd><select id="forum_style" name="forum_style"><option value="0">Default style</option><option value="5">AnimeZone</option><option value="1">prosilver</option><option value="2">subsilver2</option></select></dd>
	</dl>
			<dl>
			<dt><label for="forum_perm_from">Copy permissions from:</label><br /><span>If you select to copy permissions, the forum will have the same permissions as the one you select here. This will overwrite any permissions you have previously set for this forum with the permissions of the forum you select here. If no forum is selected the current permissions will be kept.</span></dt>
			<dd><select id="forum_perm_from" name="forum_perm_from"><option value="0">Do not copy permissions</option><option value="25">News</option><option value="1" disabled="disabled" class="disabled-option">&nbsp; &nbsp;Current News</option><option value="2">&nbsp; &nbsp;Archived News</option><option value="26">General Access</option><option value="3">&nbsp; &nbsp;The Lounge</option><option value="4">&nbsp; &nbsp;Media Section</option><option value="5">&nbsp; &nbsp;Gaming Section</option><option value="6">&nbsp; &nbsp;Tech Support</option><option value="7">&nbsp; &nbsp;Recruitment Section</option><option value="27">Glory and Beer</option><option value="8">&nbsp; &nbsp;General Section</option><option value="9">&nbsp; &nbsp;Guild Information</option><option value="10">&nbsp; &nbsp;Raid Information</option><option value="11">&nbsp; &nbsp;Quest Information</option><option value="12">&nbsp; &nbsp;Introduce Yourself</option><option value="28">Zud's Brigade</option><option value="23">&nbsp; &nbsp;General Section</option><option value="24">&nbsp; &nbsp;Raid Information</option><option value="29">Class Section</option><option value="13">&nbsp; &nbsp;Tank Class</option><option value="14">&nbsp; &nbsp;Melee DPS Class</option><option value="15">&nbsp; &nbsp;Healing Class</option><option value="16">&nbsp; &nbsp;Range DPS Class</option><option value="30">Officer's Area</option><option value="17">&nbsp; &nbsp;General Section</option><option value="18">&nbsp; &nbsp;Class Leaders</option><option value="19">&nbsp; &nbsp;Members</option><option value="20">&nbsp; &nbsp;Recruits</option><option value="31">Admins Section</option><option value="21">&nbsp; &nbsp;General Area</option><option value="22">&nbsp; &nbsp;Help Section</option><option value="32">Hidden</option><option value="34">&nbsp; &nbsp;FAQ</option><option value="35">&nbsp; &nbsp;Rules</option><option value="36">&nbsp; &nbsp;Ranks</option><option value="37">&nbsp; &nbsp;Raid Details</option><option value="38">&nbsp; &nbsp;Required Mods</option><option value="39">&nbsp; &nbsp;Recruitment</option></select></dd>

		</dl>
		</fieldset>

	<div id="forum_cat_options">
		<fieldset>
			<legend>General forum settings</legend>
		<dl>
			<dt><label for="display_active">Enable active topics:</label><br /><span>If set to yes active topics in selected subforums will be displayed under this category.</span></dt>

			<dd><label><input type="radio" class="radio" name="display_active" value="1" /> Yes</label>
				<label><input type="radio" class="radio" name="display_active" value="0" id="display_active" checked="checked" /> No</label></dd>
		</dl>
		</fieldset>
	</div>

	<div id="forum_post_options">

		<fieldset>
			<legend>General forum settings</legend>
		<dl>
			<dt><label for="forum_status">Forum status:</label></dt>
			<dd><select id="forum_status" name="forum_status"><option value="0" selected="selected">Unlocked</option><option value="1">Locked</option></select></dd>
		</dl>
		<dl>

			<dt><label for="display_on_index">List subforum in parent-forum’s legend:</label><br /><span>Displays this forum on the index and elsewhere as a link within the legend of its parent-forum.</span></dt>
			<dd><label><input type="radio" class="radio" name="display_on_index" value="1" id="display_on_index" checked="checked" /> Yes</label>
				<label><input type="radio" class="radio" name="display_on_index" value="0" /> No</label></dd>
		</dl>
		<dl>
			<dt><label for="enable_post_review">Enable post review:</label><br /><span>If set to yes users are able to review their post if new posts were made to the topic while users wrote theirs. This should be disabled for chat forums.</span></dt>

			<dd><label><input type="radio" class="radio" name="enable_post_review" value="1" id="enable_post_review" checked="checked" /> Yes</label>
				<label><input type="radio" class="radio" name="enable_post_review" value="0" /> No</label></dd>
		</dl>
		<dl>
			<dt><label for="enable_indexing">Enable search indexing:</label><br /><span>If set to yes posts made to this forum will be indexed for searching.</span></dt>
			<dd><label><input type="radio" class="radio" name="enable_indexing" value="1" id="enable_indexing" checked="checked" /> Yes</label>

				<label><input type="radio" class="radio" name="enable_indexing" value="0" /> No</label></dd>
		</dl>
		<dl>
			<dt><label for="enable_icons">Enable topic icons:</label></dt>
			<dd><label><input type="radio" class="radio" name="enable_icons" value="1" id="enable_icons" checked="checked" /> Yes</label>
				<label><input type="radio" class="radio" name="enable_icons" value="0" /> No</label></dd>

		</dl>
		<dl>
			<dt><label for="display_recent">Display active topics:</label><br /><span>If set to yes topics made to this forum will be shown in the active topics list.</span></dt>
			<dd><label><input type="radio" class="radio" name="display_recent" value="1" /> Yes</label>
				<label><input type="radio" class="radio" name="display_recent" value="0" id="display_recent" checked="checked" /> No</label></dd>
		</dl>

		<dl>
			<dt><label for="topics_per_page">Topics per page:</label><br /><span>If non-zero this value will override the default topics per page setting.</span></dt>
			<dd><input type="text" id="topics_per_page" name="topics_per_page" value="0" size="4" maxlength="4" /></dd>
		</dl>
		</fieldset>

		<fieldset>
			<legend>Forum prune settings</legend>

		<dl>
			<dt><label for="enable_prune">Enable auto-pruning:</label><br /><span>Prunes the forum of topics, set the frequency/age parameters below.</span></dt>
			<dd><label><input type="radio" class="radio" name="enable_prune" value="1" /> Yes</label>
				<label><input type="radio" class="radio" name="enable_prune" value="0" id="enable_prune" checked="checked" /> No</label></dd>
		</dl>
		<dl>

			<dt><label for="prune_freq">Auto-prune frequency:</label><br /><span>Time in days between pruning events.</span></dt>
			<dd><input type="text" id="prune_freq" name="prune_freq" value="0" maxlength="4" size="4" /> Days</dd>
		</dl>
		<dl>
			<dt><label for="prune_days">Auto-prune post age:</label><br /><span>Number of days since last post after which topic is removed.</span></dt>
			<dd><input type="text" id="prune_days" name="prune_days" value="0" maxlength="4" size="4" /> Days</dd>

		</dl>
		<dl>
			<dt><label for="prune_viewed">Auto-prune post viewed age:</label><br /><span>Number of days since topic was viewed after which topic is removed.</span></dt>
			<dd><input type="text" id="prune_viewed" name="prune_viewed" value="0" maxlength="4" size="4" /> Days</dd>
		</dl>
		<dl>
			<dt><label for="prune_old_polls">Prune old polls:</label><br /><span>Removes topics with polls not voted in for post age days.</span></dt>

			<dd><label><input type="radio" class="radio" name="prune_old_polls" value="1" id="prune_old_polls" checked="checked" /> Yes</label>
				<label><input type="radio" class="radio" name="prune_old_polls" value="0" /> No</label></dd>
		</dl>
		<dl>
			<dt><label for="prune_announce">Prune announcements:</label></dt>
			<dd><label><input type="radio" class="radio" name="prune_announce" value="1" /> Yes</label>

				<label><input type="radio" class="radio" name="prune_announce" value="0" id="prune_announce" checked="checked" /> No</label></dd>
		</dl>
		<dl>
			<dt><label for="prune_sticky">Prune stickies:</label></dt>
			<dd><label><input type="radio" class="radio" name="prune_sticky" value="1" /> Yes</label>
				<label><input type="radio" class="radio" name="prune_sticky" value="0" id="prune_sticky" checked="checked" /> No</label></dd>

		</dl>
		</fieldset>
	</div>

	<div id="forum_link_options">
		<fieldset>
			<legend>General forum settings</legend>
		<dl>
			<dt><label for="link_display_on_index">List subforum in parent-forum’s legend:</label><br /><span>Displays this forum on the index and elsewhere as a link within the legend of its parent-forum.</span></dt>

			<dd><label><input type="radio" class="radio" name="link_display_on_index" value="1" id="link_display_on_index" checked="checked" /> Yes</label>
				<label><input type="radio" class="radio" name="link_display_on_index" value="0" /> No</label></dd>
		</dl>
		<dl>
			<dt><label for="forum_link">Forum link:</label><br /><span>Full URL (including the protocol, i.e.: <samp>http://</samp>) to the destination location that clicking this forum will take the user, e.g.: <samp>http://www.phpbb.com/</samp>.</span></dt>

			<dd><input class="text medium" type="text" id="forum_link" name="forum_link" value="" maxlength="255" /></dd>
		</dl>
		<dl>
			<dt><label for="forum_link_track">Track link redirects:</label><br /><span>Records the number of times a forum link was clicked.</span></dt>
			<dd><label><input type="radio" class="radio" name="forum_link_track" value="1" /> Yes</label>
				<label><input type="radio" class="radio" name="forum_link_track" value="0" id="forum_link_track" checked="checked" /> No</label></dd>

		</dl>
		</fieldset>
	</div>

	<div id="forum_rules_options">
		<fieldset>
			<legend>Forum rules</legend>
		<dl>
			<dt><label for="forum_rules_link">Link to forum rules:</label><br /><span>You are able to enter the URL of the page/post containing your forum rules here. This setting will override the forum rules text you specified.</span></dt>

			<dd><input class="text medium" type="text" id="forum_rules_link" name="forum_rules_link" value="" maxlength="255" /></dd>
		</dl>
			<dl>
			<dt><label for="forum_rules">Forum rules:</label><br /><span>Forum rules are displayed at any page within the given forum.</span></dt>
			<dd><textarea id="forum_rules" name="forum_rules" rows="4" cols="70"></textarea></dd>
			<dd><label><input type="checkbox" class="radio" name="rules_parse_bbcode" checked="checked" /> Parse BBCode</label>

				<label><input type="checkbox" class="radio" name="rules_parse_smilies" checked="checked" /> Parse smilies</label>
				<label><input type="checkbox" class="radio" name="rules_parse_urls" checked="checked" /> Parse links</label></dd>
		</dl>
		</fieldset>
	</div>

	<fieldset class="submit-buttons">

		<legend>Submit</legend>
		<input class="button1" type="submit" id="submit" name="update" value="Submit" />&nbsp;
		<input class="button2" type="reset" id="reset" name="reset" value="Reset" />
		<input type="hidden" name="creation_time" value="1200258339" />
<input type="hidden" name="form_token" value="9313e2b7dd4ce98ba02565c4b8329a5c28e07fc8" />
	</fieldset>
	</form>

</div>
				</div>

			<span class="corners-bottom"><span></span></span>
		</div>
		</div>
	</div>
	
	<!--
		We request you retain the full copyright notice below including the link to www.phpbb.com.
		This not only gives respect to the large amount of time given freely by the developers
		but also helps build interest, traffic and use of phpBB. If you (honestly) cannot retain
		the full copyright we ask you at least leave in place the "Powered by phpBB" line, with
		"phpBB" linked to www.phpbb.com. If you refuse to include even this then support on our
		forums may be affected.
	
		The phpBB Group : 2006
	// -->
	
	<div id="page-footer">
					Powered by phpBB &copy; 2000, 2002, 2005, 2007 <a href="http://www.phpbb.com/">phpBB Group</a>

				</div>
</div>

</body>
</html>

User avatar
Erik Frèrejean
Former Team Member
Posts: 9899
Joined: Tue Oct 09, 2007 9:09 am
Location: The Netherlands, 3.0.x Support Forum
Name: Erik Frèrejean
Contact:

Re: [BETA] News Forum

Post by Erik Frèrejean » Sun Jan 13, 2008 9:32 pm

Yes thanks.

The problem is that you didn't add the check boxes. If you use is in a live environment make sure that you uploaded the changed files.
Else I don't have an idea what could cause the problem.
Support Toolkit | Support Request Template | Knowledge Base | phpBB 3.0.x documentation
I don't give support via PM or IM! (all unsolicited pms will be trashed!)

DevilsAcid
Registered User
Posts: 6
Joined: Thu May 10, 2007 5:51 am

Re: [BETA] News Forum

Post by DevilsAcid » Mon Jan 14, 2008 1:29 am

Erik Frèrejean wrote:Yes thanks.

The problem is that you didn't add the check boxes. If you use is in a live environment make sure that you uploaded the changed files.
Else I don't have an idea what could cause the problem.
Problem is I am editing the files and they are in fact changed on the server. I even went so far as to delete the file itself off of the server and reuploaded the changed one. It still doesn't show up.

spikechu
Registered User
Posts: 55
Joined: Fri May 05, 2006 3:20 am

Re: [BETA] News Forum

Post by spikechu » Mon Jan 21, 2008 9:01 pm

Erik Frèrejean wrote:Have you set a news forum? Are there posts in the news forum?
Can you post the html source of the page for me?

Code: Select all

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=windows-1252"></HEAD>
<BODY></BODY></HTML>

PkerUNO
Registered User
Posts: 2
Joined: Sun Dec 08, 2002 5:38 pm
Location: Fukuoka-ken, Japan
Contact:

Re: [BETA] News Forum

Post by PkerUNO » Wed Jan 23, 2008 6:11 am

I've just started testing this out and it looks very promising. :)

I also had the problem where the option would not even appear on the Forums ACP, and although this stumped me for a bit, I realised why: delete or rename the /cache/ctpl_admin_acp_forums.html.php file and it will be recreated as soon as you access it, with the latest news mod additions. For some reason refreshing the template in the Styles ACP doesn't do this. In any case, it now works, I just have to integrate it into the site.
PkerUNO
Amot Melak Matita

User avatar
Erik Frèrejean
Former Team Member
Posts: 9899
Joined: Tue Oct 09, 2007 9:09 am
Location: The Netherlands, 3.0.x Support Forum
Name: Erik Frèrejean
Contact:

Re: [BETA] News Forum

Post by Erik Frèrejean » Wed Jan 23, 2008 9:46 am

PkerUNO wrote:I've just started testing this out and it looks very promising. :)
Thanks :)

Thanks for the sugestion. In this case useing the puge cache button will do the trick. All add this stap in the DIY instruction with the next version.
Support Toolkit | Support Request Template | Knowledge Base | phpBB 3.0.x documentation
I don't give support via PM or IM! (all unsolicited pms will be trashed!)

PkerUNO
Registered User
Posts: 2
Joined: Sun Dec 08, 2002 5:38 pm
Location: Fukuoka-ken, Japan
Contact:

Re: [BETA] News Forum

Post by PkerUNO » Wed Jan 23, 2008 2:30 pm

Erik Frèrejean wrote: Thanks for the sugestion. In this case useing the puge cache button will do the trick.
I never noticed that button before and it's right on the ACP home. I feel silly now. :P
PkerUNO
Amot Melak Matita

zalhain
Registered User
Posts: 8
Joined: Wed Jan 23, 2008 8:53 pm

Re: [BETA] News Forum

Post by zalhain » Wed Jan 23, 2008 8:56 pm

Is there any chance of getting the news to parse into pages of say 5posts per page?
http://www.k2.org/main/newindex.php

Arzmir
Registered User
Posts: 3
Joined: Sat Nov 24, 2007 5:53 pm

Re: [BETA] News Forum

Post by Arzmir » Thu Jan 24, 2008 3:30 pm

Hi Eric good work on the mod so far, I like it! :D

This mod does more or less exactly what I need since my PHP knowledge is mostly based on copy-paste and I've been looking for a post-fetcher for some time.

At the moment I have installed the mod and after some back and forth with the updates and such it is working perfectly on 3.0.0 with PHP5.2.2. The only thing I feel that is lacking is support for images. I would really like to have images posted in the post itself show up on the example page. Would this require BBCode editing or only the news.php and how much (if you know)?

Good luck further and thanks for a superb mod this far ;)

Locked

Return to “[3.0.x] Abandoned MODs”