FAQ Manager

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
EXreaction
Former Team Member
Posts: 5666
Joined: Sun Aug 21, 2005 9:31 pm
Location: Wisconsin, U.S.
Name: Nathan

Re: FAQ Manager

Post by EXreaction »

That is strange.

I'll take a look at it some more when I get some time. :)
User avatar
ChriZathens
Registered User
Posts: 1477
Joined: Tue Apr 18, 2006 9:11 pm
Location: Athens, Greece
Name: Chris

Re: FAQ Manager

Post by ChriZathens »

OK, thanks ! ;)
My mods in MODDB:
Add Homepage link in header - Change user activity post limit - Post number in viewtopic
If you need support click on the support tab there and post your question.
Do not PM me - chances of viewing my PMs are way thinner than viewing the support question in the customization DB...
User avatar
EXreaction
Former Team Member
Posts: 5666
Joined: Sun Aug 21, 2005 9:31 pm
Location: Wisconsin, U.S.
Name: Nathan

Re: FAQ Manager

Post by EXreaction »

Ok, replace the entire get_faq_file_list function with the following code:

Code: Select all

	function get_faq_file_list()
	{
		global $phpbb_root_path, $phpEx;

		$list = array();
		$dh = @opendir($phpbb_root_path . 'language/');

		if ($dh)
		{
			while (($file = readdir($dh)) !== false)
			{
				if (strpos($file, '.') === false && is_dir($phpbb_root_path . 'language/' . $file))
				{
					$dh1 = @opendir($phpbb_root_path . 'language/' . $file);
					if ($dh1)
					{
						while (($file1 = readdir($dh1)) !== false)
						{
							if (strpos($file1, 'help_') === 0 && substr($file1, -(strlen($phpEx) + 1)) === '.' . $phpEx)
							{
								$list[] = $file . '/' . substr($file1, 0, -(strlen($phpEx) + 1));
							}
							else
							{
								if (strpos($file1, '.') === false && is_dir($phpbb_root_path . 'language/' . $file . '/' . $file1))
								{
									
									$dh2 = @opendir($phpbb_root_path . 'language/' . $file . '/' . $file1);
									if ($dh2)
									{
										while (($file2 = readdir($dh2)) !== false)
										{
											if (strpos($file2, 'help_') === 0 && substr($file2, -(strlen($phpEx) + 1)) === '.' . $phpEx)
											{
												$list[] = $file . '/' . $file1 . '/' . substr($file2, 0, -(strlen($phpEx) + 1));
											}
										}
										closedir($dh2);
									}
								}
							}
						}
						closedir($dh1);
					}
				}
			}
			closedir($dh);
		}

		return $list;
	}
I'll be including that in the 1.2.2 package. :)
bob_raid
Registered User
Posts: 166
Joined: Thu Jan 17, 2008 12:53 am

Re: FAQ Manager

Post by bob_raid »

I had already install & it work fine but why there is an extra file bbcode en language/en/help_bbcode.php? &
it only allow to edit how about delete?
Image
bob_raid
Registered User
Posts: 166
Joined: Thu Jan 17, 2008 12:53 am

Re: FAQ Manager

Post by bob_raid »

Image
User avatar
EXreaction
Former Team Member
Posts: 5666
Joined: Sun Aug 21, 2005 9:31 pm
Location: Wisconsin, U.S.
Name: Nathan

Re: FAQ Manager

Post by EXreaction »

You can not delete the file. I do not know what the help_bbcode file is for, I've never seen it displayed.
bob_raid
Registered User
Posts: 166
Joined: Thu Jan 17, 2008 12:53 am

Re: FAQ Manager

Post by bob_raid »

me too never see it display :?:
User avatar
ChriZathens
Registered User
Posts: 1477
Joined: Tue Apr 18, 2006 9:11 pm
Location: Athens, Greece
Name: Chris

Re: FAQ Manager

Post by ChriZathens »

EXreaction wrote:Ok, replace the entire get_faq_file_list function with the following code:

Code: Select all

	function get_faq_file_list()
	{
		global $phpbb_root_path, $phpEx;

		$list = array();
		$dh = @opendir($phpbb_root_path . 'language/');

		if ($dh)
		{
			while (($file = readdir($dh)) !== false)
			{
				if (strpos($file, '.') === false && is_dir($phpbb_root_path . 'language/' . $file))
				{
					$dh1 = @opendir($phpbb_root_path . 'language/' . $file);
					if ($dh1)
					{
						while (($file1 = readdir($dh1)) !== false)
						{
							if (strpos($file1, 'help_') === 0 && substr($file1, -(strlen($phpEx) + 1)) === '.' . $phpEx)
							{
								$list[] = $file . '/' . substr($file1, 0, -(strlen($phpEx) + 1));
							}
							else
							{
								if (strpos($file1, '.') === false && is_dir($phpbb_root_path . 'language/' . $file . '/' . $file1))
								{
									
									$dh2 = @opendir($phpbb_root_path . 'language/' . $file . '/' . $file1);
									if ($dh2)
									{
										while (($file2 = readdir($dh2)) !== false)
										{
											if (strpos($file2, 'help_') === 0 && substr($file2, -(strlen($phpEx) + 1)) === '.' . $phpEx)
											{
												$list[] = $file . '/' . $file1 . '/' . substr($file2, 0, -(strlen($phpEx) + 1));
											}
										}
										closedir($dh2);
									}
								}
							}
						}
						closedir($dh1);
					}
				}
			}
			closedir($dh);
		}

		return $list;
	}
