Board watch

All new MODs released in our MOD Database will be announced in here. All support for released MODs needs to take place in the Customisations Database.
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

NOTICE: This forum is only for the announcement of new releases and/or updates of MODs. Any MOD support should be obtained through the Customisations Database in the support area designated for each MOD.

A direct link to support for each MOD is in the first post of the respective topic.
Locked
WarlockMaster
Registered User
Posts: 14
Joined: Sun Nov 22, 2009 5:44 am

Re: Board watch

Post by WarlockMaster » Sun Nov 29, 2009 6:04 am

asinshesq wrote:
DavidIQ wrote:MOD Updated to version 1.0.2
See first post for Download Link
Thanks, David.

If you already have this mod installed, you don't need to make any changes.Here's the changelong:

Code: Select all

##	2009-09-26 - Version 1.0.1e1
##		no change in mod, but includes newer version of umil folder and tested with phpbb3.0.6
I have a question about the umil folder, i already have that folder from another mod, after read a bit, i`m guessing this folder content its a apllication for many mods right?
Then theres no problem in update this folder right?
I mean none mod gonna set anything in this folder right?
How can i check my umil version?

I`m curious about this, before start install this mod Board watch


Sorry about my english

orudie
Registered User
Posts: 31
Joined: Thu Sep 21, 2006 5:03 pm

Re: Board watch

Post by orudie » Fri Dec 11, 2009 4:41 pm

I followed all the instructions in install.xml
i have made all the necessary edits and then pointed my browser to install_boardwatch.php
It completed without errors.
Then in ACP I applied global permissions to use the boardwatch module. However, I do not see any changes in my board anywhere.

I assume there should be new buttons/options in place where it says subscribe forum.

asinshesq
Registered User
Posts: 6266
Joined: Sun Feb 22, 2004 9:34 pm
Location: NYC
Name: Alan

Re: Board watch

Post by asinshesq » Fri Dec 11, 2009 6:03 pm

orudie wrote:I followed all the instructions in install.xml
i have made all the necessary edits and then pointed my browser to install_boardwatch.php
It completed without errors.
Then in ACP I applied global permissions to use the boardwatch module. However, I do not see any changes in my board anywhere.

I assume there should be new buttons/options in place where it says subscribe forum.
No. If you made the changes correctly, there should be something in the UCP (not in the forum). Go to the UCP, click the board preferences tab and see if you have a link for 'edit board notification options'. If not, you probably made a mistake in editing your files (or perhaps you forgot to go into the ACP and refresh the templates for your style).

asinshesq
Registered User
Posts: 6266
Joined: Sun Feb 22, 2004 9:34 pm
Location: NYC
Name: Alan

Re: Board watch

Post by asinshesq » Fri Dec 11, 2009 8:56 pm

WarlockMaster wrote:I have a question about the umil folder, i already have that folder from another mod, after read a bit, i`m guessing this folder content its a apllication for many mods right?
Then theres no problem in update this folder right?
I mean none mod gonna set anything in this folder right?
How can i check my umil version?
I'm sorry, I didn't notice your post till now. The answer:

- you are right that the umil folder is used for many mods

- it is ONLY used for installing the mods - once the mod has been installed the mod no longer uses umil so changing the folder will have no impact on mods you have already installed

- the normal process is to update the folder to the most recent one (the one in my mod is the most recent one) whenever you install a new mod

Again, sorry I didn't answer you earlier.

robert668
Registered User
Posts: 6
Joined: Fri May 30, 2008 1:46 am

Re: Board watch

Post by robert668 » Thu Dec 17, 2009 4:03 am

asinshesq wrote:
andy_drummond wrote:I'm probably being really thick here, but I can't find the code (<fieldset class="quick">) in adm/style/acp_users_prefs.html that I'm supposed to edit, or anything remotely like it.

Can anyone help, & will it matter (& will boardwatch work) if I don't edit it?

Thanks

Andy
You reallly should make that edit. That line is very close to the bottom of a clean adm/style/acp_users_prefs.html file (at line 153). Perhaps you installed another mod that changed that line? If you want to pm me your adm/style/acp_users_prefs.html file I'll take a look.
I am trying to install this MOD and this is the only thing I can't find... the acp_users_prefs.html does not have the fieldset class line. I can't PM the file because I'm new to the forum and don't have permission... can you help me out? I'd appreciate it so much - thank you!

asinshesq
Registered User
Posts: 6266
Joined: Sun Feb 22, 2004 9:34 pm
Location: NYC
Name: Alan

Re: Board watch

Post by asinshesq » Thu Dec 17, 2009 11:07 am

Robert, just post that file here between code tags.

robert668
Registered User
Posts: 6
Joined: Fri May 30, 2008 1:46 am

Re: Board watch

Post by robert668 » Thu Dec 17, 2009 5:13 pm

I seem to have really messed up. While I was waiting for a reply, I needed to get my board back up and running, so I reversed all the steps in this mod. It still didn't work, so I restored from backup. That didn't work, either. So now my board is completely non functional and I don't have a clue how to fix it. :roll: :D

Anyway... here is the code for my acp_users_prefs.html file... if I can get my board back up, I still would like to install this mod as my members are really not happy with the "subscribe forum" feature. Thanks for your help!

Code: Select all

{L_UCP_PREFS_PERSONAL}
{L_SHOW_EMAIL}:
id="viewemail" checked="checked" /> {L_YES} id="viewemail" checked="checked" /> {L_NO}
{L_ADMIN_EMAIL}:
id="massemail" checked="checked" /> {L_YES} id="massemail" checked="checked" /> {L_NO}
{L_ALLOW_PM}:
{L_ALLOW_PM_EXPLAIN}
id="allowpm" checked="checked" /> {L_YES} id="allowpm" checked="checked" /> {L_NO}
{L_HIDE_ONLINE}:
id="hideonline" checked="checked" /> {L_YES} id="hideonline" checked="checked" /> {L_NO}
{L_NOTIFY_METHOD}:
{L_NOTIFY_METHOD_EXPLAIN}
id="notifymethod" checked="checked" /> {L_NOTIFY_METHOD_EMAIL} id="notifymethod" checked="checked" disabled="disabled" /> {L_NOTIFY_METHOD_IM} id="notifymethod" checked="checked" /> {L_NOTIFY_METHOD_BOTH}
{L_NOTIFY_ON_PM}:
id="notifypm" checked="checked" /> {L_YES} id="notifypm" checked="checked" /> {L_NO}
{L_POPUP_ON_PM}:
id="popuppm" checked="checked" /> {L_YES} id="popuppm" checked="checked" /> {L_NO}
{L_BOARD_LANGUAGE}:
{S_LANG_OPTIONS}
{L_BOARD_STYLE}:
{S_STYLE_OPTIONS}
{L_BOARD_TIMEZONE}:
{S_TZ_OPTIONS}
{L_BOARD_DST}:
id="dst" checked="checked" /> {L_YES} id="dst" checked="checked" /> {L_NO}
{L_BOARD_DATE_FORMAT}:
{L_BOARD_DATE_FORMAT_EXPLAIN}
{S_DATEFORMAT_OPTIONS}
style="display:none;">
{L_UCP_PREFS_POST}
{L_DEFAULT_BBCODE}:
id="bbcode" checked="checked" /> {L_YES} id="bbcode" checked="checked" /> {L_NO}
{L_DEFAULT_SMILIES}:
id="smilies" checked="checked" /> {L_YES} id="smilies" checked="checked" /> {L_NO}
{L_DEFAULT_ADD_SIG}:
id="sig" checked="checked" /> {L_YES} id="sig" checked="checked" /> {L_NO}
{L_DEFAULT_NOTIFY}:
id="notify" checked="checked" /> {L_YES} id="notify" checked="checked" /> {L_NO}
{L_UCP_PREFS_VIEW}
{L_VIEW_IMAGES}:
id="view_images" checked="checked" /> {L_YES} id="view_images" checked="checked" /> {L_NO}
{L_VIEW_FLASH}:
id="view_flash" checked="checked" /> {L_YES} id="view_flash" checked="checked" /> {L_NO}
{L_VIEW_SMILIES}:
id="view_smilies" checked="checked" /> {L_YES} id="view_smilies" checked="checked" /> {L_NO}
{L_VIEW_SIGS}:
id="view_sigs" checked="checked" /> {L_YES} id="view_sigss" checked="checked" /> {L_NO}
{L_VIEW_AVATARS}:
id="view_avatars" checked="checked" /> {L_YES} id="view_avatars" checked="checked" /> {L_NO}
{L_DISABLE_CENSORS}:
id="view_wordcensor" checked="checked" /> {L_YES} id="view_wordcensor" checked="checked" /> {L_NO}
{L_VIEW_TOPICS_DAYS}:
{S_TOPIC_SORT_DAYS}
{L_VIEW_TOPICS_KEY}:
{S_TOPIC_SORT_KEY}
{L_VIEW_TOPICS_DIR}:
{S_TOPIC_SORT_DIR}
{L_VIEW_POSTS_DAYS}:
{S_POST_SORT_DAYS}
{L_VIEW_POSTS_KEY}:
{S_POST_SORT_KEY}
{L_VIEW_POSTS_DIR}:
{S_POST_SORT_DIR}
{S_FORM_TOKEN}

asinshesq
Registered User
Posts: 6266
Joined: Sun Feb 22, 2004 9:34 pm
Location: NYC
Name: Alan

Re: Board watch

Post by asinshesq » Thu Dec 17, 2009 8:44 pm

Robert, that''s either not the full file (is it possible that somehow you only copied the right side of the page??) or that file is seriously messed up. It does not look like valid html close brackets without open brackets, tags messed up, etc.). Do you have a mod that totally re-wrote that file? Or maybe you are using something other than a plain text editor to edit your files and that messed things up? Are you using something like dreamweaver (which has a bad habit of messing things up if you're not careful)?

That file looks like this on a clean phpbb3 board:

Code: Select all

<script type="text/javascript">
// <![CDATA[
	var default_dateformat = '{A_DEFAULT_DATEFORMAT}';
// ]]>
</script>

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

	<fieldset>
		<legend>{L_UCP_PREFS_PERSONAL}</legend>
	<dl> 
		<dt><label for="viewemail">{L_SHOW_EMAIL}:</label></dt>
		<dd><label><input type="radio" class="radio" name="viewemail" value="1"<!-- IF VIEW_EMAIL --> id="viewemail" checked="checked"<!-- ENDIF --> /> {L_YES}</label>
			<label><input type="radio" class="radio" name="viewemail" value="0"<!-- IF not VIEW_EMAIL --> id="viewemail" checked="checked"<!-- ENDIF --> /> {L_NO}</label></dd>
	</dl>
	<dl> 
		<dt><label for="massemail">{L_ADMIN_EMAIL}:</label></dt>
		<dd><label><input type="radio" class="radio" name="massemail" value="1"<!-- IF MASS_EMAIL --> id="massemail" checked="checked"<!-- ENDIF --> /> {L_YES}</label>
			<label><input type="radio" class="radio" name="massemail" value="0"<!-- IF not MASS_EMAIL --> id="massemail" checked="checked"<!-- ENDIF --> /> {L_NO}</label></dd>
	</dl>
	<dl> 
		<dt><label for="allowpm">{L_ALLOW_PM}:</label><br /><span>{L_ALLOW_PM_EXPLAIN}</span></dt>
		<dd><label><input type="radio" class="radio" name="allowpm" value="1"<!-- IF ALLOW_PM --> id="allowpm" checked="checked"<!-- ENDIF --> /> {L_YES}</label>
			<label><input type="radio" class="radio" name="allowpm" value="0"<!-- IF not ALLOW_PM --> id="allowpm" checked="checked"<!-- ENDIF --> /> {L_NO}</label></dd>
	</dl>
	<dl> 
		<dt><label for="hideonline">{L_HIDE_ONLINE}:</label></dt>
		<dd><label><input type="radio" class="radio" name="hideonline" value="1"<!-- IF HIDE_ONLINE --> id="hideonline" checked="checked"<!-- ENDIF --> /> {L_YES}</label>
			<label><input type="radio" class="radio" name="hideonline" value="0"<!-- IF not HIDE_ONLINE --> id="hideonline" checked="checked"<!-- ENDIF --> /> {L_NO}</label></dd>
	</dl>
	<dl> 
		<dt><label for="notifymethod">{L_NOTIFY_METHOD}:</label><br /><span>{L_NOTIFY_METHOD_EXPLAIN}</span></dt>
		<dd><label><input type="radio" class="radio" name="notifymethod" value="0"<!-- IF NOTIFY_EMAIL --> id="notifymethod" checked="checked"<!-- ENDIF --> /> {L_NOTIFY_METHOD_EMAIL}</label>
			<label><input type="radio" class="radio" name="notifymethod" value="1"<!-- IF NOTIFY_IM --> id="notifymethod" checked="checked"<!-- ENDIF --><!-- IF S_JABBER_DISABLED --> disabled="disabled"<!-- ENDIF --> /> {L_NOTIFY_METHOD_IM}</label>
			<label><input type="radio" class="radio" name="notifymethod" value="2"<!-- IF NOTIFY_BOTH --> id="notifymethod" checked="checked"<!-- ENDIF --> /> {L_NOTIFY_METHOD_BOTH}</label></dd>
	</dl>
	<dl> 
		<dt><label for="notifypm">{L_NOTIFY_ON_PM}:</label></dt>
		<dd><label><input type="radio" class="radio" name="notifypm" value="1"<!-- IF NOTIFY_PM --> id="notifypm" checked="checked"<!-- ENDIF --> /> {L_YES}</label>
			<label><input type="radio" class="radio" name="notifypm" value="0"<!-- IF not NOTIFY_PM --> id="notifypm" checked="checked"<!-- ENDIF --> /> {L_NO}</label></dd>
	</dl>
	<dl> 
		<dt><label for="popuppm">{L_POPUP_ON_PM}:</label></dt>
		<dd><label><input type="radio" class="radio" name="popuppm" value="1"<!-- IF POPUP_PM --> id="popuppm" checked="checked"<!-- ENDIF --> /> {L_YES}</label>
			<label><input type="radio" class="radio" name="popuppm" value="0"<!-- IF not POPUP_PM --> id="popuppm" checked="checked"<!-- ENDIF --> /> {L_NO}</label></dd>
	</dl>
	<dl> 
		<dt><label for="lang">{L_BOARD_LANGUAGE}:</label></dt>
		<dd><select id="lang" name="lang">{S_LANG_OPTIONS}</select></dd>
	</dl>
	<dl> 
		<dt><label for="style">{L_BOARD_STYLE}:</label></dt>
		<dd><select id="style" name="style">{S_STYLE_OPTIONS}</select></dd>
	</dl>
	<dl> 
		<dt><label for="tz">{L_BOARD_TIMEZONE}:</label></dt>
		<dd><select id="tz" name="tz" style="width: 100%;">{S_TZ_OPTIONS}</select></dd>
	</dl>
	<dl> 
		<dt><label for="dst">{L_BOARD_DST}:</label></dt>
		<dd><label><input type="radio" class="radio" name="dst" value="1"<!-- IF DST --> id="dst" checked="checked"<!-- ENDIF --> /> {L_YES}</label>
			<label><input type="radio" class="radio" name="dst" value="0"<!-- IF not DST --> id="dst" checked="checked"<!-- ENDIF --> /> {L_NO}</label></dd>
	</dl>
	<dl> 
		<dt><label for="dateoptions">{L_BOARD_DATE_FORMAT}:</label><br /><span>{L_BOARD_DATE_FORMAT_EXPLAIN}</span></dt>
		<dd><select name="dateoptions" id="dateoptions" onchange="if(this.value=='custom'){dE('custom_date',1);}else{dE('custom_date',-1);} if (this.value == 'custom') { document.getElementById('dateformat').value = default_dateformat; } else { document.getElementById('dateformat').value = this.value; }">{S_DATEFORMAT_OPTIONS}</select></dd>
		<dd><div id="custom_date"<!-- IF not S_CUSTOM_DATEFORMAT --> style="display:none;"<!-- ENDIF -->><input type="text" name="dateformat" id="dateformat" value="{DATE_FORMAT}" maxlength="30" /></div></dd>
	</dl>
	</fieldset>

	<fieldset>
		<legend>{L_UCP_PREFS_POST}</legend>
	<dl> 
		<dt><label for="bbcode">{L_DEFAULT_BBCODE}:</label></dt>
		<dd><label><input type="radio" class="radio" name="bbcode" value="1"<!-- IF BBCODE --> id="bbcode" checked="checked"<!-- ENDIF --> /> {L_YES}</label>
			<label><input type="radio" class="radio" name="bbcode" value="0"<!-- IF not BBCODE --> id="bbcode" checked="checked"<!-- ENDIF --> /> {L_NO}</label></dd>
	</dl>
	<dl> 
		<dt><label for="smilies">{L_DEFAULT_SMILIES}:</label></dt>
		<dd><label><input type="radio" class="radio" name="smilies" value="1"<!-- IF SMILIES --> id="smilies" checked="checked"<!-- ENDIF --> /> {L_YES}</label>
			<label><input type="radio" class="radio" name="smilies" value="0"<!-- IF not SMILIES --> id="smilies" checked="checked"<!-- ENDIF --> /> {L_NO}</label></dd>
	</dl>
	<dl> 
		<dt><label for="sig">{L_DEFAULT_ADD_SIG}:</label></dt>
		<dd><label><input type="radio" class="radio" name="sig" value="1"<!-- IF ATTACH_SIG --> id="sig" checked="checked"<!-- ENDIF --> /> {L_YES}</label>
			<label><input type="radio" class="radio" name="sig" value="0"<!-- IF not ATTACH_SIG --> id="sig" checked="checked"<!-- ENDIF --> /> {L_NO}</label></dd>
	</dl>
	<dl> 
		<dt><label for="notify">{L_DEFAULT_NOTIFY}:</label></dt>
		<dd><label><input type="radio" class="radio" name="notify" value="1"<!-- IF NOTIFY --> id="notify" checked="checked"<!-- ENDIF --> /> {L_YES}</label>
			<label><input type="radio" class="radio" name="notify" value="0"<!-- IF not NOTIFY --> id="notify" checked="checked"<!-- ENDIF --> /> {L_NO}</label></dd>
	</dl>
	</fieldset>

	<fieldset>
		<legend>{L_UCP_PREFS_VIEW}</legend>
	<dl> 
		<dt><label for="view_images">{L_VIEW_IMAGES}:</label></dt>
		<dd><label><input type="radio" class="radio" name="view_images" value="1"<!-- IF VIEW_IMAGES --> id="view_images" checked="checked"<!-- ENDIF --> /> {L_YES}</label>
			<label><input type="radio" class="radio" name="view_images" value="0"<!-- IF not VIEW_IMAGES --> id="view_images" checked="checked"<!-- ENDIF --> /> {L_NO}</label></dd>
	</dl>
	<dl> 
		<dt><label for="view_flash">{L_VIEW_FLASH}:</label></dt>
		<dd><label><input type="radio" class="radio" name="view_flash" value="1"<!-- IF VIEW_FLASH --> id="view_flash" checked="checked"<!-- ENDIF --> /> {L_YES}</label>
			<label><input type="radio" class="radio" name="view_flash" value="0"<!-- IF not VIEW_FLASH --> id="view_flash" checked="checked"<!-- ENDIF --> /> {L_NO}</label></dd>
	</dl>
	<dl> 
		<dt><label for="view_smilies">{L_VIEW_SMILIES}:</label></dt>
		<dd><label><input type="radio" class="radio" name="view_smilies" value="1"<!-- IF VIEW_SMILIES --> id="view_smilies" checked="checked"<!-- ENDIF --> /> {L_YES}</label>
			<label><input type="radio" class="radio" name="view_smilies" value="0"<!-- IF not VIEW_SMILIES --> id="view_smilies" checked="checked"<!-- ENDIF --> /> {L_NO}</label></dd>
	</dl>
	<dl> 
		<dt><label for="view_sigs">{L_VIEW_SIGS}:</label></dt>
		<dd><label><input type="radio" class="radio" name="view_sigs" value="1"<!-- IF VIEW_SIGS --> id="view_sigs" checked="checked"<!-- ENDIF --> /> {L_YES}</label>
			<label><input type="radio" class="radio" name="view_sigs" value="0"<!-- IF not VIEW_SIGS --> id="view_sigss" checked="checked"<!-- ENDIF --> /> {L_NO}</label></dd>
	</dl>
	<dl> 
		<dt><label for="view_avatars">{L_VIEW_AVATARS}:</label></dt>
		<dd><label><input type="radio" class="radio" name="view_avatars" value="1"<!-- IF VIEW_AVATARS --> id="view_avatars" checked="checked"<!-- ENDIF --> /> {L_YES}</label>
			<label><input type="radio" class="radio" name="view_avatars" value="0"<!-- IF not VIEW_AVATARS --> id="view_avatars" checked="checked"<!-- ENDIF --> /> {L_NO}</label></dd>
	</dl>
	<dl> 
		<dt><label for="view_wordcensor">{L_DISABLE_CENSORS}:</label></dt>
		<dd><label><input type="radio" class="radio" name="view_wordcensor" value="1"<!-- IF VIEW_WORDCENSOR --> id="view_wordcensor" checked="checked"<!-- ENDIF --> /> {L_YES}</label>
			<label><input type="radio" class="radio" name="view_wordcensor" value="0"<!-- IF not VIEW_WORDCENSOR --> id="view_wordcensor" checked="checked"<!-- ENDIF --> /> {L_NO}</label></dd>
	</dl>
	<dl> 
		<dt><label>{L_VIEW_TOPICS_DAYS}:</label></dt>
		<dd>{S_TOPIC_SORT_DAYS}</dd>
	</dl>
	<dl> 
		<dt><label>{L_VIEW_TOPICS_KEY}:</label></dt>
		<dd>{S_TOPIC_SORT_KEY}</dd>
	</dl>
	<dl> 
		<dt><label>{L_VIEW_TOPICS_DIR}:</label></dt>
		<dd>{S_TOPIC_SORT_DIR}</dd>
	</dl>
	<dl> 
		<dt><label>{L_VIEW_POSTS_DAYS}:</label></dt>
		<dd>{S_POST_SORT_DAYS}</dd>
	</dl>
	<dl> 
		<dt><label>{L_VIEW_POSTS_KEY}:</label></dt>
		<dd>{S_POST_SORT_KEY}</dd>
	</dl>
	<dl> 
		<dt><label>{L_VIEW_POSTS_DIR}:</label></dt>
		<dd>{S_POST_SORT_DIR}</dd>
	</dl>
	</fieldset>

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

	</form>
In that case, you could stick the couple of lines this mod adds after any </fieldset>

robert668
Registered User
Posts: 6
Joined: Fri May 30, 2008 1:46 am

Re: Board watch

Post by robert668 » Thu Dec 17, 2009 8:55 pm

I used TextEdit on my mac to cut/paste the code... that's all that was there. Can I cut/paste the clean one you posted and replace my bad file? I didn't have any other mods on my board... it was a clean board with only the logo changed from the standard phpbb logo. The only thing I did before attempting this install was upgrade to phpbb 3.0.6. and the board seemed to work fine after that.

I've about reached the limit of my very limited skills, though. I can't log in to my board, and I don't know what else to do on the backside to resurrect it. I hate the idea of having to start from scratch! :shock:

Thanks for posting the clean code... I'll cut/paste it and see what happens.
Last edited by robert668 on Sat Dec 19, 2009 4:07 am, edited 1 time in total.

asinshesq
Registered User
Posts: 6266
Joined: Sun Feb 22, 2004 9:34 pm
Location: NYC
Name: Alan

Re: Board watch

Post by asinshesq » Thu Dec 17, 2009 9:08 pm

A bad acp_user_prefs file won't stop your forum from working, so you've got other problems.

Textedit is fine. Not sure how your files got messed up.

Since I gather you have no mods you need to be careful about, the easiest thing to do would be to start from scratch by copying over to your root - from a clean set of phpbb3.0.6 files - everything other than the install folder and the contrib.php file. That will give you a fresh start. And don't worry - all of your data (posts, stetttings, etc,) will still be there (becuase that stuff is stored in teh db which has nothing to do with your files).

When everything is working again and you are ready to install this mod, you are better off using automod to automatically install it. That will save you time and it doesn't make the same stupid mistakes that we humans make ;)

Once you reach the post limit here so we can move to pm, let's do that since this back and forth will have nothing to do with this mod,

robert668
Registered User
Posts: 6
Joined: Fri May 30, 2008 1:46 am

Re: Board watch

Post by robert668 » Thu Dec 17, 2009 9:15 pm

Thank you - I appreciate your help and advice. I'll get a clean board installed (I was trying to figure out how to do that - thanks for the instructions!) and try automod like you said. This post puts me over the minimum, so I'll pm you from here.

User avatar
WizardOfZo
Registered User
Posts: 14
Joined: Wed Oct 08, 2008 5:12 pm

Re: Board watch

Post by WizardOfZo » Sun Dec 20, 2009 2:17 pm

I believe I have everything installed properly,
I am not sure if this error is a problem but after installing this mod in phpBB3.0.6 and when I go to my
"User Control Panel/Board Preferences/Edit Post Notification Options "
I get this code error reported by Firebug:

Code: Select all

e is null
customDates()ucp.php?...oardwatch (line 266)
ucp.php?i=boardwatch&mode=boardwatch()ucp.php?...oardwatch (line 289)
[Break on this error] e.selectedIndex = e.length - 1;\nucp.php?...oardwatch (line 266
The code error is actually geerated in ucp_boardwatch.html on line 63

Code: Select all

		function customDates()
	{
		var e = document.getElementById('dateoptions');

		e.selectedIndex = e.length - 1;

		// Loop and match date_format in menu
		for (var i = 0; i < e.length; i++)
		{
			if (e.options[i].value == date_format)
			{
				e.selectedIndex = i;
				break;
			}
		}

		// Show/hide custom field
		if (e.selectedIndex == e.length - 1)
		{
			dE('custom_date',1);
		}
		else
		{
			dE('custom_date',-1);
		}
	}

	customDates();

If you don't use firebug, you can see the error in Firefox Error Console
Any idea what is going on?

asinshesq
Registered User
Posts: 6266
Joined: Sun Feb 22, 2004 9:34 pm
Location: NYC
Name: Alan

Re: Board watch

Post by asinshesq » Sun Dec 20, 2009 2:53 pm

WizardOfZo wrote:...I am not sure if this error is a problem but after installing this mod in phpBB3.0.6 and when I go to my "User Control Panel/Board Preferences/Edit Post Notification Options "
I get this code error reported by Firebug...
Never noticed that before (since the error doesn't show up on the screen). But you can fix it by deleting the following code in ucp_boardwatch.html:

Code: Select all

<script type="text/javascript">
// <![CDATA[
	var date_format = '{A_DATE_FORMAT}';
	var default_dateformat = '{A_DEFAULT_DATEFORMAT}';

	function customDates()
	{
		var e = document.getElementById('dateoptions');

		e.selectedIndex = e.length - 1;

		// Loop and match date_format in menu
		for (var i = 0; i < e.length; i++)
		{
			if (e.options[i].value == date_format)
			{
				e.selectedIndex = i;
				break;
			}
		}

		// Show/hide custom field
		if (e.selectedIndex == e.length - 1)
		{
			dE('custom_date',1);
		}
		else
		{
			dE('custom_date',-1);
		}
	}

	customDates();
// ]]>
</script>
That code is a holdover from the ucp_prefs_personal.html file (on which I patterned ucp_boardwatch.html) and is not needed for this mod. Thanks for pointing this out.

User avatar
WizardOfZo
Registered User
Posts: 14
Joined: Wed Oct 08, 2008 5:12 pm

Re: Board watch

Post by WizardOfZo » Sun Dec 20, 2009 5:24 pm

Thanks, that did it!
This is a very good mod, and will work great for our board.
Only thing that would improve it for my users is somehow
adding a snip-it of the post text to give the user an idea of what the last entry was.

asinshesq
Registered User
Posts: 6266
Joined: Sun Feb 22, 2004 9:34 pm
Location: NYC
Name: Alan

Re: Board watch

Post by asinshesq » Mon Dec 21, 2009 2:28 pm

WizardOfZo wrote:...Only thing that would improve it for my users is somehow
adding a snip-it of the post text to give the user an idea of what the last entry was.
see http://www.phpbb.com/community/viewtopi ... 5#p9334935 ;)

Locked

Return to “[3.0.x] MOD Database Releases”