[ABD] phpBB3 Knowledge Base

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.
User avatar
tbackoff
Former Team Member
Posts: 7068
Joined: Thu Jun 04, 2009 1:41 am
Location: cheerleading practice
Name: Tabitha Backoff

[ABD] phpBB3 Knowledge Base

Post by tbackoff »

Modification Name: phpBB3 Knowledge Base
Author: t_backoff

Modification Description: A Knowledge Base MOD for phpBB3.
Modification Version: [removed]

Requirements: PHP5

Features:
  • Multiple categories
  • Support for BBCode and smilies
  • Approve, Disapprove, Deny, Edit, and Delete functions
Screenshots:
[removed]

Demo URL: [removed]
Demo Username: n/a
Demo Password: n/a

Modification Download: [removed]
Flying is the second best thrill to cheerleaders; being caught is the first.
User avatar
canonknipser
Registered User
Posts: 2096
Joined: Thu Sep 08, 2011 4:16 am
Location: Germany
Name: Frank Jakobs

Re: [DEV] phpBB3 Knowledge Base

Post by canonknipser »

Great idea :top:
For this:
t_backoff wrote:Support for BBCode and smilies
do you use the existing routines of phpBB3?

If yes, why not use the builtin attachments functions for
t_backoff wrote:SIDE NOTE: I'd love to add attachments to this MOD, but that's above my head.
Just use the existing attachments table, add an extra column (kb_article_id or similar) and use it instead of post_msg_id / topic_id to bind the attachments to your article. Maybe you can also use the existing columns post_msg_id (for your article number) and in_message (use a new value, 0 means "attached to topic/post", 1 means "attached to privat message"), but this can have impact on other phpBB-routines.
Description of the table: https://wiki.phpbb.com/Table.phpbb_attachments
Search Code for ATTACHMENTS_TABLE, its only a few times used ;)
Greetings, Frank
phpbb.de support team member
English is not my native language - no support via PM or mail
New arrival - Extensions and scripts for phpBB
User avatar
tbackoff
Former Team Member
Posts: 7068
Joined: Thu Jun 04, 2009 1:41 am
Location: cheerleading practice
Name: Tabitha Backoff

Re: [DEV] phpBB3 Knowledge Base

Post by tbackoff »

canonknipser wrote:
t_backoff wrote:Support for BBCode and smilies
do you use the existing routines of phpBB3?
I'm not sur what you mean by routines. The MOD currently adds two tables to the database (categories and topics). The topics table includes bitfield, uid, and options columns. I then use the generate_text_for_storage, generate_text_for_display, and decode_message functions for BBCode and smilie funtionality. My problem with attachments is just as you pointed out:
canonknipser wrote:but this can have impact on other phpBB-routines
I would much rather create a new attachments table for the MOD and then rewrite (or write new) code to make it work with only with the MOD, and not interfere with phpBB3 attachments at all. That was the reason for my request of someone writing the attachments section.
Flying is the second best thrill to cheerleaders; being caught is the first.
User avatar
canonknipser
Registered User
Posts: 2096
Joined: Thu Sep 08, 2011 4:16 am
Location: Germany
Name: Frank Jakobs

Re: [DEV] phpBB3 Knowledge Base

Post by canonknipser »

t_backoff wrote:I would much rather create a new attachments table for the MOD and then rewrite (or write new) code to make it work with only with the MOD, and not interfere with phpBB3 attachments at all.
As far as i can remember, most of attachment work is done in function parse_attachments in includes/message_parser.php, upload_attachment in functions_posting.php and delete_attachment in includes/ functions_admin-php. You will also need a new directory for storing files. Have you planned an acp-section?

Maybe i can help you re-writing the code (busy in job and homework, but i try to find a little time ;))
Greetings, Frank
phpbb.de support team member
English is not my native language - no support via PM or mail
New arrival - Extensions and scripts for phpBB
User avatar
tbackoff
Former Team Member
Posts: 7068
Joined: Thu Jun 04, 2009 1:41 am
Location: cheerleading practice
Name: Tabitha Backoff

Re: [DEV] phpBB3 Knowledge Base

Post by tbackoff »

Yeah, the ACP section is already coded and working (it's literally one section - adding and deleting categories :D ). As for a new directory, I was thinking /files/kb/ and storing them in there.
Flying is the second best thrill to cheerleaders; being caught is the first.
User avatar
canonknipser
Registered User
Posts: 2096
Joined: Thu Sep 08, 2011 4:16 am
Location: Germany
Name: Frank Jakobs

Re: [DEV] phpBB3 Knowledge Base

Post by canonknipser »

t_backoff wrote:Yeah, the ACP section is already coded and working (it's literally one section - adding and deleting categories :D ). As for a new directory, I was thinking /files/kb/ and storing them in there.
Yes, a subdirectory of files (should be referenced via $config['upload_path']) makes it much easier because it already has the correct chmod settings. For new ACP section, a few setting should be made specially for attachments handled by this mod (filesize, image-dimensions, etc.) to keep it independent from normal board settings, maybe this can be mostly copied from current ACP section.

The file handling for attachments is nearly completely done in includes/functions_upload.php, so nothing has to be rewritten and can be used by including that file. I'll check it in the next days ...
Greetings, Frank
phpbb.de support team member
English is not my native language - no support via PM or mail
New arrival - Extensions and scripts for phpBB
User avatar
victory1
Registered User
Posts: 935
Joined: Sun Oct 10, 2010 6:47 pm

Re: [DEV] phpBB3 Knowledge Base

Post by victory1 »

I have one of the abandon KBs on my board. I had to research and fix a couple of bugs and of course added a few things to it with the help of this board. It's located here
Here are my questions:
1) Will we be able to add main and sub-categories under the main categories?
2) How will the admin and moderator know if something is pending? (I actually had to add that myself using the moderator needed mod.)
User avatar
tbackoff
Former Team Member
Posts: 7068
Joined: Thu Jun 04, 2009 1:41 am
Location: cheerleading practice
Name: Tabitha Backoff

Re: [DEV] phpBB3 Knowledge Base

Post by tbackoff »

victory1 wrote:1) Will we be able to add main and sub-categories under the main categories?
No, the layout is similar to the knowledge base here at phpbb.com
victory1 wrote:2) How will the admin and moderator know if something is pending? (I actually had to add that myself using the moderator needed mod.)
This is interesting. Right now, you have to physically go to the knowledge base and click the disapproved topics link. I'll have to think about how I want to do this. Thanks for pointing it out.
Flying is the second best thrill to cheerleaders; being caught is the first.
User avatar
Kamahl19
Registered User
Posts: 1598
Joined: Tue Nov 06, 2007 3:33 pm
Location: Slovakia
Name: Martin

Re: [DEV] phpBB3 Knowledge Base

Post by Kamahl19 »

Hi,

I appreciate you are working on this MOD however I want to ask you, is it different from this viewtopic.php?f=70&t=2146085 ? Have you tried my Blog / KB before you started writing your own? Maybe you could spare some time and just ask me to add or modify something according your needs.
User avatar
tbackoff
Former Team Member
Posts: 7068
Joined: Thu Jun 04, 2009 1:41 am
Location: cheerleading practice
Name: Tabitha Backoff

Re: [DEV] phpBB3 Knowledge Base

Post by tbackoff »

Yes, I tried yours. I looked at the code and it was vastly different from how I plan on implimenting this MOD. Plus I didn't need the comments code.

Like I said, if there is no interest because there are 2 MODs already in development then that's fine. :D
Flying is the second best thrill to cheerleaders; being caught is the first.
User avatar
victory1
Registered User
Posts: 935
Joined: Sun Oct 10, 2010 6:47 pm

Re: [DEV] phpBB3 Knowledge Base

Post by victory1 »

t_backoff, if you complete this project, it will be the only active KB since we have a few blog mods but no actual KBs. By the way, I do like the KB phpbb.com is using. I

I also looked into Kamahl19's mod before having to decide to install an abandon mod since really there's no working KB for phpBB. The mod is really a blog and does not operate how a KB should; at least in my opinion. I installed it on my test board to see if I could use it as KB before coming to that conclusion. A blog and a KB are just 2 different things.
Ather
Registered User
Posts: 1032
Joined: Fri May 08, 2009 9:42 am
Location: Kingdom of Bahrain
Name: Ather Akber

Re: [DEV] phpBB3 Knowledge Base

Post by Ather »

probably a long shot, but maybe the admin/mod can have a check box when making a new topic called "Post as KB" , and then it could come up as a new KB on the KB Pag, i once did something like this for a client, the admin/mod will be presented with a check box called Show on custom page, once marked, it will show up on the custom page (called News)..good luck with the mod, looking forward to it
CPL Syed Ather Akbar
Regional Command Southwest
Camp Leatherneck, Afghanistan

My Mods/Snippets
User avatar
tbackoff
Former Team Member
Posts: 7068
Joined: Thu Jun 04, 2009 1:41 am
Location: cheerleading practice
Name: Tabitha Backoff

Re: [DEV] phpBB3 Knowledge Base

Post by tbackoff »

Screenshots added.
Flying is the second best thrill to cheerleaders; being caught is the first.
wbxpress
Registered User
Posts: 150
Joined: Wed Mar 21, 2012 1:29 pm

Re: [DEV] phpBB3 Knowledge Base

Post by wbxpress »

What's the difference between this MOD, "Topic Tagging MOD" and "User Blog MOD". I really need this functionality. Please provide a demo link at the earliest. Thanks. :)
User avatar
nextgen
Registered User
Posts: 2395
Joined: Mon Jul 26, 2010 10:58 pm
Location: Guatemala
Name: Melvin García

Re: [DEV] phpBB3 Knowledge Base

Post by nextgen »

Excellent work t_backoff
メルビン・ガルシア • nextgen Solutions

Please do NOT contact for support via PM or email.

Return to “[3.0.x] Abandoned MODs”