Merge lp:~ronnie.vd.c/ubuntu-nl-artwork/ankers into lp:ubuntu-nl-artwork/light-smf-theme

Proposed by Ronnie
Status: Merged
Merged at revision: 23
Proposed branch: lp:~ronnie.vd.c/ubuntu-nl-artwork/ankers
Merge into: lp:ubuntu-nl-artwork/light-smf-theme
Prerequisite: lp:~ronnie.vd.c/ubuntu-nl-artwork/small-improvements
Diff against target: 904 lines (+6/-883)
2 files modified
Display.template.php (+0/-883)
css/index.css (+6/-0)
To merge this branch: bzr merge lp:~ronnie.vd.c/ubuntu-nl-artwork/ankers
Reviewer Review Type Date Requested Status
Yordi de Graaf Pending
Review via email: mp+106517@code.launchpad.net
To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== removed file 'Display.template.php'
2--- Display.template.php 2012-04-07 15:32:32 +0000
3+++ Display.template.php 1970-01-01 00:00:00 +0000
4@@ -1,883 +0,0 @@
5-<?php
6-/**
7- * Simple Machines Forum (SMF)
8- *
9- * @package SMF
10- * @author Simple Machines
11- * @copyright 2011 Simple Machines
12- * @license http://www.simplemachines.org/about/smf/license.php BSD
13- *
14- * @version 2.0
15- */
16-
17-function template_main()
18-{
19- global $context, $settings, $options, $txt, $scripturl, $modSettings;
20-
21- // Let them know, if their report was a success!
22- if ($context['report_sent'])
23- {
24- echo '
25- <div class="windowbg" id="profile_success">
26- ', $txt['report_sent'], '
27- </div>';
28- }
29-
30- // Show the anchor for the top and for the first message. If the first message is new, say so.
31- echo '
32- <a id="top"></a>
33- <a id="msg', $context['first_message'], '">&nbsp;</a>', $context['first_new_message'] ? '<a id="new">&nbsp;</a>' : '';
34-
35- // Is this topic also a poll?
36- if ($context['is_poll'])
37- {
38- echo '
39- <div id="poll">
40- <div class="cat_bar">
41- <h3 class="catbg">
42- <span class="ie6_header floatleft"><img src="', $settings['images_url'], '/topic/', $context['poll']['is_locked'] ? 'normal_poll_locked' : 'normal_poll', '.gif" alt="" class="icon" /> ', $txt['poll'], '</span>
43- </h3>
44- </div>
45- <div class="windowbg">
46- <span class="topslice"><span></span></span>
47- <div class="content" id="poll_options">
48- <h4 id="pollquestion">
49- ', $context['poll']['question'], '
50- </h4>';
51-
52- // Are they not allowed to vote but allowed to view the options?
53- if ($context['poll']['show_results'] || !$context['allow_vote'])
54- {
55- echo '
56- <dl class="options">';
57-
58- // Show each option with its corresponding percentage bar.
59- foreach ($context['poll']['options'] as $option)
60- {
61- echo '
62- <dt class="middletext', $option['voted_this'] ? ' voted' : '', '">', $option['option'], '</dt>
63- <dd class="middletext statsbar', $option['voted_this'] ? ' voted' : '', '">';
64-
65- if ($context['allow_poll_view'])
66- echo '
67- ', $option['bar_ndt'], '
68- <span class="percentage">', $option['votes'], ' (', $option['percent'], '%)</span>';
69-
70- echo '
71- </dd>';
72- }
73-
74- echo '
75- </dl>';
76-
77- if ($context['allow_poll_view'])
78- echo '
79- <p><strong>', $txt['poll_total_voters'], ':</strong> ', $context['poll']['total_votes'], '</p>';
80- }
81- // They are allowed to vote! Go to it!
82- else
83- {
84- echo '
85- <form action="', $scripturl, '?action=vote;topic=', $context['current_topic'], '.', $context['start'], ';poll=', $context['poll']['id'], '" method="post" accept-charset="', $context['character_set'], '">';
86-
87- // Show a warning if they are allowed more than one option.
88- if ($context['poll']['allowed_warning'])
89- echo '
90- <p class="smallpadding">', $context['poll']['allowed_warning'], '</p>';
91-
92- echo '
93- <ul class="reset options">';
94-
95- // Show each option with its button - a radio likely.
96- foreach ($context['poll']['options'] as $option)
97- echo '
98- <li class="middletext">', $option['vote_button'], ' <label for="', $option['id'], '">', $option['option'], '</label></li>';
99-
100- echo '
101- </ul>
102- <div class="submitbutton">
103- <input type="submit" value="', $txt['poll_vote'], '" class="button_submit" />
104- <input type="hidden" name="', $context['session_var'], '" value="', $context['session_id'], '" />
105- </div>
106- </form>';
107- }
108-
109- // Is the clock ticking?
110- if (!empty($context['poll']['expire_time']))
111- echo '
112- <p><strong>', ($context['poll']['is_expired'] ? $txt['poll_expired_on'] : $txt['poll_expires_on']), ':</strong> ', $context['poll']['expire_time'], '</p>';
113-
114- echo '
115- </div>
116- <span class="botslice"><span></span></span>
117- </div>
118- </div>
119- <div id="pollmoderation">';
120-
121- // Build the poll moderation button array.
122- $poll_buttons = array(
123- 'vote' => array('test' => 'allow_return_vote', 'text' => 'poll_return_vote', 'image' => 'poll_options.gif', 'lang' => true, 'url' => $scripturl . '?topic=' . $context['current_topic'] . '.' . $context['start']),
124- 'results' => array('test' => 'show_view_results_button', 'text' => 'poll_results', 'image' => 'poll_results.gif', 'lang' => true, 'url' => $scripturl . '?topic=' . $context['current_topic'] . '.' . $context['start'] . ';viewresults'),
125- 'change_vote' => array('test' => 'allow_change_vote', 'text' => 'poll_change_vote', 'image' => 'poll_change_vote.gif', 'lang' => true, 'url' => $scripturl . '?action=vote;topic=' . $context['current_topic'] . '.' . $context['start'] . ';poll=' . $context['poll']['id'] . ';' . $context['session_var'] . '=' . $context['session_id']),
126- 'lock' => array('test' => 'allow_lock_poll', 'text' => (!$context['poll']['is_locked'] ? 'poll_lock' : 'poll_unlock'), 'image' => 'poll_lock.gif', 'lang' => true, 'url' => $scripturl . '?action=lockvoting;topic=' . $context['current_topic'] . '.' . $context['start'] . ';' . $context['session_var'] . '=' . $context['session_id']),
127- 'edit' => array('test' => 'allow_edit_poll', 'text' => 'poll_edit', 'image' => 'poll_edit.gif', 'lang' => true, 'url' => $scripturl . '?action=editpoll;topic=' . $context['current_topic'] . '.' . $context['start']),
128- 'remove_poll' => array('test' => 'can_remove_poll', 'text' => 'poll_remove', 'image' => 'admin_remove_poll.gif', 'lang' => true, 'custom' => 'onclick="return confirm(\'' . $txt['poll_remove_warn'] . '\');"', 'url' => $scripturl . '?action=removepoll;topic=' . $context['current_topic'] . '.' . $context['start'] . ';' . $context['session_var'] . '=' . $context['session_id']),
129- );
130-
131- template_button_strip($poll_buttons);
132-
133- echo '
134- </div>';
135- }
136-
137- // Does this topic have some events linked to it?
138- if (!empty($context['linked_calendar_events']))
139- {
140- echo '
141- <div class="linked_events">
142- <div class="title_bar">
143- <h3 class="titlebg headerpadding">', $txt['calendar_linked_events'], '</h3>
144- </div>
145- <div class="windowbg">
146- <span class="topslice"><span></span></span>
147- <div class="content">
148- <ul class="reset">';
149-
150- foreach ($context['linked_calendar_events'] as $event)
151- echo '
152- <li>
153- ', ($event['can_edit'] ? '<a href="' . $event['modify_href'] . '"> <img src="' . $settings['images_url'] . '/icons/modify_small.gif" alt="" title="' . $txt['modify'] . '" class="edit_event" /></a> ' : ''), '<strong>', $event['title'], '</strong>: ', $event['start_date'], ($event['start_date'] != $event['end_date'] ? ' - ' . $event['end_date'] : ''), '
154- </li>';
155-
156- echo '
157- </ul>
158- </div>
159- <span class="botslice"><span></span></span>
160- </div>
161- </div>';
162- }
163-
164- // Build the normal button array.
165- $normal_buttons = array(
166- 'reply' => array('test' => 'can_reply', 'text' => 'reply', 'image' => 'reply.gif', 'lang' => true, 'url' => $scripturl . '?action=post;topic=' . $context['current_topic'] . '.' . $context['start'] . ';last_msg=' . $context['topic_last_message'], 'active' => true),
167- 'add_poll' => array('test' => 'can_add_poll', 'text' => 'add_poll', 'image' => 'add_poll.gif', 'lang' => true, 'url' => $scripturl . '?action=editpoll;add;topic=' . $context['current_topic'] . '.' . $context['start']),
168- 'notify' => array('test' => 'can_mark_notify', 'text' => $context['is_marked_notify'] ? 'unnotify' : 'notify', 'image' => ($context['is_marked_notify'] ? 'un' : '') . 'notify.gif', 'lang' => true, 'custom' => 'onclick="return confirm(\'' . ($context['is_marked_notify'] ? $txt['notification_disable_topic'] : $txt['notification_enable_topic']) . '\');"', 'url' => $scripturl . '?action=notify;sa=' . ($context['is_marked_notify'] ? 'off' : 'on') . ';topic=' . $context['current_topic'] . '.' . $context['start'] . ';' . $context['session_var'] . '=' . $context['session_id']),
169- 'mark_unread' => array('test' => 'can_mark_unread', 'text' => 'mark_unread', 'image' => 'markunread.gif', 'lang' => true, 'url' => $scripturl . '?action=markasread;sa=topic;t=' . $context['mark_unread_time'] . ';topic=' . $context['current_topic'] . '.' . $context['start'] . ';' . $context['session_var'] . '=' . $context['session_id']),
170- 'send' => array('test' => 'can_send_topic', 'text' => 'send_topic', 'image' => 'sendtopic.gif', 'lang' => true, 'url' => $scripturl . '?action=emailuser;sa=sendtopic;topic=' . $context['current_topic'] . '.0'),
171- 'print' => array('text' => 'print', 'image' => 'print.gif', 'lang' => true, 'custom' => 'rel="new_win nofollow"', 'url' => $scripturl . '?action=printpage;topic=' . $context['current_topic'] . '.0'),
172- );
173-
174- // Allow adding new buttons easily.
175- call_integration_hook('integrate_display_buttons', array(&$normal_buttons));
176-
177- // Show the page index... "Pages: [1]".
178- echo '
179- <div class="pagesection">
180- <div class="nextlinks">', $context['previous_next'], '</div>', template_button_strip($normal_buttons, 'right'), '
181- <div class="pagelinks floatleft">', $txt['pages'], ': ', $context['page_index'], !empty($modSettings['topbottomEnable']) ? $context['menu_separator'] . ' &nbsp;&nbsp;<a href="#lastPost"><strong>' . $txt['go_down'] . '</strong></a>' : '', '</div>
182- </div>';
183-
184- // Show the topic information - icon, subject, etc.
185- echo '
186- <div id="forumposts">
187- <div class="cat_bar">
188- <h3 class="catbg">
189- <img src="', $settings['images_url'], '/topic/', $context['class'], '.gif" align="bottom" alt="" />
190- <span id="author">', $txt['author'], '</span>
191- ', $txt['topic'], ': ', $context['subject'], ' &nbsp;(', $txt['read'], ' ', $context['num_views'], ' ', $txt['times'], ')
192- </h3>
193- </div>';
194-
195- if (!empty($settings['display_who_viewing']))
196- {
197- echo '
198- <p id="whoisviewing" class="smalltext">';
199-
200- // Show just numbers...?
201- if ($settings['display_who_viewing'] == 1)
202- echo count($context['view_members']), ' ', count($context['view_members']) == 1 ? $txt['who_member'] : $txt['members'];
203- // Or show the actual people viewing the topic?
204- else
205- echo empty($context['view_members_list']) ? '0 ' . $txt['members'] : implode(', ', $context['view_members_list']) . ((empty($context['view_num_hidden']) || $context['can_moderate_forum']) ? '' : ' (+ ' . $context['view_num_hidden'] . ' ' . $txt['hidden'] . ')');
206-
207- // Now show how many guests are here too.
208- echo $txt['who_and'], $context['view_num_guests'], ' ', $context['view_num_guests'] == 1 ? $txt['guest'] : $txt['guests'], $txt['who_viewing_topic'], '
209- </p>';
210- }
211-
212- echo '
213- <form action="', $scripturl, '?action=quickmod2;topic=', $context['current_topic'], '.', $context['start'], '" method="post" accept-charset="', $context['character_set'], '" name="quickModForm" id="quickModForm" style="margin: 0;" onsubmit="return oQuickModify.bInEditMode ? oQuickModify.modifySave(\'' . $context['session_id'] . '\', \'' . $context['session_var'] . '\') : false">';
214-
215- $ignoredMsgs = array();
216- $removableMessageIDs = array();
217- $alternate = false;
218-
219- // Get all the messages...
220- while ($message = $context['get_message']())
221- {
222- $ignoring = false;
223- $alternate = !$alternate;
224- if ($message['can_remove'])
225- $removableMessageIDs[] = $message['id'];
226-
227- // Are we ignoring this message?
228- if (!empty($message['is_ignored']))
229- {
230- $ignoring = true;
231- $ignoredMsgs[] = $message['id'];
232- }
233-
234- // Show the message anchor and a "new" anchor if this message is new.
235- if ($message['id'] != $context['first_message'])
236- echo '
237- <a id="msg', $message['id'], '">&nbsp;</a>', $message['first_new'] ? '<a id="new">&nbsp;</a>' : '';
238-
239- echo '
240- <div class="', $message['approved'] ? ($message['alternate'] == 0 ? 'windowbg' : 'windowbg2') : 'approvebg', '">
241- <span class="topslice"><span></span></span>
242- <div class="post_wrapper">';
243-
244- // Show information about the poster of this message.
245- echo '
246- <div class="poster">
247- <h4>';
248-
249- // Show online and offline buttons?
250- if (!empty($modSettings['onlineEnable']) && !$message['member']['is_guest'])
251- echo '
252- ', $context['can_send_pm'] ? '<a href="' . $message['member']['online']['href'] . '" title="' . $message['member']['online']['label'] . '">' : '', '<img src="', $message['member']['online']['image_href'], '" alt="', $message['member']['online']['text'], '" />', $context['can_send_pm'] ? '</a>' : '';
253-
254- // Show a link to the member's profile.
255- echo '
256- ', $message['member']['link'], '
257- </h4>
258- <ul class="reset smalltext" id="msg_', $message['id'], '_extra_info">';
259-
260- // Show the member's custom title, if they have one.
261- if (!empty($message['member']['title']))
262- echo '
263- <li class="title">', $message['member']['title'], '</li>';
264-
265- // Show the member's primary group (like 'Administrator') if they have one.
266- if (!empty($message['member']['group']))
267- echo '
268- <li class="membergroup">', $message['member']['group'], '</li>';
269-
270- // Don't show these things for guests.
271- if (!$message['member']['is_guest'])
272- {
273- // Show the post group if and only if they have no other group or the option is on, and they are in a post group.
274- if ((empty($settings['hide_post_group']) || $message['member']['group'] == '') && $message['member']['post_group'] != '')
275- echo '
276- <li class="postgroup">', $message['member']['post_group'], '</li>';
277- echo '
278- <li class="stars">', $message['member']['group_stars'], '</li>';
279-
280- // Show avatars, images, etc.?
281- if (!empty($settings['show_user_images']) && empty($options['show_no_avatars']) && !empty($message['member']['avatar']['image']))
282- echo '
283- <li class="avatar">
284- <a href="', $scripturl, '?action=profile;u=', $message['member']['id'], '">
285- ', $message['member']['avatar']['image'], '
286- </a>
287- </li>';
288-
289- // Show how many posts they have made.
290- if (!isset($context['disabled_fields']['posts']))
291- echo '
292- <li class="postcount">', $txt['member_postcount'], ': ', $message['member']['posts'], '</li>';
293-
294- // Is karma display enabled? Total or +/-?
295- if ($modSettings['karmaMode'] == '1')
296- echo '
297- <li class="karma">', $modSettings['karmaLabel'], ' ', $message['member']['karma']['good'] - $message['member']['karma']['bad'], '</li>';
298- elseif ($modSettings['karmaMode'] == '2')
299- echo '
300- <li class="karma">', $modSettings['karmaLabel'], ' +', $message['member']['karma']['good'], '/-', $message['member']['karma']['bad'], '</li>';
301-
302- // Is this user allowed to modify this member's karma?
303- if ($message['member']['karma']['allow'])
304- echo '
305- <li class="karma_allow">
306- <a href="', $scripturl, '?action=modifykarma;sa=applaud;uid=', $message['member']['id'], ';topic=', $context['current_topic'], '.' . $context['start'], ';m=', $message['id'], ';', $context['session_var'], '=', $context['session_id'], '">', $modSettings['karmaApplaudLabel'], '</a>
307- <a href="', $scripturl, '?action=modifykarma;sa=smite;uid=', $message['member']['id'], ';topic=', $context['current_topic'], '.', $context['start'], ';m=', $message['id'], ';', $context['session_var'], '=', $context['session_id'], '">', $modSettings['karmaSmiteLabel'], '</a>
308- </li>';
309-
310- // Show the member's gender icon?
311- if (!empty($settings['show_gender']) && $message['member']['gender']['image'] != '' && !isset($context['disabled_fields']['gender']))
312- echo '
313- <li class="gender">', $txt['gender'], ': ', $message['member']['gender']['image'], '</li>';
314-
315- // Show their personal text?
316- if (!empty($settings['show_blurb']) && $message['member']['blurb'] != '')
317- echo '
318- <li class="blurb">', $message['member']['blurb'], '</li>';
319-
320- // Any custom fields to show as icons?
321- if (!empty($message['member']['custom_fields']))
322- {
323- $shown = false;
324- foreach ($message['member']['custom_fields'] as $custom)
325- {
326- if ($custom['placement'] != 1 || empty($custom['value']))
327- continue;
328- if (empty($shown))
329- {
330- $shown = true;
331- echo '
332- <li class="im_icons">
333- <ul>';
334- }
335- echo '
336- <li>', $custom['value'], '</li>';
337- }
338- if ($shown)
339- echo '
340- </ul>
341- </li>';
342- }
343-
344- // This shows the popular messaging icons.
345- if ($message['member']['has_messenger'] && $message['member']['can_view_profile'])
346- echo '
347- <li class="im_icons">
348- <ul>
349- ', !empty($message['member']['icq']['link']) ? '<li>' . $message['member']['icq']['link'] . '</li>' : '', '
350- ', !empty($message['member']['msn']['link']) ? '<li>' . $message['member']['msn']['link'] . '</li>' : '', '
351- ', !empty($message['member']['aim']['link']) ? '<li>' . $message['member']['aim']['link'] . '</li>' : '', '
352- ', !empty($message['member']['yim']['link']) ? '<li>' . $message['member']['yim']['link'] . '</li>' : '', '
353- </ul>
354- </li>';
355-
356- // Show the profile, website, email address, and personal message buttons.
357- if ($settings['show_profile_buttons'])
358- {
359- echo '
360- <li class="profile">
361- <ul>';
362- // Don't show the profile button if you're not allowed to view the profile.
363- if ($message['member']['can_view_profile'])
364- echo '
365- <li><a href="', $message['member']['href'], '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/icons/profile_sm.gif" alt="' . $txt['view_profile'] . '" title="' . $txt['view_profile'] . '" />' : $txt['view_profile']), '</a></li>';
366-
367- // Don't show an icon if they haven't specified a website.
368- if ($message['member']['website']['url'] != '' && !isset($context['disabled_fields']['website']))
369- echo '
370- <li><a href="', $message['member']['website']['url'], '" title="' . $message['member']['website']['title'] . '" target="_blank" class="new_win">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/www_sm.gif" alt="' . $message['member']['website']['title'] . '" />' : $txt['www']), '</a></li>';
371-
372- // Don't show the email address if they want it hidden.
373- if (in_array($message['member']['show_email'], array('yes', 'yes_permission_override', 'no_through_forum')))
374- echo '
375- <li><a href="', $scripturl, '?action=emailuser;sa=email;msg=', $message['id'], '" rel="nofollow">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/email_sm.gif" alt="' . $txt['email'] . '" title="' . $txt['email'] . '" />' : $txt['email']), '</a></li>';
376-
377- // Since we know this person isn't a guest, you *can* message them.
378- if ($context['can_send_pm'])
379- echo '
380- <li><a href="', $scripturl, '?action=pm;sa=send;u=', $message['member']['id'], '" title="', $message['member']['online']['is_online'] ? $txt['pm_online'] : $txt['pm_offline'], '">', $settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/im_' . ($message['member']['online']['is_online'] ? 'on' : 'off') . '.gif" alt="' . ($message['member']['online']['is_online'] ? $txt['pm_online'] : $txt['pm_offline']) . '" />' : ($message['member']['online']['is_online'] ? $txt['pm_online'] : $txt['pm_offline']), '</a></li>';
381-
382- echo '
383- </ul>
384- </li>';
385- }
386-
387- // Any custom fields for standard placement?
388- if (!empty($message['member']['custom_fields']))
389- {
390- foreach ($message['member']['custom_fields'] as $custom)
391- if (empty($custom['placement']) || empty($custom['value']))
392- echo '
393- <li class="custom">', $custom['title'], ': ', $custom['value'], '</li>';
394- }
395-
396- // Are we showing the warning status?
397- if ($message['member']['can_see_warning'])
398- echo '
399- <li class="warning">', $context['can_issue_warning'] ? '<a href="' . $scripturl . '?action=profile;area=issuewarning;u=' . $message['member']['id'] . '">' : '', '<img src="', $settings['images_url'], '/warning_', $message['member']['warning_status'], '.gif" alt="', $txt['user_warn_' . $message['member']['warning_status']], '" />', $context['can_issue_warning'] ? '</a>' : '', '<span class="warn_', $message['member']['warning_status'], '">', $txt['warn_' . $message['member']['warning_status']], '</span></li>';
400- }
401- // Otherwise, show the guest's email.
402- elseif (!empty($message['member']['email']) && in_array($message['member']['show_email'], array('yes', 'yes_permission_override', 'no_through_forum')))
403- echo '
404- <li class="email"><a href="', $scripturl, '?action=emailuser;sa=email;msg=', $message['id'], '" rel="nofollow">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/email_sm.gif" alt="' . $txt['email'] . '" title="' . $txt['email'] . '" />' : $txt['email']), '</a></li>';
405-
406- // Done with the information about the poster... on to the post itself.
407- echo '
408- </ul>
409- </div>
410- <div class="postarea">
411- <div class="flow_hidden">
412- <div class="keyinfo">
413- <div class="messageicon">
414- <img src="', $message['icon_url'] . '" alt=""', $message['can_modify'] ? ' id="msg_icon_' . $message['id'] . '"' : '', ' />
415- </div>
416- <h5 id="subject_', $message['id'], '">
417- <a href="', $message['href'], '" rel="nofollow">', $message['subject'], '</a>
418- </h5>
419- <div class="smalltext">&#171; <strong>', !empty($message['counter']) ? $txt['reply_noun'] . ' #' . $message['counter'] : '', ' ', $txt['on'], ':</strong> ', $message['time'], ' &#187;</div>
420- <div id="msg_', $message['id'], '_quick_mod"></div>
421- </div>';
422-
423- // If this is the first post, (#0) just say when it was posted - otherwise give the reply #.
424- if ($message['can_approve'] || $context['can_reply'] || $message['can_modify'] || $message['can_remove'] || $context['can_split'] || $context['can_restore_msg'])
425- echo '
426- <ul class="reset smalltext quickbuttons">';
427-
428- // Maybe we can approve it, maybe we should?
429- if ($message['can_approve'])
430- echo '
431- <li class="approve_button"><a href="', $scripturl, '?action=moderate;area=postmod;sa=approve;topic=', $context['current_topic'], '.', $context['start'], ';msg=', $message['id'], ';', $context['session_var'], '=', $context['session_id'], '">', $txt['approve'], '</a></li>';
432-
433- // Can they reply? Have they turned on quick reply?
434- if ($context['can_quote'] && !empty($options['display_quick_reply']))
435- echo '
436- <li class="quote_button"><a href="', $scripturl, '?action=post;quote=', $message['id'], ';topic=', $context['current_topic'], '.', $context['start'], ';last_msg=', $context['topic_last_message'], '" onclick="return oQuickReply.quote(', $message['id'], ');">', $txt['quote'], '</a></li>';
437-
438- // So... quick reply is off, but they *can* reply?
439- elseif ($context['can_quote'])
440- echo '
441- <li class="quote_button"><a href="', $scripturl, '?action=post;quote=', $message['id'], ';topic=', $context['current_topic'], '.', $context['start'], ';last_msg=', $context['topic_last_message'], '">', $txt['quote'], '</a></li>';
442-
443- // Can the user modify the contents of this post?
444- if ($message['can_modify'])
445- echo '
446- <li class="modify_button"><a href="', $scripturl, '?action=post;msg=', $message['id'], ';topic=', $context['current_topic'], '.', $context['start'], '">', $txt['modify'], '</a></li>';
447-
448- // How about... even... remove it entirely?!
449- if ($message['can_remove'])
450- echo '
451- <li class="remove_button"><a href="', $scripturl, '?action=deletemsg;topic=', $context['current_topic'], '.', $context['start'], ';msg=', $message['id'], ';', $context['session_var'], '=', $context['session_id'], '" onclick="return confirm(\'', $txt['remove_message'], '?\');">', $txt['remove'], '</a></li>';
452-
453- // What about splitting it off the rest of the topic?
454- if ($context['can_split'] && !empty($context['real_num_replies']))
455- echo '
456- <li class="split_button"><a href="', $scripturl, '?action=splittopics;topic=', $context['current_topic'], '.0;at=', $message['id'], '">', $txt['split'], '</a></li>';
457-
458- // Can we restore topics?
459- if ($context['can_restore_msg'])
460- echo '
461- <li class="restore_button"><a href="', $scripturl, '?action=restoretopic;msgs=', $message['id'], ';', $context['session_var'], '=', $context['session_id'], '">', $txt['restore_message'], '</a></li>';
462-
463- // Show a checkbox for quick moderation?
464- if (!empty($options['display_quick_mod']) && $options['display_quick_mod'] == 1 && $message['can_remove'])
465- echo '
466- <li class="inline_mod_check" style="display: none;" id="in_topic_mod_check_', $message['id'], '"></li>';
467-
468- if ($message['can_approve'] || $context['can_reply'] || $message['can_modify'] || $message['can_remove'] || $context['can_split'] || $context['can_restore_msg'])
469- echo '
470- </ul>';
471-
472- echo '
473- </div>';
474-
475- // Ignoring this user? Hide the post.
476- if ($ignoring)
477- echo '
478- <div id="msg_', $message['id'], '_ignored_prompt">
479- ', $txt['ignoring_user'], '
480- <a href="#" id="msg_', $message['id'], '_ignored_link" style="display: none;">', $txt['show_ignore_user_post'], '</a>
481- </div>';
482-
483- // Show the post itself, finally!
484- echo '
485- <div class="post">';
486-
487- if (!$message['approved'] && $message['member']['id'] != 0 && $message['member']['id'] == $context['user']['id'])
488- echo '
489- <div class="approve_post">
490- ', $txt['post_awaiting_approval'], '
491- </div>';
492- echo '
493- <div class="inner" id="msg_', $message['id'], '"', '>', $message['body'], '</div>
494- </div>';
495-
496- // Can the user modify the contents of this post? Show the modify inline image.
497- if ($message['can_modify'])
498- echo '
499- <img src="', $settings['images_url'], '/icons/modify_inline.gif" alt="', $txt['modify_msg'], '" title="', $txt['modify_msg'], '" class="modifybutton" id="modify_button_', $message['id'], '" style="cursor: ', ($context['browser']['is_ie5'] || $context['browser']['is_ie5.5'] ? 'hand' : 'pointer'), '; display: none;" onclick="oQuickModify.modifyMsg(\'', $message['id'], '\')" />';
500-
501- // Assuming there are attachments...
502- if (!empty($message['attachment']))
503- {
504- echo '
505- <div id="msg_', $message['id'], '_footer" class="attachments smalltext">
506- <div style="overflow: ', $context['browser']['is_firefox'] ? 'visible' : 'auto', ';">';
507-
508- $last_approved_state = 1;
509- foreach ($message['attachment'] as $attachment)
510- {
511- // Show a special box for unapproved attachments...
512- if ($attachment['is_approved'] != $last_approved_state)
513- {
514- $last_approved_state = 0;
515- echo '
516- <fieldset>
517- <legend>', $txt['attach_awaiting_approve'];
518-
519- if ($context['can_approve'])
520- echo '&nbsp;[<a href="', $scripturl, '?action=attachapprove;sa=all;mid=', $message['id'], ';', $context['session_var'], '=', $context['session_id'], '">', $txt['approve_all'], '</a>]';
521-
522- echo '</legend>';
523- }
524-
525- if ($attachment['is_image'])
526- {
527- if ($attachment['thumbnail']['has_thumb'])
528- echo '
529- <a href="', $attachment['href'], ';image" id="link_', $attachment['id'], '" onclick="', $attachment['thumbnail']['javascript'], '"><img src="', $attachment['thumbnail']['href'], '" alt="" id="thumb_', $attachment['id'], '" /></a><br />';
530- else
531- echo '
532- <img src="' . $attachment['href'] . ';image" alt="" width="' . $attachment['width'] . '" height="' . $attachment['height'] . '"/><br />';
533- }
534- echo '
535- <a href="' . $attachment['href'] . '"><img src="' . $settings['images_url'] . '/icons/clip.gif" align="middle" alt="*" />&nbsp;' . $attachment['name'] . '</a> ';
536-
537- if (!$attachment['is_approved'] && $context['can_approve'])
538- echo '
539- [<a href="', $scripturl, '?action=attachapprove;sa=approve;aid=', $attachment['id'], ';', $context['session_var'], '=', $context['session_id'], '">', $txt['approve'], '</a>]&nbsp;|&nbsp;[<a href="', $scripturl, '?action=attachapprove;sa=reject;aid=', $attachment['id'], ';', $context['session_var'], '=', $context['session_id'], '">', $txt['delete'], '</a>] ';
540- echo '
541- (', $attachment['size'], ($attachment['is_image'] ? ', ' . $attachment['real_width'] . 'x' . $attachment['real_height'] . ' - ' . $txt['attach_viewed'] : ' - ' . $txt['attach_downloaded']) . ' ' . $attachment['downloads'] . ' ' . $txt['attach_times'] . '.)<br />';
542- }
543-
544- // If we had unapproved attachments clean up.
545- if ($last_approved_state == 0)
546- echo '
547- </fieldset>';
548-
549- echo '
550- </div>
551- </div>';
552- }
553-
554- echo '
555- </div>
556- <div class="moderatorbar">
557- <div class="smalltext modified" id="modified_', $message['id'], '">';
558-
559- // Show "� Last Edit: Time by Person �" if this post was edited.
560- if ($settings['show_modify'] && !empty($message['modified']['name']))
561- echo '
562- &#171; <em>', $txt['last_edit'], ': ', $message['modified']['time'], ' ', $txt['by'], ' ', $message['modified']['name'], '</em> &#187;';
563-
564- echo '
565- </div>
566- <div class="smalltext reportlinks">';
567-
568- // Maybe they want to report this post to the moderator(s)?
569- if ($context['can_report_moderator'])
570- echo '
571- <a href="', $scripturl, '?action=reporttm;topic=', $context['current_topic'], '.', $message['counter'], ';msg=', $message['id'], '">', $txt['report_to_mod'], '</a> &nbsp;';
572-
573- // Can we issue a warning because of this post? Remember, we can't give guests warnings.
574- if ($context['can_issue_warning'] && !$message['is_message_author'] && !$message['member']['is_guest'])
575- echo '
576- <a href="', $scripturl, '?action=profile;area=issuewarning;u=', $message['member']['id'], ';msg=', $message['id'], '"><img src="', $settings['images_url'], '/warn.gif" alt="', $txt['issue_warning_post'], '" title="', $txt['issue_warning_post'], '" /></a>';
577- echo '
578- <img src="', $settings['images_url'], '/ip.gif" alt="" />';
579-
580- // Show the IP to this user for this post - because you can moderate?
581- if ($context['can_moderate_forum'] && !empty($message['member']['ip']))
582- echo '
583- <a href="', $scripturl, '?action=', !empty($message['member']['is_guest']) ? 'trackip' : 'profile;area=tracking;sa=ip;u=' . $message['member']['id'], ';searchip=', $message['member']['ip'], '">', $message['member']['ip'], '</a> <a href="', $scripturl, '?action=helpadmin;help=see_admin_ip" onclick="return reqWin(this.href);" class="help">(?)</a>';
584- // Or, should we show it because this is you?
585- elseif ($message['can_see_ip'])
586- echo '
587- <a href="', $scripturl, '?action=helpadmin;help=see_member_ip" onclick="return reqWin(this.href);" class="help">', $message['member']['ip'], '</a>';
588- // Okay, are you at least logged in? Then we can show something about why IPs are logged...
589- elseif (!$context['user']['is_guest'])
590- echo '
591- <a href="', $scripturl, '?action=helpadmin;help=see_member_ip" onclick="return reqWin(this.href);" class="help">', $txt['logged'], '</a>';
592- // Otherwise, you see NOTHING!
593- else
594- echo '
595- ', $txt['logged'];
596-
597- echo '
598- </div>';
599-
600- // Are there any custom profile fields for above the signature?
601- if (!empty($message['member']['custom_fields']))
602- {
603- $shown = false;
604- foreach ($message['member']['custom_fields'] as $custom)
605- {
606- if ($custom['placement'] != 2 || empty($custom['value']))
607- continue;
608- if (empty($shown))
609- {
610- $shown = true;
611- echo '
612- <div class="custom_fields_above_signature">
613- <ul class="reset nolist">';
614- }
615- echo '
616- <li>', $custom['value'], '</li>';
617- }
618- if ($shown)
619- echo '
620- </ul>
621- </div>';
622- }
623-
624- // Show the member's signature?
625- if (!empty($message['member']['signature']) && empty($options['show_no_signatures']) && $context['signature_enabled'])
626- echo '
627- <div class="signature" id="msg_', $message['id'], '_signature">', $message['member']['signature'], '</div>';
628-
629- echo '
630- </div>
631- </div>
632- <span class="botslice"><span></span></span>
633- </div>
634- <hr class="post_separator" />';
635- }
636-
637- echo '
638- </form>
639- </div>
640- <a id="lastPost"></a>';
641-
642- // Show the page index... "Pages: [1]".
643- echo '
644- <div class="pagesection">
645- ', template_button_strip($normal_buttons, 'right'), '
646- <div class="pagelinks floatleft">', $txt['pages'], ': ', $context['page_index'], !empty($modSettings['topbottomEnable']) ? $context['menu_separator'] . ' &nbsp;&nbsp;<a href="#top"><strong>' . $txt['go_up'] . '</strong></a>' : '', '</div>
647- <div class="nextlinks_bottom">', $context['previous_next'], '</div>
648- </div>';
649-
650- // Show the lower breadcrumbs.
651- theme_linktree();
652-
653- $mod_buttons = array(
654- 'move' => array('test' => 'can_move', 'text' => 'move_topic', 'image' => 'admin_move.gif', 'lang' => true, 'url' => $scripturl . '?action=movetopic;topic=' . $context['current_topic'] . '.0'),
655- 'delete' => array('test' => 'can_delete', 'text' => 'remove_topic', 'image' => 'admin_rem.gif', 'lang' => true, 'custom' => 'onclick="return confirm(\'' . $txt['are_sure_remove_topic'] . '\');"', 'url' => $scripturl . '?action=removetopic2;topic=' . $context['current_topic'] . '.0;' . $context['session_var'] . '=' . $context['session_id']),
656- 'lock' => array('test' => 'can_lock', 'text' => empty($context['is_locked']) ? 'set_lock' : 'set_unlock', 'image' => 'admin_lock.gif', 'lang' => true, 'url' => $scripturl . '?action=lock;topic=' . $context['current_topic'] . '.' . $context['start'] . ';' . $context['session_var'] . '=' . $context['session_id']),
657- 'sticky' => array('test' => 'can_sticky', 'text' => empty($context['is_sticky']) ? 'set_sticky' : 'set_nonsticky', 'image' => 'admin_sticky.gif', 'lang' => true, 'url' => $scripturl . '?action=sticky;topic=' . $context['current_topic'] . '.' . $context['start'] . ';' . $context['session_var'] . '=' . $context['session_id']),
658- 'merge' => array('test' => 'can_merge', 'text' => 'merge', 'image' => 'merge.gif', 'lang' => true, 'url' => $scripturl . '?action=mergetopics;board=' . $context['current_board'] . '.0;from=' . $context['current_topic']),
659- 'calendar' => array('test' => 'calendar_post', 'text' => 'calendar_link', 'image' => 'linktocal.gif', 'lang' => true, 'url' => $scripturl . '?action=post;calendar;msg=' . $context['topic_first_message'] . ';topic=' . $context['current_topic'] . '.0'),
660- );
661-
662- // Restore topic. eh? No monkey business.
663- if ($context['can_restore_topic'])
664- $mod_buttons[] = array('text' => 'restore_topic', 'image' => '', 'lang' => true, 'url' => $scripturl . '?action=restoretopic;topics=' . $context['current_topic'] . ';' . $context['session_var'] . '=' . $context['session_id']);
665-
666- // Allow adding new mod buttons easily.
667- call_integration_hook('integrate_mod_buttons', array(&$mod_buttons));
668-
669- echo '
670- <div id="moderationbuttons">', template_button_strip($mod_buttons, 'bottom', array('id' => 'moderationbuttons_strip')), '</div>';
671-
672- // Show the jumpto box, or actually...let Javascript do it.
673- echo '
674- <div class="plainbox" id="display_jump_to">&nbsp;</div>';
675-
676- if ($context['can_reply'] && !empty($options['display_quick_reply']))
677- {
678- echo '
679- <a id="quickreply"></a>
680- <div class="tborder" id="quickreplybox">
681- <div class="cat_bar">
682- <h3 class="catbg">
683- <span class="ie6_header floatleft"><a href="javascript:oQuickReply.swap();">
684- <img src="', $settings['images_url'], '/', $options['display_quick_reply'] == 2 ? 'collapse' : 'expand', '.gif" alt="+" id="quickReplyExpand" class="icon" />
685- </a>
686- <a href="javascript:oQuickReply.swap();">', $txt['quick_reply'], '</a>
687- </span>
688- </h3>
689- </div>
690- <div id="quickReplyOptions"', $options['display_quick_reply'] == 2 ? '' : ' style="display: none"', '>
691- <span class="upperframe"><span></span></span>
692- <div class="roundframe">
693- <p class="smalltext lefttext">', $txt['quick_reply_desc'], '</p>
694- ', $context['is_locked'] ? '<p class="alert smalltext">' . $txt['quick_reply_warning'] . '</p>' : '',
695- $context['oldTopicError'] ? '<p class="alert smalltext">' . sprintf($txt['error_old_topic'], $modSettings['oldTopicDays']) . '</p>' : '', '
696- ', $context['can_reply_approved'] ? '' : '<em>' . $txt['wait_for_approval'] . '</em>', '
697- ', !$context['can_reply_approved'] && $context['require_verification'] ? '<br />' : '', '
698- <form action="', $scripturl, '?board=', $context['current_board'], ';action=post2" method="post" accept-charset="', $context['character_set'], '" name="postmodify" id="postmodify" onsubmit="submitonce(this);" style="margin: 0;">
699- <input type="hidden" name="topic" value="', $context['current_topic'], '" />
700- <input type="hidden" name="subject" value="', $context['response_prefix'], $context['subject'], '" />
701- <input type="hidden" name="icon" value="xx" />
702- <input type="hidden" name="from_qr" value="1" />
703- <input type="hidden" name="notify" value="', $context['is_marked_notify'] || !empty($options['auto_notify']) ? '1' : '0', '" />
704- <input type="hidden" name="not_approved" value="', !$context['can_reply_approved'], '" />
705- <input type="hidden" name="goback" value="', empty($options['return_to_post']) ? '0' : '1', '" />
706- <input type="hidden" name="last_msg" value="', $context['topic_last_message'], '" />
707- <input type="hidden" name="', $context['session_var'], '" value="', $context['session_id'], '" />
708- <input type="hidden" name="seqnum" value="', $context['form_sequence_number'], '" />';
709-
710- // Guests just need more.
711- if ($context['user']['is_guest'])
712- echo '
713- <strong>', $txt['name'], ':</strong> <input type="text" name="guestname" value="', $context['name'], '" size="25" class="input_text" tabindex="', $context['tabindex']++, '" />
714- <strong>', $txt['email'], ':</strong> <input type="text" name="email" value="', $context['email'], '" size="25" class="input_text" tabindex="', $context['tabindex']++, '" /><br />';
715-
716- // Is visual verification enabled?
717- if ($context['require_verification'])
718- echo '
719- <strong>', $txt['verification'], ':</strong>', template_control_verification($context['visual_verification_id'], 'quick_reply'), '<br />';
720-
721- echo '
722- <div class="quickReplyContent">
723- <textarea cols="600" rows="7" name="message" tabindex="', $context['tabindex']++, '"></textarea>
724- </div>
725- <div class="righttext padding">
726- <input type="submit" name="post" value="', $txt['post'], '" onclick="return submitThisOnce(this);" accesskey="s" tabindex="', $context['tabindex']++, '" class="button_submit" />
727- <input type="submit" name="preview" value="', $txt['preview'], '" onclick="return submitThisOnce(this);" accesskey="p" tabindex="', $context['tabindex']++, '" class="button_submit" />';
728-
729- if ($context['show_spellchecking'])
730- echo '
731- <input type="button" value="', $txt['spell_check'], '" onclick="spellCheck(\'postmodify\', \'message\');" tabindex="', $context['tabindex']++, '" class="button_submit" />';
732-
733- echo '
734- </div>
735- </form>
736- </div>
737- <span class="lowerframe"><span></span></span>
738- </div>
739- </div>';
740- }
741- else
742- echo '
743- <br class="clear" />';
744-
745- if ($context['show_spellchecking'])
746- echo '
747- <form action="', $scripturl, '?action=spellcheck" method="post" accept-charset="', $context['character_set'], '" name="spell_form" id="spell_form" target="spellWindow"><input type="hidden" name="spellstring" value="" /></form>
748- <script type="text/javascript" src="' . $settings['default_theme_url'] . '/scripts/spellcheck.js"></script>';
749-
750- echo '
751- <script type="text/javascript" src="' . $settings['default_theme_url'] . '/scripts/topic.js"></script>
752- <script type="text/javascript"><!-- // --><![CDATA[';
753-
754- if (!empty($options['display_quick_reply']))
755- echo '
756- var oQuickReply = new QuickReply({
757- bDefaultCollapsed: ', !empty($options['display_quick_reply']) && $options['display_quick_reply'] == 2 ? 'false' : 'true', ',
758- iTopicId: ', $context['current_topic'], ',
759- iStart: ', $context['start'], ',
760- sScriptUrl: smf_scripturl,
761- sImagesUrl: "', $settings['images_url'], '",
762- sContainerId: "quickReplyOptions",
763- sImageId: "quickReplyExpand",
764- sImageCollapsed: "collapse.gif",
765- sImageExpanded: "expand.gif",
766- sJumpAnchor: "quickreply"
767- });';
768-
769- if (!empty($options['display_quick_mod']) && $options['display_quick_mod'] == 1 && $context['can_remove_post'])
770- echo '
771- var oInTopicModeration = new InTopicModeration({
772- sSelf: \'oInTopicModeration\',
773- sCheckboxContainerMask: \'in_topic_mod_check_\',
774- aMessageIds: [\'', implode('\', \'', $removableMessageIDs), '\'],
775- sSessionId: \'', $context['session_id'], '\',
776- sSessionVar: \'', $context['session_var'], '\',
777- sButtonStrip: \'moderationbuttons\',
778- sButtonStripDisplay: \'moderationbuttons_strip\',
779- bUseImageButton: false,
780- bCanRemove: ', $context['can_remove_post'] ? 'true' : 'false', ',
781- sRemoveButtonLabel: \'', $txt['quickmod_delete_selected'], '\',
782- sRemoveButtonImage: \'delete_selected.gif\',
783- sRemoveButtonConfirm: \'', $txt['quickmod_confirm'], '\',
784- bCanRestore: ', $context['can_restore_msg'] ? 'true' : 'false', ',
785- sRestoreButtonLabel: \'', $txt['quick_mod_restore'], '\',
786- sRestoreButtonImage: \'restore_selected.gif\',
787- sRestoreButtonConfirm: \'', $txt['quickmod_confirm'], '\',
788- sFormId: \'quickModForm\'
789- });';
790-
791- echo '
792- if (\'XMLHttpRequest\' in window)
793- {
794- var oQuickModify = new QuickModify({
795- sScriptUrl: smf_scripturl,
796- bShowModify: ', $settings['show_modify'] ? 'true' : 'false', ',
797- iTopicId: ', $context['current_topic'], ',
798- sTemplateBodyEdit: ', JavaScriptEscape('
799- <div id="quick_edit_body_container" style="width: 90%">
800- <div id="error_box" style="padding: 4px;" class="error"></div>
801- <textarea class="editor" name="message" rows="12" style="' . ($context['browser']['is_ie8'] ? 'width: 635px; max-width: 100%; min-width: 100%' : 'width: 100%') . '; margin-bottom: 10px;" tabindex="' . $context['tabindex']++ . '">%body%</textarea><br />
802- <input type="hidden" name="' . $context['session_var'] . '" value="' . $context['session_id'] . '" />
803- <input type="hidden" name="topic" value="' . $context['current_topic'] . '" />
804- <input type="hidden" name="msg" value="%msg_id%" />
805- <div class="righttext">
806- <input type="submit" name="post" value="' . $txt['save'] . '" tabindex="' . $context['tabindex']++ . '" onclick="return oQuickModify.modifySave(\'' . $context['session_id'] . '\', \'' . $context['session_var'] . '\');" accesskey="s" class="button_submit" />&nbsp;&nbsp;' . ($context['show_spellchecking'] ? '<input type="button" value="' . $txt['spell_check'] . '" tabindex="' . $context['tabindex']++ . '" onclick="spellCheck(\'quickModForm\', \'message\');" class="button_submit" />&nbsp;&nbsp;' : '') . '<input type="submit" name="cancel" value="' . $txt['modify_cancel'] . '" tabindex="' . $context['tabindex']++ . '" onclick="return oQuickModify.modifyCancel();" class="button_submit" />
807- </div>
808- </div>'), ',
809- sTemplateSubjectEdit: ', JavaScriptEscape('<input type="text" style="width: 90%;" name="subject" value="%subject%" size="80" maxlength="80" tabindex="' . $context['tabindex']++ . '" class="input_text" />'), ',
810- sTemplateBodyNormal: ', JavaScriptEscape('%body%'), ',
811- sTemplateSubjectNormal: ', JavaScriptEscape('<a href="' . $scripturl . '?topic=' . $context['current_topic'] . '.msg%msg_id%#msg%msg_id%" rel="nofollow">%subject%</a>'), ',
812- sTemplateTopSubject: ', JavaScriptEscape($txt['topic'] . ': %subject% &nbsp;(' . $txt['read'] . ' ' . $context['num_views'] . ' ' . $txt['times'] . ')'), ',
813- sErrorBorderStyle: ', JavaScriptEscape('1px solid red'), '
814- });
815-
816- aJumpTo[aJumpTo.length] = new JumpTo({
817- sContainerId: "display_jump_to",
818- sJumpToTemplate: "<label class=\"smalltext\" for=\"%select_id%\">', $context['jump_to']['label'], ':<" + "/label> %dropdown_list%",
819- iCurBoardId: ', $context['current_board'], ',
820- iCurBoardChildLevel: ', $context['jump_to']['child_level'], ',
821- sCurBoardName: "', $context['jump_to']['board_name'], '",
822- sBoardChildLevelIndicator: "==",
823- sBoardPrefix: "=> ",
824- sCatSeparator: "-----------------------------",
825- sCatPrefix: "",
826- sGoButtonLabel: "', $txt['go'], '"
827- });
828-
829- aIconLists[aIconLists.length] = new IconList({
830- sBackReference: "aIconLists[" + aIconLists.length + "]",
831- sIconIdPrefix: "msg_icon_",
832- sScriptUrl: smf_scripturl,
833- bShowModify: ', $settings['show_modify'] ? 'true' : 'false', ',
834- iBoardId: ', $context['current_board'], ',
835- iTopicId: ', $context['current_topic'], ',
836- sSessionId: "', $context['session_id'], '",
837- sSessionVar: "', $context['session_var'], '",
838- sLabelIconList: "', $txt['message_icon'], '",
839- sBoxBackground: "transparent",
840- sBoxBackgroundHover: "#ffffff",
841- iBoxBorderWidthHover: 1,
842- sBoxBorderColorHover: "#adadad" ,
843- sContainerBackground: "#ffffff",
844- sContainerBorder: "1px solid #adadad",
845- sItemBorder: "1px solid #ffffff",
846- sItemBorderHover: "1px dotted gray",
847- sItemBackground: "transparent",
848- sItemBackgroundHover: "#e0e0f0"
849- });
850- }';
851-
852- if (!empty($ignoredMsgs))
853- {
854- echo '
855- var aIgnoreToggles = new Array();';
856-
857- foreach ($ignoredMsgs as $msgid)
858- {
859- echo '
860- aIgnoreToggles[', $msgid, '] = new smc_Toggle({
861- bToggleEnabled: true,
862- bCurrentlyCollapsed: true,
863- aSwappableContainers: [
864- \'msg_', $msgid, '_extra_info\',
865- \'msg_', $msgid, '\',
866- \'msg_', $msgid, '_footer\',
867- \'msg_', $msgid, '_quick_mod\',
868- \'modify_button_', $msgid, '\',
869- \'msg_', $msgid, '_signature\'
870-
871- ],
872- aSwapLinks: [
873- {
874- sId: \'msg_', $msgid, '_ignored_link\',
875- msgExpanded: \'\',
876- msgCollapsed: ', JavaScriptEscape($txt['show_ignore_user_post']), '
877- }
878- ]
879- });';
880- }
881- }
882-
883- echo '
884- // ]]></script>';
885-}
886-
887-?>
888
889=== modified file 'css/index.css'
890--- css/index.css 2012-05-20 11:03:17 +0000
891+++ css/index.css 2012-05-20 11:03:17 +0000
892@@ -2185,6 +2185,12 @@
893 {
894 margin-bottom: 3px;
895 }
896+#forumposts .windowbg,
897+#forumposts .windowbg2
898+{
899+ overflow: hidden;
900+ background-color: #fff;
901+}
902 p#whoisviewing
903 {
904 margin: 0;

Subscribers

People subscribed via source and target branches