phpbb gallery 相簿安装

About this MOD
Title:
de

phpBB Gallery

en

phpBB Gallery

Description:
de


Eine Bilder-Galerie, die in dein phpBB integriert wird.
Features: http://www.flying-bits.org/go/phpbb_gallery/features

en


An image-gallery integrated into your phpbb-board.
Features: http://www.flying-bits.org/go/phpbb_gallery/features

Version:

1.0.6

Installation level:

Intermediate

Installation time:

~60 minutes

Author notes:
de


Untersützt die "MOD Version Check"-MOD von Handyman´:
http://www.phpbb.com/community/viewtopic.php?f=69&t=691155

en


Supports the "MOD Version Check"-MOD by Handyman´:
http://www.phpbb.com/community/viewtopic.php?f=69&t=691155

Author
Username:
nickvergessen
Email:
nickvergessen@gmx.de
Name:
Joas Schilling
WWW:
http://www.flying-bits.org/

Files to edit

Included files

  • root/adm/mods/phpbb_gallery_version.php,
  • root/adm/style/*.*,
  • root/gallery/*.*,
  • root/gallery/images/*.*,
  • root/gallery/includes/*.*,
  • root/gallery/mcp/*.*,
  • root/includes/acp/*.*,
  • root/includes/ucp/*.*,
  • root/install/*.*,
  • root/install/schemas/*.*,
  • root/language/en/email/*.*,
  • root/language/en/mods/*.*,
  • root/styles/prosilver/imageset/*.*,
  • root/styles/prosilver/template/gallery/*.*,
  • root/styles/prosilver/theme/*.*

Additional MODX files


Disclaimer and other notes

For security purposes, please check: http://www.phpbb.com/mods/for the latest version of this MOD. Downloading this MOD from othersites could cause malicious code to enter into your phpBB Forum. Assuch, phpBB will not offer support for MODs not offered in our MODsdatabase, located at: http://www.phpbb.com/mods/

Before adding this MOD to your forum, you should back up all files related to this MOD.

This MOD was designed for phpBB 3.0.8  and may not function as stated on other phpBB versions. MODs for phpBB 3.0 will not work on phpBB 2.0 and vice versa.

License and English support

This MOD has been licensed under the following license:

http://opensource.org/licenses/gpl-license.php GNU General Public License v2

English support can be obtained at http://www.phpbb.com/mods/ for released MODs.


File copy

  1. Copy: root/adm/mods/phpbb_gallery_version.php
    To: adm/mods/phpbb_gallery_version.php
  2. Copy: root/adm/style/*.*
    To: adm/style/*.*
  3. Copy: root/gallery/*.*
    To: gallery/*.*
  4. Copy: root/gallery/images/*.*
    To: gallery/images/*.*
  5. Copy: root/gallery/includes/*.*
    To: gallery/includes/*.*
  6. Copy: root/gallery/mcp/*.*
    To: gallery/mcp/*.*
  7. Copy: root/includes/acp/*.*
    To: includes/acp/*.*
  8. Copy: root/includes/ucp/*.*
    To: includes/ucp/*.*
  9. Copy: root/install/*.*
    To: install/*.*
  10. Copy: root/install/schemas/*.*
    To: install/schemas/*.*
  11. Copy: root/language/en/email/*.*
    To: language/en/email/*.*
  12. Copy: root/language/en/mods/*.*
    To: language/en/mods/*.*
  13. Copy: root/styles/prosilver/imageset/*.*
    To: styles/prosilver/imageset/*.*
  14. Copy: root/styles/prosilver/template/gallery/*.*
    To: styles/prosilver/template/gallery/*.*
  15. Copy: root/styles/prosilver/theme/*.*
    To: styles/prosilver/theme/*.*

Edits

swxUse your keyboard to navigate the code boxes. You may also hit 's' on your keyboard to go to the first code box.

Open: index.php

Find

Tip: This may be a partial find and not the whole line.

Code: Select all
$total_users	= $config['num_users'];
Add after

Tip: Add these lines on a new blank line after the preceding line(s) to find.

Code: Select all
$total_images	= $config['num_images'];

$user->add_lang('mods/info_acp_gallery');

$l_total_image_s = ($total_images == 0) ? 'TOTAL_IMAGES_ZERO' : 'TOTAL_IMAGES_OTHER';
<< Hide
Find

Tip: This may be a partial find and not the whole line.

Code: Select all
'TOTAL_USERS'	=> sprintf($user->lang[$l_total_user_s], $total_users),
Add after

Tip: Add these lines on a new blank line after the preceding line(s) to find.

Code: Select all
'TOTAL_IMAGES'	=> ($config['gallery_total_images']) ? sprintf($user->lang[$l_total_image_s], $total_images) : '',
<< Hide

Open: memberlist.php

Find

Tip: This may be a partial find and not the whole line.

Code: Select all
			unset($module);

		}
Add after

Tip: Add these lines on a new blank line after the preceding line(s) to find.

Code: Select all
		// phpBB Gallery integration

		if (!function_exists('integrate_memberlist_viewprofile'))

		{

			$gallery_root_path = GALLERY_ROOT_PATH;

			include($phpbb_root_path . $gallery_root_path . 'includes/phpbb_integration.' . $phpEx);

		}

		integrate_memberlist_viewprofile($member);
<< Hide

Open: viewonline.php

Find

Tip: This may be a partial find and not the whole line.

Code: Select all
$sql = 'SELECT u.user_id, u.username, u.username_clean, u.user_type, u.user_colour, s.session_id, s.session_time, s.session_page, s.session_ip, s.session_browser, s.session_viewonline, s.session_forum_id
In-line Find

Tip: This is a partial match of a line for in-line operations.

Code: Select all
, s.session_forum_id
In-line Add after

 

Code: Select all
, s.session_album_id
<< Hide
Find

Tip: This may be a partial find and not the whole line.

Code: Select all
	preg_match('#^([a-z0-9/_-]+)#i', $row['session_page'], $on_page);

	if (!sizeof($on_page))

	{

		$on_page[1] = '';

	}
Add after

Tip: Add these lines on a new blank line after the preceding line(s) to find.

Code: Select all
	// phpBB Gallery integration

	if ((utf8_substr($on_page[1], 0, utf8_strlen(GALLERY_ROOT_PATH))) == GALLERY_ROOT_PATH)

	{

		$gallery_on_page[1] = $on_page[1];

		$on_page[1] = utf8_substr($on_page[1], 0, utf8_strlen(GALLERY_ROOT_PATH));

	}
<< Hide
Find

Tip: This may be a partial find and not the whole line.

Code: Select all
		case 'report':

			$location = $user->lang['REPORTING_POST'];

			$location_url = append_sid("{$phpbb_root_path}index.$phpEx");

		break;
Add after

Tip: Add these lines on a new blank line after the preceding line(s) to find.

Code: Select all
		// phpBB Gallery integration

		case GALLERY_ROOT_PATH:

			if (!function_exists('integrate_viewonline'))

			{

				$gallery_root_path = GALLERY_ROOT_PATH;

				include($phpbb_root_path . $gallery_root_path . 'includes/phpbb_integration.' . $phpEx);

			}

			$on_page[1] = $gallery_on_page[1];

			integrate_viewonline ($on_page, $row['session_album_id'], $row['session_page']);

		break;
<< Hide

Open: viewtopic.php

Find

Tip: This may be a partial find and not the whole line.

Code: Select all
'REPORT_IMG'		=> $user->img('icon_post_report', 'REPORT_POST'),
Add before

Tip: Add these lines on a new blank line before the preceding line(s) to find.

Code: Select all
'GALLERY_IMG'		=> $user->img('icon_contact_gallery', 'PERSONAL_ALBUM'),
<< Hide
Find

Tip: This may be a partial find and not the whole line.

Code: Select all
	'SELECT'	=> 'u.*, z.friend, z.foe, p.*
In-line Find

Tip: This is a partial match of a line for in-line operations.

Code: Select all
, p.*
In-line Add after

 

Code: Select all
, gu.personal_album_id, gu.user_images
<< Hide
Find

Tip: This may be a partial find and not the whole line.

Code: Select all
			'ON'	=> 'z.user_id = ' . $user->data['user_id'] . ' AND z.zebra_id = p.poster_id'

		)
Add after

Tip: Add these lines on a new blank line after the preceding line(s) to find.

Code: Select all
		, array(

			'FROM'	=> array(GALLERY_USERS_TABLE => 'gu'),

			'ON'	=> 'gu.user_id = p.poster_id'

		)
<< Hide
Find

Tip: This may be a partial find and not the whole line.

Code: Select all
'age'				=> '',
Add after

Tip: Add these lines on a new blank line after the preceding line(s) to find.

Code: Select all
				'gallery_album'		=> '',

				'gallery_images'	=> '',

				'gallery_search'	=> '',
<< Hide
Find

Tip: This may be a partial find and not the whole line.

Code: Select all
'search'		=> ($auth->acl_get('u_search')) ? append_sid("{$phpbb_root_path}search.$phpEx", "author_id=$poster_id&amp;sr=posts") : '',
Add after

Tip: Add these lines on a new blank line after the preceding line(s) to find.

Code: Select all
				'gallery_album'		=> ($row['personal_album_id'] && $config['gallery_viewtopic_icon']) ? append_sid("{$phpbb_root_path}" . GALLERY_ROOT_PATH . "album.$phpEx", "album_id=" . $row['personal_album_id']) : '',

				'gallery_images'	=> ($config['gallery_viewtopic_images']) ? $row['user_images'] : 0,

				'gallery_search'	=> ($config['gallery_viewtopic_images'] && $config['gallery_viewtopic_link'] && $row['user_images']) ? append_sid("{$phpbb_root_path}" . GALLERY_ROOT_PATH . "search.$phpEx", "user_id=$poster_id") : '',
<< Hide
Find

Tip: This may be a partial find and not the whole line.

Code: Select all
'U_JABBER'		=> $user_cache[$poster_id]['jabber'],
Add after

Tip: Add these lines on a new blank line after the preceding line(s) to find.

Code: Select all
		'U_GALLERY'			=> $user_cache[$poster_id]['gallery_album'],

		'GALLERY_IMAGES'	=> $user_cache[$poster_id]['gallery_images'],

		'U_GALLERY_SEARCH'	=> $user_cache[$poster_id]['gallery_search'],
<< Hide

Open: includes/cache.php

Find

Tip: This may be a partial find and not the whole line.

Code: Select all
		return $hook_files;

	}
Add after

Tip: Add these lines on a new blank line after the preceding line(s) to find.

Code: Select all
	/**

	* Obtain list of albums

	*/

	function obtain_album_list()

	{

		global $db;



		if (($albums = $this->get('_albums')) === false)

		{

			$sql = 'SELECT album_id, parent_id, album_name, album_type, left_id, right_id, album_user_id, display_in_rrc

				FROM ' . GALLERY_ALBUMS_TABLE . '

				ORDER BY album_user_id ASC, left_id ASC';

			$result = $db->sql_query($sql);



			$albums = array();

			while ($row = $db->sql_fetchrow($result))

			{

				$albums[$row['album_id']] = array(

					'album_id'			=> $row['album_id'],

					'parent_id'			=> $row['parent_id'],

					'album_name'		=> $row['album_name'],

					'album_type'		=> $row['album_type'],

					'left_id'			=> $row['left_id'],

					'right_id'			=> $row['right_id'],

					'album_user_id'		=> $row['album_user_id'],

					'display_in_rrc'	=> $row['display_in_rrc'],

				);

			}

			$db->sql_freeresult($result);



			$this->put('_albums', $albums);

		}



		return $albums;

	}
