Uutiset:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu
Advertisement:

ayuda para esconder el chat de los guests

Aloittaja mafia7, syyskuu 25, 2009, 12:05:19 IP

« edellinen - seuraava »

mafia7

Ingles   
is to put the chat on the part of index.template.php are looking to put the code but haora all my chat up the guests can see I do not want them to see the guests who could make that code can use to hide the chat to please help guests look at the photo urjente

Español
es que puse el chat en la parte del index.template.php hay busque para poner el codigo de mi chat pero haora todo pueden verlo hasta los guests y no quiero que lo vean los guests que podria hacer que codigo puedo usar para esconder el chat para los guests por favor ayuda urjente miren la foto


mirahalo

podrias simplemente poner un

$context['user']['is_logged']  {   aqui el codigo de tu chat   }

y listo, ahora tu chat solo lo podran ver los usuarios registrados y logeados.


saludos!

mafia7


mirahalo

pon exactamente el codigo que estas poniendo o adjunta tu archivo para revisarlo

saludos!

mafia7

mira amigo este es el codigo del chat mio

Lainaa<!-- BEGIN CBOX - www.cbox.ws - v001 -->
<div id="cboxdiv" style="text-align: center; line-height: 0">
<div><iframe frameborder="0" width="800" height="302" src="http://www7.cbox.ws/box/?boxid=7898&boxtag=es930b&sec=main" marginheight="2" marginwidth="2" scrolling="auto" allowtransparency="yes" name="cboxmain" style="border:#000000 1px solid;" id="cboxmain"></iframe></div>
<div><iframe frameborder="0" width="800" height="78" src="http://www7.cbox.ws/box/?boxid=7898&boxtag=es930b&sec=form" marginheight="2" marginwidth="2" scrolling="no" allowtransparency="yes" name="cboxform" style="border:#000000 1px solid;border-top:0px" id="cboxform"></iframe></div>
</div>
<!-- END CBOX -->


y lo estoy poniendo aqui en index.template.php

mirahalo

pruebalo asi: 

global $context;
$context['user']['is_logged']  {

echo '
<!-- BEGIN CBOX - www.cbox.ws - v001 -->
<div id="cboxdiv" style="text-align: center; line-height: 0">
<div><iframe frameborder="0" width="800" height="302" src="http://www7.cbox.ws/box/?boxid=7898&boxtag=es930b&sec=main" marginheight="2" marginwidth="2" scrolling="auto" allowtransparency="yes" name="cboxmain" style="border:#000000 1px solid;" id="cboxmain"></iframe></div>
<div><iframe frameborder="0" width="800" height="78" src="http://www7.cbox.ws/box/?boxid=7898&boxtag=es930b&sec=form" marginheight="2" marginwidth="2" scrolling="no" allowtransparency="yes" name="cboxform" style="border:#000000 1px solid;border-top:0px" id="cboxform"></iframe></div>
</div>
<!-- END CBOX -->';  } 



saludos!

mafia7

me hiso lo mismo mera aki es donde lo estoy poniendo

Lainaafunction template_main_below()
{
        global $context, $settings, $options, $scripturl, $txt;

        $mainbar2='</table>';
        $between2='</td><td style="width: 19px;height: 12px;background-image: url('.$settings['images_url'].'/shell/midright.jpg); background-repeat: repeat-y;"><img alt="gfx" src="'.$settings['images_url'].'/shell/midright.jpg" style="height: 12px; width: 19px; border: 0px; padding: 0px; margin: 0px;" /></td></tr>';
        $botbar='<tr><td style="height: 39px; width: 19px;" valign="top"><img src="'.$settings['images_url'].'/shell/botbar-left.jpg" style="height: 39px; width: 19px; border: 0px; padding: 0px; margin: 0px;" alt="gfx" /></td><td style="width: 68px;height: 39px; background-image: url('.$settings['images_url'].'/shell/botbar-mid.jpg); "><img src="'.$settings['images_url'].'/shell/botbar-left2.jpg" style="height: 39px; width: 68px; border: 0px; padding: 0px; margin: 0px;" alt="gfx" /></td><td style="height: 39px; background-image: url('.$settings['images_url'].'/shell/botbar-mid.jpg); " >&nbsp;<td style="width: 62px;height: 39px;"><img alt="gfx" src="'.$settings['images_url'].'/shell/botbar-right2.jpg" style="height: 39px; width: 62px; border: 0px; padding: 0px; margin: 0px;" /></td><td style="width: 19px;height: 39px;"><img alt="gfx" src="'.$settings['images_url'].'/shell/botbar-right.jpg" style="height: 39px; width: 19px; border: 0px; padding: 0px; margin: 0px;" /></td></tr>';

        echo '</td>
        </tr>
<center>

<!--/Logo superior va aqui//-->

   
<!--/ Cualquier anadicion o arreglo hacerlo aqui //-->


<!--/ No Tocar codigo de aqui en adelante //-->

</center>

</table>
           </div><div class="mybox">';

        // Show the "Powered by" and "Valid" logos, as well as the copyright.  Remember, the copyright must be somewhere!
        echo '

        <div id="footerarea" style="text-align: center; padding-bottom: 1ex;', $context['browser']['needs_size_fix'] && !$context['browser']['is_ie6'] ? ' width: 100%;' : '', '">
                <script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
                        function smfFooterHighlight(element, value)
                        {
                                element.src = smf_images_url + "/" + (value ? "h_" : "") + element.id + ".gif";
                        }
                // ]]></script>
                <table cellspacing="0" cellpadding="3" border="0" align="center" width="100%">
                        <tr>
                                <td width="28%" valign="middle" align="right">
                                        <a href="http://www.mysql.com/" target="_blank"><img id="powered-mysql" src="', $settings['images_url'], '/powered-mysql.gif" alt="', $txt['powered_by_mysql'], '" border="0"  /></a>
                                        <a href="http://www.php.net/" target="_blank"><img id="powered-php" src="', $settings['images_url'], '/powered-php.gif" alt="', $txt['powered_by_php'], '" border="0"  /></a>
                                </td>
                                <td valign="middle" align="center" style="white-space: nowrap;" class="smalltext">
                                        ', theme_copyright(), '
                                        <br /><b>Cerberus</b> design by <a href="http://www.bloczone.net" target="_blank">Bloc</a>
                                </td>
                                <td width="28%" valign="middle" align="left">
                                        <a href="http://validator.w3.org/check/referer" target="_blank"><img id="valid-xhtml10" src="', $settings['images_url'], '/valid-xhtml10.gif" alt="', $txt['valid_xhtml'], '" border="0"  /></a>
                                        <a href="http://jigsaw.w3.org/css-validator/check/referer" target="_blank"><img id="valid-css" src="', $settings['images_url'], '/valid-css.gif" alt="', $txt['valid_css'], '" border="0"  /></a>
                                </td>
                        </tr>
                </table>';

en donde esta marcado en Rojo es donde tengo el chat y hay puse lo que me diste

mirahalo

prueba asi, sustituye esto:


echo '</td>
        </tr>
<center>

<!--/Logo superior va aqui//-->

   
<!--/ Cualquier anadicion o arreglo hacerlo aqui //-->


<!--/ No Tocar codigo de aqui en adelante //-->

</center>
</table>
           </div><div class="mybox">';


por esto:



  echo '</td>
        </tr>
<center>';

global $context;
$context['user']['is_logged']  {

echo '
<!-- BEGIN CBOX - www.cbox.ws - v001 -->
<div id="cboxdiv" style="text-align: center; line-height: 0">
<div><iframe frameborder="0" width="800" height="302" src="http://www7.cbox.ws/box/?boxid=7898&boxtag=es930b&sec=main" marginheight="2" marginwidth="2" scrolling="auto" allowtransparency="yes" name="cboxmain" style="border:#000000 1px solid;" id="cboxmain"></iframe></div>
<div><iframe frameborder="0" width="800" height="78" src="http://www7.cbox.ws/box/?boxid=7898&boxtag=es930b&sec=form" marginheight="2" marginwidth="2" scrolling="no" allowtransparency="yes" name="cboxform" style="border:#000000 1px solid;border-top:0px" id="cboxform"></iframe></div>
</div>
<!-- END CBOX -->';  } 

echo '</table>
           </div><div class="mybox">';


         

mafia7


mirahalo

podrias poner una captura de como te sale cuando pones el codigo???

mafia7

Bueno amigo hay te puse la foto que es lo que me pasa

mafia7

Lainaus käyttäjältä: mafia7 - syyskuu 25, 2009, 12:05:19 IP
es que puse el chat en la parte del index.template.php hay busque para poner el codigo de mi chat pero haora todo pueden verlo hasta los guests y no quiero que lo vean los guests que podria hacer que codigo puedo usar para esconder el chat para los guests por favor ayuda urjente miren la foto



y es te es el eror cuando pongo todo lo que me andado para poner


Advertisement: