News:

Wondering if this will always be free?  See why free is better.

Main Menu

MundoNet Theme

Started by Diego Andrés, January 08, 2013, 07:35:10 PM

Previous topic - Next topic

DAVID. D.A


DAVID. D.A

Yeah, does this happen to you also?

..You log in with the 'forever' check box ticked, but when you close your browser/tab for some mins, return to any part of the forum, you view the forum as guest, but as soon as you change to another location, like the login page or a random board, you're logged back in??

Adrek

If I had to guess - you are entering you board using URL with www when you should use URL without www, for sure it's not theme related.
Polskie wsparcie SMF na simplemachines.org

the simplest solution is most likely the right one

DAVID. D.A

Yeah, Google chrome automatically does that, anyway to stop it?

Adrek

Check your bookmark :) If it's not the case - create support topic, because here is not right place for this discussion :)
Polskie wsparcie SMF na simplemachines.org

the simplest solution is most likely the right one

DAVID. D.A


Diego Andrés

Quote from: phantomm on February 02, 2013, 07:02:46 AM
After I disabled statistics on index page there is small issue:


Replaced

/* the small stats */
#index_common_stats
{
display: block;
margin: 0 0 0.5em 0;
text-align: right;
font-size: 0.9em;
position: relative;
top: -20px;
line-height: 1px;
}


to

/* the small stats */
#index_common_stats
{
display: block;
margin: 0 1em 0.5em 0;
text-align: right;
font-size: 0.9em;
position: relative;
top: -45px;
}


and it seems to be good now :)

//edit1:
and also in index.template.php:
Code (Find) Select
$txt['remember']
Code (Replace with) Select
$txt['always_logged_in']
to fix error Undefined index: remember


//edit2:
one more, again index.template.php:
Code (Find) Select
timeformat(time(),'%d %B %y, %H:%M %p')
Code (Replace with) Select
$context['current_time']

So it will be in format defined in SMF settings..

//edit3:

This time Display.template.php :)

if ($message['member']['karma']['allow'])
Throws up an error  8: Undefined index: karma if karma is enabled and message is posted by guest.

replacing it with:
if (!$message['member']['is_guest'] && $message['member']['karma']['allow'])
fixed this issue.


and this part:
if ($message['member']['online']['is_online'])
is causing error 8: Undefined index: online

simply check if message was posted by guest solved problem
Code (Find) Select

// Show online and offline buttons?
if ($message['member']['online']['is_online']) {
echo '
', $settings['use_image_buttons'] ? '<img src="' . $message['member']['online']['image_href'] . '" alt="' . $message['member']['online']['text'] . '" align="top" />' : $message['member']['online']['text'], $settings['use_image_buttons'] ? '<span style="text-transform: uppercase; font-size: 10px; text-shadow: 0 1px 0 #fff; color: #6DA26B;"> ' . $message['member']['online']['text'] . '</span>' : '', '';
}
else {
echo '
', $settings['use_image_buttons'] ? '<img src="' . $message['member']['online']['image_href'] . '" alt="' . $message['member']['online']['text'] . '" align="top" />' : $message['member']['online']['text'], $settings['use_image_buttons'] ? '<span style="text-transform: uppercase; font-size: 10px; text-shadow: 0 1px 0 #fff; color: #AEAEAF;"> ' . $message['member']['online']['text'] . '</span>' : '', '';
}
                  
Code (Replace with) Select

// Show online and offline buttons?
if (!$message['member']['is_guest'])
{
if ($message['member']['online']['is_online'])
{
echo '
', $settings['use_image_buttons'] ? '<img src="' . $message['member']['online']['image_href'] . '" alt="' . $message['member']['online']['text'] . '" align="top" />' : $message['member']['online']['text'], $settings['use_image_buttons'] ? '<span style="text-transform: uppercase; font-size: 10px; text-shadow: 0 1px 0 #fff; color: #6DA26B;"> ' . $message['member']['online']['text'] . '</span>' : '', '';
}
else
{
echo '
', $settings['use_image_buttons'] ? '<img src="' . $message['member']['online']['image_href'] . '" alt="' . $message['member']['online']['text'] . '" align="top" />' : $message['member']['online']['text'], $settings['use_image_buttons'] ? '<span style="text-transform: uppercase; font-size: 10px; text-shadow: 0 1px 0 #fff; color: #AEAEAF;"> ' . $message['member']['online']['text'] . '</span>' : '', '';
}
}


Thank you, let me get time and I'll edit the theme.
Regards  ;D

SMF Tricks - Free & Premium Responsive Themes for SMF.

DAVID. D.A

'Attachment' is in Spanish (Archivos Adjuntos) how do i change?

Adrek

#28
Display.template.php:
Code (Find) Select
<legend style="padding: 0 10px;">Archivos Adjuntos</legend>';
Code (Replace with) Select
<legend style="padding: 0 10px;">', $txt['theme_attachments'] ,'</legend>';

index.*language*.php ThemeStrings.*language*.php:
Code (Find) Select
?>
Code (Add before) Select
$txt['theme_attachments'] = 'Attachments';

edit:

If someone wants to show in header only active links:
index.template.php:
Code (Find) Select

</div>
<div id="zt-topmenu">
<ul class="menu">
<li><a href="', empty($settings['link_top1_url']) ? '' : '' . $settings['link_top1_url'] . '', '">', empty($settings['link_top1']) ? $txt['link_top1'] : $settings['link_top1'], '</a></li>
<li><a href="', empty($settings['link_top2_url']) ? '' : '' . $settings['link_top2_url'] . '', '">', empty($settings['link_top2']) ? $txt['link_top2'] : $settings['link_top2'], '</a></li>
<li><a href="', empty($settings['link_top3_url']) ? '' : '' . $settings['link_top3_url'] . '', '">', empty($settings['link_top3']) ? $txt['link_top3'] : $settings['link_top3'], '</a></li>
<li><a href="', empty($settings['link_top4_url']) ? '' : '' . $settings['link_top4_url'] . '', '">', empty($settings['link_top4']) ? $txt['link_top4'] : $settings['link_top4'], '</a></li>
<li><a href="', empty($settings['link_top5_url']) ? '' : '' . $settings['link_top5_url'] . '', '">', empty($settings['link_top5']) ? $txt['link_top5'] : $settings['link_top5'], '</a></li>
</ul>
</div>
<br class="clear" />

Code (Replace with) Select

</div>';

if((!empty($settings['link_top1_url']) && !empty($settings['link_top1'])) || (!empty($settings['link_top2_url']) && !empty($settings['link_top2'])) || (!empty($settings['link_top3_url']) && !empty($settings['link_top3'])) || (!empty($settings['link_top4_url']) && !empty($settings['link_top4'])) || (!empty($settings['link_top5_url']) && !empty($settings['link_top5'])))
{
echo'
<div id="zt-topmenu">
<ul class="menu">';
if(!empty($settings['link_top1_url']) && !empty($settings['link_top1']))
echo'
<li><a href="', $settings['link_top1_url'] , '">', $settings['link_top1'], '</a></li>';

if(!empty($settings['link_top2_url']) && !empty($settings['link_top2']))
echo'
<li><a href="', $settings['link_top2_url'] , '">', $settings['link_top2'], '</a></li>';

if(!empty($settings['link_top3_url']) && !empty($settings['link_top3']))
echo'
<li><a href="', $settings['link_top3_url'] ,'">', $settings['link_top3'], '</a></li>';

if(!empty($settings['link_top4_url']) && !empty($settings['link_top4']))
echo'
<li><a href="', $settings['link_top4_url'] , '">', $settings['link_top4'], '</a></li>';

if(!empty($settings['link_top5_url']) && !empty($settings['link_top5']))
echo'
<li><a href="', $settings['link_top5_url'] , '">', $settings['link_top5'], '</a></li>';
echo'
</ul>
</div>';
}
echo'
<br class="clear" />
Polskie wsparcie SMF na simplemachines.org

the simplest solution is most likely the right one

DAVID. D.A

Thank you for reply.
Attachments arent set for approval, now the text shown is 'Attachments awaiting approval' but everyone can see it. do i just change ', $txt['attach_awaiting_approve'] ,' to
Quoteattachments
?

Adrek

Yeah.. there was typo... sorry for that :|
Display.template.php:
Code (Find) Select
<legend style="padding: 0 10px;">Archivos Adjuntos</legend>';
Code (Replace with) Select
<legend style="padding: 0 10px;">', $txt['theme_attachments'] ,'</legend>';

ThemeStrings.*language*.php:
Code (Find) Select
?>
Code (Add before) Select
$txt['theme_attachments'] = 'Attachments';
Polskie wsparcie SMF na simplemachines.org

the simplest solution is most likely the right one

DAVID. D.A

But now the text shown is 'awaiting approval' even guest can see the attachments, but it's tagged 'awaiting approval'

DAVID. D.A


DAVID. D.A


DAVID. D.A

When exactly is the flag notification meant to show?

Adrek

When there are reported messages.
Polskie wsparcie SMF na simplemachines.org

the simplest solution is most likely the right one

nsno

how can I get the post content to align with the title of the post?

see the screenshot in the original post, the content of a post is slightly to the left of the bit above it (title of post)

qubbah

how can we sett the chilbord name is always show and does not clickable?

deadhero

First sorry for bad English. I solve a error log.

Board viewers mod in this theme but you dont install its get unfinded index error log:

BoardIndex.template.php

Find:

', $board['name'], '</a>',(!empty($modSettings['enable_board_viewers'])) ? $board['viewer_text'] : '','

Replace:

', $board['name'], '</a>

MessageIndex.template.php

Find:

', $board['name'], '</a>',(!empty($modSettings['enable_board_viewers'])) ? $board['viewer_text'] : '','

Replace:

', $board['name'], '</a>




And BoardIndex.template.php this code get error log:

<span class="link">', $post['link'], '</span> ', $post['num_replies'], '<br />

But i dont solve this please help.

8: Undefined index: num_replies Folder: /Themes/MundoNetv2/BoardIndex.template.php (main sub template - eval?)

deadhero

First sorry for bad English. In google chrome browser top is look this:


Advertisement: