[ABD] Knowledge Base 0.2.14

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
arukAdo
Registered User
Posts: 58
Joined: Tue Apr 29, 2008 2:07 am

Re: [BETA] Mini Knowledge Base

Post by arukAdo » Fri May 09, 2008 10:25 pm

pardesi wrote:when i click on yes to delete an article i get this

Code: Select all

Fatal error: Call to undefined function delete_attachments() in /www/zzl.org/i/i/t/iit-redefined/htdocs/includes/functions_kb.php on line 705

That was explained above, the problem is the function delete_attachments() doesnt exist
arukAdo wrote: Removing this statement fixed the problem for me at least (functions_kb.php)

Code: Select all

//			delete_attachments('attach', $attachments, false);
Just comment it like this and it will not try to delete them (and dont make an error...)

xxxgamer
Registered User
Posts: 574
Joined: Mon Jul 16, 2007 11:25 pm

Re: [BETA] Mini Knowledge Base

Post by xxxgamer » Fri May 09, 2008 10:33 pm

Is the author still supporting this do you know?

arukAdo
Registered User
Posts: 58
Joined: Tue Apr 29, 2008 2:07 am

Re: [BETA] Mini Knowledge Base

Post by arukAdo » Fri May 09, 2008 10:43 pm

I dont speak dutch, cant say much more

http://www.phpbb.de/viewtopic.php?t=158342

xxxgamer
Registered User
Posts: 574
Joined: Mon Jul 16, 2007 11:25 pm

Re: [BETA] Mini Knowledge Base

Post by xxxgamer » Fri May 09, 2008 10:47 pm

Nice one mate cheers :)

User avatar
kenno
Registered User
Posts: 81
Joined: Sun Apr 09, 2006 10:54 am
Location: Estonia
Contact:

Re: [BETA] Mini Knowledge Base

Post by kenno » Sat May 10, 2008 4:55 am

i want to upadate my mini kb 0.2.4 to the latest 0.2.7, but 0.2.5 dont have update file, the file where update changes are located and i cant update directly to 0.2.6 neither.
what should i do?

arukAdo
Registered User
Posts: 58
Joined: Tue Apr 29, 2008 2:07 am

Re: [BETA] Mini Knowledge Base

Post by arukAdo » Sat May 10, 2008 10:48 am

Id like to have 0.26 but didnt finded a way to download it, on google it only show the last version 0.27

What you should do? hum i dunno, depend what you aim for

The db structure of articles might have been updated, witch mean you need to add colums missing (if theres any, check the sql install of your version and compare to new one) and uptade your lines

Then check for file edits

pardesi
Registered User
Posts: 79
Joined: Mon May 05, 2008 2:27 am

Re: [BETA] Mini Knowledge Base

Post by pardesi » Sat May 10, 2008 11:49 am

u wnat me to delete that?
also i am not able to download attcahments it says it is not enabled can any of u do that

User avatar
kenno
Registered User
Posts: 81
Joined: Sun Apr 09, 2006 10:54 am
Location: Estonia
Contact:

Re: [BETA] Mini Knowledge Base

Post by kenno » Sat May 10, 2008 4:57 pm

All the versions - URL

All the other versions have update file, but 0.25 didnt have that. do i really have to inspect the code for updating my mod?

User avatar
A_O_C
Registered User
Posts: 2383
Joined: Sun Jul 01, 2007 11:26 pm
Location: phpbb_

Re: [BETA] Mini Knowledge Base

Post by A_O_C » Sun May 11, 2008 7:20 am

ok, finally got it working and found a bug. if i go into the KB and try to delete an article, it gives me this error:

Code: Select all

Fatal error: Call to undefined function delete_attachments() in ...\includes\functions_kb.php on line 705
this is line 705:

Code: Select all

			delete_attachments('attach', $attachments, false);
if i comment it out, it works perfectly. ;)

g unit
Registered User
Posts: 28
Joined: Wed Jun 27, 2007 3:16 am
Location: Pennsylvania, USA
Contact:

Re: [BETA] Mini Knowledge Base

Post by g unit » Mon May 12, 2008 2:11 am

arukAdo wrote:
pardesi wrote:when i click on yes to delete an article i get this

Code: Select all

Fatal error: Call to undefined function delete_attachments() in /www/zzl.org/i/i/t/iit-redefined/htdocs/includes/functions_kb.php on line 705

That was explained above, the problem is the function delete_attachments() doesnt exist
arukAdo wrote: Removing this statement fixed the problem for me at least (functions_kb.php)

Code: Select all

//			delete_attachments('attach', $attachments, false);
Just comment it like this and it will not try to delete them (and dont make an error...)
Yep, that function works perfectly now... but still have 2 more problems.

Problem #1

When I click the Post info button I get this message

Code: Select all

Parse error: parse error, unexpected T_VARIABLE in /home/content/w/e/i/user/html/battlegrounds/forums/knowledge/kb_log.php on line 110
Here is the code from kb_log.php, starting at line 110

Code: Select all

$template->assign_vars(array(
	'U_ARTICLE'			=> article_link($id, $row['page_uri']),
	'S_DELETE_LOG'		=> $auth->acl_get('u_log_kb_delete'),
	'NOFORUMNAV'		=> true,
	)
);
Problem #2:

When I try to access a topic from the knowledge base index, it works fine. When I try to access from kb_categorie.php, I click a link to the article and it does not take me anywhere, it just reloads the same page... To get to the kb_categorie.php, click "View all atricles" on the index and it takes you to the category view.

http://www.thebattlegroundsgaming.com/f ... e.php?id=3

Check that out and you'll see what I mean...
The Pub Playin Killas is a DOD:S and COD:WaW Team.

xxxgamer
Registered User
Posts: 574
Joined: Mon Jul 16, 2007 11:25 pm

Re: [BETA] Mini Knowledge Base

Post by xxxgamer » Mon May 12, 2008 7:42 am

I have the exact same problem and have goten no replies as you can see from my posts above :(

User avatar
Ricky_Racer
Registered User
Posts: 609
Joined: Wed Feb 12, 2003 10:02 pm

Re: [BETA] Mini Knowledge Base

Post by Ricky_Racer » Mon May 12, 2008 1:06 pm

There is a function delete_attachments(), it is in file ./includes/functions_admin.php (starting near line 797)

Code: Select all

function delete_attachments($mode, $ids, $resync = true)
{
(ending near line 998)

Code: Select all

			if (sizeof($unset_ids))
			{
				$sql = 'UPDATE ' . TOPICS_TABLE . '
					SET topic_attachment = 0
					WHERE ' . $db->sql_in_set('topic_id', $unset_ids);
				$db->sql_query($sql);
			}
		}
	}

	return $num_deleted;
}
I am not sure this information will help or not, but thought I should pass it along, so someone who knows phpBB3, and this mod better than me might be able to use it.
Here's hoping somebody can fix/finish this mod, I would probably use it.

User avatar
kenno
Registered User
Posts: 81
Joined: Sun Apr 09, 2006 10:54 am
Location: Estonia
Contact:

Re: [BETA] Mini Knowledge Base

Post by kenno » Tue May 13, 2008 3:52 pm

kenno wrote:how can i display all articles in the main page, like they are in categories.
i want to display all of them in one page.
is it possible?
anybody??

g unit
Registered User
Posts: 28
Joined: Wed Jun 27, 2007 3:16 am
Location: Pennsylvania, USA
Contact:

Re: [BETA] Mini Knowledge Base

Post by g unit » Wed May 14, 2008 12:13 am

g unit wrote:
arukAdo wrote:
pardesi wrote:when i click on yes to delete an article i get this

Code: Select all

Fatal error: Call to undefined function delete_attachments() in /www/zzl.org/i/i/t/iit-redefined/htdocs/includes/functions_kb.php on line 705

That was explained above, the problem is the function delete_attachments() doesnt exist
arukAdo wrote: Removing this statement fixed the problem for me at least (functions_kb.php)

Code: Select all

//			delete_attachments('attach', $attachments, false);
Just comment it like this and it will not try to delete them (and dont make an error...)
Yep, that function works perfectly now... but still have 2 more problems.

Problem #1

When I click the Post info button I get this message

Code: Select all

Parse error: parse error, unexpected T_VARIABLE in /home/content/w/e/i/user/html/battlegrounds/forums/knowledge/kb_log.php on line 110
Here is the code from kb_log.php, starting at line 110

Code: Select all

$template->assign_vars(array(
	'U_ARTICLE'			=> article_link($id, $row['page_uri']),
	'S_DELETE_LOG'		=> $auth->acl_get('u_log_kb_delete'),
	'NOFORUMNAV'		=> true,
	)
);
Problem #2:

When I try to access a topic from the knowledge base index, it works fine. When I try to access from kb_categorie.php, I click a link to the article and it does not take me anywhere, it just reloads the same page... To get to the kb_categorie.php, click "View all atricles" on the index and it takes you to the category view.

http://www.thebattlegroundsgaming.com/f ... e.php?id=3

Check that out and you'll see what I mean...
Anybody?
The Pub Playin Killas is a DOD:S and COD:WaW Team.

xxxgamer
Registered User
Posts: 574
Joined: Mon Jul 16, 2007 11:25 pm

Re: [BETA] Mini Knowledge Base

Post by xxxgamer » Wed May 14, 2008 7:09 am

I still have the same problem as above that the link isnt working. ^^ ive contacted the author personally and on his website and phpbb.de in his topic with no reply.

Locked

Return to “[3.0.x] Abandoned MODs”