Uutiset:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu
Advertisement:

Ayuda para instalar el zComunity en Tema Dsm [Solucionado]

Aloittaja gantz, syyskuu 25, 2009, 11:07:32 IP

« edellinen - seuraava »

gantz

ALguien me podria decir que cambios tengo que hacer en el tema dsm para instalar el zComunity en miforo selos agradeceria mucho salu2 y gracias

Este es el Tema

http://custom.simplemachines.org/themes/index.php?lemma=1569

Y estas son las Modificaciones:

http://custom.simplemachines.org/mods/index.php?action=parse

salu2 y gracias por su ayuda


mirahalo

en realida son bastantes las modificaciones, si tu theme tiene este archivo index.template.php, estas son las modificaciones que tienes que hacer:

./Themes/default/index.template.php

Encontrar:

<meta name="description" content="', $context['page_title'], '" />

Reemplazar con:

<meta name="description" content="', !empty($context['zc']['meta']['description']) ? $context['zc']['meta']['description'] : $context['page_title'], '" />

Encontrar:

<meta name="keywords" content="PHP, MySQL, bulletin, board, free, open, source, smf, simple, machines, forum" />

Reemplazar con:

<meta name="keywords" content="', !empty($context['zc']['meta']['keywords']) ? $context['zc']['meta']['keywords'] : '', '" />

Encontrar:

// The ?fin11 part

Agregar Antes:


// load the css stylesheets up here...
if (isset($modSettings['zc_mode']))
{
// load stylesheets?
if (!empty($context['zc']['load_css_stylesheets']))
foreach ($context['zc']['load_css_stylesheets'] as $url)
echo '
<link rel="stylesheet" type="text/css" href="', $url, '" />';
}

   

   

Encontrar:

</head>

Agregar Antes:
';

// zCommunity...
if (isset($modSettings['zc_mode']))
{
// load js files?
if (!empty($context['zc']['load_js_files']))
foreach ($context['zc']['load_js_files'] as $url)
echo '
<script type="text/javascript" src="', $url, '"></script>';

// special style info?
if (!empty($context['zc']['extra_css_style']))
echo '
<style type="text/css" media="screen">', implode('
', $context['zc']['extra_css_style']), '
</style>';

// relative links...
if (!empty($context['zc']['page_relative_links']))
foreach ($context['zc']['page_relative_links'] as $rel => $array)
echo '
<link rel="', $rel, '"', !empty($array['type']) ? ' type="'. $array['type'] .'"' : '', ' href="', $array['url'], '"', !empty($array['target']) ? ' target="'. $array['target'] .'"' : '', ' />';
}

echo '


Encontrar:

$last = 'last';
}


Agregar Luego:

   
// are we viewing a page in the blogging community?
if (!empty($context['zc']['show_zc_nav']) && !empty($context['zc']['in_zcommunity']))
$current_action = 'zc';


Encontrar:

'home' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';

Agregar Luego:

            
   // Show the [Blogs] link?
if (!empty($context['zc']['show_zc_nav']))
echo ($current_action == 'zc' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '', '
<td valign="top" class="maintab_', $current_action == 'zc' ? 'active_back' : 'back', '">
<a href="', $scripturl, '?zc">', $txt['b1a'], '</a>
</td>', $current_action == 'zc' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';


Encontrar:

// Show the "Powered by"

Agregar Antes:

// float the footer right if viewing a zcommunity page...
if (!empty($context['blog_community']))
echo '
<div style="float:right; text-align:center; width:100%;">';


   

Encontrar:

// The following will be used to let the user know that some AJAX

Agregar Antes:

// close footer div if viewing a zcommunity page...
if (!empty($context['blog_community']))
echo '
</div>';


el codigo puede variar en tu theme, solo es cuestion de que lo adaptes.

saludos!

gantz

Hola gracias por la respuesta pero mi tema no trae 2 opciones que se tienen que modificar estas son // Show the "Powered by" y 'home' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';

este es el index.template.php espero me puedas ayudar lo adjunto ya puse los cambios pero no se ve bien el css salu2 y gracias por tu ayuda

asime queda ami




gantz


mirahalo

ok, que bueno que pudiste arreglar tu problema, marco como solucionado.

Advertisement: