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:
92
Index.template.php
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(){
var $abrir = $(".abrir");
var $cerrar = $(".cerrar");
var $menu = $("#sidebar");
var $content = $("#main");
$abrir.click( function(){
$menu.css("left","0px");
$cerrar.css("display","block");
$abrir.css("display","none");
$content.css("margin-left","300px");
});
$cerrar.click( function(){
$menu.css("left","-300px");
$cerrar.css("display","none");
$abrir.css("display","block");
$content.css("margin-left","auto");
});
$("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]
echo'
<nav class="navbar navbar-default navbar-static-top" role="navigation">
<div class="container">
<div class="row">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand visible-xs" href="', $scripturl, '">', $context['forum_name'] ,'</a>
</div>
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
<ul class="nav navbar-nav">';

// Show the menu here, according to the menu sub template.
template_menu();

echo'
</ul>
</div>
</div>
</div>
</nav>

Replace with:
Code: [Select]
// Show the menu here, according to the menu sub template.
template_menu();

echo'
<div id="main">
<nav class="navbar navbar-default navbar-static-top" role="navigation">
<div class="container">
<div>
<div class="navbar-header">
<div class="btn-sidebar">
<a href="javascript:void(0);" class="abrir">
<button type="button" class="navbar-toggle" style="display: block">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
</a>
<a href="javascript:void(0);" class="cerrar">
<button type="button" class="navbar-toggle" style="display: block">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
</a>
</div>
<a class="navbar-brand" href="', $scripturl, '">', $context['forum_name'] ,'</a>
</div>
</div>
</div>
</nav>

Search:
Code: [Select]
function template_html_below()
{
global $context, $settings, $options, $scripturl, $txt, $modSettings;

echo '
</body></html>';
}
Replace with:
Code: [Select]
function template_html_below()
{
global $context, $settings, $options, $scripturl, $txt, $modSettings;

echo '
</div>
</body></html>';
}

Search:
Code: [Select]
// Show the menu up top. Something like [home] [help] [profile] [logout]...
function template_menu()
{
global $context, $settings, $options, $scripturl, $txt;

foreach ($context['menu_buttons'] as $act => $button)
{
echo '
<li id="button_', $act, '" class="', $button['sub_buttons'] ? 'dropdown ' : '', '', $button['active_button'] ? 'active ' : '', '">
<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"' : '', '>
', $button['title'], '
', $button['sub_buttons'] ? '<span class="caret"></span>' : '' ,'
</a>';
if (!empty($button['sub_buttons']))
{
echo '
<ul class="dropdown-menu" role="menu">';

foreach ($button['sub_buttons'] as $childbutton)
{
echo '
<li>
<a href="', $childbutton['href'], '"', isset($childbutton['target']) ? ' target="' . $childbutton['target'] . '"' : '', '>
', $childbutton['title'] , '
</a>
</li>';
}
echo '
</ul>';
}
echo '
</li>';
}
}

Replace with:
Code: [Select]
// Show the menu up top. Something like [home] [help] [profile] [logout]...
function template_menu()
{
global $context, $settings, $options, $scripturl, $txt;

echo '
<aside id="sidebar">
<ul class="nav nav-list">';

foreach ($context['menu_buttons'] as $act => $button)
{
echo '
<li id="button_', $act, '">
<a class="', $button['active_button'] ? 'active ' : '', 'firstlevel" href="', $button['href'], '#forum"', isset($button['target']) ? ' target="' . $button['target'] . '"' : '', '>
<span class="', isset($button['is_last']) ? 'last ' : '', 'firstlevel">', $button['title'], '</span>
</a>
</li>';
}

echo '
</ul>
</aside>';
}

Reseller.css
Add to the end:
Code: [Select]
aside#sidebar{
    background: #222;
    width: 300px;
    height: 100%;
    position: fixed;
    top: 0;
    left: -300px;
    transition: 0.2s;
    -webkit-transition: 0.2s;
}
#wrapper
{
    transition: 0.2s;
    -webkit-transition: 0.2s;
}
.btn-sidebar
{
float: left;
}
#sidebar > .nav li
{
border-top: 1px solid rgba(95, 95, 95, 0.1);
}
#sidebar > .nav li:last-child
{
border-bottom: 1px solid rgba(95, 95, 95, 0.1);
}
#sidebar > .nav > li a
{
color: #d2c0c4;
}
#sidebar > .nav > li a:hover
{
color: #3498db;
background-color: #1b1516;
}
#sidebar > .nav > li a.active
{
color: #3498db;
}
.cerrar{
    display: none;
}

Regards!

93
Thx :-)

I have some problem with the code for question 1. My forum breaks. Maybe a small error. I am not at home so can not debug.

and awnser 2 works perfect  ;D
Sorry, my mistake. The code is:
Code: [Select]
<li><a href="', $scripturl, '?action=unreadreplies">', $txt['unread_replies'], '</a></li>';
// Are there any members waiting for approval?
if (!empty($context['unapproved_members'])){
echo '
<li>', $context['unapproved_members'] == 1 ? $txt['approve_thereis'] : $txt['approve_thereare'], ' <a href="', $scripturl, '?action=admin;area=viewmembers;sa=browse;type=approve">', $context['unapproved_members'] == 1 ? $txt['approve_member'] : $context['unapproved_members'] . ' ' . $txt['approve_members'], '</a> ', $txt['approve_members_waiting'], '</li>';
}
echo'

94
1. Search:
Code: [Select]
<li><a href="', $scripturl, '?action=unreadreplies">', $txt['unread_replies'], '</a></li>Replace with:
Code: [Select]
<li><a href="', $scripturl, '?action=unreadreplies">', $txt['unread_replies'], '</a></li>';
// Are there any members waiting for approval?
if (!empty($context['unapproved_members']))
echo '
<li>', $context['unapproved_members'] == 1 ? $txt['approve_thereis'] : $txt['approve_thereare'], ' <a href="', $scripturl, '?action=admin;area=viewmembers;sa=browse;type=approve">', $context['unapproved_members'] == 1 ? $txt['approve_member'] : $context['unapproved_members'] . ' ' . $txt['approve_members'], '</a> ', $txt['approve_members_waiting'], '</li>';
}
echo'

2. Search:
Code: [Select]
<button type="button" class="btn btn-success dropdown-toggle" data-toggle="dropdown">
    +
  </button>

And change + for the word what you want.

3. When I have a little more of time, I will let the tutorial.

95
Los divs deben ir antes del ';, quedaria asi:
Code: [Select]
<a id="lastPost"></a>
<div class="fondo">';
// Show the page index... "Pages: [1]".
...
Code: [Select]
<input type="submit" name="preview" value="', $txt['preview'], '" onclick="return submitThisOnce(this);" accesskey="p" tabindex="', $context['tabindex']++, '" class="button_submit" />

</div>';
if ($context['show_spellchecking'])
Saludos!

96
Presales / Re: Namex/ZGames theme question
« on: October 21, 2014, 02:29:16 PM »
In the admin you have the options to change the background images, I recommend that the images have a 1920px of width and for the height that you want. They alone would fit the different screen resolutions.

Yes, we can add a custom border and create these sub menus.

It wouldn't be very difficult, you can install this mod: http://custom.simplemachines.org/mods/index.php?mod=3787, and then accomodate it.

97
Presales / Re: Namex/ZGames theme question
« on: October 18, 2014, 12:45:56 PM »
Namex handles it like everyone else. If you want to do the background responsive, you have to make min 3 background images for different screen resolutions. Namex has already a green color similar to zGames, look here: http://i.imgur.com/sVh71zV.png

As much as ZGames and NAMEX has an extra menu above the header, but this extra menu don't have submenu.

Yes, it is possible add a login like Reseller.

Yes, you can add a button and moves with the picture in the slideshow.

zGames don't have a footermenu, only a option to add your own copyright.

Namex is not responsive, as well, this will not fit on mobiles versions in change zGame is responsive, and will fit on mobile versions.

Regards!

99
Support for SMF Tricks Themes & Mods / Re: CSS problems, reseller
« on: October 10, 2014, 11:27:18 AM »
Index.css (Themes/Reseller/css)
Search:
Code: [Select]
.pagelinks
{
        color: #EEE;
padding: 0.6em 0 0.4em 0;
}
Add after:
Code: [Select]
.pagelinks a, .nextlinks a
{
    color: #EEE;
}

100
Support for SMF Tricks Themes & Mods / Re: Found bug in wrap theme.
« on: October 10, 2014, 11:13:51 AM »
The link that you left doesn't work.

101
Premium Themes / Responsive zGames - Responsive for SMF 2.0
« on: October 05, 2014, 03:42:47 PM »

102
Support for SMF Tricks Themes & Mods / Re: A few more things for reseller
« on: October 04, 2014, 01:18:57 PM »
The nav bar issue will be visible if you log in and read any topic.
That ap
It appears that not finding a button to activate it so it creates one. Do this:
Add to the end of Reseller.css:
Code: [Select]
#button_forum{display: none;}

103
Feedback / Re: Thank you for the awesome themes
« on: October 04, 2014, 01:01:48 PM »
Thanks for your feedback. We're very happy to see the people enjoy our works. Here we always try to innovate and provide better support but because of time costs us to do it.

104
Support for SMF Tricks Themes & Mods / Re: A few more things for reseller
« on: October 04, 2014, 12:56:00 PM »
1. I don't see the error in the file. I registered on your forum and not see it.
2. It can be done. But it would be very difficult because it is being used boostrap for the menu and actually I don't know how, I have to put me to see.
3. Yes, you can. Just upload the images of the badges to  Themes/Reseller images and configure the ranges to display the badge.
4. index.template.php
Search:
Code: [Select]
<div class="col-lg-12">
', !empty($settings['reseller_copyright']) ? $settings['reseller_copyright'] : $context['forum_name'] .' &copy;' ,'
  </div>';

Replace with:
Code: [Select]
<div class="col-lg-12">
', !empty($settings['reseller_copyright']) ? $settings['reseller_copyright'] : $context['forum_name'] .' &copy;' ,'
  </div>
<div class="col-lg-12">
<a href="' .$scripturl . '?topic=6.0" target="_blank">Terms of Service</a>&nbsp;|&nbsp;
<a href="' .$scripturl . '?topic=4.0" target="_blank">Privacy Policy</a>&nbsp;|&nbsp;
<a href="' .$scripturl . '?topic=3.0" target="_blank">Site Rules</a>&nbsp;|&nbsp;
<a href="' .$scripturl . '?topic=12.0" target="_blank">Advertise</a>&nbsp;|&nbsp;
<a href="' .$scripturl . '?topic=9.0" target="_blank">We\'re Hiring</a>
  </div>';

105
Support for SMF Tricks Themes & Mods / Re: Reseller theme Queries
« on: September 29, 2014, 08:29:09 PM »

Pages: