[RC] phpBB Gallery 1.0.4 (including TS Gallery converter)

A place for MOD Authors to post and receive feedback on MODs still in development. No MODs within this forum should be used within a live environment!
Scam Warning
MydnyteSyn
Registered User
Posts: 383
Joined: Sun Oct 07, 2007 10:02 am

Re: [Beta] phpBB Gallery 0.4.1

Post by MydnyteSyn »

I'm not a moron. I have the correct files uploaded. We're using the ClassyDark theme and its based on subSilver2. I'm pretty sure that this fix just requires a minor edit to a file or two so the width=100%. I just don't know which file or two to edit.

shahinavthal
Registered User
Posts: 277
Joined: Fri Sep 19, 2008 6:53 am

Re: [Beta] phpBB Gallery 0.4.1

Post by shahinavthal »

MydnyteSyn wrote:I'm not a moron. I have the correct files uploaded. We're using the ClassyDark theme and its based on subSilver2. I'm pretty sure that this fix just requires a minor edit to a file or two so the width=100%. I just don't know which file or two to edit.
:?

Dint mean that in anyways whatsoever...Anyways Nick might reply to this..

User avatar
nickvergessen
Former Team Member
Posts: 4397
Joined: Mon Apr 30, 2007 5:33 pm
Location: Stuttgart, Germany
Name: Joas Schilling
Contact:

Re: [Beta] phpBB Gallery 0.4.1

Post by nickvergessen »

I dunno were you got that template file from,
but in styles/ClassyDark/template/gallery_albumlist_body.html
replace

Code: Select all

<th colspan="2" style="width: 60px;">{L_IMAGES}</th>
with

Code: Select all

<th style="width: 60px;">{L_IMAGES}</th>
No Support via PM

benz0
Registered User
Posts: 30
Joined: Thu Feb 12, 2004 6:15 pm
Location: Madrid

Re: [Beta] phpBB Gallery 0.4.1

Post by benz0 »

Hi nick, I want install the gallery, but i just see that 0.5.0 version (beta) is available to download.

Do you recommend waiting for the new version?
When the stable version will go out?

Thank you !

User avatar
nickvergessen
Former Team Member
Posts: 4397
Joined: Mon Apr 30, 2007 5:33 pm
Location: Stuttgart, Germany
Name: Joas Schilling
Contact:

Re: [Beta] phpBB Gallery 0.4.1

Post by nickvergessen »

You may just install 0.4.1
0.5.0 is just for some special users to test.
No Support via PM

operator_crazy
Registered User
Posts: 1
Joined: Mon Jan 05, 2009 9:29 am

Re: [Beta] phpBB Gallery 0.4.1

Post by operator_crazy »

sorry i found this

Code: Select all

You are not allowed to upload more than 0 images.
pliz help me, i dont know to set permission
i cannot upload a image????

User avatar
Kingdombuilder
Registered User
Posts: 91
Joined: Sat Apr 26, 2008 7:48 am
Location: Flint, MI
Contact:

Re: [Beta] phpBB Gallery 0.4.1

Post by Kingdombuilder »

PLEASE HELP MY BOARD IS DOWN!!


I tried to uninstall this mod and ran into a huge problem.

After uninstalling by performing install in reverse my board is no longer accessible. When ever i try to access my board i get this error. I know that i just have to purge my cache for template and theme but i have no way to access it. This is the error that shows up:

Code: Select all

Warning: Unterminated comment starting line 434 in /mnt/w0901/d19/s47/b02db286/www/kingdombuildershq.com/phpBB3/includes/cache.php on line 434

Parse error: syntax error, unexpected $end, expecting T_FUNCTION in /mnt/w0901/d19/s47/b02db286/www/kingdombuildershq.com/phpBB3/includes/cache.php on line 434
Can anyone help me get access to my board to purge my templates and themes to rectify this problem? i tried accessing the ACP and still no success...

Here is my cache.php file if necesary:

Code: Select all

<?php
/**
*
* @package acm
* @version $Id: cache.php 8691 2008-07-28 13:26:20Z acydburn $
* @copyright (c) 2005 phpBB Group
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
*
*/