<< Hide

Open: includes/constants.php

Comments
de
Wenn die 4 bereits von einem anderem MOD als Log benutzt wird, benutze einfach die nächste freie Zahl.
en
If the number 4 is already a Log of an other MOD, just use the next free number.
Find

Tip: This may be a partial find and not the whole line.

Code: Select all
define('LOG_USERS', 3);
Add after

Tip: Add these lines on a new blank line after the preceding line(s) to find.

Code: Select all
define('LOG_GALLERY', 4);
<< Hide
Find

Tip: This may be a partial find and not the whole line.

Code: Select all
// Additional tables
Add after

Tip: Add these lines on a new blank line after the preceding line(s) to find.

Code: Select all
define('GALLERY_ROOT_PATH', 'gallery/');



define('GALLERY_ALBUMS_TABLE',			$table_prefix . 'gallery_albums');

define('GALLERY_ATRACK_TABLE',			$table_prefix . 'gallery_albums_track');

define('GALLERY_COMMENTS_TABLE',		$table_prefix . 'gallery_comments');

define('GALLERY_CONFIG_TABLE',			$table_prefix . 'gallery_config');

define('GALLERY_CONTESTS_TABLE',		$table_prefix . 'gallery_contests');

define('GALLERY_FAVORITES_TABLE',		$table_prefix . 'gallery_favorites');

define('GALLERY_IMAGES_TABLE',			$table_prefix . 'gallery_images');

define('GALLERY_MODSCACHE_TABLE',		$table_prefix . 'gallery_modscache');

define('GALLERY_PERMISSIONS_TABLE',		$table_prefix . 'gallery_permissions');

define('GALLERY_RATES_TABLE',			$table_prefix . 'gallery_rates');

define('GALLERY_REPORTS_TABLE',			$table_prefix . 'gallery_reports');

define('GALLERY_ROLES_TABLE',			$table_prefix . 'gallery_roles');

define('GALLERY_USERS_TABLE',			$table_prefix . 'gallery_users');

define('GALLERY_WATCH_TABLE',			$table_prefix . 'gallery_watch');
<< Hide

Open: includes/functions.php

Find

Tip: This may be a partial find and not the whole line.

Code: Select all
	$forum_id		= ($mode == 'mod') ? intval(array_shift($args)) : '';

	$topic_id		= ($mode == 'mod') ? intval(array_shift($args)) : '';
Add after

Tip: Add these lines on a new blank line after the preceding line(s) to find.

Code: Select all
	$album_id		= ($mode == 'gallery') ? intval(array_shift($args)) : '';

	$image_id		= ($mode == 'gallery') ? intval(array_shift($args)) : '';
<< Hide
Find

Tip: This may be a partial find and not the whole line.

Code: Select all
		case 'critical':

			$sql_ary['log_type'] = LOG_CRITICAL;

		break;
Add after

Tip: Add these lines on a new blank line after the preceding line(s) to find.

Code: Select all
		case 'gallery':

			$sql_ary += array(

				'log_type'	=> LOG_GALLERY,

				'album_id'	=> $album_id,

				'image_id'	=> $image_id,

			);

		break;
<< Hide
Find

Tip: This may be a partial find and not the whole line.

Code: Select all
// The following assigns all _common_ variables that may be used at any point in a template.
Add before

Tip: Add these lines on a new blank line before the preceding line(s) to find.

Code: Select all
	$user->add_lang('mods/info_acp_gallery');

	$gallery_root_path = GALLERY_ROOT_PATH;

	include($phpbb_root_path . $gallery_root_path . 'plugins/index.' . $phpEx);
<< Hide
Find

Tip: This may be a partial find and not the whole line.

Code: Select all
'U_PRIVATEMSGS'			=> append_sid("{$phpbb_root_path}ucp.$phpEx", 'i=pm&amp;folder=inbox'),
Add before

Tip: Add these lines on a new blank line before the preceding line(s) to find.

Code: Select all
'U_GALLERY_MOD'			=> append_sid("{$phpbb_root_path}{$gallery_root_path}index.$phpEx"),
<< Hide

Open: includes/functions_admin.php

Find

Tip: This may be a partial find and not the whole line.

Code: Select all
		case 'critical':

			$log_type = LOG_CRITICAL;

			$sql_forum = '';

		break;
Add after

Tip: Add these lines on a new blank line after the preceding line(s) to find.

Code: Select all
		case 'gallery':

			$log_type = LOG_GALLERY;

			$sql_forum = '';

			$gallery_root_path = GALLERY_ROOT_PATH;

		break;
<< Hide
Find

Tip: This may be a partial find and not the whole line.

Code: Select all
'viewforum'			=> ($row['forum_id'] && $auth->acl_get('f_read', $row['forum_id'])) ? append_sid("{$phpbb_root_path}viewforum.$phpEx", 'f=' . $row['forum_id']) : false,
Add after