I'll be including that in the 1.2.2 package. :)
Yes !!!
This did the job!
Thanks a lot!!! ;)
My mods in MODDB:
Add Homepage link in header - Change user activity post limit - Post number in viewtopic
If you need support click on the support tab there and post your question.
Do not PM me - chances of viewing my PMs are way thinner than viewing the support question in the customization DB...
MJGB
Registered User
Posts: 18
Joined: Thu Jul 05, 2007 2:02 pm

Re: FAQ Manager

Post by MJGB »

Great mod, installed it within a couple of minutes and it works perfectly :D
rwagner
Registered User
Posts: 11
Joined: Tue Dec 28, 2004 1:56 am

Re: FAQ Manager

Post by rwagner »

Works great.

One thing I would like to see, and am wondering about is "nested" FAQs...
For example, if I wanted TWO main categories... Would I simply create another FAQ page, and put links to each separate FAQ... or can I make nested categories...?
User avatar
EXreaction
Former Team Member
Posts: 5666
Joined: Sun Aug 21, 2005 9:31 pm
Location: Wisconsin, U.S.
Name: Nathan

Re: FAQ Manager

Post by EXreaction »

Nested categories probably is not possible without a lot of editing to the faq.php file.

If you want to just add more pages you can do so pretty easily (I think, I've not tested it) by adding some code to faq.php.

If you open faq.php you'll see:

Code: Select all

// Load the appropriate faq file
switch ($mode)
{
Just add another section right below it for more faq pages, like:

Code: Select all

	case '(string used to access the page with the mode)':
		$l_title = $user->lang['(any language key here for the title of the page)'];
		$user->add_lang('(the name of the file here, minus the help_ prefix and .php ending)', false, true);
	break;
Then you can go to faq.php?mode=(the string used in the case '': line) and the new faq will show for you (well, if that language file exists ;)) and you will be able to edit it with the FAQ Manager.
User avatar
bonelifer
Community Team Member
Community Team Member
Posts: 3511
Joined: Wed Oct 27, 2004 11:35 pm
Name: William
Contact:

Re: FAQ Manager

Post by bonelifer »

EXreaction wrote:You can not delete the file. I do not know what the help_bbcode file is for, I've never seen it displayed.
It was in phpBB2 and it's been in phpBB3. http://www.phpbb.com/community/faq.php?mode=bbcode

I'm not sure why there isn't a link or something to it though.
Knowledge Base | phpBB Board Rules | Search Customisation Database
Image
Please don't contact me via PM or email for phpBB support .
ryorevo
Registered User
Posts: 53
Joined: Thu Jan 31, 2008 12:06 pm
Location: US
Contact:

Re: FAQ Manager

Post by ryorevo »

There is a link to it under the Smilies, in prosilver & subsilver2, when you write a post
BBCode is ON
BBCode is a link to the help file
The smoker's are revolting, Join the RYO Revolution!
User avatar
EXreaction
Former Team Member
Posts: 5666
Joined: Sun Aug 21, 2005 9:31 pm
Location: Wisconsin, U.S.
Name: Nathan

Re: FAQ Manager

Post by EXreaction »

Oh, I see. :)
User avatar
RATT
Registered User
Posts: 734
Joined: Fri Aug 19, 2005 6:27 am

Re: FAQ Manager

Post by RATT »

Line 309 has the closing php tag showing the backup faq code inactive. Should the closing tag not be there?
Snippet of line 300 to 315.

Code: Select all

				$output .= "	array(
		0 => '" . str_replace("'", "\'", html_entity_decode($name)) . "',
		1 => '" . str_replace("'", "\'", html_entity_decode($value)) . "'
	),
";
			}
		}
		$output .= ');

?>';

		// First, make a backup of the current FAQ.
		if (!@file_exists($phpbb_root_path . 'store/faq_backup/' . substr($file, 0, strpos($file, '/'))))
		{
			@mkdir($phpbb_root_path . 'store/faq_backup/' . substr($file, 0, strpos($file, '/')));
		}
That is from the includes/acp/acp_faq_manager.php
Locked

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