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 - fearbooks987

Pages: [1] 2 3 ... 16
1
Soporte General SMF / Re:Ya se creo este Mod?
« on: July 26, 2013 - 03:18 15:18 »
No, no esta hecho y por el momento no creo que se haga. Tenemos mas de 100 mods para actualizar asi que dificilmente tengamos el tiempo necesario para hacerlo.
Aaa claro bueno no hay problema :D

2
Soporte General SMF / Ya se creo este Mod?
« on: July 26, 2013 - 02:29 14:29 »
Ya se creo este Mod?

Datos importantes:
Url del foro: www.fearbooks.net
Version de SMF: 2.0.4
Theme del foro: losox

Descripcion del problema:
Hola! bueno hace tiempo q tengo caido mi sitio y lo estoy por volver a levantar queria saber si ya se creo el mod
Hace 1 año dijieron q lo iban hacer y hace unos meses un compañero mas dijo que lo iba a crear. me gustaria tenerlo en mi sitio

3
Soporte General SMF / Re:Como se pone algo parecido a esto?
« on: June 14, 2013 - 10:28 22:28 »
Grande DIBILO.

4
Soporte General SMF / Problema con el ingresar al sitio
« on: June 14, 2013 - 10:22 22:22 »
Problema con el ingresar al sitio

Datos importantes:
Url del foro: http://fearbooks.net
Version de SMF: 2.0.4
Theme del foro: losox

Descripcion del problema:
Hola, queria saber si me pueden ayudar... tengo un problema con mi sitio, yo antes lo tenia en www.fearbooks.net/foro y pase todos los archivos a www.fearbooks.net y con la ayuda del repaiar_settings pude arreglar todo... peroo me di cuenta q no puedo ingresar al sitio con mi cuenta de administrador ni crear una nueva... alguien me podria ayudar por favor¿? gracias.

5
Soporte General SMF / Re:Como se pone algo parecido a esto?
« on: June 13, 2013 - 09:49 09:49 »
Hola amigo, esa es una modificacion que solo usa SMFSIMPLE, por el momento los autores de esa modifiacion no quieres ponerlo online.

Yo llevo esperando bastanete tiempo por ello, en cualquier momento lo sacaran y lo estaremos publicando en el foro.

Espero puedas comprender!
Aaa sii no hay problema xD como ya habia pasado 1 año pense que ya lo habian sacado xD

6
Soporte General SMF / Como se pone algo parecido a esto?
« on: June 12, 2013 - 11:04 23:04 »
Como se pone algo parecido a esto?

Datos importantes:
Url del foro: http:/fearbooks.net
Version de SMF: 2.0.4
Theme del foro: ovwie

Descripcion del problema:
Bueno quizas ya respondieron a esto, y nose como buscarlo :D hace 1 años mas o menos otro usuario pregunto lo mismo y lean o no me acuerdo bien dijo que iban a sacar un mod para esto.. quisiera saber como puedo implementar algo parecido a esto.

7
Como le saco el login a un theme y le pongo un buscador?

Datos importantes:
Url del foro: http://fearbooks.net/aventura/
Version de SMF: 2.0.4
Theme del foro: overview

Descripcion del problema:
Hola bueno estoy por usar el theme que figura en la direccion para el nueva apariencia del foro el cual es http://fearbooks.net/foro/ y bueno mi duda es que como lo puedo modificar para sacarle el login y poner un buscador...


desde ya mucha gracias por su ayuda!

8
Soporte General SMF / Re:Integrar facebook conect
« on: May 21, 2013 - 08:41 20:41 »
Nada inclusive llame a la operadora de mi pais en la cual estoy registrado con mi numero de telefono y no supieron darme respuesta. por eso pense en que quiza ustede spodrian orientarme más.
la solucion es la siguiente, debes ingresar a tu cuenta de facebook desde el celular, perooo desde la aplicacion oficial de facebook no desde internet ni otra app, de esta manera te podran enviar el NUM

10
Soporte General SMF / Como deberia modificar el mod ADK login
« on: May 21, 2013 - 01:50 13:50 »
Como deberia modificar el mod ADK login

Datos importantes:
Url del foro: http://fearbooks.net/foro
Version de SMF: 2.0.4
Theme del foro: losox

Descripcion del problema:
Bueno mi duda es la siguiente, instale el mod SA facebook para que se puedan conectar con el facebook, tambien instale el ADK login para darle una apariencia mas \"elegante\" por asi decirlo al ingresar... pero quisiera saber como podria hacer para que por el ADK login tambien hata un boton que lo deje ingresar con el facebook.. gracias por su ayuda!!!

11
Soporte General SMF / Re:Como corrigo esto del Index??
« on: May 21, 2013 - 11:19 11:19 »
En tu index.template.php busca esto: » y borra todos.

-Un saludo, DIBILO.

PD: La códificacion de tu archivo se cambio por eso sale esos espacios (códigos de espacios)
aa son espacios en blanco entonces?, si busque ese "codigo" pero no me aparece... ya vere si lo encuentro  ;D

12
Soporte General SMF / Como corrigo esto del Index??
« on: May 21, 2013 - 10:34 10:34 »
Como corrigo esto del Index??

Datos importantes:
Url del foro: http://fearbooks.net/foro
Version de SMF: 2.0.4
Theme del foro: losox

Descripcion del problema:


como corrigo esa seccion?, DIBILO me lo modifico pero quisiera saber como lo corrigo asi no lo molesto xD

13
Soporte General SMF / Re:Como puedo modifcar esta seccion?
« on: May 20, 2013 - 08:01 20:01 »
Prueba con esto:

Code: [Select]
<?php
/**
 * Simple Machines Forum (SMF)
 *
 * @package SMF
 * @author Simple Machines
 * @copyright 2011 Simple Machines
 * @license http://www.simplemachines.org/about/smf/license.php BSD
 *
 * @version 2.0
 */

/* This template is, perhaps, the most important template in the theme. It
contains the main template layer that displays the header and footer of
the forum, namely with main_above and main_below. It also contains the
menu sub template, which appropriately displays the menu; the init sub
template, which is there to set the theme up; (init can be missing.) and
the linktree sub template, which sorts out the link tree.

The init sub template should load any data and set any hardcoded options.

The main_above sub template is what is shown above the main content, and
should contain anything that should be shown up there.

The main_below sub template, conversely, is shown after the main content.
It should probably contain the copyright statement and some other things.

The linktree sub template should display the link tree, using the data
in the $context['linktree'] variable.

The menu sub template should display all the relevant buttons the user
wants and or needs.

For more information on the templating system, please see the site at:
http://www.simplemachines.org/
*/

// Initialize the template... mainly little settings.
function template_init()
{
global $context$settings$options$txt;

/* Use images from default theme when using templates from the default theme?
if this is 'always', images from the default theme will be used.
if this is 'defaults', images from the default theme will only be used with default templates.
if this is 'never' or isn't set at all, images from the default theme will not be used. */
$settings['use_default_images'] = 'never';

/* What document type definition is being used? (for font size and other issues.)
'xhtml' for an XHTML 1.0 document type definition.
'html' for an HTML 4.01 document type definition. */
$settings['doctype'] = 'xhtml';

/* The version this template/theme is for.
This should probably be the version of SMF it was created for. */
$settings['theme_version'] = '2.0';

/* Set a setting that tells the theme that it can render the tabs. */
$settings['use_tabs'] = true;

/* Use plain buttons - as opposed to text buttons? */
$settings['use_buttons'] = true;

/* Show sticky and lock status separate from topic icons? */
$settings['separate_sticky_lock'] = true;

/* Does this theme use the strict doctype? */
$settings['strict_doctype'] = false;

/* Does this theme use post previews on the message index? */
$settings['message_index_preview'] = false;

/* Set the following variable to true if this theme requires the optional theme strings file to be loaded. */
$settings['require_theme_strings'] = false;
}

// The main sub template above the content.
function template_html_above()
{
global $context$settings$options$scripturl$txt$modSettings;

// Show right to left and the character set for ease of translating.
echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"'
$context['right_to_left'] ? ' dir="rtl"' '''>
<head>'
;

// The ?fin20 part of this link is just here to make sure browsers don't cache it wrongly.
echo '
<link rel="stylesheet" type="text/css" href="'
$settings['theme_url'], '/css/index'$context['theme_variant'], '.css?fin20" />';

// Some browsers need an extra stylesheet due to bugs/compatibility issues.
foreach (array('ie7''ie6''webkit') as $cssfix)
if ($context['browser']['is_' $cssfix])
echo '
<link rel="stylesheet" type="text/css" href="'
$settings['default_theme_url'], '/css/'$cssfix'.css" />';

// RTL languages require an additional stylesheet.
if ($context['right_to_left'])
echo '
<link rel="stylesheet" type="text/css" href="'
$settings['theme_url'], '/css/rtl.css" />';

// Here comes the JavaScript bits!
echo '
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js" ></script>
<script type="text/javascript" src="'
$settings['default_theme_url'], '/scripts/infouser.js"></script>
<script type="text/javascript" src="'
$settings['default_theme_url'], '/scripts/script.js?fin20"></script>
<script type="text/javascript" src="'
$settings['theme_url'], '/scripts/theme.js?fin20"></script>
<script type="text/javascript"><!-- // --><![CDATA[
var smf_theme_url = "'
$settings['theme_url'], '";
var smf_default_theme_url = "'
$settings['default_theme_url'], '";
var smf_images_url = "'
$settings['images_url'], '";
var smf_scripturl = "'
$scripturl'";
var smf_iso_case_folding = '
$context['server']['iso_case_folding'] ? 'true' 'false'';
var smf_charset = "'
$context['character_set'], '";'$context['show_pm_popup'] ? '
var fPmPopup = function ()
{
if (confirm("' 
$txt['show_personal_messages'] . '"))
window.open(smf_prepareScriptUrl(smf_scripturl)   "action=pm");
}
addLoadEvent(fPmPopup);' 
'''
var ajax_notification_text = "'
$txt['ajax_in_progress'], '";
var ajax_notification_cancel_text = "'
$txt['modify_cancel'], '";
// ]]></script>'
;

echo '
<meta http-equiv="Content-Type" content="text/html; charset='
$context['character_set'], '" />
<meta name="description" content="'
$context['page_title_html_safe'], '" />', !empty($context['meta_keywords']) ? '
<meta name="keywords" content="' 
$context['meta_keywords'] . '" />' '''
<title>'
$context['page_title_html_safe'], '</title>';

// Please don't index these Mr Robot.
if (!empty($context['robot_no_index']))
echo '
<meta name="robots" content="noindex" />'
;

// Present a canonical url for search engines to prevent duplicate content in their indices.
if (!empty($context['canonical_url']))
echo '
<link rel="canonical" href="'
$context['canonical_url'], '" />';

// Show all the relative links, such as help, search, contents, and the like.
echo '
<link rel="help" href="'
$scripturl'?action=help" />
<link rel="search" href="'
$scripturl'?action=search" />
<link rel="contents" href="'
$scripturl'" />';

// If RSS feeds are enabled, advertise the presence of one.
if (!empty($modSettings['xmlnews_enable']) && (!empty($modSettings['allow_guestAccess']) || $context['user']['is_logged']))
echo '
<link rel="alternate" type="application/rss xml" title="'
$context['forum_name_html_safe'], ' - '$txt['rss'], '" href="'$scripturl'?type=rss;action=.xml" />';

// If we're viewing a topic, these should be the previous and next topics, respectively.
if (!empty($context['current_topic']))
echo '
<link rel="prev" href="'
$scripturl'?topic='$context['current_topic'], '.0;prev_next=prev" />
<link rel="next" href="'
$scripturl'?topic='$context['current_topic'], '.0;prev_next=next" />';

// If we're in a board, or a topic for that matter, the index will be the board's index.
if (!empty($context['current_board']))
echo '
<link rel="index" href="'
$scripturl'?board='$context['current_board'], '.0" />';

echo '<script type="text/javascript">
        $(document).ready(function() {
            $(\'#top\').click(function(){
                $(\'html, body\').animate({scrollTop:0}, 1250);
                return false;
            });
        });
    </script>'
;


register_bar_mod_v3_scripts();
// Output any remaining HTML headers. (from mods, maybe?)
echo '
<link rel="stylesheet" type="text/css" href="'
$settings['default_theme_url'], '/css/SSRS_style.css" />';

  
echo $context['html_headers'];

// Load Language for theme SMFSimple :)
loadLanguage('Settings');

echo '
</head>
<body>'
;
}

function 
template_body_above()
{
register_bar_mod_v3_divs();
  
global $context$settings$options$scripturl$txt$modSettings;

/* Bar Top Losox Theme */
echo '
<div class="bar_top">
<div class="social_icons">'
;

echo !empty(
$settings['forum_width']) ? '
<div class="wrapper" style="width: ' 
$settings['forum_width'] . '">' '''


<table width="100%"><tr>'
;
if ($context['user']['is_logged']) {
echo '<td>
<div class="welcome_los">
<table>
<tr>
<td class="welcome_los">'
$txt['welcome_los'] ,' '$context['user']['name'], '!! </td>';
if ($context['user']['is_logged']) {
echo '<td>
<a class="primera" href="'
$scripturl'?action=unread">'$txt['unread_topics_visit'] , '</a>
 <a href="'
$scripturl'?action=unreadreplies">'$txt['unread_replies'] , '</a>
 <a href="'
$scripturl'?action=pm">',$txt['personal_messages'],'</a>
</td>'
; }
echo '</tr>
</table>
</div>
</td>'
;}
else {
echo '<td class="welcome_los">'$txt['welcome_los'] ,' '$context['user']['name'], '!! </td>'; }
echo '<td align="right">
<table><tr>
<td class="smalltext" style="color:#fff;">'
$txt['sig_en'] ,'</td>
<td>'
;
if (empty($settings['link_facebook_disable'])) {
echo '
<span class="soci_link">
<a href="'
, !empty($settings['link_facebook']) ? $settings['link_facebook'] : 'http://www.facebook.com' ,'" title="Facebook"> 
<img src="'
$settings['theme_url'], '/images/icons/facebookoff.png" onmouseover="this.src=\''$settings['theme_url'], '/images/icons/facebookon.png\';" onmouseout="this.src=\''$settings['theme_url'], '/images/icons/facebookoff.png\';" alt="Facebook" /> 
</a>
</span>'

}  
if (empty($settings['link_twitter_disable'])) {
echo '
<span class="soci_link">
<a href="'
, !empty($settings['link_twitter']) ? $settings['link_twitter'] : 'http://www.twitter.com' ,'" title="Twitter"> 
<img src="'
$settings['theme_url'], '/images/icons/twitteroff.png" onmouseover="this.src=\''$settings['theme_url'], '/images/icons/twitteron.png\';" onmouseout="this.src=\''$settings['theme_url'], '/images/icons/twitteroff.png\';" alt="twitter" /> 
</a>
</span>'
;
}
if (empty($settings['link_google_disable'])) {
echo '
<span class="soci_link">
<a href="'
, !empty($settings['link_google']) ? $settings['link_google'] : 'http://www.google.com' ,'" title="Google"> 
<img src="'
$settings['theme_url'], '/images/icons/googleoff.png" onmouseover="this.src=\''$settings['theme_url'], '/images/icons/googleon.png\';" onmouseout="this.src=\''$settings['theme_url'], '/images/icons/googleoff.png\';" alt="google" /> 
</a>
</span>'
;
}
if (empty($settings['link_youtube_disable'])) {
echo '
<span class="soci_link">
<a href="'
, !empty($settings['link_youtube']) ? $settings['link_youtube'] : 'http://www.youtube.com' ,'" title="Youtube"> 
<img src="'
$settings['theme_url'], '/images/icons/youtubeoff.png" onmouseover="this.src=\''$settings['theme_url'], '/images/icons/youtubeon.png\';" onmouseout="this.src=\''$settings['theme_url'], '/images/icons/youtubeoff.png\';" alt="youtube" /> 
</a>
</span>'
;
}
if (empty($settings['link_rss_disable'])) {
echo '
<span class="soci_link">
<a href="'
, !empty($settings['link_rss']) ? $settings['link_rss'] : $scripturl '?action=.xml;type=rss' ,'" title="Rss"> 
<img src="'
$settings['theme_url'], '/images/icons/rssoff.png" onmouseover="this.src=\''$settings['theme_url'], '/images/icons/rsson.png\';" onmouseout="this.src=\''$settings['theme_url'], '/images/icons/rssoff.png\';" alt="rss" /> 
</a>
</span>'
;
}
echo '<span class="soci_link"><a href="http://fearbooks.net" title="SMFSimple.com"> <img src="'$settings['theme_url'], '/images/icons/smfsimpleoff.png" onmouseover="this.src=\''$settings['theme_url'], '/images/icons/smfsimpleon.png\';" onmouseout="this.src=\''$settings['theme_url'], '/images/icons/smfsimpleoff.png\';" alt="SMFSimple" /> </a></span>


</td>
</tr></table>
</td>'
;

echo'</tr></table>
</div>
</div>
</div>'
;

echo '
<div class="bar_logo">
<div class="logo_regis">'
;

echo !empty(
$settings['forum_width']) ? '
<div class="wrapper" style="width: ' 
$settings['forum_width'] . '">' '''


<table width="100%">
<tr>
<td class="smalltext" style="color:#fff;">
<a href="'
$scripturl'">', empty($context['header_logo_url_html_safe']) ? '<img src="'$settings['theme_url']. '/images/logo.png" alt="" />' '<img src="' $context['header_logo_url_html_safe'] . '" alt="' $context['forum_name'] . '" />''</a>
</td>
<td>
<div align="right">
<div class="user">'
;

// Otherwise they're a guest - this time ask them to either register or login - lazy bums...
if (!$context['user']['is_logged'])
{
echo '
<script type="text/javascript" src="'
$settings['default_theme_url'], '/scripts/sha1.js"></script>
<form id="search_form" action="'
$scripturl'?action=search2" method="post" accept-charset="'$context['character_set'], '">
<input type="text" style="border-radius: 5px;" name="search" value="" class="input_text" />&nbsp;
<input type="submit" name="submit" value="'
$txt['search'], '" class="button_submit" />
<input type="hidden" name="advanced" value="0" />'
;

// Search within current topic?
if (!empty($context['current_topic']))
echo '
<input type="hidden" name="topic" value="'
$context['current_topic'], '" />';
// If we're on a certain board, limit it to this board ;).
elseif (!empty($context['current_board']))
echo '
<input type="hidden" name="brd['
$context['current_board'], ']" value="'$context['current_board'], '" />';

  echo '</form><br /> '$context['current_time'], '';
}
else {
echo '<form id="search_form" action="'$scripturl'?action=search2" method="post" accept-charset="'$context['character_set'], '">
<input type="text" style="border-radius: 5px;" name="search" value="" class="input_text" />&nbsp;
<input type="submit" name="submit" value="'
$txt['search'], '" class="button_submit" />
<input type="hidden" name="advanced" value="0" />'
;

// Search within current topic?
if (!empty($context['current_topic']))
echo '
<input type="hidden" name="topic" value="'
$context['current_topic'], '" />';
// If we're on a certain board, limit it to this board ;).
elseif (!empty($context['current_board']))
echo '
<input type="hidden" name="brd['
$context['current_board'], ']" value="'$context['current_board'], '" />';

  echo '</form><br /> '$context['current_time'], '';
}

echo '
</div>
</div>
</td>
</tr>
</table>
</div>
</div>
</div>'
;
echo '
<div class="bar_menu">
<div class="logo_regis">'
;

echo !empty(
$settings['forum_width']) ? '
<div class="wrapper" style="width: ' 
$settings['forum_width'] . '">' '''';

// Show the menu here, according to the menu sub template.
template_menu();
if (!empty($modSettings['ib_text']) && !empty($modSettings['ib_enable']))
{
echo'<br /><br /><div class="redondeado">
<p align="center"> '
,$modSettings['ib_text'],'
</p>
</div> '
;
}

echo '</div>
</div>
</div>'
;

echo !empty($settings['forum_width']) ? '
<div class="wrapper" style="width: ' 
$settings['forum_width'] . '">' '''';

// Custom banners and shoutboxes should be placed here, before the linktree.

// Show the navigation tree.
theme_linktree();
}

function 
template_body_below()
{
global $context$settings$options$scripturl$txt$modSettings;

echo '', !empty($settings['forum_width']) ? '
</div>' 
'';

echo '
<br /><div class="bar_footer">
<div class="logo_regis">'
;

echo !empty(
$settings['forum_width']) ? '
<div class="wrapper" style="width: ' 
$settings['forum_width'] . '">' '''';
// Show the "Powered by" and "Valid" logos, as well as the copyright. Remember, the copyright must be somewhere!
echo '
<div id="footer_section"><div class="frame">
<table width="100%"><tr><td width="49%" align="left"><ul class="reset">
<li class="copyright">'
theme_copyright(), '</li>
</ul></td>
<td align="center" width="2%"><a href="#" id="top"><img src="'
,$settings['theme_url'],'/images/icons/top.png" alt="top" /></a></td>
<td align="right" width="49%">
<a href="http://www.smfsimple.com" title="'
$txt['title_copy'] ,'">'$txt['copy_losox'] ,'</a>
</td></tr></table>'
;


free_static_block();
// Show the load time?
if ($context['show_load_time'])
echo '
<p>'
$txt['page_created'], $context['load_time'], $txt['seconds_with'], $context['load_queries'], $txt['queries'], '</p>';

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

function 
template_html_below()
{
global $context$settings$options$scripturl$txt$modSettings;

    echo (!empty (
$modSettings['custom_body1']) ? $modSettings['custom_body1'] : '' );
    echo (!empty (
$modSettings['custom_body2']) ? $modSettings['custom_body2'] : '' );
    echo (!empty (
$modSettings['custom_body3']) ? $modSettings['custom_body3'] : '' );
    echo (!empty (
$modSettings['custom_body4']) ? $modSettings['custom_body4'] : '' );
    echo (!empty (
$modSettings['custom_body5']) ? $modSettings['custom_body5'] : '' );

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

// 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">
<ul>'
;

// House of linktree
echo '<li><img style="padding-top:1px;" src="'$settings['theme_url'], '/images/house.png" alt="house" /></li>';

// 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="last"' '''>';

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

// Don't show a separator for the last one.
if ($link_num != count($context['linktree']) - 1)
echo ' &#38;#187;';

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

$shown_linktree true;
}

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

echo '
<div id="main_menu">
<ul class="dropmenu" id="menu_nav">'
;

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

foreach ($button['sub_buttons'] as $childbutton)
{
echo '
<li>
<a href="'
$childbutton['href'], '"', isset($childbutton['target']) ? ' target="' $childbutton['target'] . '"' '''>
<span'
, isset($childbutton['is_last']) ? ' class="last"' '''>'$childbutton['title'], !empty($childbutton['sub_buttons']) ? '...' '''</span>
</a>'
;
// 3rd level menus :)
if (!empty($childbutton['sub_buttons']))
{
echo '
<ul>'
;

foreach ($childbutton['sub_buttons'] as $grandchildbutton)
echo '
<li>
<a href="'
$grandchildbutton['href'], '"', isset($grandchildbutton['target']) ? ' target="' $grandchildbutton['target'] . '"' '''>
<span'
, isset($grandchildbutton['is_last']) ? ' class="last"' '''>'$grandchildbutton['title'], '</span>
</a>
</li>'
;

echo '
</ul>'
;
}

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

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

// Generate a strip of buttons.
function template_button_strip($button_strip$direction 'top'$strip_options = array())
{
global $settings$context$txt$scripturl;

if (!is_array($strip_options))
$strip_options = array();

// List the buttons in reverse order for RTL languages.
if ($context['right_to_left'])
$button_strip array_reverse($button_striptrue);

// Create the buttons...
$buttons = array();
foreach ($button_strip as $key => $value)
{
if (!isset($value['test']) || !empty($context[$value['test']]))
$buttons[] = '
<li><a' 
. (isset($value['id']) ? ' id="button_strip_' $value['id'] . '"' '') . ' class="button_strip_' $key . (isset($value['active']) ? ' active' '') . '" href="' $value['url'] . '"' . (isset($value['custom']) ? ' ' $value['custom'] : '') . '><span>' $txt[$value['text']] . '</span></a></li>';
}

// No buttons? No button strip either.
if (empty($buttons))
return;

// Make the last one, as easy as possible.
$buttons[count($buttons) - 1] = str_replace('<span>''<span class="last">'$buttons[count($buttons) - 1]);

echo '
<div class="buttonlist'
, !empty($direction) ? ' float' $direction '''"', (empty($buttons) ? ' style="display: none;"' ''), (!empty($strip_options['id']) ? ' id="' $strip_options['id'] . '"'''), '>
<ul>'
,
implode(''$buttons), '
</ul>
</div>'
;
}

?>

-Un saludo, DIBILO.
Genial amigo! si funciona me podrias indicar q hiciste? asi modifico el index de mi otros themes... :B

14
Soporte General SMF / Re:Como puedo modifcar esta seccion?
« on: May 20, 2013 - 08:37 08:37 »
Prueba con esto a ver:

Code: [Select]
<?php
/**
 * Simple Machines Forum (SMF)
 *
 * @package SMF
 * @author Simple Machines
 * @copyright 2011 Simple Machines
 * @license http://www.simplemachines.org/about/smf/license.php BSD
 *
 * @version 2.0
 */

/* This template is, perhaps, the most important template in the theme. It
contains the main template layer that displays the header and footer of
the forum, namely with main_above and main_below. It also contains the
menu sub template, which appropriately displays the menu; the init sub
template, which is there to set the theme up; (init can be missing.) and
the linktree sub template, which sorts out the link tree.

The init sub template should load any data and set any hardcoded options.

The main_above sub template is what is shown above the main content, and
should contain anything that should be shown up there.

The main_below sub template, conversely, is shown after the main content.
It should probably contain the copyright statement and some other things.

The linktree sub template should display the link tree, using the data
in the $context['linktree'] variable.

The menu sub template should display all the relevant buttons the user
wants and or needs.

For more information on the templating system, please see the site at:
http://www.simplemachines.org/
*/

// Initialize the template... mainly little settings.
function template_init()
{
global $context$settings$options$txt;

/* Use images from default theme when using templates from the default theme?
if this is 'always', images from the default theme will be used.
if this is 'defaults', images from the default theme will only be used with default templates.
if this is 'never' or isn't set at all, images from the default theme will not be used. */
$settings['use_default_images'] = 'never';

/* What document type definition is being used? (for font size and other issues.)
'xhtml' for an XHTML 1.0 document type definition.
'html' for an HTML 4.01 document type definition. */
$settings['doctype'] = 'xhtml';

/* The version this template/theme is for.
This should probably be the version of SMF it was created for. */
$settings['theme_version'] = '2.0';

/* Set a setting that tells the theme that it can render the tabs. */
$settings['use_tabs'] = true;

/* Use plain buttons - as opposed to text buttons? */
$settings['use_buttons'] = true;

/* Show sticky and lock status separate from topic icons? */
$settings['separate_sticky_lock'] = true;

/* Does this theme use the strict doctype? */
$settings['strict_doctype'] = false;

/* Does this theme use post previews on the message index? */
$settings['message_index_preview'] = false;

/* Set the following variable to true if this theme requires the optional theme strings file to be loaded. */
$settings['require_theme_strings'] = false;
}

// The main sub template above the content.
function template_html_above()
{
global $context$settings$options$scripturl$txt$modSettings;

// Show right to left and the character set for ease of translating.
echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"'
$context['right_to_left'] ? ' dir="rtl"' '''>
<head>'
;

// The ?fin20 part of this link is just here to make sure browsers don't cache it wrongly.
echo '
<link rel="stylesheet" type="text/css" href="'
$settings['theme_url'], '/css/index'$context['theme_variant'], '.css?fin20" />';

// Some browsers need an extra stylesheet due to bugs/compatibility issues.
foreach (array('ie7''ie6''webkit') as $cssfix)
if ($context['browser']['is_' $cssfix])
echo '
<link rel="stylesheet" type="text/css" href="'
$settings['default_theme_url'], '/css/'$cssfix'.css" />';

// RTL languages require an additional stylesheet.
if ($context['right_to_left'])
echo '
<link rel="stylesheet" type="text/css" href="'
$settings['theme_url'], '/css/rtl.css" />';

// Here comes the JavaScript bits!
echo '
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js" ></script>
<script type="text/javascript" src="'
$settings['default_theme_url'], '/scripts/infouser.js"></script>
<script type="text/javascript" src="'
$settings['default_theme_url'], '/scripts/script.js?fin20"></script>
<script type="text/javascript" src="'
$settings['theme_url'], '/scripts/theme.js?fin20"></script>
<script type="text/javascript"><!-- // --><![CDATA[
var smf_theme_url = "'
$settings['theme_url'], '";
var smf_default_theme_url = "'
$settings['default_theme_url'], '";
var smf_images_url = "'
$settings['images_url'], '";
var smf_scripturl = "'
$scripturl'";
var smf_iso_case_folding = '
$context['server']['iso_case_folding'] ? 'true' 'false'';
var smf_charset = "'
$context['character_set'], '";'$context['show_pm_popup'] ? '
var fPmPopup = function ()
{
if (confirm("' 
$txt['show_personal_messages'] . '"))
window.open(smf_prepareScriptUrl(smf_scripturl)   "action=pm");
}
addLoadEvent(fPmPopup);' 
'''
var ajax_notification_text = "'
$txt['ajax_in_progress'], '";
var ajax_notification_cancel_text = "'
$txt['modify_cancel'], '";
// ]]></script>'
;

echo '
<meta http-equiv="Content-Type" content="text/html; charset='
$context['character_set'], '" />
<meta name="description" content="'
$context['page_title_html_safe'], '" />', !empty($context['meta_keywords']) ? '
<meta name="keywords" content="' 
$context['meta_keywords'] . '" />' '''
<title>'
$context['page_title_html_safe'], '</title>';

// Please don't index these Mr Robot.
if (!empty($context['robot_no_index']))
echo '
<meta name="robots" content="noindex" />'
;

// Present a canonical url for search engines to prevent duplicate content in their indices.
if (!empty($context['canonical_url']))
echo '
<link rel="canonical" href="'
$context['canonical_url'], '" />';

// Show all the relative links, such as help, search, contents, and the like.
echo '
<link rel="help" href="'
$scripturl'?action=help" />
<link rel="search" href="'
$scripturl'?action=search" />
<link rel="contents" href="'
$scripturl'" />';

// If RSS feeds are enabled, advertise the presence of one.
if (!empty($modSettings['xmlnews_enable']) && (!empty($modSettings['allow_guestAccess']) || $context['user']['is_logged']))
echo '
<link rel="alternate" type="application/rss xml" title="'
$context['forum_name_html_safe'], ' - '$txt['rss'], '" href="'$scripturl'?type=rss;action=.xml" />';

// If we're viewing a topic, these should be the previous and next topics, respectively.
if (!empty($context['current_topic']))
echo '
<link rel="prev" href="'
$scripturl'?topic='$context['current_topic'], '.0;prev_next=prev" />
<link rel="next" href="'
$scripturl'?topic='$context['current_topic'], '.0;prev_next=next" />';

// If we're in a board, or a topic for that matter, the index will be the board's index.
if (!empty($context['current_board']))
echo '
<link rel="index" href="'
$scripturl'?board='$context['current_board'], '.0" />';

echo '<script type="text/javascript">
        $(document).ready(function() {
            $(\'#top\').click(function(){
                $(\'html, body\').animate({scrollTop:0}, 1250);
                return false;
            });
        });
    </script>'
;


register_bar_mod_v3_scripts();
// Output any remaining HTML headers. (from mods, maybe?)
echo '
<link rel="stylesheet" type="text/css" href="'
$settings['default_theme_url'], '/css/SSRS_style.css" />';

  
echo $context['html_headers'];

// Load Language for theme SMFSimple :)
loadLanguage('Settings');

echo '
</head>
<body>'
;
}

function 
template_body_above()
{
register_bar_mod_v3_divs();
  
global $context$settings$options$scripturl$txt$modSettings;

/* Bar Top Losox Theme */
echo '
<div class="bar_top">
<div class="social_icons">'
;

echo !empty(
$settings['forum_width']) ? '
<div class="wrapper" style="width: ' 
$settings['forum_width'] . '">' '''


<table width="100%"><tr>'
;
if ($context['user']['is_logged']) {
echo '<td>
<div class="welcome_los">
<table>
<tr>
<td class="welcome_los">'
$txt['welcome_los'] ,' '$context['user']['name'], '!! </td>';
if ($context['user']['is_logged']) {
echo '<td>
&#38;#8226; <a class="primera" href="'
$scripturl'?action=unread">'$txt['unread_topics_visit'] , '</a>
&#38;#8226; <a href="'
$scripturl'?action=unreadreplies">'$txt['unread_replies'] , '</a>
&#38;#8226; <a href="'
$scripturl'?action=pm">',$txt['personal_messages'],'</a>
</td>'
; }
echo '</tr>
</table>
</div>
</td>'
;}
else {
echo '<td class="welcome_los">'$txt['welcome_los'] ,' '$context['user']['name'], '!! </td>'; }
echo '<td align="right">
<table><tr>
<td class="smalltext" style="color:#fff;">'
$txt['sig_en'] ,'</td>
<td>'
;
if (empty($settings['link_facebook_disable'])) {
echo '
<span class="soci_link">
<a href="'
, !empty($settings['link_facebook']) ? $settings['link_facebook'] : 'http://www.facebook.com' ,'" title="Facebook"> 
<img src="'
$settings['theme_url'], '/images/icons/facebookoff.png" onmouseover="this.src=\''$settings['theme_url'], '/images/icons/facebookon.png\';" onmouseout="this.src=\''$settings['theme_url'], '/images/icons/facebookoff.png\';" alt="Facebook" /> 
</a>
</span>'

}  
if (empty($settings['link_twitter_disable'])) {
echo '
<span class="soci_link">
<a href="'
, !empty($settings['link_twitter']) ? $settings['link_twitter'] : 'http://www.twitter.com' ,'" title="Twitter"> 
<img src="'
$settings['theme_url'], '/images/icons/twitteroff.png" onmouseover="this.src=\''$settings['theme_url'], '/images/icons/twitteron.png\';" onmouseout="this.src=\''$settings['theme_url'], '/images/icons/twitteroff.png\';" alt="twitter" /> 
</a>
</span>'
;
}
if (empty($settings['link_google_disable'])) {
echo '
<span class="soci_link">
<a href="'
, !empty($settings['link_google']) ? $settings['link_google'] : 'http://www.google.com' ,'" title="Google"> 
<img src="'
$settings['theme_url'], '/images/icons/googleoff.png" onmouseover="this.src=\''$settings['theme_url'], '/images/icons/googleon.png\';" onmouseout="this.src=\''$settings['theme_url'], '/images/icons/googleoff.png\';" alt="google" /> 
</a>
</span>'
;
}
if (empty($settings['link_youtube_disable'])) {
echo '
<span class="soci_link">
<a href="'
, !empty($settings['link_youtube']) ? $settings['link_youtube'] : 'http://www.youtube.com' ,'" title="Youtube"> 
<img src="'
$settings['theme_url'], '/images/icons/youtubeoff.png" onmouseover="this.src=\''$settings['theme_url'], '/images/icons/youtubeon.png\';" onmouseout="this.src=\''$settings['theme_url'], '/images/icons/youtubeoff.png\';" alt="youtube" /> 
</a>
</span>'
;
}
if (empty($settings['link_rss_disable'])) {
echo '
<span class="soci_link">
<a href="'
, !empty($settings['link_rss']) ? $settings['link_rss'] : $scripturl '?action=.xml;type=rss' ,'" title="Rss"> 
<img src="'
$settings['theme_url'], '/images/icons/rssoff.png" onmouseover="this.src=\''$settings['theme_url'], '/images/icons/rsson.png\';" onmouseout="this.src=\''$settings['theme_url'], '/images/icons/rssoff.png\';" alt="rss" /> 
</a>
</span>'
;
}
echo '<span class="soci_link"><a href="http://fearbooks.net" title="SMFSimple.com"> <img src="'$settings['theme_url'], '/images/icons/smfsimpleoff.png" onmouseover="this.src=\''$settings['theme_url'], '/images/icons/smfsimpleon.png\';" onmouseout="this.src=\''$settings['theme_url'], '/images/icons/smfsimpleoff.png\';" alt="SMFSimple" /> </a></span>


</td>
</tr></table>
</td>'
;

echo'</tr></table>
</div>
</div>
</div>'
;

echo '
<div class="bar_logo">
<div class="logo_regis">'
;

echo !empty(
$settings['forum_width']) ? '
<div class="wrapper" style="width: ' 
$settings['forum_width'] . '">' '''


<table width="100%">
<tr>
<td class="smalltext" style="color:#fff;">
<a href="'
$scripturl'">', empty($context['header_logo_url_html_safe']) ? '<img src="'$settings['theme_url']. '/images/logo.png" alt="" />' '<img src="' $context['header_logo_url_html_safe'] . '" alt="' $context['forum_name'] . '" />''</a>
</td>
<td>
<div align="right">
<div class="user">'
;

// Otherwise they're a guest - this time ask them to either register or login - lazy bums...
if (!$context['user']['is_logged'])
{
echo '
<script type="text/javascript" src="'
$settings['default_theme_url'], '/scripts/sha1.js"></script>
<form id="search_form" action="'
$scripturl'?action=search2" method="post" accept-charset="'$context['character_set'], '">
<input type="text" style="border-radius: 5px;" name="search" value="" class="input_text" />&nbsp;
<input type="submit" name="submit" value="'
$txt['search'], '" class="button_submit" />
<input type="hidden" name="advanced" value="0" />'
;

// Search within current topic?
if (!empty($context['current_topic']))
echo '
<input type="hidden" name="topic" value="'
$context['current_topic'], '" />';
// If we're on a certain board, limit it to this board ;).
elseif (!empty($context['current_board']))
echo '
<input type="hidden" name="brd['
$context['current_board'], ']" value="'$context['current_board'], '" />';

  echo '</form><br /> '$context['current_time'], '';
}

echo '
</div>
</div>
</td>
</tr>
</table>
</div>
</div>
</div>'
;
echo '
<div class="bar_menu">
<div class="logo_regis">'
;

echo !empty(
$settings['forum_width']) ? '
<div class="wrapper" style="width: ' 
$settings['forum_width'] . '">' '''';

// Show the menu here, according to the menu sub template.
template_menu();
if (!empty($modSettings['ib_text']) && !empty($modSettings['ib_enable']))
{
echo'<br /><br /><div class="redondeado">
<p align="center"> '
,$modSettings['ib_text'],'
</p>
</div> '
;
}

echo '</div>
</div>
</div>'
;

echo !empty($settings['forum_width']) ? '
<div class="wrapper" style="width: ' 
$settings['forum_width'] . '">' '''';

// Custom banners and shoutboxes should be placed here, before the linktree.

// Show the navigation tree.
theme_linktree();
}

function 
template_body_below()
{
global $context$settings$options$scripturl$txt$modSettings;

echo '', !empty($settings['forum_width']) ? '
</div>' 
'';

echo '
<br /><div class="bar_footer">
<div class="logo_regis">'
;

echo !empty(
$settings['forum_width']) ? '
<div class="wrapper" style="width: ' 
$settings['forum_width'] . '">' '''';
// Show the "Powered by" and "Valid" logos, as well as the copyright. Remember, the copyright must be somewhere!
echo '
<div id="footer_section"><div class="frame">
<table width="100%"><tr><td width="49%" align="left"><ul class="reset">
<li class="copyright">'
theme_copyright(), '</li>
</ul></td>
<td align="center" width="2%"><a href="#" id="top"><img src="'
,$settings['theme_url'],'/images/icons/top.png" alt="top" /></a></td>
<td align="right" width="49%">
<a href="http://www.smfsimple.com" title="'
$txt['title_copy'] ,'">'$txt['copy_losox'] ,'</a>
</td></tr></table>'
;


free_static_block();
// Show the load time?
if ($context['show_load_time'])
echo '
<p>'
$txt['page_created'], $context['load_time'], $txt['seconds_with'], $context['load_queries'], $txt['queries'], '</p>';

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

function 
template_html_below()
{
global $context$settings$options$scripturl$txt$modSettings;

    echo (!empty (
$modSettings['custom_body1']) ? $modSettings['custom_body1'] : '' );
    echo (!empty (
$modSettings['custom_body2']) ? $modSettings['custom_body2'] : '' );
    echo (!empty (
$modSettings['custom_body3']) ? $modSettings['custom_body3'] : '' );
    echo (!empty (
$modSettings['custom_body4']) ? $modSettings['custom_body4'] : '' );
    echo (!empty (
$modSettings['custom_body5']) ? $modSettings['custom_body5'] : '' );

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

// 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">
<ul>'
;

// House of linktree
echo '<li><img style="padding-top:1px;" src="'$settings['theme_url'], '/images/house.png" alt="house" /></li>';

// 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="last"' '''>';

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

// Don't show a separator for the last one.
if ($link_num != count($context['linktree']) - 1)
echo ' &#38;#187;';

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

$shown_linktree true;
}

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

echo '
<div id="main_menu">
<ul class="dropmenu" id="menu_nav">'
;

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

foreach ($button['sub_buttons'] as $childbutton)
{
echo '
<li>
<a href="'
$childbutton['href'], '"', isset($childbutton['target']) ? ' target="' $childbutton['target'] . '"' '''>
<span'
, isset($childbutton['is_last']) ? ' class="last"' '''>'$childbutton['title'], !empty($childbutton['sub_buttons']) ? '...' '''</span>
</a>'
;
// 3rd level menus :)
if (!empty($childbutton['sub_buttons']))
{
echo '
<ul>'
;

foreach ($childbutton['sub_buttons'] as $grandchildbutton)
echo '
<li>
<a href="'
$grandchildbutton['href'], '"', isset($grandchildbutton['target']) ? ' target="' $grandchildbutton['target'] . '"' '''>
<span'
, isset($grandchildbutton['is_last']) ? ' class="last"' '''>'$grandchildbutton['title'], '</span>
</a>
</li>'
;

echo '
</ul>'
;
}

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

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

// Generate a strip of buttons.
function template_button_strip($button_strip$direction 'top'$strip_options = array())
{
global $settings$context$txt$scripturl;

if (!is_array($strip_options))
$strip_options = array();

// List the buttons in reverse order for RTL languages.
if ($context['right_to_left'])
$button_strip array_reverse($button_striptrue);

// Create the buttons...
$buttons = array();
foreach ($button_strip as $key => $value)
{
if (!isset($value['test']) || !empty($context[$value['test']]))
$buttons[] = '
<li><a' 
. (isset($value['id']) ? ' id="button_strip_' $value['id'] . '"' '') . ' class="button_strip_' $key . (isset($value['active']) ? ' active' '') . '" href="' $value['url'] . '"' . (isset($value['custom']) ? ' ' $value['custom'] : '') . '><span>' $txt[$value['text']] . '</span></a></li>';
}

// No buttons? No button strip either.
if (empty($buttons))
return;

// Make the last one, as easy as possible.
$buttons[count($buttons) - 1] = str_replace('<span>''<span class="last">'$buttons[count($buttons) - 1]);

echo '
<div class="buttonlist'
, !empty($direction) ? ' float' $direction '''"', (empty($buttons) ? ' style="display: none;"' ''), (!empty($strip_options['id']) ? ' id="' $strip_options['id'] . '"'''), '>
<ul>'
,
implode(''$buttons), '
</ul>
</div>'
;
}

?>

-Un saludo, DIBILO.
Me surgieron estos problemas... Cuando logeo desaparece el "buscador" y hay algo mal en el codigo de arriba, que podra ser?

15
Soporte General SMF / Re:Como puedo modifcar esta seccion?
« on: May 19, 2013 - 08:02 20:02 »
Adjuntame tu index.template.php de tu theme.

-Un saludo, DIBILO.
Ahi tienes amigo  ;D gracias!

Pages: [1] 2 3 ... 16
top

Smfsimple.com es un sitio destinado a brindar un servicio de soporte y herramientas para foros realizados con el sistema de foros gratuito simplemachines.org. Contamos con un selecto equipo de desarrolladores y conocedores del sistema, sus foros estaran en buenas manos.
This site is not affiliated with or endorsed by Simple Machines