phpbb gallery 相簿安装

《光学》全套PPT课件(安徽大学) 立即下载
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}" onclick="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.

YOLO26算法婴幼儿面部情绪识别目标检测+训练好的模型+2681张数据集+pyqt可视化界面.zip 附训练好的 YOLO 权重与 PyQt 可视化检测界面,页面底部含可视化效果预览,毕设/课设开箱即用。 【数据集概况】 · 检测类别(中文):[哭泣(crying), 开心(happy)] · 总计:2681 张 · 测试集:186 张 · 验证集:0 张 · 训练集:2495 张 【训练曲线与评估图】 【模型训练配置】 参数 | 值 模型 | yolo26n 训练轮数 | 100 epochs 输入尺寸 | 640x640 批次大小 | 24 优化器 | auto 初始学习率 | 0.01 训练设备 【关键指标汇总】 训练了 100 个 epoch,最终轮指标: 指标 | 数值 mAP50 | **0.8069** mAP50-95 | 0.5664 Precision | 0.8700 Recall | 0.7726 train/box_loss | 0.7524 train/cls_loss | 0.4490 val/box_loss | 1.1351 val/cls_loss | 0.7588 【训练过程分析】 训练伊始,模型对 box_loss 和 cls_loss 的下降表现出惊人的效率,前 20 轮迅速将训练损失降至低位,显示了训练集的强大适应性。然而,在第 20 轮之后,loss 下降速度明显放缓,整体趋于平稳。到了 60 轮左右,box_loss 值逐渐接近 0.75,而 cls_loss 则稳定在 0.44 左右。从训练集的 box_loss 从 0.7524 降至 0.7325,能看出来 model 正在逐步优化每个实例的边界框准确性,这一过程在前 40 轮尤为显著。相比之下,cls_loss 从 0.4490 降至 0.4389,尽管变化不大,但整体上表现出了模型对类别的清晰度提升... 使用场景:毕业设计、课程设计、深度学习入门、工业场景落地验证。 立即下载

相关推荐

依赖专家资源的传统机构与依赖数据算法的现代平台,在转化效率上谁更胜一筹?.docx

依赖专家资源的传统机构与依赖数据算法的现代平台,在转化效率上谁更胜一筹?

php 多人相册,精選五種 PHP 網路相簿總覽

這幾天我站台預計的討論區已經差不多了,正好也有朋友需要網路相簿,我先把我找到的幾個不錯的免費相簿跟大家分享。(當然也是 PHP 的啦!)4images心得:這是老牌子的網路相簿了,google 搜尋就有一大堆,我就不多解釋了。35mm Slide Gallery心得:很精緻的網路相簿,做成投影片的列表。但是也只有列表好看,看原始照片除了放大縮小也沒做其它處理,連分類都是簡單的 Combo box,...

weixin_32409707的博客 177

PostgreSQL 数据库辅助类(要求 Npgsql 7.0 及以上) .NET Framework 4.7.2+ 或 .NET 6+;C# 7.3+

类别 :方法 数据源: Initialize、Close、DataSource、ConfigureBuilder、CommandTimeout、OnSqlExecuted 参数: CreateParameter(含类型版)、CreateJsonbParameter、CreateArrayParameter、ParamsFrom 执行: ExecuteNonQuery、ExecuteScalar<T>、ExecuteDataTable、ExecuteDataSet、ExecuteList<T>、ExecuteModel<T>、ExecuteDictionaryList、ExecuteColumn<T>、ExecuteReader(均有异步版) 封装: Exists、Count、ExecutePagedDataTable/List、Insert、Update、Delete、Upsert、TableExists、ColumnExists、GetTableNames、GetServerVersion、TestConnection 数据库对象: ExecuteFunctionTable/Scalar、CallProcedure 批量: ExecuteBatch(NpgsqlBatch)、BulkInsert(二进制 COPY)、CopyOut、ToDataTable 事务: ExecuteInTransaction(Async)、OpenTransaction(Async) 其他: Notify、ListenAsync、PgRetry(只读、显式调用)

phpBB3风格的模板文件列表

英文原文:Knowledge Base - phpBB3 Styles' files list作者:TheIlluminative译者:greatboy描述:一个关于 phpBB3 样式风格里使用的所有文件列表。phpBB3 样式的文件列表就像 phpBB2, phpBB3 包含了一个页眉,主体和页角,其中 overall_header.html 与 simple_header.html 控制页眉

hermes 2252

知识管理四款团队知识库选型对比:Confluence、OmniBox、语雀、Sward适用场景与部署方案分析

内容概要:本文对2026年主流的四款团队知识库工具Confluence、小黑OmniBox、语雀和Sward进行了横向评测,指出这四款产品并非直接竞争关系,而是分别对应不同组织状态下的解决方案。评测围绕部署方式、权限协作、检索与AI能力三大核心维度展开,强调选型不应仅看功能列表,而应关注资料来源、使用场景与团队特征。Confluence适合已有Atlassian体系的中大型企业,强在权限控制与流程治理;小黑OmniBox聚焦多源资料整合与AI问答,适用于资料分散的团队;语雀以“书本式”结构降低中文团队使用门槛;Sward则主打开源私有化部署,满足内网合规需求。文章最后提供四类典型团队的选型路径,并澄清了“AI万能”“私有化即安全”等常见误区。; 适合人群:企业IT负责人、技术管理者、知识管理相关从业者,尤其是面临知识库选型决策的团队领导者。; 使用场景及目标:①帮助团队根据自身规模、技术栈、数据主权要求和协作习惯选择合适知识库工具;②厘清AI与知识库的关系,避免选型误区;③指导已有系统如何与新工具(如OmniBox)叠加使用,提升知识利用率。; 阅读建议:此评测基于公开资料与产品文档,未进行压力测试或大规模实测,建议结合实际业务场景试用验证,并优先考虑现有系统兼容性与迁移成本。

基于深度学习分类的时相关MIMO信道的递归CSI量化(Matlab代码实现)

内容概要:本文系统阐述了基于深度学习分类的时相关MIMO信道递归CSI量化方法,并提供了完整的Matlab代码实现。该方法针对大规模MIMO系统中因信道状态信息(CSI)反馈开销过大而导致的系统效率下降问题,提出一种结合深度学习与递归结构的量化方案,利用分类网络对时域相关的CSI进行高效压缩,通过递归机制捕捉信道动态的时间连续性特征,显著提升了量化精度与频谱利用率。文中详细介绍了算法设计原理、神经网络架构选型、训练策略设计、损失函数构建及仿真验证流程,展示了在不同信道模型与时变条件下相较于传统量化方法的性能优势。; 适合人群:具备通信工程、信号处理或无线通信领域基础知识,熟悉MIMO系统原理与深度学习基本模型(如RNN、CNN)的研究生、科研人员及工程师,尤其适合从事智能通信、信道建模、CSI反馈优化等相关方向的研究者。; 使用场景及目标:①应用于大规模MIMO和5G/6G系统中的CSI反馈压缩与传输优化;②为时变无线信道环境下的高效信道量化提供基于深度学习的智能化解决方案;③支持科研复现实验,促进先进信号处理技术在通信系统中的融合与创新; 阅读建议:建议读者结合提供的Matlab代码逐模块调试运行,深入理解深度学习模型在信道量化任务中的输入输出设计、网络训练流程与性能评估方式,可尝试在不同信道参数(如多普勒频移、SNR)下进行仿真实验以验证算法鲁棒性与泛化能力。

PHPBBS安装积分的帮助文档

Installation instructions for 'Ultimate Points' version 1.1.0 Select language: About this MOD Title:         Ultimate Points Description:         The Ultimate Points is an addition to y

hermes 1431

konica C368(柯尼卡美能达bizhub C368系列打印机驱动)

1、查看本机 IP,确保电脑和复印机在同一个局域网。 2、安装时 右键以管理员运行 ,旧驱动先卸载干净避免冲突。 3、端口默认:9100(RAW),也可用 LPR。 安装方法: 1. 解压后进入文件夹,64 位运行 `Setup64.exe`,32 位运行 `Setup.exe`。 2. 同意协议 → 选择【安装(网络搜索)】,程序自动扫描局域网内 C368P。 3. 在列表选中对应 IP 的机器,下一步;如果扫不到,切换到【手动设置】,填入复印机 IP。 4. 勾选驱动类型(PCL6),点击安装,等待完成。 5. 安装结束,打印测试页验证。

[教學] PhpBB3 簡易安裝教學 (圖片教學)

[教學] PhpBB3 簡易安裝教學 (圖片教學) 由 小爆 » 2008-02-05 10:11 前言:  由於最近小弟忙著衝基測,所以幾乎沒有碰PHP了,然後PHPBB3又已經推出,  然後又沒有安裝教學,所以小弟就趁著過年期間的假期製作PHPBB3的教學囉,  仔細回想兩年多前的PHPBB2教學,當時因為年幼無知,用字措辭不佳,  造成各位看官看笑話了,但也希望能夠造福各位

hermes 1276

EI复现梯级水光互补系统最大化可消纳电量期望短期优化调度模型(Python代码实现)

