Redsy

Started by Daniel, April 03, 2015, 05:19:26 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

xxxjoelxxx

Hey guys - any update to my question? Thanks in advance!

fortitude

I'd like to change icons for on/off/redirect to a font awesome icons.
Could you help me with that? I see that fontawesome is already included, which is super sweet.

Also 2.nd question
Do you maybe know how could I add font awesome icons in posts, like this one?
Last Edit: June 07, 2015, 01:37:51 PM by fortitude

Daniel

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:
// 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:
// 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>';

fortitude

hi

I'd like to report a little something that is omitted in index.template.php.

echo'
<li>
<a href="', !empty($settings['facebook_text']) ? $settings['facebook_text'] : 'http://www.facebook.com ' ,'" title="', $txt['rs_facebook'], '"><i class="fa fa-twitter fa-2x"></i></a>
</li>';
if(!empty($settings['twitter_check']))
echo'
<li>
<a href="', !empty($settings['twitter_text']) ? $settings['twitter_text'] : 'http://www.twitter.com' ,'"><i class="fa fa-facebook fa-2x"></i></a>
</li>';


as you can see fa fa-facebook and fa fa-twitter should change places  :P
hope you'll fix it and update in downloads.

regards

xxxjoelxxx

Thanks Daniel! It worked like a charm!


fortitude


xxxjoelxxx

One more thing Daniel.

I'm using both the redsy theme and I purchased the Zgamer theme. I also have the trade mod installed but it does not show the trade amount on the user profile when posting.

It works on other themes, but not of redsy. Any suggestions you can give me would be appreciated. Thanks again.

ivanmangta

How can I change theme color?

fortitude

Quote from: ivanmangta on June 15, 2015, 09:02:17 AM
How can I change theme color?

through .css files [index.css or bootstrap.css]
which color do you want to change? background or????

Adelisa

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.

Adelisa

Hello,

how can I log out in the mobile version of Redsy?

Thanks.

fortitude

Forum Info Center has 2 tabs
Forum Stats and Users Online

I'd like to add 3rd tab - in front of these two, and make it active when page loads.
It would be for custom html which would contain images.

Could you please show me how to add that 3rd tab?

Daniel

Quote from: Adelisa on June 16, 2015, 01:57:58 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

Daniel

1 question
BoardIndex.template.php
Search:
// 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:

// 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:
// 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:
// 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?

Daniel

If its this mod: http://custom.simplemachines.org/mods/?mod=346 , do this:
Display.template.php
Search:
// 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>';

Add before:

//Start SMF Trader System
global $sourcedir;
include_once $sourcedir . '/Trader2.php';

GetTraderInformation($message['member']['id']);


$context['neturalcount'] = 0;
$context['pcount'] = 0;
$context['ncount'] = 0;
foreach($context['trader_mem_data'] as $row)
{
if ($row['salevalue'] == 0)
{
$context['pcount'] = $row['total'];
}
else if ($row['salevalue'] == 2)
{
$context['ncount'] = $row['total'];
}
else if ($row['salevalue'] == 1)
{
$context['neturalcount'] = $row['total'];
}

}



if ($modSettings['trader_use_pos_neg'])
$tradecount = ($context['pcount'] - $context['ncount']);
else
$tradecount = $context['pcount'] + $context['ncount'] + $context['neturalcount'];



// Show the trader info
echo '<li>
<b>' . $txt['smftrader_profile'] . ' </b>
(<a href="' . $scripturl .  '?action=trader&id=' . $message['member']['id'] . '">', $modSettings['trader_use_pos_neg'] ? ($tradecount > 0 ? '+' . $tradecount : $tradecount)  : $tradecount  , '</a>)</li>';

//END SMF Trader System