Tip: Add these lines on a new blank line after the preceding line(s) to find.

Code: Select all
			'viewalbum'			=> ((isset($row['album_id']) && $row['album_id'] && ($log_type == LOG_GALLERY)) ? append_sid("{$phpbb_root_path}{$gallery_root_path}album.$phpEx", 'album_id=' . $row['album_id']) : false),

			'viewimage'			=> ((isset($row['image_id']) && $row['image_id'] && ($log_type == LOG_GALLERY)) ? append_sid("{$phpbb_root_path}{$gallery_root_path}image_page.$phpEx", 'album_id=' . $row['album_id'] . '&amp;image_id=' . $row['image_id']) : false),
<< Hide

Open: includes/functions_display.php

Find

Tip: This may be a partial find and not the whole line.

Code: Select all
	$num_predefined_bbcodes = 22;
Add after

Tip: Add these lines on a new blank line after the preceding line(s) to find.

Code: Select all
	$user->add_lang('mods/info_acp_gallery');
<< Hide

Open: includes/functions_user.php

Find

Tip: This may be a partial find and not the whole line.

Code: Select all
	if ($config['newest_username'] == $old_name)
Add before

Tip: Add these lines on a new blank line before the preceding line(s) to find.

Code: Select all
	if (!function_exists('gallery_integrate_user_update_name'))

	{

		global $phpbb_root_path, $phpEx;

		include($phpbb_root_path . GALLERY_ROOT_PATH . 'includes/phpbb_integration.' . $phpEx);

	}

	gallery_integrate_user_update_name($old_name, $new_name);
<< Hide
Find

Tip: This may be a partial find and not the whole line.

Code: Select all
	$table_ary = array(USERS_TABLE, USER_GROUP_TABLE, TOPICS_WATCH_TABLE
Add after

Tip: Add these lines on a new blank line after the preceding line(s) to find.

Code: Select all
	$table_ary = array_merge($table_ary, array(GALLERY_MODSCACHE_TABLE));
<< Hide
Find

Tip: This may be a partial find and not the whole line.

Code: Select all
	// Delete auth entries from the groups table

	$sql = 'DELETE FROM ' . ACL_GROUPS_TABLE . "

		WHERE group_id = $group_id";

	$db->sql_query($sql);
Add after

Tip: Add these lines on a new blank line after the preceding line(s) to find.

Code: Select all
	// Delete the group from the gallery-moderators

	$sql = 'DELETE FROM ' . GALLERY_MODSCACHE_TABLE . "

		WHERE group_id = $group_id";

	$db->sql_query($sql);
<< Hide
Find

Tip: This may be a partial find and not the whole line.

Code: Select all
		if (in_array($config['newest_user_id'], $user_id_ary))

		{

			set_config('newest_user_colour', $sql_ary['user_colour'], true);

		}

	}
Add after

Tip: Add these lines on a new blank line after the preceding line(s) to find.

Code: Select all
	if (!function_exists('gallery_integrate_group_set_user_default'))

	{

		global $phpbb_root_path, $phpEx;

		include($phpbb_root_path . GALLERY_ROOT_PATH . 'includes/phpbb_integration.' . $phpEx);

	}

	gallery_integrate_group_set_user_default($user_id_ary, $sql_ary);
<< Hide

Open: includes/session.php

Find

Tip: This may be a partial find and not the whole line.

Code: Select all
'forum'				=> (isset($_REQUEST['f']) && $_REQUEST['f'] > 0) ? (int) $_REQUEST['f'] : 0,
Add after

Tip: Add these lines on a new blank line after the preceding line(s) to find.

Code: Select all
'album'				=> (isset($_REQUEST['album_id']) && $_REQUEST['album_id'] > 0) ? (int) $_REQUEST['album_id'] : 0,
<< Hide
Find

Tip: This may be a partial find and not the whole line.