/**
* @ignore
*/
if (!defined('IN_PHPBB'))
{
	exit;
}

/**
* Class for grabbing/handling cached entries, extends acm_file or acm_db depending on the setup
* @package acm
*/
class cache extends acm
{
	/**
	* Get config values
	*/
	function obtain_config()
	{
		global $db;

		if (($config = $this->get('config')) !== false)
		{
			$sql = 'SELECT config_name, config_value
				FROM ' . CONFIG_TABLE . '
				WHERE is_dynamic = 1';
			$result = $db->sql_query($sql);

			while ($row = $db->sql_fetchrow($result))
			{
				$config[$row['config_name']] = $row['config_value'];
			}
			$db->sql_freeresult($result);
		}
		else
		{
			$config = $cached_config = array();

			$sql = 'SELECT config_name, config_value, is_dynamic
				FROM ' . CONFIG_TABLE;
			$result = $db->sql_query($sql);

			while ($row = $db->sql_fetchrow($result))
			{
				if (!$row['is_dynamic'])
				{
					$cached_config[$row['config_name']] = $row['config_value'];
				}

				$config[$row['config_name']] = $row['config_value'];
			}
			$db->sql_freeresult($result);

			$this->put('config', $cached_config);
		}

		return $config;
	}

	/**
	* Obtain list of naughty words and build preg style replacement arrays for use by the
	* calling script
	*/
	function obtain_word_list()
	{
		global $db;

		if (($censors = $this->get('_word_censors')) === false)
		{
			$sql = 'SELECT word, replacement
				FROM ' . WORDS_TABLE;
			$result = $db->sql_query($sql);

			$censors = array();
			while ($row = $db->sql_fetchrow($result))
			{
				$censors['match'][] = '#(?<!\w)(' . str_replace('\*', '\w*?', preg_quote($row['word'], '#')) . ')(?!\w)#i';
				$censors['replace'][] = $row['replacement'];
			}
			$db->sql_freeresult($result);

			$this->put('_word_censors', $censors);
		}

		return $censors;
	}

	/**
	* Obtain currently listed icons
	*/
	function obtain_icons()
	{
		if (($icons = $this->get('_icons')) === false)
		{
			global $db;

			// Topic icons
			$sql = 'SELECT *
				FROM ' . ICONS_TABLE . '
				ORDER BY icons_order';
			$result = $db->sql_query($sql);

			$icons = array();
			while ($row = $db->sql_fetchrow($result))
			{
				$icons[$row['icons_id']]['img'] = $row['icons_url'];
				$icons[$row['icons_id']]['width'] = (int) $row['icons_width'];
				$icons[$row['icons_id']]['height'] = (int) $row['icons_height'];
				$icons[$row['icons_id']]['display'] = (bool) $row['display_on_posting'];
			}
			$db->sql_freeresult($result);

			$this->put('_icons', $icons);
		}

		return $icons;
	}

	/**
	* Obtain ranks
	*/
	function obtain_ranks()
	{
		if (($ranks = $this->get('_ranks')) === false)
		{
			global $db;

			$sql = 'SELECT *
				FROM ' . RANKS_TABLE . '
				ORDER BY rank_min DESC';
			$result = $db->sql_query($sql);

			$ranks = array();
			while ($row = $db->sql_fetchrow($result))
			{
				if ($row['rank_special'])
				{
					$ranks['special'][$row['rank_id']] = array(
						'rank_title'	=>	$row['rank_title'],
						'rank_image'	=>	$row['rank_image']
					);
				}
				else
				{
					$ranks['normal'][] = array(
						'rank_title'	=>	$row['rank_title'],
						'rank_min'		=>	$row['rank_min'],
						'rank_image'	=>	$row['rank_image']
					);
				}
			}
			$db->sql_freeresult($result);

			$this->put('_ranks', $ranks);
		}

		return $ranks;
	}

	/**
	* Obtain allowed extensions
	*
	* @param mixed $forum_id If false then check for private messaging, if int then check for forum id. If true, then only return extension informations.
	*
	* @return array allowed extensions array.
	*/
	function obtain_attach_extensions($forum_id)
	{
		if (($extensions = $this->get('_extensions')) === false)
		{
			global $db;

			$extensions = array(
				'_allowed_post'	=> array(),
				'_allowed_pm'	=> array(),
			);

			// The rule is to only allow those extensions defined. ;)
			$sql = 'SELECT e.extension, g.*
				FROM ' . EXTENSIONS_TABLE . ' e, ' . EXTENSION_GROUPS_TABLE . ' g
				WHERE e.group_id = g.group_id
					AND (g.allow_group = 1 OR g.allow_in_pm = 1)';
			$result = $db->sql_query($sql);

			while ($row = $db->sql_fetchrow($result))
			{
				$extension = strtolower(trim($row['extension']));

				$extensions[$extension] = array(
					'display_cat'	=> (int) $row['cat_id'],
					'download_mode'	=> (int) $row['download_mode'],
					'upload_icon'	=> trim($row['upload_icon']),
					'max_filesize'	=> (int) $row['max_filesize'],
					'allow_group'	=> $row['allow_group'],
					'allow_in_pm'	=> $row['allow_in_pm'],
				);

				$allowed_forums = ($row['allowed_forums']) ? unserialize(trim($row['allowed_forums'])) : array();

				// Store allowed extensions forum wise
				if ($row['allow_group'])
				{
					$extensions['_allowed_post'][$extension] = (!sizeof($allowed_forums)) ? 0 : $allowed_forums;
				}

				if ($row['allow_in_pm'])
				{
					$extensions['_allowed_pm'][$extension] = 0;
				}
			}
			$db->sql_freeresult($result);

			$this->put('_extensions', $extensions);
		}

		// Forum post
		if ($forum_id === false)
		{
			// We are checking for private messages, therefore we only need to get the pm extensions...
			$return = array('_allowed_' => array());

			foreach ($extensions['_allowed_pm'] as $extension => $check)
			{
				$return['_allowed_'][$extension] = 0;
				$return[$extension] = $extensions[$extension];
			}

			$extensions = $return;
		}
		else if ($forum_id === true)
		{
			return $extensions;
		}
		else
		{
			$forum_id = (int) $forum_id;
			$return = array('_allowed_' => array());

			foreach ($extensions['_allowed_post'] as $extension => $check)
			{
				// Check for allowed forums
				if (is_array($check))
				{
					$allowed = (!in_array($forum_id, $check)) ? false : true;
				}
				else
				{
					$allowed = true;
				}

				if ($allowed)
				{
					$return['_allowed_'][$extension] = 0;
					$return[$extension] = $extensions[$extension];
				}
			}

			$extensions = $return;
		}

		if (!isset($extensions['_allowed_']))
		{
			$extensions['_allowed_'] = array();
		}

		return $extensions;
	}

	/**
	* Obtain active bots
	*/
	function obtain_bots()
	{
		if (($bots = $this->get('_bots')) === false)
		{
			global $db;

			switch ($db->sql_layer)
			{
				case 'mssql':
				case 'mssql_odbc':
					$sql = 'SELECT user_id, bot_agent, bot_ip
						FROM ' . BOTS_TABLE . '
						WHERE bot_active = 1
					ORDER BY LEN(bot_agent) DESC';
				break;

				case 'firebird':
					$sql = 'SELECT user_id, bot_agent, bot_ip
						FROM ' . BOTS_TABLE . '
						WHERE bot_active = 1
					ORDER BY CHAR_LENGTH(bot_agent) DESC';
				break;

				// LENGTH supported by MySQL, IBM DB2 and Oracle for sure...
				default:
					$sql = 'SELECT user_id, bot_agent, bot_ip
						FROM ' . BOTS_TABLE . '
						WHERE bot_active = 1
					ORDER BY LENGTH(bot_agent) DESC';
				break;
			}
			$result = $db->sql_query($sql);

			$bots = array();
			while ($row = $db->sql_fetchrow($result))
			{
				$bots[] = $row;
			}
			$db->sql_freeresult($result);

			$this->put('_bots', $bots);
		}

		return $bots;
	}

	/**
	* Obtain cfg file data
	*/
	function obtain_cfg_items($theme)
	{
		global $config, $phpbb_root_path;

		$parsed_items = array(
			'theme'		=> array(),
			'template'	=> array(),
			'imageset'	=> array()
		);

		foreach ($parsed_items as $key => $parsed_array)
		{
			$parsed_array = $this->get('_cfg_' . $key . '_' . $theme[$key . '_path']);

			if ($parsed_array === false)
			{
				$parsed_array = array();
			}

			$reparse = false;
			$filename = $phpbb_root_path . 'styles/' . $theme[$key . '_path'] . '/' . $key . '/' . $key . '.cfg';

			if (!file_exists($filename))
			{
				continue;
			}

			if (!isset($parsed_array['filetime']) || (($config['load_tplcompile'] && @filemtime($filename) > $parsed_array['filetime'])))
			{
				$reparse = true;
			}

			// Re-parse cfg file
			if ($reparse)
			{
				$parsed_array = parse_cfg_file($filename);
				$parsed_array['filetime'] = @filemtime($filename);

				$this->put('_cfg_' . $key . '_' . $theme[$key . '_path'], $parsed_array);
			}
			$parsed_items[$key] = $parsed_array;
		}

		return $parsed_items;
	}

	/**
	* Obtain disallowed usernames
	*/
	function obtain_disallowed_usernames()
	{
		if (($usernames = $this->get('_disallowed_usernames')) === false)
		{
			global $db;

			$sql = 'SELECT disallow_username
				FROM ' . DISALLOW_TABLE;
			$result = $db->sql_query($sql);

			$usernames = array();
			while ($row = $db->sql_fetchrow($result))
			{
				$usernames[] = str_replace('%', '.*?', preg_quote(utf8_clean_string($row['disallow_username']), '#'));
			}
			$db->sql_freeresult($result);

			$this->put('_disallowed_usernames', $usernames);
		}

		return $usernames;
	}

	/**
	* Obtain hooks...
	*/
	function obtain_hooks()
	{
		global $phpbb_root_path, $phpEx;

		if (($hook_files = $this->get('_hooks')) === false)
		{
			$hook_files = array();

			// Now search for hooks...
			$dh = @opendir($phpbb_root_path . 'includes/hooks/');

			if ($dh)
			{
				while (($file = readdir($dh)) !== false)
				{
					if (strpos($file, 'hook_') === 0 && substr($file, -(strlen($phpEx) + 1)) === '.' . $phpEx)
					{
						$hook_files[] = substr($file, 0, -(strlen($phpEx) + 1));
					}
				}
				closedir($dh);
			}

			$this->put('_hooks', $hook_files);
		}

		return $hook_files;
	}
	/**

}

?>
Image

shahinavthal
Registered User
Posts: 277
Joined: Fri Sep 19, 2008 6:53 am

Re: [Beta] phpBB Gallery 0.4.1

Post by shahinavthal »

Kingdombuilder wrote:PLEASE HELP MY BOARD IS DOWN!!


I tried to uninstall this mod and ran into a huge problem.

After uninstalling by performing install in reverse my board is no longer accessible. When ever i try to access my board i get this error. I know that i just have to purge my cache for template and theme but i have no way to access it. This is the error that shows up:

Code: Select all

Warning: Unterminated comment starting line 434 in /mnt/w0901/d19/s47/b02db286/www/kingdombuildershq.com/phpBB3/includes/cache.php on line 434

Parse error: syntax error, unexpected $end, expecting T_FUNCTION in /mnt/w0901/d19/s47/b02db286/www/kingdombuildershq.com/phpBB3/includes/cache.php on line 434
Can anyone help me get access to my board to purge my templates and themes to rectify this problem? i tried accessing the ACP and still no success...
Try this into your cache.php and let us know...But why did u uninstall the mod in the first place.. We are here to help if you need any clarifications on the same as well

Code: Select all

<?php
/**
*
* @package acm
* @version $Id: cache.php 8691 2008-07-28 13:26:20Z acydburn $
* @copyright (c) 2005 phpBB Group
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
*
*/

/**
* @ignore
*/
if (!defined('IN_PHPBB'))
{
   exit;
}

/**
* Class for grabbing/handling cached entries, extends acm_file or acm_db depending on the setup
* @package acm
*/
class cache extends acm
{
   /**
   * Get config values
   */
   function obtain_config()
   {
      global $db;

      if (($config = $this->get('config')) !== false)
      {
         $sql = 'SELECT config_name, config_value
            FROM ' . CONFIG_TABLE . '
            WHERE is_dynamic = 1';
         $result = $db->sql_query($sql);

         while ($row = $db->sql_fetchrow($result))
         {
            $config[$row['config_name']] = $row['config_value'];
         }
         $db->sql_freeresult($result);
      }
      else
      {
         $config = $cached_config = array();

         $sql = 'SELECT config_name, config_value, is_dynamic
            FROM ' . CONFIG_TABLE;
         $result = $db->sql_query($sql);

         while ($row = $db->sql_fetchrow($result))
         {
            if (!$row['is_dynamic'])
            {
               $cached_config[$row['config_name']] = $row['config_value'];
            }

            $config[$row['config_name']] = $row['config_value'];
         }
         $db->sql_freeresult($result);

         $this->put('config', $cached_config);
      }

      return $config;
   }

   /**
   * Obtain list of naughty words and build preg style replacement arrays for use by the
   * calling script
   */
   function obtain_word_list()
   {
      global $db;

      if (($censors = $this->get('_word_censors')) === false)
      {
         $sql = 'SELECT word, replacement
            FROM ' . WORDS_TABLE;
         $result = $db->sql_query($sql);

         $censors = array();
         while ($row = $db->sql_fetchrow($result))
         {
            $censors['match'][] = '#(?<!\w)(' . str_replace('\*', '\w*?', preg_quote($row['word'], '#')) . ')(?!\w)#i';
            $censors['replace'][] = $row['replacement'];
         }
         $db->sql_freeresult($result);

         $this->put('_word_censors', $censors);
      }

      return $censors;
   }

   /**
   * Obtain currently listed icons
   */
   function obtain_icons()
   {
      if (($icons = $this->get('_icons')) === false)
      {
         global $db;

         // Topic icons
         $sql = 'SELECT *
            FROM ' . ICONS_TABLE . '
            ORDER BY icons_order';
         $result = $db->sql_query($sql);

         $icons = array();
         while ($row = $db->sql_fetchrow($result))
         {
            $icons[$row['icons_id']]['img'] = $row['icons_url'];
            $icons[$row['icons_id']]['width'] = (int) $row['icons_width'];
            $icons[$row['icons_id']]['height'] = (int) $row['icons_height'];
            $icons[$row['icons_id']]['display'] = (bool) $row['display_on_posting'];
         }
         $db->sql_freeresult($result);

         $this->put('_icons', $icons);
      }

      return $icons;
   }

   /**
   * Obtain ranks
   */
   function obtain_ranks()
   {
      if (($ranks = $this->get('_ranks')) === false)
      {
         global $db;

         $sql = 'SELECT *
            FROM ' . RANKS_TABLE . '
            ORDER BY rank_min DESC';
         $result = $db->sql_query($sql);

         $ranks = array();
         while ($row = $db->sql_fetchrow($result))
         {
            if ($row['rank_special'])
            {
               $ranks['special'][$row['rank_id']] = array(
                  'rank_title'   =>   $row['rank_title'],
                  'rank_image'   =>   $row['rank_image']
               );
            }
            else
            {
               $ranks['normal'][] = array(
                  'rank_title'   =>   $row['rank_title'],
                  'rank_min'      =>   $row['rank_min'],
                  'rank_image'   =>   $row['rank_image']
               );
            }
         }
         $db->sql_freeresult($result);

         $this->put('_ranks', $ranks);
      }

      return $ranks;
   }

   /**
   * Obtain allowed extensions
   *
   * @param mixed $forum_id If false then check for private messaging, if int then check for forum id. If true, then only return extension informations.
   *
   * @return array allowed extensions array.
   */
   function obtain_attach_extensions($forum_id)
   {
      if (($extensions = $this->get('_extensions')) === false)
      {
         global $db;

         $extensions = array(
            '_allowed_post'   => array(),
            '_allowed_pm'   => array(),
         );

         // The rule is to only allow those extensions defined. ;)
         $sql = 'SELECT e.extension, g.*
            FROM ' . EXTENSIONS_TABLE . ' e, ' . EXTENSION_GROUPS_TABLE . ' g
            WHERE e.group_id = g.group_id
               AND (g.allow_group = 1 OR g.allow_in_pm = 1)';
         $result = $db->sql_query($sql);

         while ($row = $db->sql_fetchrow($result))
         {
            $extension = strtolower(trim($row['extension']));

            $extensions[$extension] = array(
               'display_cat'   => (int) $row['cat_id'],
               'download_mode'   => (int) $row['download_mode'],
               'upload_icon'   => trim($row['upload_icon']),
               'max_filesize'   => (int) $row['max_filesize'],
               'allow_group'   => $row['allow_group'],
               'allow_in_pm'   => $row['allow_in_pm'],
            );

            $allowed_forums = ($row['allowed_forums']) ? unserialize(trim($row['allowed_forums'])) : array();

            // Store allowed extensions forum wise
            if ($row['allow_group'])
            {
               $extensions['_allowed_post'][$extension] = (!sizeof($allowed_forums)) ? 0 : $allowed_forums;
            }

            if ($row['allow_in_pm'])
            {
               $extensions['_allowed_pm'][$extension] = 0;
            }
         }
         $db->sql_freeresult($result);

         $this->put('_extensions', $extensions);
      }

      // Forum post
      if ($forum_id === false)
      {
         // We are checking for private messages, therefore we only need to get the pm extensions...
         $return = array('_allowed_' => array());

         foreach ($extensions['_allowed_pm'] as $extension => $check)
         {
            $return['_allowed_'][$extension] = 0;
            $return[$extension] = $extensions[$extension];
         }

         $extensions = $return;
      }
      else if ($forum_id === true)
      {
         return $extensions;
      }
      else
      {
         $forum_id = (int) $forum_id;
         $return = array('_allowed_' => array());

         foreach ($extensions['_allowed_post'] as $extension => $check)
         {
            // Check for allowed forums
            if (is_array($check))
            {
               $allowed = (!in_array($forum_id, $check)) ? false : true;
            }
            else
            {
               $allowed = true;
            }

            if ($allowed)
            {
               $return['_allowed_'][$extension] = 0;
               $return[$extension] = $extensions[$extension];
            }
         }

         $extensions = $return;
      }

      if (!isset($extensions['_allowed_']))
      {
         $extensions['_allowed_'] = array();
      }

      return $extensions;
   }

   /**
   * Obtain active bots
   */
   function obtain_bots()
   {
      if (($bots = $this->get('_bots')) === false)
      {
         global $db;

         switch ($db->sql_layer)
         {
            case 'mssql':
            case 'mssql_odbc':
               $sql = 'SELECT user_id, bot_agent, bot_ip
                  FROM ' . BOTS_TABLE . '
                  WHERE bot_active = 1
               ORDER BY LEN(bot_agent) DESC';
            break;

            case 'firebird':
               $sql = 'SELECT user_id, bot_agent, bot_ip
                  FROM ' . BOTS_TABLE . '
                  WHERE bot_active = 1
               ORDER BY CHAR_LENGTH(bot_agent) DESC';
            break;

            // LENGTH supported by MySQL, IBM DB2 and Oracle for sure...
            default:
               $sql = 'SELECT user_id, bot_agent, bot_ip
                  FROM ' . BOTS_TABLE . '
                  WHERE bot_active = 1
               ORDER BY LENGTH(bot_agent) DESC';
            break;
         }
         $result = $db->sql_query($sql);

         $bots = array();
         while ($row = $db->sql_fetchrow($result))
         {
            $bots[] = $row;
         }
         $db->sql_freeresult($result);

         $this->put('_bots', $bots);
      }

      return $bots;
   }

   /**
   * Obtain cfg file data
   */
   function obtain_cfg_items($theme)
   {
      global $config, $phpbb_root_path;

      $parsed_items = array(
         'theme'      => array(),
         'template'   => array(),
         'imageset'   => array()
      );

      foreach ($parsed_items as $key => $parsed_array)
      {
         $parsed_array = $this->get('_cfg_' . $key . '_' . $theme[$key . '_path']);

         if ($parsed_array === false)
         {
            $parsed_array = array();
         }

         $reparse = false;
         $filename = $phpbb_root_path . 'styles/' . $theme[$key . '_path'] . '/' . $key . '/' . $key . '.cfg';

         if (!file_exists($filename))
         {
            continue;
         }

         if (!isset($parsed_array['filetime']) || (($config['load_tplcompile'] && @filemtime($filename) > $parsed_array['filetime'])))
         {
            $reparse = true;
         }

         // Re-parse cfg file
         if ($reparse)
         {
            $parsed_array = parse_cfg_file($filename);
            $parsed_array['filetime'] = @filemtime($filename);

            $this->put('_cfg_' . $key . '_' . $theme[$key . '_path'], $parsed_array);
         }
         $parsed_items[$key] = $parsed_array;
      }

      return $parsed_items;
   }

   /**
   * Obtain disallowed usernames
   */
   function obtain_disallowed_usernames()
   {
      if (($usernames = $this->get('_disallowed_usernames')) === false)
      {
         global $db;

         $sql = 'SELECT disallow_username
            FROM ' . DISALLOW_TABLE;
         $result = $db->sql_query($sql);

         $usernames = array();
         while ($row = $db->sql_fetchrow($result))
         {
            $usernames[] = str_replace('%', '.*?', preg_quote(utf8_clean_string($row['disallow_username']), '#'));
         }
         $db->sql_freeresult($result);

         $this->put('_disallowed_usernames', $usernames);
      }

      return $usernames;
   }

   /**
   * Obtain hooks...
   */
   function obtain_hooks()
   {
      global $phpbb_root_path, $phpEx;

      if (($hook_files = $this->get('_hooks')) === false)
      {
         $hook_files = array();

         // Now search for hooks...
         $dh = @opendir($phpbb_root_path . 'includes/hooks/');

         if ($dh)
         {
            while (($file = readdir($dh)) !== false)
            {
               if (strpos($file, 'hook_') === 0 && substr($file, -(strlen($phpEx) + 1)) === '.' . $phpEx)
               {
                  $hook_files[] = substr($file, 0, -(strlen($phpEx) + 1));
               }
            }
            closedir($dh);
         }

         $this->put('_hooks', $hook_files);
      }

      return $hook_files;
   }
   

}

?>
operator_crazy wrote:sorry i found this

Code: Select all

You are not allowed to upload more than 0 images.
pliz help me, i dont know to set permission
i cannot upload a image????
Go inside ACP and under the .Mods tab you will have gallery congifurations, album permissions etc. You need to set the permissions for the groups(like administrators,moderators etc) who can upload into the gallery..You will have an option there asking for upto how much images can be uploaded by that group..increase it from 0 to a higher value as desired..let us know if you need further help

User avatar
Kingdombuilder
Registered User
Posts: 91
Joined: Sat Apr 26, 2008 7:48 am
Location: Flint, MI
Contact:

Re: [Beta] phpBB Gallery 0.4.1

Post by Kingdombuilder »

Thank you for your prompt responce and your help. i uninstalled this mod because of the demand on my SQL. I had 96 tables active and i felt that i had to get rid of some of the demand. I was getting too many SQL connections error periodically. I called my host provider and as they looked at my tables they advised me to get rid of some of the tables. On my site the gallery was not used enough to warrent the continuation of the Gallery. So i decided to uninstall it.

I found my problem in the cache.php file.

on line 434 i had this /**

once I deleted it everything worked fine.

I loved the way this mod displayed the images. It was like a slide show transition. This is an awesome mod I hope to be able to install it back on my site soon as I work out the too SQL connection problem. i think my error is from my arcade. I added more then a couple at a time when putting in the games. I remeber at one point I added as many as 10 to 12 at a time. after doing that i saw where I was instructed not to do that be cause it would cause too queries. I don't know how to fix that yet but i can't get rid of it because it is used by my members greatly.
Thank you for your help!!! Again Awesome mod...
Image

MydnyteSyn
Registered User
Posts: 383
Joined: Sun Oct 07, 2007 10:02 am

Re: [Beta] phpBB Gallery 0.4.1

Post by MydnyteSyn »

Thank you :)

Unleashed2k
Registered User
Posts: 60
Joined: Sun Jul 14, 2002 8:40 pm

Re: [Beta] phpBB Gallery 0.4.1

Post by Unleashed2k »

A member asked this on my forums
Hey U2K is there anyway to tie together a forum thread to when Pics are posted in the gallery so members know when someone has posted pics?

User avatar
nickvergessen
Former Team Member
Posts: 4397
Joined: Mon Apr 30, 2007 5:33 pm
Location: Stuttgart, Germany
Name: Joas Schilling
Contact:

Re: [Beta] phpBB Gallery 0.4.1

Post by nickvergessen »

The idea isn't that bad, but I think that's something a Addon-Author could do.
Maybe you ask for it here: http://www.flying-bits.org/viewforum.php?f=77
No Support via PM

User avatar
kateland
Registered User
Posts: 198
Joined: Wed Nov 22, 2006 7:08 pm
Location: Philadelphia, PA
Contact:

Re: [Beta] phpBB Gallery 0.4.1

Post by kateland »

Hi Nick,

I updated from 0.3.1 to 0.4.0 RC1, then planned to go to 0.4.1. I made all the edits in the Install instructions,then went through the upgrade instructions, and removed old album stuff but I must have missed something.

Issue #1:

When opening viewonline.php:

Code: Select all

Fatal error: Cannot redeclare album_user_access() (previously declared in /home/necoreco/public_html/phpBB3/gallery/includes/functions.php:59) in /home/necoreco/public_html/phpBB3/gallery/includes/functions.php on line 363
Of course I looked in functions, found no reference to that. Double checked my functions.php edits. I also double checked my viewonline.php edits, not sure what I might have missed.

Issue #2:

Thumbnails and pics disappeared. After resetting all my permissions and checking config, they no longer show up. I refreshed my ACP Cache, my Template/Image/Theme caches too. I tried a different thumbnail type (set to GD2 which has worked in the past).

I checked your website for FAQ and Known issues, I searched PHPBB and Flying bits for my error and have not seen one like it. I must have goofed up and edit somewhere. Any thoughts?

Thank you :)
here's your love letter
you bloodletter
you disappointed every time

User avatar
nickvergessen
Former Team Member
Posts: 4397
Joined: Mon Apr 30, 2007 5:33 pm
Location: Stuttgart, Germany
Name: Joas Schilling
Contact:

Re: [Beta] phpBB Gallery 0.4.1

Post by nickvergessen »

kateland wrote:Issue #1:
When opening viewonline.php:

Code: Select all

Fatal error: Cannot redeclare album_user_access() (previously declared in /home/necoreco/public_html/phpBB3/gallery/includes/functions.php:59) in /home/necoreco/public_html/phpBB3/gallery/includes/functions.php on line 363
Of course I looked in functions, found no reference to that. Double checked my functions.php edits. I also double checked my viewonline.php edits, not sure what I might have missed.
I think there is an error in your viewonline.php could you upload it as a .txt?
kateland wrote:Issue #2:
Thumbnails and pics disappeared. After resetting all my permissions and checking config, they no longer show up. I refreshed my ACP Cache, my Template/Image/Theme caches too. I tried a different thumbnail type (set to GD2 which has worked in the past).

I checked your website for FAQ and Known issues, I searched PHPBB and Flying bits for my error and have not seen one like it. I must have goofed up and edit somewhere. Any thoughts?
You may disable the hotlink-prevention (causes trouble on many installations)
No Support via PM

User avatar
kateland
Registered User
Posts: 198
Joined: Wed Nov 22, 2006 7:08 pm
Location: Philadelphia, PA
Contact:

Re: [Beta] phpBB Gallery 0.4.1

Post by kateland »

http://www.ne-core.com/phpBB3/viewonline.txt

And thanks on the hotlink advice. :)
here's your love letter
you bloodletter
you disappointed every time

Locked

Return to “[3.0.x] MODs in Development”