News:

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

Main Menu

facebook

Started by gomtpur, March 27, 2011, 12:44:40 PM

Previous topic - Next topic

gomtpur

Buenas que tal quisiera integrar el like mod facebook en la parte superior derecha solo un pequeño icono como en el portal de www.left-behind.com.ar me dijeron q se hacia con facebook me dieron este codigo y no se q hacer desde ya muchas gracias

Quote<script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script><fb:like-box href="http://www.facebook.com/pages/ZombieSurvivor/211758932171974?sk=wall" width="292" show_faces="false" stream="false" header="true"></fb:like-box>

gomtpur


DoctorMalboro


gomtpur

#3
Edito : Ninguno es lo que especifique arriba

DoctorMalboro

Y eso dónde lo queres pegar?

gomtpur

primero me dijieron q se hacia con el facebook y me dieron este codigo en el facebook

Quote<script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script><fb:like-box href="http://www.facebook.com/pages/ZombieSurvivor/211758932171974?sk=wall" width="292" show_faces="false" stream="false" header="true"></fb:like-box>

[/quote]

lo quiero poner en la parte arriba superior derecha como aca 

Mick.

Depende con el theme estas usando.

gomtpur


Sleezy

Hola, ¿qué pasa con este mod es esto otra vez?
SMFNew Advocate for SMFNew (Dagger)

gomtpur

es diferente a otros post de facebook otros piden el like mod yo pido solo un boton me gusta como el de arriba`+

Suki

lol, el "like"  y el "me gusta"  son la misma cosa...

el código que pusiste no es suficiente,  tienes que también modificar tu tag <html>  para agregar la especificación de facebook:

http://developers.facebook.com/docs/reference/plugins/like/


o puedes usar el método de iframe:


<iframe src="http://www.facebook.com/plugins/like.php?href=misitio.com&amp;layout=button_count&amp;show_faces=true&amp;width=450&amp;action=like&amp;font&amp;colorscheme=light&amp;height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:21px;" allowTransparency="true"></iframe>




no das datos, no das tu url ni adjuntas tu archivo, así es muy dificil poder ayudarte.
Disclaimer: unless otherwise stated, all my posts are personal and does not represent any views or opinions held by Simple Machines.

gomtpur

#11
Perdon mi url es www.zys.com.nu smf 2.0 rc4 simpleportal que dato debo adjuntar y como modifico mi tag? no entiendo mucho perdon desde ya muchas gracias--- ESTO ME DIO EL FACEBOOK

XFMBL

Quote<script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script><fb:like href="http://www.facebook.com/pages/ZombieSurvivor/211758932171974" layout="button_count" show_faces="false" width="450" font="verdana"></fb:like>

IFRAME

Quote<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.facebook.com%2Fpages%2FZombieSurvivor%2F211758932171974&amp;layout=button_count&amp;show_faces=false&amp;width=450&amp;action=like&amp;font=verdana&amp;colorscheme=light&amp;height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:21px;" allowTransparency="true"></iframe>

gomtpur


Suki

tu index.template.php de el theme que estés usando.
Disclaimer: unless otherwise stated, all my posts are personal and does not represent any views or opinions held by Simple Machines.

gomtpur

ACA esta mi index-template muchas gracias =) otra cosa como se quita el boton buscar y Noticias Me refiero a este

Suki

usa este, tu codigo ya esta puesto, solo tienes que hacerle cambios para definir en donde quedara, tambien borre la caja de buscar y las noticias
Disclaimer: unless otherwise stated, all my posts are personal and does not represent any views or opinions held by Simple Machines.

gomtpur

lo copie pero me sale esto algo mas tengo que hacer? por ahora puse el template antiguo

Template Parse Error!

There was a problem loading the /Themes/black_and_white/index.template.php template or language file. Please check the syntax and try again - remember, single quotes (') often have to be escaped with a slash (\). To see more specific error information from PHP, try accessing the file directly.

You may want to try to refresh this page or use the default theme.

Parse error: syntax error, unexpected T_ELSEIF in .../Themes/black_and_white/index.template.php on line 222
213:
214:       echo '
215:                <li>', $context['current_time'], '</li>
216:             </ul>';
217:    }
218:    
219:    echo '<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.zys.com.nu%2F&layout=button_count&show_faces=false&width=450&action=like&font=arial&colorscheme=light&height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:21px;" allowTransparency="true"></iframe>';
220:    
221:    // Otherwise they're a guest - this time ask them to either register or login - lazy bums...
222:    elseif (!empty($context['show_login_bar']))
223:    {
224:       echo '
225:             <script type="text/javascript" src="', $settings['default_theme_url'], '/scripts/sha1.js"></script>
226:             <form id="guest_form" action="', $scripturl, '?action=login2" method="post" accept-charset="', $context['character_set'], '" ', empty($context['disable_login_hashing']) ? ' onsubmit="hashLoginPassword(this, \'' . $context['session_id'] . '\');"' : '', '>

Suki

ok, usa este, y cuando quieras copiar/pgqar código, utiliza los tags  [code] aqui el codigo [/code]
Disclaimer: unless otherwise stated, all my posts are personal and does not represent any views or opinions held by Simple Machines.

gomtpur

Ahi salio pero como que se desconfiguro los bloques y sige la imagen del buscador aca las imagenes

ANTES


DESPUES



Y EN ESTE ULTIMO SE VEIA UN POCO MAS CHICO EL FORO

Suki

a que te refieres con "se desconfiguró los bloques"  ?

para remover la imagen del buscador en tu archivo index.template busca esto:

echo '
         </div>
         <div class="news normaltext">
              <div class="search_box">';   
            

   echo '
         </div>
      </div>


y reemplazalo con esto:

   echo '
         </div>';

Disclaimer: unless otherwise stated, all my posts are personal and does not represent any views or opinions held by Simple Machines.

gomtpur

esta esa barra a la derecha como para subir y bajar y se vee un poco mas pequeño

gomtpur


gomtpur

Ya me funciono solo copie el iframe y lo puse donde tu lo pusiste solo edite eso ------------ahora que tengo que borrar para q no salga mas las noticias y el boton ese buscar el que esta

Suki

Quote from: Miss All Sunday on March 30, 2011, 07:09:52 PM

para remover la imagen del buscador en tu archivo index.template busca esto:

echo '
         </div>
         <div class="news normaltext">
              <div class="search_box">';   
            

   echo '
         </div>
      </div>


y reemplazalo con esto:

   echo '
         </div>';


Disclaimer: unless otherwise stated, all my posts are personal and does not represent any views or opinions held by Simple Machines.

gomtpur

me sale esto
QuoteTemplate Parse Error!

There was a problem loading the /Themes/black_and_white/index.template.php template or language file. Please check the syntax and try again - remember, single quotes (') often have to be escaped with a slash (\). To see more specific error information from PHP, try accessing the file directly.

You may want to try to refresh this page or use the default theme.

Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in .../Themes/black_and_white/index.template.php on line 253
244:       echo '
245:                <input type="hidden" name="hash_passwrd" value="" />
246:             </form>';
247:    }
248:
249:    echo '
250:          </div>   
251:             
252:    // Search within current topic?
253:    if (!empty($context['current_topic']))
254:       echo '
255:                <input type="hidden" name="topic" value="', $context['current_topic'], '" />';
256:    // If we're on a certain board, limit it to this board ;).
257:    elseif (!empty($context['current_board']))

Suki

adjunta aqui tu archivo ya modificado.
Disclaimer: unless otherwise stated, all my posts are personal and does not represent any views or opinions held by Simple Machines.

gomtpur

#26
aca esta

gomtpur

Tube q dejarlo default nodaba de ninguna manera el template

gomtpur

no tte entendi nada :S paris esperando q me edites el template porfavor salu2 ....

gomtpur

no se olviden de mi :s

DoctorMalboro

No revivas un tema si no pasaron 24 Hs.

gomtpur

ya pasaron 24 hrs =)

Suki

Disclaimer: unless otherwise stated, all my posts are personal and does not represent any views or opinions held by Simple Machines.

Advertisement: