[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.
Locked
Peter77sx
Registered User
Posts: 3260
Joined: Wed Nov 09, 2005 2:51 pm

Re: [RC] PhpBB3 Knowledge Base

Post by Peter77sx »

Great! the update went very well. Thanks for adding subsilver2 :)




---

resolved. Woops, nevermind. I confused my own edits with the mod.
User avatar
urednik
Registered User
Posts: 105
Joined: Tue Jan 30, 2007 12:13 pm

Re: [RC] PhpBB3 Knowledge Base

Post by urednik »

Imladris wrote:PhpBB3 KB Mod 1.0.2 has been released
Version 1.0.2 of the mod has been released, and is available for download here.
Is search supported also ?
Imladris
Registered User
Posts: 190
Joined: Sat Oct 22, 2005 2:53 pm
Location: Copenhagen, Denmark
Name: Andreas Nexmann
Contact:

Re: [RC] PhpBB3 Knowledge Base

Post by Imladris »

IMPORTANT PLEASE READ
If you downloaded the files before this post there is a bug in it, causing a PHP notice to appear when posting a new article. To fix it do the following:
Open: includes/kb.php
Find:

Code: Select all

$data['edit_type'] = check_edit_type($data, $edit_data, $update_message); 
Replace with:

Code: Select all

$data['edit_type'] = ($this->mode == 'edit') ? check_edit_type($data, $edit_data, $update_message) : array(); 
Best regards,
Andreas Nexmann aka. Imladris, Danish Phpbb Forum admin.
Imladris
Registered User
Posts: 190
Joined: Sat Oct 22, 2005 2:53 pm
Location: Copenhagen, Denmark
Name: Andreas Nexmann
Contact:

Re: [RC] PhpBB3 Knowledge Base

Post by Imladris »

urednik wrote:
Imladris wrote:PhpBB3 KB Mod 1.0.2 has been released
Version 1.0.2 of the mod has been released, and is available for download here.
Is search supported also ?
Yes you can search the kb. :)
Best regards,
Andreas Nexmann aka. Imladris, Danish Phpbb Forum admin.
User avatar
irakly
Registered User
Posts: 16
Joined: Sat Jan 16, 2010 3:17 pm

Re: [RC] PhpBB3 Knowledge Base

Post by irakly »

Imladris wrote:IMPORTANT PLEASE READ
If you downloaded the files before this post there is a bug in it, causing a PHP notice to appear when posting a new article. To fix it do the following:
Open: includes/kb.php
Find:

Code: Select all

$data['edit_type'] = check_edit_type($data, $edit_data, $update_message); 
Replace with:

Code: Select all

$data['edit_type'] = ($this->mode == 'edit') ? check_edit_type($data, $edit_data, $update_message) : array(); 
I replace it, but i have errors:

Code: Select all

[phpBB Debug] PHP Notice: in file /includes/kb.php on line 2016: Undefined variable: data
[phpBB Debug] PHP Notice: in file /includes/functions_kb.php on line 621: Undefined variable: old_data
User avatar
irakly
Registered User
Posts: 16
Joined: Sat Jan 16, 2010 3:17 pm

Re: [RC] PhpBB3 Knowledge Base

Post by irakly »

Imladris, thank you for nice mod(for subsilver2 especially).
may be you can help me with theese bugs:

Code: Select all

Warning: Cannot modify header information - headers already sent by (output started at /home/..../forum/includes/functions.php:3510) in /home/...../forum/includes/functions.php  on line 4455

Warning: Cannot modify header information - headers already sent by (output started at /home/....../forum/includes/functions.php:3510) in /home/....../forum/includes/functions.php on line 4457

Warning: Cannot modify header information - headers already sent by (output started at /home/...../forum/includes/functions.php:3510) in /home/......./forum/includes/functions.php on line 4458

Warning: Cannot modify header information - headers already sent by (output started at /home/....../forum/includes/functions.php:3510) in /home/......./forum/includes/functions.php on line 4459
lines in function.php

Code: Select all

// application/xhtml+xml not used because of IE
4455   header('Content-type: text/html; charset=UTF-8');
4457   header('Cache-Control: private, no-cache="set-cookie"');
4458   header('Expires: 0');
4459   header('Pragma: no-cache');
User avatar
urednik
Registered User
Posts: 105
Joined: Tue Jan 30, 2007 12:13 pm

Re: [RC] PhpBB3 Knowledge Base

Post by urednik »

Imladris wrote:
urednik wrote:
Imladris wrote:PhpBB3 KB Mod 1.0.2 has been released
Version 1.0.2 of the mod has been released, and is available for download here.
Is search supported also ?
Yes you can search the kb. :)
But not with the some search engine as for searching forum.
Is it possible to combine both search engines into one ?
User avatar
irakly
Registered User
Posts: 16
Joined: Sat Jan 16, 2010 3:17 pm

Re: [RC] PhpBB3 Knowledge Base

Post by irakly »

When i clicked on "Remove rating" i got error"

Code: Select all

SQL ERROR [ mysqli ]

Out of range value adjusted for column 'article_votes' at row 1 [1264]

SQL

UPDATE phpbb_articles SET article_votes = article_votes - 1 WHERE article_id = 4

BACKTRACE


FILE: includes/db/mysqli.php
LINE: 163
CALL: dbal->sql_error()

FILE: includes/kb.php
LINE: 3138
CALL: dbal_mysqli->sql_query()

FILE: includes/kb.php
LINE: 115
CALL: knowledge_base->article_rate()

FILE: kb.php
LINE: 80
CALL: knowledge_base->knowledge_base()
Imladris
Registered User
Posts: 190
Joined: Sat Oct 22, 2005 2:53 pm
Location: Copenhagen, Denmark
Name: Andreas Nexmann
Contact:

Re: [RC] PhpBB3 Knowledge Base

Post by Imladris »

irakly wrote:When i clicked on "Remove rating" i got error"

Code: Select all

SQL ERROR [ mysqli ]

Out of range value adjusted for column 'article_votes' at row 1 [1264]

SQL

UPDATE phpbb_articles SET article_votes = article_votes - 1 WHERE article_id = 4

BACKTRACE


FILE: includes/db/mysqli.php
LINE: 163
CALL: dbal->sql_error()

FILE: includes/kb.php
LINE: 3138
CALL: dbal_mysqli->sql_query()

FILE: includes/kb.php
LINE: 115
CALL: knowledge_base->article_rate()

FILE: kb.php
LINE: 80
CALL: knowledge_base->knowledge_base()
That button shouldn't show unless you have rated the article... so either the button is showing wrongly, or your db didn't update the article_votes count when you rated... did you get any errors while rating? Or is it an old rating you are trying to remove? (Rated before update)
Best regards,
Andreas Nexmann aka. Imladris, Danish Phpbb Forum admin.
Imladris
Registered User
Posts: 190
Joined: Sat Oct 22, 2005 2:53 pm
Location: Copenhagen, Denmark
Name: Andreas Nexmann
Contact:

Re: [RC] PhpBB3 Knowledge Base

Post by Imladris »

ANOTHER TINY FIX
Yes I've been a fool when I created these packages, or at least when I tested them, apparently DEBUG was turned off, anyhow, another tiny fix. And I hope it is the last one. Either download a new package and replace includes/kb.php and includes/functions_kb.php or follow the below instructions.
Open: includes/kb.php
Find:

Code: Select all

if($tags != $data['article_old_tags'] || $tags != '')  
Replace With:

Code: Select all

if($tags != $article_data['article_old_tags'] || $tags != '')  
Find:

Code: Select all

'request_id'                    => (int) $article_data['request_id'],  
Add After:

Code: Select all

'edit_data'                        => $edit_data,  
Open: includes/functions_kb.php
Find:

Code: Select all

if($mode == 'edit' && $data['article_status'] == STATUS_APPROVED && $old_data['article_status'] == STATUS_APPROVED && $data['cat_id'] != $old_data['cat_id'])  
Replace With:

Code: Select all

if($mode == 'edit' && $data['article_status'] == STATUS_APPROVED && $data['edit_data']['article_status'] == STATUS_APPROVED && $data['cat_id'] != $data['edit_data']['cat_id'])  
Save and upload files.
Best regards,
Andreas Nexmann aka. Imladris, Danish Phpbb Forum admin.
User avatar
irakly
Registered User
Posts: 16
Joined: Sat Jan 16, 2010 3:17 pm

Re: [RC] PhpBB3 Knowledge Base

Post by irakly »

Imladris, thank you very match! Now Its all OK!
plasmino
Registered User
Posts: 261
Joined: Sat Jul 25, 2009 11:12 am

Re: [RC] PhpBB3 Knowledge Base

Post by plasmino »

thanks the fix is ok
User avatar
irakly
Registered User
Posts: 16
Joined: Sat Jan 16, 2010 3:17 pm

Re: [RC] PhpBB3 Knowledge Base

Post by irakly »

Imladris, i have a new problem.

When i trying add file to post i get this:
Image

I cant adds nothing.
How to allow extensions?
thank you
obiewan
Registered User
Posts: 39
Joined: Fri Aug 04, 2006 6:55 pm
Location: The netherlands
Contact:

Re: [RC] PhpBB3 Knowledge Base

Post by obiewan »

Hi there..

After a fresh install of the latest version of this mod... i created 12 categories and subcategories...


Made the edits to the permissions .. while watching the tutorials in your KB... paused when needed etc



Thought i configured it to perfection.. went to my KB index and i'm being told that there are no categories :(


Quite funny though, the statistics mention 12 categories.


Been searching like crazy.. 2 pages back another person mentioned the same problem... my permission settings have NOT crashed.. checking the settings in ACP AND database.. they are correct.


Any ideas how to solve this are most welcome :mrgreen:
ricjonhay
Registered User
Posts: 247
Joined: Tue Feb 16, 2010 6:08 pm

Re: [RC] PhpBB3 Knowledge Base

Post by ricjonhay »

is there a change list for the styles as dont want to lose the changes ive made to my KB
Locked

Return to “[3.0.x] Abandoned MODs”