Code: Select all
							$sql_ary = array('session_time' => $this->time_now);



							if ($this->update_session_page)

							{

								$sql_ary['session_page'] = substr($this->page['page'], 0, 199);

								$sql_ary['session_forum_id'] = $this->page['forum'];
Add after

Tip: Add these lines on a new blank line after the preceding line(s) to find.

Code: Select all
$sql_ary['session_album_id'] = $this->page['album'];
<< Hide
Find

Tip: This may be a partial find and not the whole line.

Code: Select all
							// If the database is not yet updated, there will be an error due to the session_forum_id

							// @todo REMOVE for 3.0.2
Add before

Tip: Add these lines on a new blank line before the preceding line(s) to find.

Code: Select all
							if ($result === false)

							{

								unset($sql_ary['session_album_id']);

								$db->sql_return_on_error(true);



								$sql = 'UPDATE ' . SESSIONS_TABLE . ' SET ' . $db->sql_build_array('UPDATE', $sql_ary) . "

									WHERE session_id = '" . $db->sql_escape($this->session_id) . "'";

								$result = $db->sql_query($sql);



								$db->sql_return_on_error(false);

							}
<< Hide
Find

Tip: This may be a partial find and not the whole line.

Code: Select all
					$sql_ary = array('session_time' => $this->time_now, 'session_last_visit' => $this->time_now, 'session_admin' => 0);



					if ($this->update_session_page)

					{

						$sql_ary['session_page'] = substr($this->page['page'], 0, 199);

						$sql_ary['session_forum_id'] = $this->page['forum'];
Add after

Tip: Add these lines on a new blank line after the preceding line(s) to find.

Code: Select all
$sql_ary['session_album_id'] = $this->page['album'];
<< Hide
Find

Tip: This may be a partial find and not the whole line.

Code: Select all
			'session_viewonline'	=> ($viewonline) ? 1 : 0,

		);



		if ($this->update_session_page)

		{

			$sql_ary['session_page'] = (string) substr($this->page['page'], 0, 199);

			$sql_ary['session_forum_id'] = $this->page['forum'];
Add after

Tip: Add these lines on a new blank line after the preceding line(s) to find.

Code: Select all
$sql_ary['session_album_id'] = $this->page['album'];
<< Hide
Find

Tip: This may be a partial find and not the whole line.

Code: Select all
		$sql_ary['session_id'] = (string) $this->session_id;

		$sql_ary['session_page'] = (string) substr($this->page['page'], 0, 199);

		$sql_ary['session_forum_id'] = $this->page['forum'];
Add after

Tip: Add these lines on a new blank line after the preceding line(s) to find.

Code: Select all
$sql_ary['session_album_id'] = $this->page['album'];
<< Hide

Open: includes/acp/acp_language.php

Find

Tip: This may be a partial find and not the whole line.

Code: Select all
'icon_back_top', 'icon_contact_aim', 'icon_contact_email', 'icon_contact_icq', 'icon_contact_jabber', 'icon_contact_msnm', 'icon_contact_pm', 'icon_contact_yahoo', 'icon_contact_www', 'icon_post_delete', 'icon_post_edit', 'icon_post_info', 'icon_post_quote', 'icon_post_report', 'icon_user_online', 'icon_user_offline', 'icon_user_profile', 'icon_user_search', 'icon_user_warn', 'button_pm_forward', 'button_pm_new', 'button_pm_reply', 'button_topic_locked', 'button_topic_new', 'button_topic_reply',
In-line Find

Tip: This is a partial match of a line for in-line operations.

Code: Select all
 'button_topic_reply',
In-line Add after

 

Code: Select all
 'button_upload_image',
<< Hide

Open: includes/acp/acp_logs.php

Find

Tip: This may be a partial find and not the whole line.

Code: Select all
$checks = array('viewtopic', 'viewlogs', 'viewforum');
Add after

Tip: Add these lines on a new blank line after the preceding line(s) to find.

Code: Select all
			if ($mode == 'gallery')

			{

				$checks = array('viewimage', 'viewalbum');

			}
<< Hide

Open: includes/acp/acp_styles.php

Find

Tip: This may be a partial find and not the whole line.

Code: Select all
'icon_back_top', 'icon_contact_aim', 'icon_contact_email', 'icon_contact_icq', 'icon_contact_jabber', 'icon_contact_msnm', 'icon_contact_pm', 'icon_contact_yahoo', 'icon_contact_www', 'icon_post_delete', 'icon_post_edit', 'icon_post_info', 'icon_post_quote', 'icon_post_report', 'icon_user_online', 'icon_user_offline', 'icon_user_profile', 'icon_user_search', 'icon_user_warn', 'button_pm_forward', 'button_pm_new', 'button_pm_reply', 'button_topic_locked', 'button_topic_new', 'button_topic_reply',
In-line Find

Tip: This is a partial match of a line for in-line operations.

Code: Select all
 'button_topic_reply',
In-line Add after

 

Code: Select all
 'button_upload_image',
<< Hide

Open: includes/acp/info/acp_logs.php

Find

Tip: This may be a partial find and not the whole line.

Code: Select all
'critical'	=> array('title' => 'ACP_CRITICAL_LOGS', 'auth' => 'acl_a_viewlogs', 'cat' => array('ACP_FORUM_LOGS')),
Add after

Tip: Add these lines on a new blank line after the preceding line(s) to find.

Code: Select all
'gallery'	=> array('title' => 'ACP_GALLERY_LOGS', 'auth' => 'acl_a_viewlogs', 'cat' => array('ACP_FORUM_LOGS')),
<< Hide

Open: styles/prosilver/imageset/en/imageset.cfg

Find

Tip: This may be a partial find and not the whole line.

Code: Select all
img_button_topic_reply = button_topic_reply.gif*25*96
Add after

Tip: Add these lines on a new blank line after the preceding line(s) to find.

Code: Select all
img_button_upload_image = button_upload_image.gif*25*96
<< Hide

Open: styles/prosilver/template/index_body.html

Find

Tip: This may be a partial find and not the whole line.

Code: Select all
<p>{TOTAL_POSTS} &bull; {TOTAL_TOPICS} &bull; {TOTAL_USERS} &bull; {NEWEST_USER}</p>
In-line Find

Tip: This is a partial match of a line for in-line operations.

Code: Select all
{TOTAL_TOPICS}
In-line Add after

 

Code: Select all
<!-- IF TOTAL_IMAGES --> &bull; {TOTAL_IMAGES}<!-- ENDIF -->
<< Hide

Open: styles/prosilver/template/memberlist_view.html

Find

Tip: This may be a partial find and not the whole line.

Code: Select all
<!-- IF S_GROUP_OPTIONS --><dt>{L_USERGROUPS}:</dt> <dd><select name="g">{S_GROUP_OPTIONS}</select> <input type="submit" name="submit" value="{L_GO}" class="button2" /></dd><!-- ENDIF -->
Add after

Tip: Add these lines on a new blank line after the preceding line(s) to find.

Code: Select all
<!-- IF U_GALLERY --><dt>{L_GALLERY}:</dt> <dd><a href="{U_GALLERY}">{SHOW_PERSONAL_ALBUM_OF}</a></dd><!-- ENDIF -->
<< Hide
Find

Tip: This may be a partial find and not the whole line.

Code: Select all
			<dt>{L_TOTAL_POSTS}:</dt>

				<dd>{POSTS} <!-- IF S_DISPLAY_SEARCH -->| <strong><a href="{U_SEARCH_USER}">{L_SEARCH_USER_POSTS}</a></strong><!-- ENDIF -->

					<!-- IF POSTS_PCT --><br />({POSTS_PCT} / {POSTS_DAY})<!-- ENDIF -->

					<!-- IF POSTS_IN_QUEUE and U_MCP_QUEUE --><br />(<a href="{U_MCP_QUEUE}">{L_POSTS_IN_QUEUE}</a>)<!-- ELSEIF POSTS_IN_QUEUE --><br />({L_POSTS_IN_QUEUE})<!-- ENDIF -->

				</dd>
Add after

Tip: Add these lines on a new blank line after the preceding line(s) to find.

Code: Select all
			<!-- IF TOTAL_IMAGES -->

				<dt>{L_TOTAL_IMAGES}:</dt>

					<dd>{IMAGES} | <strong><a href="{U_SEARCH_GALLERY}">{L_SEARCH_USER_IMAGES}</a></strong>

						<!-- IF IMAGES_PCT --><br />({IMAGES_PCT} / {IMAGES_DAY})<!-- ENDIF -->

					</dd>

			<!-- ENDIF -->
<< Hide
Find

Tip: This may be a partial find and not the whole line.

Code: Select all
<!-- INCLUDE jumpbox.html -->
Add before

Tip: Add these lines on a new blank line before the preceding line(s) to find.

Code: Select all
<!-- INCLUDE gallery/recent_body.html -->
<< Hide

Open: styles/prosilver/template/overall_header.html

Find

Tip: This may be a partial find and not the whole line.

Code: Select all
</head>
Add before

Tip: Add these lines on a new blank line before the preceding line(s) to find.

Code: Select all
<!-- INCLUDE gallery/plugins_header.html -->
<< Hide
Find

Tip: This may be a partial find and not the whole line.

Code: Select all
<li class="icon-faq"><a href="{U_FAQ}" title="{L_FAQ_EXPLAIN}">{L_FAQ}</a></li>
Add after

Tip: Add these lines on a new blank line after the preceding line(s) to find.

Code: Select all
<li class="icon-gallery"><a href="{U_GALLERY_MOD}" title="{L_GALLERY_EXPLAIN}">{L_GALLERY}</a></li>
<< Hide

Open: styles/prosilver/template/viewtopic_body.html

Find

Tip: This may be a partial find and not the whole line.

Code: Select all
<!-- IF postrow.POSTER_POSTS != '' --><dd><strong>{L_POSTS}:</strong> {postrow.POSTER_POSTS}</dd><!-- ENDIF -->
Add after

Tip: Add these lines on a new blank line after the preceding line(s) to find.

Code: Select all
<!-- IF postrow.GALLERY_IMAGES != '' --><dd><strong>{L_IMAGES}:</strong> <!-- IF postrow.U_GALLERY_SEARCH --><a href="{postrow.U_GALLERY_SEARCH}">{postrow.GALLERY_IMAGES}</a><!-- ELSE -->{postrow.GALLERY_IMAGES}<!-- ENDIF --></dd><!-- ENDIF -->
<< Hide
Find

Tip: This may be a partial find and not the whole line.

Code: Select all
<!-- IF postrow.U_JABBER --><li class="jabber-icon"><a href="{postrow.U_JABBER}" οnclick="popup(this.href, 550, 320); return false;" title="{L_JABBER}"><span>{L_JABBER}</span></a></li><!-- ENDIF -->
Add after

Tip: Add these lines on a new blank line after the preceding line(s) to find.

Code: Select all
<!-- IF postrow.U_GALLERY --><li class="gallery-icon"><a href="{postrow.U_GALLERY}" title="{L_PERSONAL_ALBUM}"><span>{L_PERSONAL_ALBUM}</span></a></li><!-- ENDIF -->
<< Hide

Open: styles/prosilver/theme/stylesheet.css

Find

Tip: This may be a partial find and not the whole line.

Code: Select all
@import url("colours.css");
Add after

Tip: Add these lines on a new blank line after the preceding line(s) to find.

Code: Select all
@import url("gallery.css");
<< Hide

DIY instructions

These are manual instructions that cannot be performed automatically. You should follow these instructions carefully.

Code: Select all
Rufe install/ auf und führe den Installer aus

Leere den Cache im "Administrations-Bereich" (ACP) > "Allgemein" > "Den Cache leeren"

Aktualisiere deine Styles:
    "Administrations-Bereich" (ACP) > "Styles" > "Templates" > jedes > "Aktualisieren"
    "Administrations-Bereich" (ACP) > "Styles" > "Themes" > jedes > "Aktualisieren"
    "Administrations-Bereich" (ACP) > "Styles" > "Grafiksammlungen" > jedes > "Aktualisieren"
Code: Select all
Browse to install/ and run the installer



Clear your cache in the "Administration Control Panel" (ACP) > "General" > "Purge the cache"



Refresh your Styles:

    "Administration Control Panel" (ACP) > "Styles" > "Templates" > each > "refresh"

    "Administration Control Panel" (ACP) > "Styles" > "Themes" > each > "refresh"

    "Administration Control Panel" (ACP) > "Styles" > "Imagesets" > each > "refresh"

Save all files. End of MOD.

Youhave finished the installation for this MOD. Upload all changed filesto your website. If the installation went bad, simply restore yourbacked up files.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值