Show Posts - Daniel

Show Posts

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.


Messages - Daniel

Pages:
31
1 question
BoardIndex.template.php
Search:
Code: [Select]
// If the board or children is new, show an indicator.
if ($board['new'] || $board['children_new'])
echo '
<img src="', $settings['images_url'], '/', $context['theme_variant_url'], 'on', $board['new'] ? '' : '2', '.png" alt="', $txt['new_posts'], '" title="', $txt['new_posts'], '" />';
// Is it a redirection board?
elseif ($board['is_redirect'])
echo '
<img src="', $settings['images_url'], '/', $context['theme_variant_url'], 'redirect.png" alt="*" title="*" />';
// No new posts at all! The agony!!
else
echo '
<img src="', $settings['images_url'], '/', $context['theme_variant_url'], 'off.png" alt="', $txt['old_posts'], '" title="', $txt['old_posts'], '" />';
Replace with:
Code: [Select]
// If the board or children is new, show an indicator.
if ($board['new'] || $board['children_new'])
echo '
<i class="fa fa-comment fa-3x" style="color:#222;"></i>';
// Is it a redirection board?
elseif ($board['is_redirect'])
echo '
<i class="fa fa-chain fa-3x" style="color:#222;"></i>';
// No new posts at all! The agony!!
else
echo '
<i class="fa fa-comment fa-3x" style="color:#ddd;"></i>';
MessageIndex.template.php
Search:
Code: [Select]
// If the board or children is new, show an indicator.
if ($board['new'] || $board['children_new'])
echo '
<img src="', $settings['images_url'], '/' .$context['theme_variant_url'], 'on', $board['new'] ? '' : '2', '.png" alt="', $txt['new_posts'], '" title="', $txt['new_posts'], '" />';
// Is it a redirection board?
elseif ($board['is_redirect'])
echo '
<img src="', $settings['images_url'], '/' .$context['theme_variant_url'], 'redirect.png" alt="*" title="*" />';
// No new posts at all! The agony!!
else
echo '
<img src="', $settings['images_url'], '/' .$context['theme_variant_url'], 'off.png" alt="', $txt['old_posts'], '" title="', $txt['old_posts'], '" />';
Replace with:
Code: [Select]
// If the board or children is new, show an indicator.
if ($board['new'] || $board['children_new'])
echo '
<i class="fa fa-comment fa-3x" style="color:#222;"></i>';
// Is it a redirection board?
elseif ($board['is_redirect'])
echo '
<i class="fa fa-chain fa-3x" style="color:#222;"></i>';
// No new posts at all! The agony!!
else
echo '
<i class="fa fa-comment fa-3x" style="color:#ddd;"></i>';

2 question
What icons on posts you mean?

32
Free Themes / Re: Redsy
« on: June 18, 2015, 12:36:31 PM »
Hi all,

how do I change the font of Redsy theme?
The default font in Redsy does not show Slavic characters "čćžđš" correctly.
The fonts are distorted everywhere (menu text, post message, topic name etc) so I would like to change them everywhere.

SMF default theme font shows them correctly, so I would love to change it to the proper font setting.
See this: http://www.simplemachines.org/community/index.php?topic=535335.msg3803874#msg3803874

33
1. Board icons is programmed like theme reseller, just that when you have already installed modifications, you have to uninstall and reinstall to execute modifications to the theme or you can make changes manually looking for the parse of the mod. PD: Not for all mods, you have to do that. It depends if there changes in the theme.
2.  Do this:
Display.template.php
Search:
Code: [Select]
// Show the member's gender icon?
if (!empty($settings['show_gender']) && $message['member']['gender']['image'] != '' && !isset($context['disabled_fields']['gender']))
echo '
<li class="gender">', $txt['gender'], ': ', $message['member']['gender']['image'], '</li>';

Replace with:
Code: [Select]
// Begin SMFShop 2.3 (Build 11) code
echo '
<li>', $modSettings['shopCurrencyPrefix'], $message['member']['money'], $modSettings['shopCurrencySuffix'], '</li>
<li><a href="', $scripturl, '?action=shop;do=invother2;member=', $message['member']['username'], '">', $txt['shop_display_view_inventory'], '</a></li>
<li><a href="', $scripturl, '?action=shop;do=sendmoney;member=', $message['member']['username'], '">', $txt['shop_display_send_money'], ' ', $message['member']['name'], '</a></li>';
//END SMFShop code

// Show the member's gender icon?
if (!empty($settings['show_gender']) && $message['member']['gender']['image'] != '' && !isset($context['disabled_fields']['gender']))
echo '
<li class="gender">', $txt['gender'], ': ', $message['member']['gender']['image'], '</li>';

34
You have to undo the previous change. Do this:
Reseller.css
Search:
Code: [Select]
.nextlinks, .nextlinks_bottom{
margin-bottom: 15px;
}
Replace with:
Code: [Select]
.nextlinks, .nextlinks_bottom{
margin-bottom: 15px;overflow:hidden;
}
Add to the end:
Code: [Select]
.nextlinks a:last-of-type, .nextlinks_bottom a:last-of-type
{
float: right;
}

35
Sorry i forget this.
1 error
Reseller.css

Search:
Code: [Select]
.nextlinks_bottom{
clear: both !important;
}
Replace with:
Code: [Select]
.nextlinks_bottom{
clear: both !important;
padding-top: 15px;
}

a question
Reseller.css

Search:
Code: [Select]
.display-info
{
text-align: center;
overflow: hidden;
}
.display-info h1
{
font-size: 36px;
background: #E1E1E1;
border-radius: 5px;
border: 1px solid #CCC;
padding: 15px;
}
Replace with:
Code: [Select]
.display-info
{
overflow: hidden;
}
.display-info div
{
font-size: 36px;
text-align: center;
background: #3498db;
border-radius: 5px;
padding: 15px;
margin: 0 auto;
color: #FFF;
font-weight: bold;
display: table;
}
Display.template.php
Search:
Code: [Select]
<div class="display-info">
<h1>
', $context['subject'], '
</h1>
Replace with:
Code: [Select]
<div class="display-info">
<div>
', $context['subject'], '
</div>

Greetings!!

36
a) You mean something like this: http://prntscr.com/79skjl ?

b) Index.css
Search:
Code: [Select]
/* The navigation list (i.e. linktree) */
.navigate_section
{
padding: 0;
margin: 0 0 20px;
background: #FFF;
}
Replace with:
Code: [Select]
/* The navigation list (i.e. linktree) */
.navigate_section
{
padding: 0;
margin: 20px 0;

}
#crumbs {
padding: 7px 0px;
}

#crumbs ul {
list-style: none;
/*display: inline-table;*/
display: table-row;
}
#crumbs ul li {
display: inline;
}

#crumbs ul li a {
display: block;
float: left;
height: 12.5px;
background: #34495e;
text-align: center;
padding: 7.5px 10px 23px 20px;
position: relative;
margin: 0 1px 0 0;
font-size: 12px;
text-decoration: none;
color: #ecf0f1;
}

#crumbs ul li a:after {
content: ""; 
border-top: 15px solid transparent;
border-bottom: 15px solid transparent;
border-left: 10px solid #34495e;
position: absolute; right: -10px; top: 0;
z-index: 1;
}

#crumbs ul li a:before {
content: ""; 
border-top: 15px solid transparent;
border-bottom: 15px solid transparent;
border-left: 10px solid #d4f2ff;
position: absolute; left: 0; top: 0;
}

#crumbs ul li:first-child a {
border-top-left-radius: 7px;
border-bottom-left-radius: 7px;
}
#crumbs ul li:first-child a:before {
display: none;
}

#crumbs ul li:last-child a {
padding-right: 20px;
border-top-right-radius: 7px;
border-bottom-right-radius: 7px;
background-color: #8e44ad;
}
#crumbs ul li:last-child a:after {
display: none;
}

