cerezas6   9 Jan, 2013, 12:53 pm
#1
Hola, intento insertar los botones de facebok y twitter ''http://www.mybb-es.com/hilo-a%C3%B1adir-...ear?page=1'', en mi plantilla showthread, pero no lo consigo, aqui os dejo la plantilla con el script. Espero que alguien me pueda ayudar. Gracias de antecodo

<html>
<head>
<title>{$thread['subject']}</title>
{$headerinclude}
<script type="text/javascript">
<!--
	var quickdelete_confirm = "{$lang->quickdelete_confirm}";
// -->
</script>
<script type="text/javascript" src="jscripts/thread.js?ver=1603"></script>
<script type="text/javascript" src="jscripts/fitonpage.js?ver=230"></script>
<script type="text/javascript">
<!--
	var fitonpage_on = "{$mybb->settings['g33k_fitonpage_enabled']}";
	var fitonpage_resize = "{$mybb->settings['g33k_fitonpage_resize']}";
	var fitonpage_fluid = "{$mybb->settings['g33k_fitonpage_fluid']}";
	var fitonpage_topbar_resized = "{$lang->fitonpage_topbar_resized}";
	var fitonpage_topbar_full = "{$lang->fitonpage_topbar_full}";
	var fitonpage_topbar_text_class = "{$mybb->settings['g33k_fitonpage_topbar_text_class']}";
	var fitonpage_topbar_bground = "{$mybb->settings['g33k_fitonpage_topbar_bground']}";
	var fitonpage_topbar_icon = "{$mybb->settings['g33k_fitonpage_topbar_icon']}";
	var fitonpage_location = "showthread";
-->
</script>
</head>
<body>
	{$header}
	{$pollbox}
	<div class="float_left">
		{$multipage}

	</div>
	<div class="float_right">
		{$newreply}
	</div>
        <iframe src="http://www.facebook.com/plugins/like.php?href={$mybb->settings['bburl']}/showthread.php?tid={$tid}&amp;layout=button_count&amp;show_faces=false&amp;width=120&amp;action={$rofl1}&amp;colorscheme=light&amp;height=20px" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:120px; height:20px;" allowTransparency="true"></iframe>

        <a href="http://twitter.com/share" class="twitter-share-button" data-count="horizontal" data-lang="es">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script> 
        {$ratethread}
	<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder" style="clear: both; border-bottom-width: 0;">
		<tr>
			<td class="thead" colspan="2">
				<div style="float: right;">
					<span class="smalltext"><strong><a href="showthread.php?mode=threaded&amp;tid={$tid}&amp;pid={$pid}#pid{$pid}">{$lang->threaded}</a> | <a href="showthread.php?mode=linear&amp;tid={$tid}&amp;pid={$pid}#pid{$pid}">{$lang->linear}</a></strong></span>
				</div>
				<div>
					<strong>{$thread['threadprefix']}{$thread['subject']}</strong>
				</div>
			</td>
		</tr>
		{$classic_header}
	</table>
	<div id="posts">
		{$posts}
	</div>
	<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder" style="border-top-width: 0;">
		<tr>
			<td colspan="2" class="tfoot">
				{$search_thread}
				<div>
					<strong>&laquo; <a href="{$next_oldest_link}">{$lang->next_oldest}</a> | <a href="{$next_newest_link}">{$lang->next_newest}</a> &raquo;</strong>
				</div>
			</td>
		</tr>
	</table>
	<div class="float_left">
		{$multipage}
	</div>
	<div style="padding-top: 4px;" class="float_right">
		{$newreply}
	</div>
	<br style="clear: both;" />
	{$quickreply}
	{$threadexbox}
	{$similarthreads}
	<br />
	<div class="float_left">
		<ul class="thread_tools">
			<li class="printable"><a href="printthread.php?tid={$tid}">{$lang->view_printable}</a></li>
			<li class="sendthread"><a href="sendthread.php?tid={$tid}">{$lang->send_thread}</a></li>
			<li class="subscription_{$add_remove_subscription}"><a href="usercp2.php?action={$add_remove_subscription}subscription&amp;tid={$tid}&amp;my_post_key={$mybb->post_code}">{$add_remove_subscription_text}</a></li>
		</ul>
	</div>
	<div class="float_right" style="text-align: right;">
		{$moderationoptions}
		{$forumjump}
	</div>
	<br style="clear: both;" />
	{$usersbrowsing}
	{$footer}
</body>
</html>

A mi de momento solo me sale esto:

[Imagen: 070bba28130e4081900de19.png]
Última modificación: 9 Jan, 2013, 12:54 pm por cerezas6.
Finer   9 Jan, 2013, 1:02 pm
#2
Pero si recien revise tu foro y yo veo el boton del twitter
Limpia tu cache..

El boton de facebook ese si que no aparece, recien intente usar el codigo que esta en el tutorial con el firebug y no me funciona ami tampoco capaz el de facebook tiene algun error ya en el tutorial.
Última modificación: 9 Jan, 2013, 1:06 pm por fabiibiografiia.

[Imagen: tumblr_nj9sv13aff1tga1sco4_r1_500.gif]
angeluz   9 Jan, 2013, 1:11 pm
#3
Para el botón de facebook siempre es mejor el original Big Grin

Ve a http://developers.facebook.com/docs/refe...gins/like/

Te dará un código pegalo donde desees Big Grin

Adiós
Finer   9 Jan, 2013, 1:11 pm
#4
Si no te anda el de facebook te conviene probar con alguno de aca..
http://developers.facebook.com/docs/refe...gins/like/

LOL me gano de mano angeluz.
Última modificación: 9 Jan, 2013, 1:11 pm por fabiibiografiia.

[Imagen: tumblr_nj9sv13aff1tga1sco4_r1_500.gif]
  
Powered By MyBB, © 2002-2025 MyBB Group.
Made with by Curves UI.