1
Soporte General SMF / Problema Multiple Stars
« on: September 23, 2011 - 03:30 15:30 »
Adjuntar a los archivos necesarios.
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
31: cache_put_data('page_index_news', $context['page_index'], 1800);
32: }else{
33: $context['news'] = cache_get_data('bk_news', 1800);
34: $context['page_index'] = cache_get_data('page_index_news', 1800);
35: }
36: }else{
37: LoadBlockNews();
38: }
39:
40: echo "
41: <script type="text/javascript">
42: function makesurelink() {
43: if (confirm('".$txt['ultport_delete_news_confirmation']."')) {
44: return true;
45: } else {
46: return false;
47: }
48: }
49: </script>";
50:
==>51: foreach($context['news'] as $news)
52: {
53: echo '<div class="description"><img style="vertical-align: middle;" alt="'. stripslashes($news['title_cat']) .'" src="'. $news['icon'] .'" width="20" height="20" />
54: <strong><a href="'. $scripturl .'?action=news;sa=show-cat;id='. $news['id_cat'] .'">'. stripslashes($news['title_cat']) .'</a></strong>
55: - <strong>'. $news['title'] .'</strong> <span style="text-align:right;">'. $news['view'] .'</span>
56: <br />'. $news['added-news'] .'</div>
57: <div>'. $news['body'] .'</div><br />';
58:
59: if (!empty($user_info['up-modules-permissions']['news_moderate']) || $user_info['is_admin'])
60: {
61: echo '<div style="border: 1px dashed #aaa;padding: 3px;">'. $news['edit'] .'
62: '. $news['delete'] .'</div>';
63: }
64:
65: }
66: //Page Index
67: echo '
68: <div style="text-align:center">
69: <strong>'. $txt['pages'] .':</strong> '. $context['page_index'] . '
70: </div>';
71: //End Page Index
144: <img src="', $settings['images_url'], '/', $context['theme_variant_url'], 'on', $board['new'] ? '' : '2', '.png" alt="', $txt['new_posts'], '" title="', $txt['new_posts'], '" />';
145: // Is it a redirection board?
146: elseif ($board['is_redirect'])
147: echo '
148: <img src="', $settings['images_url'], '/', $context['theme_variant_url'], 'redirect.png" alt="*" title="*" />';
149: // No new posts at all! The agony!!
150: else
151: echo '
152: <img src="', $settings['images_url'], '/', $context['theme_variant_url'], 'off.png" alt="', $txt['old_posts'], '" title="', $txt['old_posts'], '" />';
153:
154: echo '</a>
155: </td>';
156:
157: //START Large Icon Board
158:
159: $iconimage = "Themes/default/images/boardicon/" . $board['id'] . ".gif";
160:
161: if (file_exists($iconimage)) {
162: echo '
163: <td class="info" width="10%" align="center" valign="middle">
==>164: <a href="', $board['href'], '" style="color:'.$context['colorForum'].'" name="b', $board['id'], '">
165: <img src="', $iconimage ,'" alt="',$board['id'],'" />
166: </a>
167: </td>';
168: }
169: else {
170: echo '
171: <td class="info" width="10%" align="center" valign="middle">
172: <a href="', $board['href'], '" name="b', $board['id'], '">
173: <img src="', $settings['images_url'], '/boardicon/noimage.gif" alt="',$board['id'],'" />
174: </a>
175: </td>';
176: }
177: //END Large Icon Board
178:
179: echo '
180: </a>
181: </td>
182: <td class="info">';
183: colorForum($board['id']);
184: echo'
http://www.passiongames.it/forum/index.php?8: Undefined index: idFile: /web/htdocs/www.passiongames.it/home/forum/up-blocks/bk-boards-news.php
Riga: 97
77: if ((empty($settings['hide_post_group']) || $memberContext[$news['poster']['id']]['group'] == '') && $memberContext[$news['poster']['id']]['post_group'] != '')
78: echo '
79: '. $memberContext[$news['poster']['id']]['post_group'] .'<br />';
80: echo '
81: '. $memberContext[$news['poster']['id']]['group_stars'] .'<br />';
82:
83: // Is karma display enabled? Total or +/-?
84: if ($modSettings['karmaMode'] == '1')
85: echo '
86: <br />
87: '. $modSettings['karmaLabel'] .' '. ($memberContext[$news['poster']['id']]['karma']['good'] - $memberContext[$news['poster']['id']]['karma']['bad']) .'<br />';
88: elseif ($modSettings['karmaMode'] == '2')
89: echo '
90: <br />
91: '. $modSettings['karmaLabel'] .' +'. $memberContext[$news['poster']['id']]['karma']['good'] .'/-'. $memberContext[$news['poster']['id']]['karma']['bad'] .'<br />';
92:
93: // Is this user allowed to modify this member's karma?
94: if ($memberContext[$news['poster']['id']]['karma']['allow'])
95: echo '
96: <a href="'. $scripturl .'?action=modifykarma;sa=applaud;uid='. $memberContext[$news['poster']['id']]['id'] .';topic='. $news['id'] .'.0;m='. $news['message_id'] .';sesc='. $sc .'">'. $modSettings['karmaApplaudLabel'] .'</a>
==>97: <a href="'. $scripturl .'?action=modifykarma;sa=smite;uid='. $memberContext[$news['poster']['id']]['id'] .';topic='. $news['id'] .'.0;m='. $news['message_id']. ';sesc='. $sc .'">'. $modSettings['karmaSmiteLabel'] .'</a><br />';
98:
99: // Show online and offline buttons?
100: if (!empty($modSettings['onlineEnable']))
101: echo
102: ($settings['use_image_buttons'] ? '<img src="' . $memberContext[$news['poster']['id']]['online']['image_href'] . '" alt="' . $memberContext[$news['poster']['id']]['online']['text'] . '" border="0" style="margin-top: 2px;" />' : $memberContext[$news['poster']['id']]['online']['text']) .'<br /><br />';
103:
104: // Show the member's gender icon?
105: if (!empty($settings['show_gender']) && $memberContext[$news['poster']['id']]['gender']['image'] != '')
106: echo '
107: '. $txt['gender'] .': '. $memberContext[$news['poster']['id']]['gender']['image'] .'<br />';
108:
109: // Show how many posts they have made.
110: echo '
111: '. $txt['member_postcount'] .': '. $memberContext[$news['poster']['id']]['posts'] .'<br />
112: <br />';
113:
114: // Show avatars, images, etc.?
115: if (!empty($settings['show_user_images']))
116: echo '
117: <div style="overflow: auto; width: 100%;">'. (!empty($memberContext[$news['poster']['id']]['avatar']['image']) ? $memberContext[$news['poster']['id']]['avatar']['image'] : '<img src="'. $settings['default_theme_url'] .'/images/ultimate-portal/no_avatar.png" alt="" class="avatar" border="0" />') .'</div><br />';