#crumbs ul li a:hover {
background: #3498db;
}
#crumbs ul li a:hover:after {
border-left-color: #3498db;
}
Index.template.php
Search:
Code: [Select]
// Show a linktree. This is that thing that shows "My Community | General Category | General Discussion"..
function theme_linktree($force_show = false)
{
global $context, $settings, $options, $shown_linktree;

// If linktree is empty, just return - also allow an override.
if (empty($context['linktree']) || (!empty($context['dont_default_linktree']) && !$force_show))
return;

echo '
<div class="navigate_section">
<div class="container">
<div class="row">
<ol class="breadcrumb">';

// Each tree item has a URL and name. Some may have extra_before and extra_after.
foreach ($context['linktree'] as $link_num => $tree)
{
echo '
<li', ($link_num == count($context['linktree']) - 1) ? ' class="active"' : '', '>';

// Show something before the link?
if (isset($tree['extra_before']))
echo $tree['extra_before'];

// Show the link, including a URL if it should have one.
echo $settings['linktree_link'] && isset($tree['url']) ? '
<a href="' . $tree['url'] . '"><span>' . $tree['name'] . '</span></a>' : '<span>' . $tree['name'] . '</span>';

// Show something after the link...?
if (isset($tree['extra_after']))
echo $tree['extra_after'];

echo '
</li>';
}
echo '
</ol>
</div>
</div>
</div>';

$shown_linktree = true;
}
Replace with:
Code: [Select]
// Show a linktree. This is that thing that shows "My Community | General Category | General Discussion"..
function theme_linktree($force_show = false)
{
global $context, $settings, $options, $shown_linktree;

// If linktree is empty, just return - also allow an override.
if (empty($context['linktree']) || (!empty($context['dont_default_linktree']) && !$force_show))
return;

echo '
<div class="container">
<div class="row">
<div class="navigate_section" id="crumbs">
<ul>';

// Each tree item has a URL and name. Some may have extra_before and extra_after.
foreach ($context['linktree'] as $link_num => $tree)
{
echo '
<li', ($link_num == count($context['linktree']) - 1) ? ' class="active"' : '', '>';

// Show something before the link?
if (isset($tree['extra_before']))
echo $tree['extra_before'];

// Show the link, including a URL if it should have one.
echo $settings['linktree_link'] && isset($tree['url']) ? '
<a href="' . $tree['url'] . '"><span>' . $tree['name'] . '</span></a>' : '<span>' . $tree['name'] . '</span>';

// Show something after the link...?
if (isset($tree['extra_after']))
echo $tree['extra_after'];

echo '
</li>';
}
echo '
</ul>
</div>
</div>
</div>';

$shown_linktree = true;
}

37
BoardIndex.template.php
Search:
Code: [Select]
<li role="presentation">
<a href="#recent" aria-controls="recent" role="tab" data-toggle="tab">
Replace with:
Code: [Select]
<li role="presentation" class="active">
<a href="#recent" aria-controls="recent" role="tab" data-toggle="tab">
Search:
Code: [Select]
<li role="presentation" class="active">
<a href="#users" aria-controls="users" role="tab" data-toggle="tab">
Replace with:
Code: [Select]
<li role="presentation">
<a href="#users" aria-controls="users" role="tab" data-toggle="tab">
Search:
Code: [Select]
<div class="hslice tab-pane" id="recent" role="tabpanel">Replace with:
Code: [Select]
<div class="hslice tab-pane active" id="recent" role="tabpanel">Search:
Code: [Select]
<div class="tab-pane active" id="users" role="tabpanel">Replace with:
Code: [Select]
<div class="tab-pane" id="users" role="tabpanel">

38
BoardIndex.template.php (Themes/Redsy)
Search:
Code: [Select]
<div class="hslice tab-pane" id="recent_posts_content recent" role="tabpanel">Replace with:
Code: [Select]
<div class="hslice tab-pane" id="recent" role="tabpanel">

39
Reseller.css
Agregar al final:
Code: [Select]
h3.catbg, a.subject, p.moderators
{
font-weight: bold;
}
Y utiliza este mod: http://custom.simplemachines.org/mods/index.php?mod=3067 para colorear a los moderadores.

40
Support for SMF Tricks Themes & Mods / Re: Mobile view Redsy
« on: May 19, 2015, 05:34:17 PM »
Index.css (Themes/Redsy/css)
Search:
Code: [Select]
@media (max-width: 991px) {
.poster h4, .poster ul
{
display: none;
}
.buttonlist li span
{
display: none;
}
}
Replace with:
Code: [Select]
@media (max-width: 991px) {
.buttonlist li span
{
display: none;
}
}

41
2 question
Display.template.php
Search:
Code: [Select]
<li class="replies"><img src="',$settings['images_url'] ,'/messages.png" /> '. $context['real_num_replies'] .' '. $txt['replies'] .'</li>
<li class="views"><img src="',$settings['images_url'] ,'/views.png" /> ', $context['num_views'], ' '. $txt['views'] .'</li>
Replace (with img):
Code: [Select]
<li class="replies"><img src="',$settings['images_url'] ,'/messages.png" /> '. $context['real_num_replies'] .' '. $txt['replies'] .'&nbsp;&#38;</li>
<li class="views"><img src="',$settings['images_url'] ,'/views.png" /> ', $context['num_views'], ' '. $txt['views'] .'</li>
Replace (without img):
Code: [Select]
<li class="replies">'. $context['real_num_replies'] .' '. $txt['replies'] .'&nbsp;&#38;</li>
<li class="views">', $context['num_views'], ' '. $txt['views'] .'</li>

3 question
Reseller.css
Search:
Code: [Select]
.display-info
{
text-align: center;
overflow: hidden;
}
.display-info h1
{
font-size: 36px;
}
Replace with:
Code: [Select]
.display-info
{
text-align: center;
overflow: hidden;
}
.display-info h1
{
font-size: 36px;
background: #E1E1E1;
border-radius: 5px;
border: 1px solid #CCC;
padding: 15px;
}

4 question
Reseller.css
Use this code, add to the end:
Code: [Select]
.nextlinks, .nextlinks_bottom{
margin-bottom: 15px;
}
.nextlinks_bottom{
clear: both !important;
}
.nextlinks a, .nextlinks_bottom a
{
background: #FFF;
border: 1px solid #e1e1e1;
padding: 8px 15px;
font-weight: bold;
border-radius: 5px;
transition: all .1s;
}
.nextlinks a:hover, .nextlinks_bottom a:hover
{
background: #e1e1e1;
text-decoration: none;
}
.nextlinks a:first-of-type, .nextlinks_bottom a:first-of-type
{
float: left;
}

PD: Yes, you can.

Greetings!

42
1 question
Index.template.php (Themes/Reseller)
Search:
Code: [Select]
<script type="text/javascript">
$(document).ready(function(){
$("input[type=button]").attr("class", "btn btn-default btn-sm");
$(".button_submit").attr("class", "btn btn-primary btn-sm");
$("#advanced_search input[type=\'text\'], #search_term_input input[type=\'text\']").removeAttr("size");
$(".table_grid").attr("class", "table table-striped");
$("img[alt=\'', $txt['new'], '\'], img.new_posts").replaceWith("<span class=\'label label-warning\'>', $txt['new'], '</span>");
$("#profile_success").removeAttr("id").removeClass("windowbg").addClass("alert alert-success");
$("#profile_error").removeAttr("id").removeClass("windowbg").addClass("alert alert-danger");
});
</script>
Replace with:
Code: [Select]
<script type="text/javascript">
$(document).ready(function(){
$(".dropdown").hover(           
function() {
$(".dropdown-menu", this).stop( true, true ).fadeIn("fast");
$(this).toggleClass("open");   
},
function() {
$(".dropdown-menu", this).stop( true, true ).fadeOut("fast");
$(this).toggleClass("open");             
});
$("input[type=button]").attr("class", "btn btn-default btn-sm");
$(".button_submit").attr("class", "btn btn-primary btn-sm");
$("#advanced_search input[type=\'text\'], #search_term_input input[type=\'text\']").removeAttr("size");
$(".table_grid").attr("class", "table table-striped");
$("img[alt=\'', $txt['new'], '\'], img.new_posts").replaceWith("<span class=\'label label-warning\'>', $txt['new'], '</span>");
$("#profile_success").removeAttr("id").removeClass("windowbg").addClass("alert alert-success");
$("#profile_error").removeAttr("id").removeClass("windowbg").addClass("alert alert-danger");
});
</script>
Search:
Code: [Select]
<nav class="navbar navbar-default navbar-static-top" role="navigation">Replace with:
Code: [Select]
<nav class="navbar navbar-default navbar-fixed-top" role="navigation">Search:
Code: [Select]
<a ', $button['sub_buttons'] ? 'class="dropdown-toggle" ' : '', 'href="', $button['sub_buttons'] ? '#' : $button['href'], '"', isset($button['target']) ? ' target="' . $button['target'] . '"' : '', '', $button['sub_buttons'] ? ' data-toggle="dropdown"' : '', '>
Replace with:
Code: [Select]
<a ', $button['sub_buttons'] ? 'class="dropdown-toggle" ' : '', 'href="', $button['sub_buttons'] ? '#' : $button['href'], '"', isset($button['target']) ? ' target="' . $button['target'] . '"' : '', '>

Reseller.css (Themes/css)
Search:
Code: [Select]
header
{
background: #3498db;
box-shadow: 0 -3px #9fc6e0 inset;
padding: 20px 0;
}
Replace with:
Code: [Select]
header
{
background: #3498db;
box-shadow: 0 -3px #9fc6e0 inset;
padding: 20px 0;
margin-top: 50px;
}

2 question

Reseller.css (Themes/Reseller/css)
Search:
Code: [Select]
.display-info ul.info li
{
float: left;
font-size: 1.5em;
margin-left: 5px;
}
.display-info ul.info li.replies
{
color: #5bc0de;
}
.display-info ul.info li.replies img, .display-info ul.info li.views img
{
width: 64px;
}
.display-info ul.info li.views
{
color: #f0ad4e;
}
Replace with:
Code: [Select]
.display-info ul.info li
{
float: left;
font-size: 1.5em;
margin-left: 5px;
color: #000;
}
.display-info ul.info li.replies img, .display-info ul.info li.views img
{
width: 64px;
}
If you want change the size of the text. Change font-size: 1.5em; for what you want, the same with the color: color: #000;. For the img, you can change the width: width: 64px;, if you want hide the img, use this: display: none; after width: 64px;

3 question
Reseller.css (Themes/Reseller/css)
Search:
Code: [Select]
.display-info
{
text-align: center;
overflow: hidden;
}
Replace with:
Code: [Select]
.display-info
{
text-align: center;
overflow: hidden;
background: #E1E1E1;
border-radius: 5px;
border: 1px solid #CCC;
padding: 15px;
}

4 question
Reseller.css (Themes/Reseller/css)
Add to the end:
Code: [Select]
.nextlinks{
margin-bottom: 15px;
}
.nextlinks a
{
background: #FFF;
border: 1px solid #e1e1e1;
padding: 8px 15px;
font-weight: bold;
border-radius: 5px;
transition: all .1s;
}
.nextlinks a:hover
{
background: #e1e1e1;
text-decoration: none;
}
.nextlinks a:first-of-type
{
float: left;
}

5 question
Reseller.css (Themes/Reseller/css)
Search:
Code: [Select]
header ul.reset li, header ul.reset li a
{
color: #FFF;
font-family: "Segoe UI";
font-size: 12px;
}
Replace with:
Code: [Select]
header ul.reset li, header ul.reset li a
{
color: #000;
font-family: "Segoe UI";
font-size: 12px;
}

43
this theme used to have such good support, and now nothing  ???
I've been waiting for days for answer but I've only found out how to make it fixed, and that was not exactly as I wanted  ???
Sorry, but I've been busy lately, with classes and with some outstanding things I could not answer. I'll try to let the solutions on the weekend.

44
Support for SMF Tricks Themes & Mods / Re: Redsy - Avatars
« on: April 30, 2015, 09:18:21 PM »
Display.template.php (Themes/Redsy)
Search:
Code: [Select]
// Show avatars, images, etc.?
if (!empty($settings['show_user_images']) && empty($options['show_no_avatars']) && !empty($message['member']['avatar']['image']))
{
echo '
<a href="', $scripturl, '?action=profile;u=', $message['member']['id'], '">
<img src="', $message['member']['avatar']['href'], '" class="img-thumbnail img-circle" alt="*" />
</a>';
}
else
{
echo'
<a href="', $scripturl, '?action=profile;u=', $message['member']['id'], '">
<img src="',$settings['images_url'] ,'/noavatar.png" class="img-thumbnail img-circle" alt="*" />
</a>';
}

Replace with:
Code: [Select]
// Show avatars, images, etc.?
if (!empty($settings['show_user_images']) && empty($options['show_no_avatars']) && !empty($message['member']['avatar']['image']))
{
echo '
<a href="', $scripturl, '?action=profile;u=', $message['member']['id'], '">
<img src="', $message['member']['avatar']['href'], '" style="margin-bottom: 5px;" alt="*" />
</a>';
}
else
{
echo'
<a href="', $scripturl, '?action=profile;u=', $message['member']['id'], '">
<img src="',$settings['images_url'] ,'/noavatar.png" style="margin-bottom: 5px;" alt="*" />
</a>';
}

45
Support for SMF Tricks Themes & Mods / Re: Redsy - Avatars
« on: April 30, 2015, 05:43:55 PM »
Thank you for the quick response, but apparently I didn't know what I was asking for though that fix answers a separate question.  Right now the default is that it changes the avatar into a circle instead of leaving it a square/rectangle.  I'm trying to remove that so it just stays square or maybe just reduce how far into the avatar it cuts into.

Thank you for your quick response!
You mean something like this: http://prntscr.com/703bha ?

Pages: