phpBB Smartfeed

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.
User avatar
MarkDHamill
Registered User
Posts: 4933
Joined: Fri Aug 02, 2002 12:36 am
Location: Florence, MA USA

Re: phpBB Smartfeed

Post by MarkDHamill »

Okay, I just retested and had no problems. I installed phpBB 3.0.6 from scratch, then installed Automod, then installed 2.2.16 using AutoMod. All OK. There is a manual step where you have to add the ACP interface using the ACP. It's all in the install.xml file.

Did you make the database changes and/or make file changes manually? If you didn't issue the SQL that should cause errors. It's easy to make mistakes with file changes if doing them manually, so recheck to make sure they were done correctly.

This could also be a conflict with another mod.

If you did the SQL, look at your file changes for any programs that touch the ACP. The problem is likely there.
Need phpBB services or a phpBB consultant? I offer most phpBB services. Getting lost managing phpBB? Buy my book, Mastering phpBB Administration. Covers through phpBB 3.3.7. eBook and paper versions available.
powermgt
Registered User
Posts: 7
Joined: Mon Dec 07, 2009 8:03 pm

Re: phpBB Smartfeed - Follow up

Post by powermgt »

Mark

Just following up to see if you discovered anything yet relative to my inability to enter the Administrative Control Panel after the installation of Mod 2.2.16.

Thank you

Michael Barbarita
powermgt
Registered User
Posts: 7
Joined: Mon Dec 07, 2009 8:03 pm

Re: phpBB Smartfeed MY Error

Post by powermgt »

I am sorry Mark I did not see your post. I will try what you suggested.

Michael Barbarita
powermgt
Registered User
Posts: 7
Joined: Mon Dec 07, 2009 8:03 pm

Re: phpBB Smartfeed

Post by powermgt »

Mark

You stated:

There is a manual step where you have to add the ACP interface using the ACP. It's all in the install.xml file.

I cannot find that step unless you are referring to the step which states:

To complete installation, you also need to install a module so that Smartfeed settings can be adjusted in the Administrative Control Panel.

Mark, if you are referring to the above statement as the addition of the ACP interface, I think I need to be able to access the ACP in order to get to adding that interface, right? Remember, accessing the ACP is my problem. If you are not referring to the above statement relative to adding the ACP interface could you point out where that is in the install.xml file, because I don't think I added any ACP interface.

You asked:

Did you make the database changes and/or make file changes manually? If you didn't issue the SQL that should cause errors. It's easy to make mistakes with file changes if doing them manually, so recheck to make sure they were done correctly.

Relative to the database I did issue the sql and did not do it manually. However, do you know what database/sql entries touch the ACP because I cannot directly find them.

You stated:

This could also be a conflict with another mod.

I do not have another mod installed.

Let me know your thoughts

Thank you

Michael Barbarita
User avatar
MarkDHamill
Registered User
Posts: 4933
Joined: Fri Aug 02, 2002 12:36 am
Location: Florence, MA USA

Re: phpBB Smartfeed

Post by MarkDHamill »

As I stated, the most likely cause for not getting into the ACP is that you incorrectly applied a file change to a program that the ACP uses. These are the obvious candidates as they introduce changes Smartfeed makes to these programs. Simply check the code changes in install.xml to see if they were done correctly.:

includes/functions.php,
includes/acp/acp_board.php,
includes/acp/info/acp_board.php,
language/en/acp/board.php,
language/en/acp/common.php

If after double checking these you are certain they were applied correctly, you could recopy all the phpBB files (except the install directory and config.php file) to your server. This might clear up your problem getting into the ACP. Of course this would overwrite any Smartfeed file changes, other mods you may have installed, as well as any customizations such as templating tweaks.

The SQL changes for Smartfeed are modest and should not cause any impacts. They add configuration variables and columns to the phpbb_users table. Here they are:

Code: Select all

ALTER TABLE phpbb_users ADD user_smartfeed_key varchar(32) default NULL;
INSERT INTO phpbb_config (config_name, config_value) VALUES ('sf_all_by_default', true);
INSERT INTO phpbb_config (config_name, config_value) VALUES ('sf_apache_htaccess_enabled', false);
INSERT INTO phpbb_config (config_name, config_value) VALUES ('sf_atom_10_value', 'ATOM1.0');
INSERT INTO phpbb_config (config_name, config_value) VALUES ('sf_auto_advertise_public_feed', true);
INSERT INTO phpbb_config (config_name, config_value) VALUES ('sf_default_fetch_time_limit', (30 * 24));
INSERT INTO phpbb_config (config_name, config_value) VALUES ('sf_feed_image_path', 'imageset/site_logo.gif');
INSERT INTO phpbb_config (config_name, config_value) VALUES ('sf_max_items', 0);
INSERT INTO phpbb_config (config_name, config_value) VALUES ('sf_max_size', 0);
INSERT INTO phpbb_config (config_name, config_value) VALUES ('sf_new_post_notifications_only', 0);
INSERT INTO phpbb_config (config_name, config_value) VALUES ('sf_privacy_mode', true);
INSERT INTO phpbb_config (config_name, config_value) VALUES ('sf_public_feed_url_suffix_atom', 'feed_type=ATOM1.0&limit=%s&sort_by=%s&feed_style=%s&amp');
INSERT INTO phpbb_config (config_name, config_value) VALUES ('sf_public_feed_url_suffix_rss', 'feed_type=RSS2.0&limit=%s&sort_by=%s&feed_style=%s&amp');
INSERT INTO phpbb_config (config_name, config_value) VALUES ('sf_require_ip_authentication', false);
INSERT INTO phpbb_config (config_name, config_value) VALUES ('sf_rfc1766_lang', 'en-GB');
INSERT INTO phpbb_config (config_name, config_value) VALUES ('sf_rss_10_value', 'RSS1.0');
INSERT INTO phpbb_config (config_name, config_value) VALUES ('sf_rss_20_value', 'RSS2.0');
INSERT INTO phpbb_config (config_name, config_value) VALUES ('sf_show_sessions', false);
INSERT INTO phpbb_config (config_name, config_value) VALUES ('sf_show_username_in_first_topic_post', true);
INSERT INTO phpbb_config (config_name, config_value) VALUES ('sf_show_username_in_replies', true);
INSERT INTO phpbb_config (config_name, config_value) VALUES ('sf_smartfeed_host', 'phpbbservices.com');
INSERT INTO phpbb_config (config_name, config_value) VALUES ('sf_smartfeed_page_url', 'http://phpbbservices.com/smartfeed/');
INSERT INTO phpbb_config (config_name, config_value) VALUES ('sf_smartfeed_title', 'phpBB Smartfeed');
INSERT INTO phpbb_config (config_name, config_value) VALUES ('sf_smartfeed_title_short', 'Smartfeed');
INSERT INTO phpbb_config (config_name, config_value) VALUES ('sf_suppress_forum_names', false);
INSERT INTO phpbb_config (config_name, config_value) VALUES ('sf_ttl', '60');
INSERT INTO phpbb_config (config_name, config_value) VALUES ('sf_version', '2.2.16');
INSERT INTO phpbb_config (config_name, config_value) VALUES ('sf_webmaster','')
Need phpBB services or a phpBB consultant? I offer most phpBB services. Getting lost managing phpBB? Buy my book, Mastering phpBB Administration. Covers through phpBB 3.3.7. eBook and paper versions available.
powermgt
Registered User
Posts: 7
Joined: Mon Dec 07, 2009 8:03 pm

Re: phpBB Smartfeed

Post by powermgt »

Mark

In addition when I click on the moderator control panel that too is blank. Just wondering if you have any different theories knowing the MCP cannot be accessed either.

The User Control Panel is accessible.

Thank you

Michael Barbarita
powermgt
Registered User
Posts: 7
Joined: Mon Dec 07, 2009 8:03 pm

Re: phpBB Smartfeed

Post by powermgt »

Here is a question Mark.

When I go into some of these files to edit, (for example Function.php) sometimes there is an empty line right after the "code to find". When the instructions tell me to insert the new code in a new line after the "Code to Find", I have been putting the new code in that empty line. Should I have created an additional new line leaving the empty line there?

Michael Barbarita
User avatar
MarkDHamill
Registered User
Posts: 4933
Joined: Fri Aug 02, 2002 12:36 am
Location: Florence, MA USA

Re: phpBB Smartfeed

Post by MarkDHamill »

Blanks lines don't matter as far as PHP is concerned.

I think the Moderator Control Panel does not share code with the UCP or ACP, however there are certain include files used by everything, like /includes/functions.php.
Need phpBB services or a phpBB consultant? I offer most phpBB services. Getting lost managing phpBB? Buy my book, Mastering phpBB Administration. Covers through phpBB 3.3.7. eBook and paper versions available.
powermgt
Registered User
Posts: 7
Joined: Mon Dec 07, 2009 8:03 pm

Re: phpBB Smartfeed

Post by powermgt »

Mark

Thank you for your responses to all of these questions. Here is another one.

on the last function.php edit you mention that the following code should be around line 3488:

'S_AUTOLOGIN_ENABLED' => ($config['allow_autologin']) ? true : false,

In my file after I put in all of the preceding edits this code is on line 4140. Before I put the preceding edits in it is in line 4120.

What made you identify the line number in this particular edit? Are the line numbers in my file so far off that it would be questionable in your view?

Michael Barbarita
User avatar
MarkDHamill
Registered User
Posts: 4933
Joined: Fri Aug 02, 2002 12:36 am
Location: Florence, MA USA

Re: phpBB Smartfeed

Post by MarkDHamill »

It's probably because 3.0.6 added a lot of code to the function and I have not bothered to check the current line number and update the instructions.
Need phpBB services or a phpBB consultant? I offer most phpBB services. Getting lost managing phpBB? Buy my book, Mastering phpBB Administration. Covers through phpBB 3.3.7. eBook and paper versions available.
User avatar
gs2088c
Registered User
Posts: 243
Joined: Thu Dec 03, 2009 7:09 pm

Re: phpBB Smartfeed

Post by gs2088c »

I would like to make a suggestion for enhancement. Would you consider allowing the board Admins to require certain forums to be included mandantorily in the feed? For instance, one board I'm manage has a "board guidelines" forum, and if the guidelines are changed, then the feed can send the changes down to the user. This is just an example.
Mainframe Computer Operations (8 years)
Mainframe Technical Support (5 years)
Tandem System Admin (8 years)
Tandem DBA (15 years)
What is the one real database? Tandem Non-Stop :mrgreen:
User avatar
MarkDHamill
Registered User
Posts: 4933
Joined: Fri Aug 02, 2002 12:36 am
Location: Florence, MA USA

Re: phpBB Smartfeed

Post by MarkDHamill »

Thanks for the suggestion. It could be done. There are two approaches: the simple and the hard way.

The simple way is in the ACP interface to allow a field where the forum_ids you always want included as listed as comma delimited. The hard way is to add an interface where you pick the forums, or figure out a way to add a new forum permission and integrate that into the ACP forum management area.

Please note that global announcements always appear, at least if they match the specified date range.
Need phpBB services or a phpBB consultant? I offer most phpBB services. Getting lost managing phpBB? Buy my book, Mastering phpBB Administration. Covers through phpBB 3.3.7. eBook and paper versions available.
User avatar
MarkDHamill
Registered User
Posts: 4933
Joined: Fri Aug 02, 2002 12:36 am
Location: Florence, MA USA

Re: phpBB Smartfeed

Post by MarkDHamill »

gs2088c wrote:I would like to make a suggestion for enhancement. Would you consider allowing the board Admins to require certain forums to be included mandantorily in the feed? For instance, one board I'm manage has a "board guidelines" forum, and if the guidelines are changed, then the feed can send the changes down to the user. This is just an example.
I have been working on this. You can demo it here by going to the Smartfeed link:

http://phpbbservices.com/phpBB3-dev

The ACP interface is simple. You type a comma delimited list of forum_ids that always must be included. You can also do the same with an forums that should always be excluded.

I don't know how you feel about using strikethrough for those forums that are always excluded (to distinguish them) and bold for those that are always included.

Should be able to package this up soon, along with a bug fix or two and UMIL integration.
Need phpBB services or a phpBB consultant? I offer most phpBB services. Getting lost managing phpBB? Buy my book, Mastering phpBB Administration. Covers through phpBB 3.3.7. eBook and paper versions available.
User avatar
gs2088c
Registered User
Posts: 243
Joined: Thu Dec 03, 2009 7:09 pm

Re: phpBB Smartfeed

Post by gs2088c »

It looks good. I have two comments:
  1. When you click the "All" on the demo, and cleared the checkmark, it didn't clear the ones that wasn't mandantory. It would be nice if that would also work, instead of having to do them one at a time (the same with selecting/unselecting them, if you click ALL.
  2. Personally, I like the way that you handled the selection of the mandantory forums.
Just wondering. I have 2.2.15; is the change going to be hard, or relatively easy.
Mainframe Computer Operations (8 years)
Mainframe Technical Support (5 years)
Tandem System Admin (8 years)
Tandem DBA (15 years)
What is the one real database? Tandem Non-Stop :mrgreen:
User avatar
MarkDHamill
Registered User
Posts: 4933
Joined: Fri Aug 02, 2002 12:36 am
Location: Florence, MA USA

Re: phpBB Smartfeed

Post by MarkDHamill »

I don't see what you are seeing. If you uncheck ALL the required forums should not be unchecked as they are always required. The excluded forums are never checked because they are never included. So "All" in this case means all forums for which I can read and which are neither required nor excluded.

This should be a medium change, nothing major but something bigger than minor. Some file changes will be needed.
Need phpBB services or a phpBB consultant? I offer most phpBB services. Getting lost managing phpBB? Buy my book, Mastering phpBB Administration. Covers through phpBB 3.3.7. eBook and paper versions available.

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