Changeset 159

User picture

Author: Mighty Gorgon

(2009/12/30 14:18) About 2 years ago

Added a function to generate topics pagination and integrated where needed

Bugs fixed:
* Wrong topic pagination on some pages
* Minor bugs

Affected files

Updated ip/trunk/ajax.php Download diff

158159
18
if (!defined('IP_ROOT_PATH')) define('IP_ROOT_PATH', './');
18
if (!defined('IP_ROOT_PATH')) define('IP_ROOT_PATH', './');
19
if (!defined('PHP_EXT')) define('PHP_EXT', substr(strrchr(__FILE__, '.'), 1));
19
if (!defined('PHP_EXT')) define('PHP_EXT', substr(strrchr(__FILE__, '.'), 1));
20
include(IP_ROOT_PATH . 'common.' . PHP_EXT);
20
include(IP_ROOT_PATH . 'common.' . PHP_EXT);
21
include(IP_ROOT_PATH . 'includes/functions_post.' . PHP_EXT);
21
include_once(IP_ROOT_PATH . 'includes/functions_post.' . PHP_EXT);
22
22
23
// Define constant to keep page_header.php from sending headers
23
// Define constant to keep page_header.php from sending headers
24
define('AJAX_HEADERS', true);
24
define('AJAX_HEADERS', true);

Updated ip/trunk/delete_users.php Download diff

158159
53
if (!defined('IP_ROOT_PATH')) define('IP_ROOT_PATH', './');
53
if (!defined('IP_ROOT_PATH')) define('IP_ROOT_PATH', './');
54
if (!defined('PHP_EXT')) define('PHP_EXT', substr(strrchr(__FILE__, '.'), 1));
54
if (!defined('PHP_EXT')) define('PHP_EXT', substr(strrchr(__FILE__, '.'), 1));
55
include(IP_ROOT_PATH . 'common.' . PHP_EXT);
55
include(IP_ROOT_PATH . 'common.' . PHP_EXT);
56
include(IP_ROOT_PATH . 'includes/digest_constants.' . PHP_EXT);
56
include_once(IP_ROOT_PATH . 'includes/digest_constants.' . PHP_EXT);
57
include(IP_ROOT_PATH . 'includes/functions_users_delete.' . PHP_EXT);
57
include_once(IP_ROOT_PATH . 'includes/functions_users_delete.' . PHP_EXT);
58
include(IP_ROOT_PATH . 'includes/emailer.' . PHP_EXT);
58
include_once(IP_ROOT_PATH . 'includes/emailer.' . PHP_EXT);
59
59
60
@set_time_limit(180);
60
@set_time_limit(180);
61
61

Updated ip/trunk/includes/functions.php Download diff

158159
2090
}
2090
}
2091
2091
2092
/**
2092
/**
2093
* Generate topic pagination
2094
*/
2095
function generate_topic_pagination($forum_id, $topic_id, $replies, $per_page = 0)
2096
{
2097
	global $config, $template, $images, $lang;
2098
2099
	$per_page = (!empty($per_page) && intval($per_page)) ? intval($per_page) : $config['posts_per_page'];
2100
	$topic_pagination = array();
2101
	$topic_pagination['base'] = '';
2102
	$topic_pagination['full'] = '';
2103
2104
	$url_append = '';
2105
	$url_append .= (empty($url_append) ? '' : '&') . ((!empty($forum_id) ? (POST_FORUM_URL . '=' . $forum_id) : ''));
2106
	$url_append .= (empty($url_append) ? '' : '&') . ((!empty($topic_id) ? (POST_TOPIC_URL . '=' . $topic_id) : ''));
2107
2108
	if(($replies + 1) > $per_page)
2109
	{
2110
		$total_pages = ceil(($replies + 1) / $per_page);
2111
		$goto_page_prefix = ' [';
2112
		$goto_page = ' <img src="' . $images['icon_gotopage'] . '" alt="' . $lang['Goto_page'] . '" title="' . $lang['Goto_page'] .
'" />&nbsp;';
2113
		$times = '1';
2114
		for($j = 0; $j < $replies + 1; $j += $per_page)
2115
		{
2116
			$goto_page .= '<a href="' . append_sid(CMS_PAGE_VIEWTOPIC . '?' . $url_append . '&amp;start=' . $j) . '" title="' . $lang['Goto_page']
. ' ' . $times . '"><b>' . $times . '</b></a>';
2117
			if(($times == 1) && ($total_pages > 4))
2118
			{
2119
				$goto_page .= ' ... ';
2120
				$times = $total_pages - 3;
2121
				$j += ($total_pages - 4) * $per_page;
2122
			}
2123
			elseif($times < $total_pages)
2124
			{
2125
				//$goto_page .= ', ';
2126
				$goto_page .= ' ';
2127
			}
2128
			$times++;
2129
		}
2130
		$goto_page_suffix = ' ]';
2131
		$goto_page .= ' ';
2132
2133
		$topic_pagination['base'] = '<span class="gotopage">' . $goto_page . '</span>';
2134
		$topic_pagination['full'] = '<span class="gotopage">' . $goto_page_prefix . ' ' . $lang['Goto_page'] . $goto_page . $goto_page_suffix .
'</span>';
2135
	}
2136
2137
	return $topic_pagination;
2138
}
2139
2140
/**
2093
* Generate full pagination with template
2141
* Generate full pagination with template
2094
*/
2142
*/
2095
function generate_full_pagination($base_url, $num_items, $per_page, $start_item, $add_prevnext_text = true, $start = 'start')
2143
function generate_full_pagination($base_url, $num_items, $per_page, $start_item, $add_prevnext_text = true, $start = 'start')

Updated ip/trunk/includes/functions_topics_list.php Download diff

158159
411
		}
411
		}
412
412
413
		// generate list of page for the topic
413
		// generate list of page for the topic
414
		$goto_page = '';
414
		$topic_pagination = generate_topic_pagination($forum_id, $topic_id, $replies);
415
		if(($replies + 1) > $config['posts_per_page'])
416
		{
417
			$total_pages = ceil(($replies + 1) / $config['posts_per_page']);
418
			$goto_page = ' [ <img src="' . $images['icon_gotopost'] . '" alt="' . $lang['Goto_page'] . '" title="' . $lang['Goto_page'] . '" />' . $lang['Goto_page'] . ': ';
419
			$times = 1;
420
			for($j = 0; $j < $replies + 1; $j += $config['posts_per_page'])
421
			{
422
				$goto_page .= '<a href="' . append_sid(CMS_PAGE_VIEWTOPIC . "?" . POST_TOPIC_URL . "=" . $topic_id . "&amp;start=$j") . '">' . $times . '</a>';
423
				if($times == 1 && $total_pages > 4)
424
				{
425
					$goto_page .= ' ... ';
426
					$times = $total_pages - 3;
427
					$j += ($total_pages - 4) * $config['posts_per_page'];
428
				}
429
				else if ($times < $total_pages)
430
				{
431
					//$goto_page .= ', ';
432
					$goto_page .= ' ';
433
				}
434
				$times++;
435
			}
436
			$goto_page .= ' ] ';
437
		}
438
415
439
		$topic_author = '';
416
		$topic_author = '';
440
		$first_post_time = '';
417
		$first_post_time = '';
...
...
669
			'TOPIC_FOLDER_IMG' => $folder_image,
646
			'TOPIC_FOLDER_IMG' => $folder_image,
670
			'TOPIC_AUTHOR' => $topic_author,
647
			'TOPIC_AUTHOR' => $topic_author,
671
			'TOPIC_DESCRIPTION' => $topic_desc,
648
			'TOPIC_DESCRIPTION' => $topic_desc,
672
			'GOTO_PAGE' => !empty($goto_page) ? '<br />' . $goto_page : '',
649
			'GOTO_PAGE' => $topic_pagination['base'],
650
			'GOTO_PAGE_FULL' => $topic_pagination['full'],
673
			'TOPIC_NAV_TREE' => !empty($nav_tree) ? (empty($goto_page) ? '<br />' : '') . $nav_tree : '',
651
			'TOPIC_NAV_TREE' => !empty($nav_tree) ? (empty($goto_page) ? '<br />' : '') . $nav_tree : '',
674
			'REPLIES' => $replies,
652
			'REPLIES' => $replies,
675
			'NEWEST_POST_IMG' => $newest_post_img,
653
			'NEWEST_POST_IMG' => $newest_post_img,

Updated ip/trunk/modcp.php Download diff

158159
1127
			}
1127
			}
1128
			$topic_id_append = $topic_link['topic_id_append'];
1128
			$topic_id_append = $topic_link['topic_id_append'];
1129
1129
1130
			if(($replies + 1) > $config['posts_per_page'])
1130
			$topic_pagination = generate_topic_pagination($forum_id, $topic_id, $replies);
1131
			{
1132
				$total_pages = ceil(($replies + 1) / $config['posts_per_page']);
1133
				$goto_page = ' [ <img src="' . $images['icon_gotopost'] . '" alt="' . $lang['Goto_page'] . '" title="' . $lang['Goto_page'] . '" />&nbsp;' . $lang['Goto_page'] . ': ';
1134
1131
1135
				$times = 1;
1136
				for($j = 0; $j < $replies + 1; $j += $config['posts_per_page'])
1137
				{
1138
					$goto_page .= '<a href="' . append_sid(CMS_PAGE_VIEWTOPIC . '?' . $forum_id_append . '&amp;' . $topic_id_append . '&amp;start=' . $j) . '"><b>' . $times . '</b></a>';
1139
					if(($times == 1) && ($total_pages > 4))
1140
					{
1141
						$goto_page .= ' ... ';
1142
						$times = $total_pages - 3;
1143
						$j += ($total_pages - 4) * $config['posts_per_page'];
1144
					}
1145
					elseif ($times < $total_pages)
1146
					{
1147
						//$goto_page .= ', ';
1148
						$goto_page .= ' ';
1149
					}
1150
					$times++;
1151
				}
1152
				$goto_page .= ' ] ';
1153
			}
1154
			else
1155
			{
1156
				$goto_page = '';
1157
			}
1158
1159
			$first_post_time = create_date_ip($config['default_dateformat'], $topic_rowset[$i]['topic_time'], $config['board_timezone']);
1132
			$first_post_time = create_date_ip($config['default_dateformat'], $topic_rowset[$i]['topic_time'], $config['board_timezone']);
1160
			//$first_post_author = ($topic_rowset[$i]['topic_starter_id'] == ANONYMOUS) ? (($topic_rowset[$i]['topic_starter_guest'] != '') ?
$topic_rowset[$i]['topic_starter_guest'] . ' ' : $lang['Guest'] . ' ') : '<a href="' . append_sid(CMS_PAGE_PROFILE . '?mode=viewprofile&amp;' .
POST_USERS_URL . '=' . $topic_rowset[$i]['topic_starter_id']) . '">' . $topic_rowset[$i]['topic_starter'] . '</a> ';
1133
			//$first_post_author = ($topic_rowset[$i]['topic_starter_id'] == ANONYMOUS) ? (($topic_rowset[$i]['topic_starter_guest'] != '') ?
$topic_rowset[$i]['topic_starter_guest'] . ' ' : $lang['Guest'] . ' ') : '<a href="' . append_sid(CMS_PAGE_PROFILE . '?mode=viewprofile&amp;' .
POST_USERS_URL . '=' . $topic_rowset[$i]['topic_starter_id']) . '">' . $topic_rowset[$i]['topic_starter'] . '</a> ';
1161
			$first_post_author =  colorize_username($topic_rowset[$i]['topic_starter_id'], $topic_rowset[$i]['topic_starter'], $topic_rowset[$i]['topic_starter_color'],
$topic_rowset[$i]['topic_starter_active']);
1134
			$first_post_author =  colorize_username($topic_rowset[$i]['topic_starter_id'], $topic_rowset[$i]['topic_starter'], $topic_rowset[$i]['topic_starter_color'],
$topic_rowset[$i]['topic_starter_active']);
...
...
1184
				'TOPIC_CLASS' => (!empty($topic_link['class_new']) ? ('topiclink' . $topic_link['class_new']) : $topic_link['class']),
1157
				'TOPIC_CLASS' => (!empty($topic_link['class_new']) ? ('topiclink' . $topic_link['class_new']) : $topic_link['class']),
1185
				'CLASS_NEW' => $topic_link['class_new'],
1158
				'CLASS_NEW' => $topic_link['class_new'],
1186
				'NEWEST_POST_IMG' => $topic_link['newest_post_img'],
1159
				'NEWEST_POST_IMG' => $topic_link['newest_post_img'],
1187
				'GOTO_PAGE' => (($goto_page == '') ? '' : '<span class="gotopage">' . $goto_page . '</span>'),
1160
				'GOTO_PAGE' => $topic_pagination['base'],
1161
				'GOTO_PAGE_FULL' => $topic_pagination['full'],
1188
				'REPLIES' => $replies,
1162
				'REPLIES' => $replies,
1189
				'VIEWS' => $topic_rowset[$i]['topic_views'],
1163
				'VIEWS' => $topic_rowset[$i]['topic_views'],
1190
				'FIRST_POST_URL' => $first_post_url,
1164
				'FIRST_POST_URL' => $first_post_url,

Updated ip/trunk/recent.php Download diff

158159
311
	$topic_id = $topic_link['topic_id'];
311
	$topic_id = $topic_link['topic_id'];
312
	$topic_id_append = $topic_link['topic_id_append'];
312
	$topic_id_append = $topic_link['topic_id_append'];
313
313
314
	if(($replies + 1) > $config['posts_per_page'])
314
	$topic_pagination = generate_topic_pagination($forum_id, $topic_id, $replies);
315
	{
316
		$total_pages = ceil(($replies + 1) / $config['posts_per_page']);
317
		$goto_page_prefix = ' [';
318
		$goto_page = ' <img src="' . $images['icon_gotopage'] . '" alt="' . $lang['Goto_page'] . '" title="' . $lang['Goto_page'] . '" />&nbsp;';
319
		$times = '1';
320
		for($j = 0; $j < $replies + 1; $j += $config['posts_per_page'])
321
		{
322
			$goto_page .= '<a href="' . append_sid(CMS_PAGE_VIEWTOPIC . '?' . $forum_id_append . '&amp;' . $topic_id_append . '&amp;start=' . $j) . '" title="' . $lang['Goto_page'] . ' ' . $times . '"><b>' . $times . '</b></a>';
323
			if(($times == '1') && ($total_pages > '4'))
324
			{
325
				$goto_page .= ' ... ';
326
				$times = $total_pages - 3;
327
				$j += ($total_pages - 4) * $config['posts_per_page'];
328
			}
329
			elseif($times < $total_pages)
330
			{
331
				//$goto_page .= ', ';
332
				$goto_page .= ' ';
333
			}
334
			$times++;
335
		}
336
		$goto_page_suffix = ' ]';
337
		$goto_page .= ' ';
338
	}
339
	else
340
	{
341
		$goto_page = '';
342
	}
343
315
344
	$first_time = create_date_ip($lang['DATE_FORMAT_VF'], $line[$i]['topic_time'], $config['board_timezone'], true);
316
	$first_time = create_date_ip($lang['DATE_FORMAT_VF'], $line[$i]['topic_time'], $config['board_timezone'], true);
345
	// Old format
317
	// Old format
...
...
384
		'NEWEST_POST_IMG' => $topic_link['newest_post_img'],
356
		'NEWEST_POST_IMG' => $topic_link['newest_post_img'],
385
		'L_NEWS' => $news_label,
357
		'L_NEWS' => $news_label,
386
		'TOPIC_ATTACHMENT_IMG' => topic_attachment_image($line[$i]['topic_attachment']),
358
		'TOPIC_ATTACHMENT_IMG' => topic_attachment_image($line[$i]['topic_attachment']),
387
		'GOTO_PAGE' => (($goto_page == '') ? '' : ('<span class="gotopage">' . $goto_page . '</span>')),
359
		'GOTO_PAGE' => $topic_pagination['base'],
388
		'GOTO_PAGE_FULL' => (($goto_page == '') ? '' : ('<span class="gotopage">' . $goto_page_prefix . ' ' . $lang['Goto_page'] . $goto_page . $goto_page_suffix . '</span>')),
360
		'GOTO_PAGE_FULL' => $topic_pagination['full'],
389
		'L_VIEWS' => $lang['Views'],
361
		'L_VIEWS' => $lang['Views'],
390
		'VIEWS' => $views,
362
		'VIEWS' => $views,
391
363

Updated ip/trunk/search.php Download diff

158159
1729
				}
1729
				}
1730
				// Event Registration - END
1730
				// Event Registration - END
1731
1731
1732
				if (($replies + 1) > $config['posts_per_page'])
1732
				$topic_pagination = generate_topic_pagination($forum_id, $topic_id, $replies);
1733
				{
1734
					$total_pages = ceil(($replies + 1) / $config['posts_per_page']);
1735
					$goto_page = ' [ <img src="' . $images['icon_gotopage'] . '" alt="' . $lang['Goto_page'] . '" title="' . $lang['Goto_page'] . '" />&nbsp;' . $lang['Goto_page'] . ': ';
1736
1733
1737
					$times = 1;
1738
					for($j = 0; $j < $replies + 1; $j += $config['posts_per_page'])
1739
					{
1740
						$goto_page .= '<a href="' . append_sid(CMS_PAGE_VIEWTOPIC . '?' . $forum_id_append . '&amp;' . $topic_id_append . '&amp;start=' . $j) . '">' . $times . '</a>';
1741
						if (($times == 1) && ($total_pages > 4))
1742
						{
1743
							$goto_page .= ' ... ';
1744
							$times = $total_pages - 3;
1745
							$j += ($total_pages - 4) * $config['posts_per_page'];
1746
						}
1747
						elseif ($times < $total_pages)
1748
						{
1749
							//$goto_page .= ', ';
1750
							$goto_page .= ' ';
1751
						}
1752
						$times++;
1753
					}
1754
					$goto_page .= ' ] ';
1755
				}
1756
				else
1757
				{
1758
					$goto_page = '';
1759
				}
1760
1761
				if ($searchset[$i]['user_id'] != ANONYMOUS)
1734
				if ($searchset[$i]['user_id'] != ANONYMOUS)
1762
				{
1735
				{
1763
					$topic_author = colorize_username($searchset[$i]['user_id'], $searchset[$i]['username'], $searchset[$i]['user_color'], $searchset[$i]['user_active']);
1736
					$topic_author = colorize_username($searchset[$i]['user_id'], $searchset[$i]['username'], $searchset[$i]['user_color'], $searchset[$i]['user_active']);
...
...
1846
					'REG_USER_OWN_REG' => $reg_user_own_reg,
1819
					'REG_USER_OWN_REG' => $reg_user_own_reg,
1847
					// Event Registration - END
1820
					// Event Registration - END
1848
1821
1849
					'GOTO_PAGE' => $goto_page,
1822
					'GOTO_PAGE' => $topic_pagination['base'],
1823
					'GOTO_PAGE_FULL' => $topic_pagination['full'],
1850
					'REPLIES' => $replies,
1824
					'REPLIES' => $replies,
1851
					'VIEWS' => $views,
1825
					'VIEWS' => $views,
1852
					'FIRST_POST_TIME' => $first_post_time,
1826
					'FIRST_POST_TIME' => $first_post_time,

Updated ip/trunk/sitemap.php Download diff

158159
12
if (!defined('IP_ROOT_PATH')) define('IP_ROOT_PATH', './');
12
if (!defined('IP_ROOT_PATH')) define('IP_ROOT_PATH', './');
13
if (!defined('PHP_EXT')) define('PHP_EXT', substr(strrchr(__FILE__, '.'), 1));
13
if (!defined('PHP_EXT')) define('PHP_EXT', substr(strrchr(__FILE__, '.'), 1));
14
include(IP_ROOT_PATH . 'common.' . PHP_EXT);
14
include(IP_ROOT_PATH . 'common.' . PHP_EXT);
15
include(IP_ROOT_PATH . 'includes/class_archives.' . PHP_EXT);
15
include_once(IP_ROOT_PATH . 'includes/class_archives.' . PHP_EXT);
16
include_once(IP_ROOT_PATH . 'includes/functions_admin.' . PHP_EXT);
16
include_once(IP_ROOT_PATH . 'includes/functions_admin.' . PHP_EXT);
17
17
18
@set_time_limit(0);
18
@set_time_limit(0);

Updated ip/trunk/tags.php Download diff

158159
169
		$topic_id = $topic_link['topic_id'];
169
		$topic_id = $topic_link['topic_id'];
170
		$topic_id_append = $topic_link['topic_id_append'];
170
		$topic_id_append = $topic_link['topic_id_append'];
171
171
172
		if(($replies + 1) > $config['posts_per_page'])
172
		$topic_pagination = generate_topic_pagination($forum_id, $topic_id, $replies);
173
		{
174
			$total_pages = ceil(($replies + 1) / $config['posts_per_page']);
175
			$goto_page_prefix = ' [';
176
			$goto_page = ' <img src="' . $images['icon_gotopage'] . '" alt="' . $lang['Goto_page'] . '" title="' . $lang['Goto_page'] . '" />&nbsp;';
177
			$times = '1';
178
			for($j = 0; $j < $replies + 1; $j += $config['posts_per_page'])
179
			{
180
				$goto_page .= '<a href="' . append_sid(CMS_PAGE_VIEWTOPIC . '?' . $forum_id_append . '&amp;' . $topic_id_append . '&amp;start=' . $j) . '" title="' . $lang['Goto_page'] . ' ' . $times . '"><b>' . $times . '</b></a>';
181
				if(($times == '1') && ($total_pages > '4'))
182
				{
183
					$goto_page .= ' ... ';
184
					$times = $total_pages - 3;
185
					$j += ($total_pages - 4) * $config['posts_per_page'];
186
				}
187
				elseif($times < $total_pages)
188
				{
189
					//$goto_page .= ', ';
190
					$goto_page .= ' ';
191
				}
192
				$times++;
193
			}
194
			$goto_page_suffix = ' ]';
195
			$goto_page .= ' ';
196
		}
197
		else
198
		{
199
			$goto_page = '';
200
		}
201
173
202
		$first_time = create_date_ip($lang['DATE_FORMAT_VF'], $topic['topic_time'], $config['board_timezone'], true);
174
		$first_time = create_date_ip($lang['DATE_FORMAT_VF'], $topic['topic_time'], $config['board_timezone'], true);
203
		$first_author = ($topic['first_poster_id'] != ANONYMOUS) ? colorize_username($topic['topic_first_poster_id'], $topic['topic_first_poster_name'],
$topic['topic_first_poster_color'], 1) : (($topic['topic_first_poster_name'] != '') ? $topic['topic_first_poster_name'] : $lang['Guest']);
175
		$first_author = ($topic['first_poster_id'] != ANONYMOUS) ? colorize_username($topic['topic_first_poster_id'], $topic['topic_first_poster_name'],
$topic['topic_first_poster_color'], 1) : (($topic['topic_first_poster_name'] != '') ? $topic['topic_first_poster_name'] : $lang['Guest']);
...
...
221
			'CLASS_NEW' => $topic_link['class_new'],
193
			'CLASS_NEW' => $topic_link['class_new'],
222
			'NEWEST_POST_IMG' => $topic_link['newest_post_img'],
194
			'NEWEST_POST_IMG' => $topic_link['newest_post_img'],
223
			'L_NEWS' => $news_label,
195
			'L_NEWS' => $news_label,
224
			'GOTO_PAGE' => (($goto_page == '') ? '' : ('<span class="gotopage">' . $goto_page . '</span>')),
196
			'GOTO_PAGE' => $topic_pagination['base'],
225
			'GOTO_PAGE_FULL' => (($goto_page == '') ? '' : ('<span class="gotopage">' . $goto_page_prefix . ' ' . $lang['Goto_page'] . $goto_page . $goto_page_suffix . '</span>')),
197
			'GOTO_PAGE_FULL' => $topic_pagination['full'],
226
			'VIEWS' => $views,
198
			'VIEWS' => $views,
227
199
228
			'REPLIES' => $replies,
200
			'REPLIES' => $replies,

Updated ip/trunk/tellafriend.php Download diff

158159
15
if (!defined('IP_ROOT_PATH')) define('IP_ROOT_PATH', './');
15
if (!defined('IP_ROOT_PATH')) define('IP_ROOT_PATH', './');
16
if (!defined('PHP_EXT')) define('PHP_EXT', substr(strrchr(__FILE__, '.'), 1));
16
if (!defined('PHP_EXT')) define('PHP_EXT', substr(strrchr(__FILE__, '.'), 1));
17
include(IP_ROOT_PATH . 'common.' . PHP_EXT);
17
include(IP_ROOT_PATH . 'common.' . PHP_EXT);
18
include(IP_ROOT_PATH . 'includes/functions_post.' . PHP_EXT);
18
include_once(IP_ROOT_PATH . 'includes/functions_post.' . PHP_EXT);
19
19
20
// Start session management
20
// Start session management
21
$userdata = session_pagestart($user_ip);
21
$userdata = session_pagestart($user_ip);

Updated ip/trunk/templates/common/js/ip_scripts.js Download diff

158159
698
	imgobj = which2;
698
	imgobj = which2;
699
	browserdetect = which2.filters ? "ie" : ( (typeof which2.style.MozOpacity == "string") ? "mozilla" : "");
699
	browserdetect = which2.filters ? "ie" : ( (typeof which2.style.MozOpacity == "string") ? "mozilla" : "");
700
	instantset(baseopacity);
700
	instantset(baseopacity);
701
	highlighting=setInterval("gradualfade(imgobj)", 50);
701
	highlighting = setInterval("gradualfade(imgobj)", 50);
702
}
702
}
703
703
704
function slowlow(which2)
704
function slowlow(which2)
...
...
829
}
829
}
830
830
831
// Fade
831
// Fade
832
Array.prototype.inArray=function(str)
832
Array.prototype.inArray = function(str)
833
{//on modifie l'objet Array
833
{//on modifie l'objet Array
834
	for(i = 0; i < this.length; i++)
834
	for(i = 0; i < this.length; i++)
835
	{
835
	{

Updated ip/trunk/templates/default/modcp_body.tpl Download diff

158159
33
<tr>
33
<tr>
34
	<td class="row1 row-center"><img src="{topicrow.TOPIC_FOLDER_IMG}" alt="{topicrow.L_TOPIC_FOLDER_ALT}"
title="{topicrow.L_TOPIC_FOLDER_ALT}" /></td>
34
	<td class="row1 row-center"><img src="{topicrow.TOPIC_FOLDER_IMG}" alt="{topicrow.L_TOPIC_FOLDER_ALT}"
title="{topicrow.L_TOPIC_FOLDER_ALT}" /></td>
35
	<td class="row1h{topicrow.CLASS_NEW} row-forum" onclick="window.location.href='{topicrow.U_VIEW_TOPIC}'">
35
	<td class="row1h{topicrow.CLASS_NEW} row-forum" onclick="window.location.href='{topicrow.U_VIEW_TOPIC}'">
36
	<span class="topiclink{topicrow.CLASS_NEW}">{topicrow.TOPIC_ATTACHMENT_IMG}{topicrow.TOPIC_TYPE}<a href="{topicrow.U_VIEW_TOPIC}" class="{topicrow.TOPIC_CLASS}">{topicrow.TOPIC_TITLE}</a></span><br />
36
		<div class="topic-title-hide-flow"><div style="float: right; display: inline; vertical-align: top; margin-top: 0px !important; padding-top: 0px !important; padding-right: 3px;">{topicrow.TOPIC_ATTACHMENT_IMG}{topicrow.TOPIC_TYPE_ICON}</div>{topicrow.NEWEST_POST_IMG}<span class="topiclink{topicrow.CLASS_NEW}"><a href="{topicrow.U_VIEW_TOPIC}" class="{topicrow.TOPIC_CLASS}">{topicrow.TOPIC_TITLE}</a></span></div>
37
	{topicrow.GOTO_PAGE}
37
		{topicrow.GOTO_PAGE_FULL}
38
	</td>
38
	</td>
39
	<td class="row1 row-center"><span class="postdetails">{topicrow.FIRST_POST_TIME}<br
/>{topicrow.FIRST_POST_AUTHOR}{topicrow.FIRST_POST_URL}</span></td>
39
	<td class="row1 row-center"><span class="postdetails">{topicrow.FIRST_POST_TIME}<br
/>{topicrow.FIRST_POST_AUTHOR}{topicrow.FIRST_POST_URL}</span></td>
40
	<td class="row1 row-center"><span class="postdetails">{topicrow.REPLIES}</span>&nbsp;&nbsp;</td>
40
	<td class="row1 row-center"><span class="postdetails">{topicrow.REPLIES}</span>&nbsp;&nbsp;</td>

Updated ip/trunk/templates/default/search_results_bookmarks.tpl Download diff

158159
22
	</td>
22
	</td>
23
	<td class="row1h row-forum" onclick="window.location.href='{searchresults.U_VIEW_TOPIC}'">
23
	<td class="row1h row-forum" onclick="window.location.href='{searchresults.U_VIEW_TOPIC}'">
24
		<span class="topiclink">{searchresults.NEWEST_POST_IMG}{searchresults.TOPIC_TYPE}<a href="{searchresults.U_VIEW_TOPIC}"
class="topiclink">{searchresults.TOPIC_TITLE}</a></span>
24
		<span class="topiclink">{searchresults.NEWEST_POST_IMG}{searchresults.TOPIC_TYPE}<a href="{searchresults.U_VIEW_TOPIC}"
class="topiclink">{searchresults.TOPIC_TITLE}</a></span>
25
		<!-- IF searchresults.GOTO_PAGE -->
25
		{searchresults.GOTO_PAGE_FULL}
26
		<span class="gotopage">{searchresults.GOTO_PAGE}</span>
27
		<!-- ENDIF -->
28
	</td>
26
	</td>
29
	<td class="row2 row-center-small">{searchresults.TOPIC_AUTHOR}</td>
27
	<td class="row2 row-center-small">{searchresults.TOPIC_AUTHOR}</td>
30
	<td class="row1 row-center-small">{searchresults.REPLIES}</td>
28
	<td class="row1 row-center-small">{searchresults.REPLIES}</td>

Updated ip/trunk/templates/default/search_results_topics.tpl Download diff

158159
34
	</td>
34
	</td>
35
	<td class="row1h{searchresults.CLASS_NEW} row-forum" onclick="window.location.href='{searchresults.U_VIEW_TOPIC}'">
35
	<td class="row1h{searchresults.CLASS_NEW} row-forum" onclick="window.location.href='{searchresults.U_VIEW_TOPIC}'">
36
		<div class="topic-title-hide-flow"><span
class="topiclink{searchresults.CLASS_NEW}">{searchresults.NEWEST_POST_IMG}{searchresults.TOPIC_TYPE}<a
href="{searchresults.U_VIEW_TOPIC}" class="{searchresults.TOPIC_CLASS}">{searchresults.TOPIC_TITLE}</a></span> <!-- BEGIN
display_reg -->[{searchresults.REG_OPTIONS}]&nbsp;{searchresults.REG_USER_OWN_REG}<!-- END display_reg --></div>
36
		<div class="topic-title-hide-flow"><span
class="topiclink{searchresults.CLASS_NEW}">{searchresults.NEWEST_POST_IMG}{searchresults.TOPIC_TYPE}<a
href="{searchresults.U_VIEW_TOPIC}" class="{searchresults.TOPIC_CLASS}">{searchresults.TOPIC_TITLE}</a></span> <!-- BEGIN
display_reg -->[{searchresults.REG_OPTIONS}]&nbsp;{searchresults.REG_USER_OWN_REG}<!-- END display_reg --></div>
37
		<!-- IF searchresults.GOTO_PAGE -->
37
		{searchresults.GOTO_PAGE_FULL}
38
		<br /><span class="gotopage">{searchresults.GOTO_PAGE}</span>
39
		<!-- ENDIF -->
40
	</td>
38
	</td>
41
	<td class="row1 row-center-small">{searchresults.REPLIES}</td>
39
	<td class="row1 row-center-small">{searchresults.REPLIES}</td>
42
	<td class="row2 row-center-small">{searchresults.TOPIC_AUTHOR}</td>
40
	<td class="row2 row-center-small">{searchresults.TOPIC_AUTHOR}</td>

Updated ip/trunk/templates/default/topics_list_box.tpl Download diff

158159
70
			<a href="{topics_list_box.row.U_VIEW_TOPIC}">{topics_list_box.row.TOPIC_TITLE}</a>
70
			<a href="{topics_list_box.row.U_VIEW_TOPIC}">{topics_list_box.row.TOPIC_TITLE}</a>
71
		</span>
71
		</span>
72
		<span class="gensmall">&nbsp;&nbsp;{topics_list_box.row.TOPIC_ANNOUNCES_DATES}{topics_list_box.row.TOPIC_CALENDAR_DATES}</span>
72
		<span class="gensmall">&nbsp;&nbsp;{topics_list_box.row.TOPIC_ANNOUNCES_DATES}{topics_list_box.row.TOPIC_CALENDAR_DATES}</span>
73
		<span class="gensmall">{topics_list_box.row.GOTO_PAGE}</span>
73
		{topics_list_box.row.GOTO_PAGE_FULL}
74
		<span class="gensmall">
74
		<span class="gensmall">
75
			<!-- BEGIN nav_tree -->
75
			<!-- BEGIN nav_tree -->
76
			{topics_list_box.row.TOPIC_NAV_TREE}
76
			{topics_list_box.row.TOPIC_NAV_TREE}

Updated ip/trunk/templates/default/viewforum_kb_body.tpl Download diff

158159
51
		<!-- BEGIN switch_topic_desc -->
51
		<!-- BEGIN switch_topic_desc -->
52
		<span class="gensmall">&nbsp;{topicrow.switch_topic_desc.TOPIC_DESCRIPTION}</span><br />
52
		<span class="gensmall">&nbsp;{topicrow.switch_topic_desc.TOPIC_DESCRIPTION}</span><br />
53
		<!-- END switch_topic_desc -->
53
		<!-- END switch_topic_desc -->
54
		<span class="gotopage">{topicrow.GOTO_PAGE}</span>
54
		{topicrow.GOTO_PAGE_FULL}
55
	</td>
55
	</td>
56
	<td class="row3 row-center-small" style="padding-left: 2px; padding-right: 2px;"
nowrap="nowrap">{topicrow.TOPIC_AUTHOR}</td>
56
	<td class="row3 row-center-small" style="padding-left: 2px; padding-right: 2px;"
nowrap="nowrap">{topicrow.TOPIC_AUTHOR}</td>
57
	<td class="row3 row-center-small" style="padding-top: 0;" nowrap="nowrap">{topicrow.LAST_POST_TIME}</td>
57
	<td class="row3 row-center-small" style="padding-top: 0;" nowrap="nowrap">{topicrow.LAST_POST_TIME}</td>

Updated ip/trunk/templates/default/watched_topics_body.tpl Download diff

158159
41
		<span class="topiclink{topic_watch_row.CLASS_NEW}"><a
href="{topic_watch_row.U_VIEW_FORUM}">{topic_watch_row.FORUM_NAME}</a></span>
41
		<span class="topiclink{topic_watch_row.CLASS_NEW}"><a
href="{topic_watch_row.U_VIEW_FORUM}">{topic_watch_row.FORUM_NAME}</a></span>
42
	</td>
42
	</td>
43
	<td class="row1h{topic_watch_row.CLASS_NEW} row-forum" onclick="window.location.href='{topic_watch_row.U_VIEW_TOPIC}'">
43
	<td class="row1h{topic_watch_row.CLASS_NEW} row-forum" onclick="window.location.href='{topic_watch_row.U_VIEW_TOPIC}'">
44
		<span class="topiclink{topic_watch_row.CLASS_NEW}">
44
		<div class="topic-title-hide-flow"><div style="float: right; display: inline; vertical-align: top; margin-top: 0px !important; padding-top: 0px !important; padding-right: 3px;">{topic_watch_row.TOPIC_ATTACHMENT_IMG}{topic_watch_row.TOPIC_TYPE_ICON}</div>{topic_watch_row.NEWEST_POST_IMG}<span class="topiclink{topic_watch_row.CLASS_NEW}"><a href="{topic_watch_row.U_VIEW_TOPIC}" class="{topic_watch_row.TOPIC_CLASS}">{topic_watch_row.TOPIC_TITLE}</a></span></div>
45
			{topic_watch_row.NEWEST_POST_IMG}{topic_watch_row.TOPIC_ATTACHMENT_IMG}{topic_watch_row.L_NEWS}{topic_watch_row.TOPIC_TYPE}<a href="{topic_watch_row.U_VIEW_TOPIC}" class="{topic_watch_row.TOPIC_CLASS}">{topic_watch_row.TOPIC_TITLE}</a>
45
		{topic_watch_row.GOTO_PAGE_FULL}
46
		</span>
47
		{topic_watch_row.GOTO_PAGE}
48
	</td>
46
	</td>
49
	<td class="row2 row-center"><span class="genmed">{topic_watch_row.S_WATCHED_TOPIC_REPLIES}</span></td>
47
	<td class="row2 row-center"><span class="genmed">{topic_watch_row.S_WATCHED_TOPIC_REPLIES}</span></td>
50
	<td class="row1 row-center"><span class="genmed">{topic_watch_row.S_WATCHED_TOPIC_START}<br
/>{topic_watch_row.TOPIC_POSTER}</span></td>
48
	<td class="row1 row-center"><span class="genmed">{topic_watch_row.S_WATCHED_TOPIC_START}<br
/>{topic_watch_row.TOPIC_POSTER}</span></td>

Updated ip/trunk/viewforum.php Download diff

158159
1160
		}
1160
		}
1161
		// Event Registration - END
1161
		// Event Registration - END
1162
1162
1163
		if(($replies + 1) > $config['posts_per_page'])
1163
		$topic_pagination = generate_topic_pagination($forum_id, $topic_id, $replies);
1164
		{
1165
			$total_pages = ceil(($replies + 1) / $config['posts_per_page']);
1166
			$goto_page_prefix = ' [';
1167
			$goto_page = ' <img src="' . $images['icon_gotopage'] . '" alt="' . $lang['Goto_page'] . '" title="' . $lang['Goto_page'] . '" />&nbsp;';
1168
			$times = 1;
1169
			for($j = 0; $j < $replies + 1; $j += $config['posts_per_page'])
1170
			{
1171
				$goto_page .= '<a href="' . append_sid(CMS_PAGE_VIEWTOPIC . '?' . $forum_id_append . '&amp;' . $topic_id_append . '&amp;start=' . $j) . '" title="' . $lang['Goto_page'] . ' ' . $times . '"><b>' . $times . '</b></a>';
1172
				if(($times == 1) && ($total_pages > 4))
1173
				{
1174
					$goto_page .= ' ... ';
1175
					$times = $total_pages - 3;
1176
					$j += ($total_pages - 4) * $config['posts_per_page'];
1177
				}
1178
				elseif ($times < $total_pages)
1179
				{
1180
					//$goto_page .= ', ';
1181
					$goto_page .= ' ';
1182
				}
1183
				$times++;
1184
			}
1185
			$goto_page_suffix = ' ]';
1186
			$goto_page .= ' ';
1187
		}
1188
		else
1189
		{
1190
			$goto_page = '';
1191
		}
1192
1164
1193
		if (($config['url_rw'] == '1') || (($config['url_rw_guests'] == '1') && ($userdata['user_id'] == ANONYMOUS)))
1165
		if (($config['url_rw'] == '1') || (($config['url_rw_guests'] == '1') && ($userdata['user_id'] == ANONYMOUS)))
1194
		{
1166
		{
...
...
1261
			'TOPIC_ATTACHMENT_IMG' => topic_attachment_image($topic_rowset[$i]['topic_attachment']),
1233
			'TOPIC_ATTACHMENT_IMG' => topic_attachment_image($topic_rowset[$i]['topic_attachment']),
1262
			'TOPIC_RATING' => (!empty($rating2) ? $rating2 : ''),
1234
			'TOPIC_RATING' => (!empty($rating2) ? $rating2 : ''),
1263
			'CALENDAR_TITLE' => $calendar_title,
1235
			'CALENDAR_TITLE' => $calendar_title,
1264
			'GOTO_PAGE' => (($goto_page == '') ? '' : ('<span class="gotopage">' . $goto_page . '</span>')),
1236
			'GOTO_PAGE' => $topic_pagination['base'],
1265
			'GOTO_PAGE_FULL' => (($goto_page == '') ? '' : ('<span class="gotopage">' . $goto_page_prefix . ' ' . $lang['Goto_page'] . $goto_page . $goto_page_suffix . '</span>')),
1237
			'GOTO_PAGE_FULL' => $topic_pagination['full'],
1266
			'REPLIES' => $replies,
1238
			'REPLIES' => $replies,
1267
			'VIEWS' => $views,
1239
			'VIEWS' => $views,
1268
			'FIRST_POST_TIME' => $first_post_time,
1240
			'FIRST_POST_TIME' => $first_post_time,

Updated ip/trunk/viewonline.php Download diff

158159
20
if (!defined('PHP_EXT')) define('PHP_EXT', substr(strrchr(__FILE__, '.'), 1));
20
if (!defined('PHP_EXT')) define('PHP_EXT', substr(strrchr(__FILE__, '.'), 1));
21
include(IP_ROOT_PATH . 'common.' . PHP_EXT);
21
include(IP_ROOT_PATH . 'common.' . PHP_EXT);
22
// Mighty Gorgon - HTTP AGENTS - BEGIN
22
// Mighty Gorgon - HTTP AGENTS - BEGIN
23
include(IP_ROOT_PATH . 'includes/functions_mg_http.' . PHP_EXT);
23
include_once(IP_ROOT_PATH . 'includes/functions_mg_http.' . PHP_EXT);
24
// Mighty Gorgon - HTTP AGENTS - END
24
// Mighty Gorgon - HTTP AGENTS - END
25
include(IP_ROOT_PATH . 'includes/functions_mg_online.' . PHP_EXT);
25
include_once(IP_ROOT_PATH . 'includes/functions_mg_online.' . PHP_EXT);
26
26
27
// Start session management
27
// Start session management
28
$userdata = session_pagestart($user_ip);
28
$userdata = session_pagestart($user_ip);

Updated ip/trunk/watched_topics.php Download diff

158159
132
132
133
			$topic_link = $class_topics->build_topic_icon_link($watch_rows[$i]['forum_id'], $watch_rows[$i]['topic_id'], $watch_rows[$i]['topic_type'],
$watch_rows[$i]['topic_reg'], $watch_rows[$i]['topic_replies'], $watch_rows[$i]['news_id'], $watch_rows[$i]['topic_vote'], $watch_rows[$i]['topic_status'],
$watch_rows[$i]['topic_moved_id'], $watch_rows[$i]['post_time'], $user_replied, $replies, $unread);
133
			$topic_link = $class_topics->build_topic_icon_link($watch_rows[$i]['forum_id'], $watch_rows[$i]['topic_id'], $watch_rows[$i]['topic_type'],
$watch_rows[$i]['topic_reg'], $watch_rows[$i]['topic_replies'], $watch_rows[$i]['news_id'], $watch_rows[$i]['topic_vote'], $watch_rows[$i]['topic_status'],
$watch_rows[$i]['topic_moved_id'], $watch_rows[$i]['post_time'], $user_replied, $replies, $unread);
134
134
135
			if(($replies + 1) > $config['posts_per_page'])
135
			$topic_pagination = generate_topic_pagination($forum_id, $topic_id, $replies);
136
			{
137
				$total_pages = ceil(($replies + 1) / $config['posts_per_page']);
138
				$goto_page = ' [ <img src="' . $images['icon_gotopost'] . '" alt="' . $lang['Goto_page'] . '" title="' . $lang['Goto_page'] . '" />&nbsp;' . $lang['Goto_page'] . ': ';
139
136
140
				$times = 1;
141
				for($j = 0; $j < $replies + 1; $j += $config['posts_per_page'])
142
				{
143
					$goto_page .= '<a href="' . append_sid(IP_ROOT_PATH . CMS_PAGE_VIEWTOPIC . '?' . $forum_id_append . '&amp;' . $topic_id_append . '&amp;start=' . $j) . '"><b>' . $times . '</b></a>';
144
					if($times == 1 && $total_pages > 4)
145
					{
146
						$goto_page .= ' ... ';
147
						$times = $total_pages - 3;
148
						$j += ($total_pages - 4) * $config['posts_per_page'];
149
					}
150
					elseif ($times < $total_pages)
151
					{
152
						//$goto_page .= ', ';
153
						$goto_page .= ' ';
154
					}
155
					$times++;
156
				}
157
				$goto_page .= ' ] ';
158
			}
159
			else
160
			{
161
				$goto_page = '';
162
			}
163
			$row_class = (!($i % 2)) ? $theme['td_class1'] : $theme['td_class2'];
137
			$row_class = (!($i % 2)) ? $theme['td_class1'] : $theme['td_class2'];
164
			$template->assign_block_vars('topic_watch_row', array(
138
			$template->assign_block_vars('topic_watch_row', array(
165
				'ROW_CLASS' => $row_class,
139
				'ROW_CLASS' => $row_class,
...
...
185
				'FORUM_NAME' => $watch_rows[$i]['forum_name'],
159
				'FORUM_NAME' => $watch_rows[$i]['forum_name'],
186
				'TOPIC_POSTER' => $topic_poster,
160
				'TOPIC_POSTER' => $topic_poster,
187
				'LAST_POSTER' => $last_poster,
161
				'LAST_POSTER' => $last_poster,
188
				'GOTO_PAGE' => (($goto_page == '') ? '' : '<span class="gotopage">' . $goto_page . '</span>'),
162
				'GOTO_PAGE' => $topic_pagination['base'],
163
				'GOTO_PAGE_FULL' => $topic_pagination['full'],
189
164
190
				'U_VIEW_FORUM' => append_sid(IP_ROOT_PATH . CMS_PAGE_VIEWFORUM . '?' . $forum_id_append),
165
				'U_VIEW_FORUM' => append_sid(IP_ROOT_PATH . CMS_PAGE_VIEWFORUM . '?' . $forum_id_append),
191
				'U_VIEW_TOPIC' => append_sid(IP_ROOT_PATH . CMS_PAGE_VIEWTOPIC . '?' . $forum_id_append . '&amp;' . $topic_id_append),
166
				'U_VIEW_TOPIC' => append_sid(IP_ROOT_PATH . CMS_PAGE_VIEWTOPIC . '?' . $forum_id_append . '&amp;' . $topic_id_append),

Updated styles/prosilver_ip/recent_body.tpl Download diff

158159
31
	<td class="{recent.ROW_CLASS}h{recent.CLASS_NEW} row-forum" style="background: none; cursor: pointer;"
onclick="window.location.href='{recent.U_VIEW_FORUM}'"><span class="topiclink{recent.CLASS_NEW}"><a
href="{recent.U_VIEW_FORUM}">{recent.FORUM_NAME}</a></span></td>
31
	<td class="{recent.ROW_CLASS}h{recent.CLASS_NEW} row-forum" style="background: none; cursor: pointer;"
onclick="window.location.href='{recent.U_VIEW_FORUM}'"><span class="topiclink{recent.CLASS_NEW}"><a
href="{recent.U_VIEW_FORUM}">{recent.FORUM_NAME}</a></span></td>
32
	<td class="{recent.ROW_CLASS}h{recent.CLASS_NEW} row-forum" style="background: none; cursor: pointer;"
onclick="window.location.href='{recent.U_VIEW_TOPIC}'">
32
	<td class="{recent.ROW_CLASS}h{recent.CLASS_NEW} row-forum" style="background: none; cursor: pointer;"
onclick="window.location.href='{recent.U_VIEW_TOPIC}'">
33
		<span class="topiclink{recent.CLASS_NEW}">{recent.NEWEST_POST_IMG}{recent.TOPIC_ATTACHMENT_IMG}{recent.L_NEWS}{recent.TOPIC_TYPE}<a
href="{recent.U_VIEW_TOPIC}" class="{recent.TOPIC_CLASS}">{recent.TOPIC_TITLE}</a></span>
33
		<span class="topiclink{recent.CLASS_NEW}">{recent.NEWEST_POST_IMG}{recent.TOPIC_ATTACHMENT_IMG}{recent.L_NEWS}{recent.TOPIC_TYPE}<a
href="{recent.U_VIEW_TOPIC}" class="{recent.TOPIC_CLASS}">{recent.TOPIC_TITLE}</a></span>
34
		<div style="float: right; display: block; height: auto; vertical-align: top; margin-top: 0px !important; padding-top: 0px !important; padding-right:
3px;">{recent.GOTO_PAGE}</div>
34
		<div style="float: right; display: block; height: auto; vertical-align: top; margin-top: 0px !important; padding-top: 0px !important; padding-right: 3px;">{recent.GOTO_PAGE_FULL}</div>
35
		<div class="gensmall" style="padding-top: 5px;">{recent.FIRST_AUTHOR}&nbsp;&bull;&nbsp;{recent.FIRST_TIME}</div>
35
		<div class="gensmall" style="padding-top: 5px;">{recent.FIRST_AUTHOR}&nbsp;&bull;&nbsp;{recent.FIRST_TIME}</div>
36
	</td>
36
	</td>
37
	<td class="{recent.ROW_CLASS} row-center-small" style="background: none;">{recent.VIEWS}</td>
37
	<td class="{recent.ROW_CLASS} row-center-small" style="background: none;">{recent.VIEWS}</td>

Updated styles/prosilver_ip/search_results_bookmarks.tpl Download diff

158159
20
	<td class="{searchresults.ROW_CLASS}h row-forum" style="background: none; cursor: pointer;"
onclick="window.location.href='{searchresults.U_VIEW_FORUM}'"><span class="forumlink"><a
href="{searchresults.U_VIEW_FORUM}" class="forumlink">{searchresults.FORUM_NAME}</a></span><br /></td>
20
	<td class="{searchresults.ROW_CLASS}h row-forum" style="background: none; cursor: pointer;"
onclick="window.location.href='{searchresults.U_VIEW_FORUM}'"><span class="forumlink"><a
href="{searchresults.U_VIEW_FORUM}" class="forumlink">{searchresults.FORUM_NAME}</a></span><br /></td>
21
	<td class="{searchresults.ROW_CLASS}h row-forum" style="background: none; cursor: pointer;"
onclick="window.location.href='{searchresults.U_VIEW_TOPIC}'">
21
	<td class="{searchresults.ROW_CLASS}h row-forum" style="background: none; cursor: pointer;"
onclick="window.location.href='{searchresults.U_VIEW_TOPIC}'">
22
		<span class="topiclink">{searchresults.NEWEST_POST_IMG}{searchresults.TOPIC_TYPE}<a href="{searchresults.U_VIEW_TOPIC}"
class="topiclink">{searchresults.TOPIC_TITLE}</a></span>
22
		<span class="topiclink">{searchresults.NEWEST_POST_IMG}{searchresults.TOPIC_TYPE}<a href="{searchresults.U_VIEW_TOPIC}"
class="topiclink">{searchresults.TOPIC_TITLE}</a></span>
23
		<!-- IF searchresults.GOTO_PAGE -->
23
		{searchresults.GOTO_PAGE_FULL}
24
		<span class="gotopage">{searchresults.GOTO_PAGE}</span>
25
		<!-- ENDIF -->
26
	</td>
24
	</td>
27
	<td class="{searchresults.ROW_CLASS} row-center-small" style="background: none;">{searchresults.TOPIC_AUTHOR}</td>
25
	<td class="{searchresults.ROW_CLASS} row-center-small" style="background: none;">{searchresults.TOPIC_AUTHOR}</td>
28
	<td class="{searchresults.ROW_CLASS} row-center-small" style="background: none;">{searchresults.REPLIES}</td>
26
	<td class="{searchresults.ROW_CLASS} row-center-small" style="background: none;">{searchresults.REPLIES}</td>

Updated styles/prosilver_ip/search_results_topics.tpl Download diff

158159
29
	<td class="{searchresults.ROW_CLASS}h{searchresults.CLASS_NEW} row-forum" style="background: none; cursor: pointer;"
onclick="window.location.href='{searchresults.U_VIEW_FORUM}'"><span class="topiclink{searchresults.CLASS_NEW}"><a
href="{searchresults.U_VIEW_FORUM}">{searchresults.FORUM_NAME}</a></span></td>
29
	<td class="{searchresults.ROW_CLASS}h{searchresults.CLASS_NEW} row-forum" style="background: none; cursor: pointer;"
onclick="window.location.href='{searchresults.U_VIEW_FORUM}'"><span class="topiclink{searchresults.CLASS_NEW}"><a
href="{searchresults.U_VIEW_FORUM}">{searchresults.FORUM_NAME}</a></span></td>
30
	<td class="{searchresults.ROW_CLASS}h{searchresults.CLASS_NEW} row-forum" style="background: none; cursor: pointer;"
onclick="window.location.href='{searchresults.U_VIEW_TOPIC}'">
30
	<td class="{searchresults.ROW_CLASS}h{searchresults.CLASS_NEW} row-forum" style="background: none; cursor: pointer;"
onclick="window.location.href='{searchresults.U_VIEW_TOPIC}'">
31
		<div class="topic-title-hide-flow"><span
class="topiclink{searchresults.CLASS_NEW}">{searchresults.NEWEST_POST_IMG}{searchresults.TOPIC_TYPE}<a
href="{searchresults.U_VIEW_TOPIC}" class="{searchresults.TOPIC_CLASS}">{searchresults.TOPIC_TITLE}</a></span> <!-- BEGIN
display_reg -->[{searchresults.REG_OPTIONS}]&nbsp;{searchresults.REG_USER_OWN_REG}<!-- END display_reg --></div>
31
		<div class="topic-title-hide-flow"><span
class="topiclink{searchresults.CLASS_NEW}">{searchresults.NEWEST_POST_IMG}{searchresults.TOPIC_TYPE}<a
href="{searchresults.U_VIEW_TOPIC}" class="{searchresults.TOPIC_CLASS}">{searchresults.TOPIC_TITLE}</a></span> <!-- BEGIN
display_reg -->[{searchresults.REG_OPTIONS}]&nbsp;{searchresults.REG_USER_OWN_REG}<!-- END display_reg --></div>
32
		<!-- IF searchresults.GOTO_PAGE -->
32
		{searchresults.GOTO_PAGE_FULL}
33
		<br /><span class="gotopage">{searchresults.GOTO_PAGE}</span>
34
		<!-- ENDIF -->
35
	</td>
33
	</td>
36
	<td class="{searchresults.ROW_CLASS} row-center-small" style="background: none;">{searchresults.REPLIES}</td>
34
	<td class="{searchresults.ROW_CLASS} row-center-small" style="background: none;">{searchresults.REPLIES}</td>
37
	<td class="{searchresults.ROW_CLASS} row-center-small" style="background: none;">{searchresults.TOPIC_AUTHOR}</td>
35
	<td class="{searchresults.ROW_CLASS} row-center-small" style="background: none;">{searchresults.TOPIC_AUTHOR}</td>

Updated styles/prosilver_ip/viewforum_kb_body.tpl Download diff

158159
51
		<!-- BEGIN switch_topic_desc -->
51
		<!-- BEGIN switch_topic_desc -->
52
		<span class="gensmall">&nbsp;{topicrow.switch_topic_desc.TOPIC_DESCRIPTION}</span><br />
52
		<span class="gensmall">&nbsp;{topicrow.switch_topic_desc.TOPIC_DESCRIPTION}</span><br />
53
		<!-- END switch_topic_desc -->
53
		<!-- END switch_topic_desc -->
54
		<span class="gotopage">{topicrow.GOTO_PAGE}</span>
54
		{topicrow.GOTO_PAGE_FULL}
55
	</td>
55
	</td>
56
	<td class="row3 row-center-small" style="padding-left:2px;padding-right:2px;"
nowrap="nowrap">{topicrow.TOPIC_AUTHOR}</td>
56
	<td class="row3 row-center-small" style="padding-left:2px;padding-right:2px;"
nowrap="nowrap">{topicrow.TOPIC_AUTHOR}</td>
57
	<td class="row3 row-center-small" style="padding-top:0;" nowrap="nowrap">{topicrow.LAST_POST_TIME}</td>
57
	<td class="row3 row-center-small" style="padding-top:0;" nowrap="nowrap">{topicrow.LAST_POST_TIME}</td>

Updated styles/prosilver_ip/watched_topics_body.tpl Download diff

158159
38
<tr class="{topic_watch_row.ROW_CLASS}h{topic_watch_row.CLASS_NEW} row-forum">
38
<tr class="{topic_watch_row.ROW_CLASS}h{topic_watch_row.CLASS_NEW} row-forum">
39
	<td class="{topic_watch_row.ROW_CLASS} row-center" style="background: none;" width="22"><img
src="{topic_watch_row.TOPIC_FOLDER_IMG}" alt="{topic_watch_row.L_TOPIC_FOLDER_ALT}" title="{topic_watch_row.L_TOPIC_FOLDER_ALT}"
style="margin-right:4px;" /></td>
39
	<td class="{topic_watch_row.ROW_CLASS} row-center" style="background: none;" width="22"><img
src="{topic_watch_row.TOPIC_FOLDER_IMG}" alt="{topic_watch_row.L_TOPIC_FOLDER_ALT}" title="{topic_watch_row.L_TOPIC_FOLDER_ALT}"
style="margin-right:4px;" /></td>
40
	<td class="{topic_watch_row.ROW_CLASS}h{topic_watch_row.CLASS_NEW} row-forum" style="background: none; cursor: pointer;"
onclick="window.location.href='{topic_watch_row.U_VIEW_FORUM}'"><span class="topiclink{topic_watch_row.CLASS_NEW}"><a
href="{topic_watch_row.U_VIEW_FORUM}">{topic_watch_row.FORUM_NAME}</a></span></td>
40
	<td class="{topic_watch_row.ROW_CLASS}h{topic_watch_row.CLASS_NEW} row-forum" style="background: none; cursor: pointer;"
onclick="window.location.href='{topic_watch_row.U_VIEW_FORUM}'"><span class="topiclink{topic_watch_row.CLASS_NEW}"><a
href="{topic_watch_row.U_VIEW_FORUM}">{topic_watch_row.FORUM_NAME}</a></span></td>
41
	<td class="{topic_watch_row.ROW_CLASS}h{topic_watch_row.CLASS_NEW} row-forum" style="background: none; cursor: pointer;" onclick="window.location.href='{topic_watch_row.U_VIEW_TOPIC}'"><span class="topiclink{topic_watch_row.CLASS_NEW}">{topic_watch_row.NEWEST_POST_IMG}{topic_watch_row.TOPIC_ATTACHMENT_IMG}{topic_watch_row.L_NEWS}{topic_watch_row.TOPIC_TYPE}<a href="{topic_watch_row.U_VIEW_TOPIC}" class="{topic_watch_row.TOPIC_CLASS}">{topic_watch_row.TOPIC_TITLE}</a></span>{topic_watch_row.GOTO_PAGE}</td>
41
	<td class="{topic_watch_row.ROW_CLASS}h{topic_watch_row.CLASS_NEW} row-forum" style="background: none; cursor: pointer;"
onclick="window.location.href='{topic_watch_row.U_VIEW_TOPIC}'">
42
		<div class="topic-title-hide-flow"><div style="float: right; display: inline; vertical-align: top; margin-top: 0px !important; padding-top: 0px !important; padding-right: 3px;">{topic_watch_row.TOPIC_ATTACHMENT_IMG}{topic_watch_row.TOPIC_TYPE_ICON}</div>{topic_watch_row.NEWEST_POST_IMG}<span class="topiclink{topic_watch_row.CLASS_NEW}"><a href="{topic_watch_row.U_VIEW_TOPIC}" class="{topic_watch_row.TOPIC_CLASS}">{topic_watch_row.TOPIC_TITLE}</a></span></div>
43
		{topic_watch_row.GOTO_PAGE_FULL}
44
	</td>
42
	<td class="{topic_watch_row.ROW_CLASS} row-center" style="background: none;"><span
class="genmed">{topic_watch_row.S_WATCHED_TOPIC_REPLIES}</span></td>
45
	<td class="{topic_watch_row.ROW_CLASS} row-center" style="background: none;"><span
class="genmed">{topic_watch_row.S_WATCHED_TOPIC_REPLIES}</span></td>
43
	<td class="{topic_watch_row.ROW_CLASS} row-center" style="background: none;"><span
class="genmed">{topic_watch_row.S_WATCHED_TOPIC_START}<br />{topic_watch_row.TOPIC_POSTER}</span></td>
46
	<td class="{topic_watch_row.ROW_CLASS} row-center" style="background: none;"><span
class="genmed">{topic_watch_row.S_WATCHED_TOPIC_START}<br />{topic_watch_row.TOPIC_POSTER}</span></td>
44
	<td class="{topic_watch_row.ROW_CLASS} row-center" style="background: none;"><span
class="genmed">{topic_watch_row.S_WATCHED_TOPIC_LAST}<br />{topic_watch_row.LAST_POSTER}</span></td>
47
	<td class="{topic_watch_row.ROW_CLASS} row-center" style="background: none;"><span
class="genmed">{topic_watch_row.S_WATCHED_TOPIC_LAST}<br />{topic_watch_row.LAST_POSTER}</span></td>