内容概要:本文提出了一种针对梯级水光互补系统的短期优化调度模型,旨在最大化可消纳电量期望,通过构建精确的数学优化模型并结合Python编程实现,对水电与光伏发电出力进行协同调度,提升新能源的利用效率与系统运行的稳定性;研究中引入Copula理论对光伏出力的不确定性与风光之间的时空相关性进行建模,提高了功率预测的概率精度与场景生成的科学性,从而增强调度方案在实际复杂环境下的鲁棒性与实用性。; 适合人群:具备电力系统运行与优化基础、掌握Python编程技能,从事新能源调度、多能互补系统建模、可再生能源集成研究的科研人员、工程技术人员及研究生。; 使用场景及目标:①应用于梯级水电站与大型光伏电站的联合运行调度分析;②支撑高比例可再生能源接入背景下的电力系统短期优化决策;③为考虑风光出力不确定性与相关性的多能源互补系统提供从概率预测到优化调度的完整技术路径与代码实现参考。; 阅读建议:建议读者结合文中Copula光伏预测模块与优化调度框架,使用实际气象与运行数据进行代码复现与参数调优,深入理解不确定性建模与优化求解的耦合机制,并可进一步拓展至含储能、负荷响应等多元灵活性资源的综合调度场景研究。

电气数据大规模复杂配电网故障溯源数据集

【电气数据】大规模复杂配电网故障溯源数据集内容概要:本文介绍了名为“大规模复杂配电网故障溯源数据集”的电气数据资源,旨在为电力系统领域的科研人员提供用于故障诊断、状态估计和配电网优化研究的数据支持。该数据集及相关资源涵盖了配电网故障溯源、电力变压器诊断、新能源并网、储能优化调度等多个关键技术方向,并提供了大量基于Matlab/Simulink的仿真代码与模型,如序贯蒙特卡洛模拟法可靠性评估、含分布式电源的配电网重构、最优潮流计算等,具有较强的工程应用价值。资源还配套详细文档、参考文献及运行结果,便于使用者快速理解和复现。; 适合人群:具备电力系统、电气工程或自动化等相关专业背景,从事科研或工程仿真的研究生、高校教师及研发人员。; 使用场景及目标:①开展配电网故障定位、溯源与恢复策略研究;②进行电力系统可靠性评估、优化调度与状态估计算法开发;③复现高水平期刊论文中的仿真案例,支撑科研项目与论文撰写。; 阅读建议:建议读者结合提供的完整资源目录和网盘链接,系统性地查阅相关代码与文献,优先选择与自身研究方向契合的内容进行实践,并通过公众号“荔枝科研社”获取最新资料和技术支持。

phpbb3 论坛新贴和本周五大字体修改修改论坛新贴和本周五大的字体大小

修改论坛新贴和本周五大的字体大小 latest { float:left; font-family:"Lucida Grande",Verdana,Helvetica,Arial,sans-serif; width:50%; font-size:1.3em; } #weekly { float:right; width:49%; font-size:1.3em; }

hermes 1212

版图提取的spice网表中参数含义及二级效应STI/WPE

寄生电阻、寄生电容可以从版图提出的.sp文件中看, ad area of drain 面积 as area of source pd perimeter of drain 周长,PS PD周长都不计算与栅极接触的部分 ps perimeter of source nrd 漏扩散区等效方块数 nrs 源扩散区等效方块数 sa ...

qq_40007892的博客 6563

20-10-28 安装PHPBB3论坛和Joomla网站

2020-10-28 安装PHPBBS教程 1、下载phpbbs架站软件 https://www.phpbb.com/downloads/ #Lastest stable phpbb 3.3.1 released :07 august 2020 下载中文简体语言软件包 https://www.phpbb.com/customise/db/translation/mandarin_chinese_simplified_script/?sid=c0081a6cb745e551d1a7ee96d...

hermes 1190

【AutoDL + Langchain-Chatchat】从零构建高效本地 RAG 知识库问答系统:实战保姆级教程(含避坑指南)

本文详细阐述如何在AutoDL云平台,如何利用Langchain-Chatchat构建高效的本地RAG知识库问答系统,并深入解析RAG架构。从环境搭建到实战部署,从问题排查到性能优化,提供一份全面实用的指南,助力开发者快速构建智能问答应用。

拾光夕拾的博客 1812

用74LS160和74LS194搭个复古流水灯:从Multisim仿真到面包板实战(附完整电路图)

本文详细介绍了如何使用74LS160和74LS194芯片搭建复古流水灯电路,从Multisim仿真到面包板实战的全过程。通过解析核心器件特性、提供完整材料清单、仿真验证电路逻辑,以及实际搭建中的布局规划和调试技巧,帮助电子爱好者掌握这一经典数字电路设计项目。

weixin_28736355的博客 390

依兰吧论坛 备份命令

整站下载   scp -pr root@42.96.168.122:/var/www/bluetooth8/ ~/www/bluetooth8 scp -pr root@42.96.168.122:/var/www/yilan8/ ~/www/yilan8

hermes 1179

桂电 数电实验 期末考试 试卷+解析(74LS192 + 74LS153 + 74LS139 + 74LS00 / 74LS20)

桂电 数电实验 期末考试 试卷+解析(74LS192 + 74LS153 + 74LS139 + 74LS00 / 74LS20)

Molly 的博客 1万+
上一篇: 如何修改Linux系统的文件权限
下一篇: phpBB3风格的模板文件列表
hermes
博客等级 码龄22年 30粉丝 18原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

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

抵扣说明:

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

余额充值