MyBB Community Forums

Full Version: icons not able to see
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
http://www.ediksa.com/index.php

just above the general discussion twitter facebook share link given links are working fine but its not visible

what to add in code or whats wrong

<div class="sharing-menu">
<ul class='socials' style="margin: auto auto;">
<li class='shr-facebook'><a href="location.href"onclick="return fbs_click()"></a></li>
<script>
function twitt_click()
{
u=location.href;
t=document.title;
window.open('http://twitthis.com/twit?url='+encodeURIComponent(u)+'&t='+encodeURIComponent(t));
return false;
}
</script>
<li class='shr-twitter'><a onclick="return twitt_click()"/></a></li>
The only thing I'm viewing missing at your code is the name of twitter and facebook. Try this;
<div class="sharing-menu">
<ul class='socials' style="margin: auto auto;">
<li class='shr-facebook'><a href="location.href"onclick="return fbs_click()">Facebook</a></li>
<script>
function twitt_click() 
{
u=location.href;
t=document.title;
window.open('http://twitthis.com/twit?url='+encodeURIComponent(u)+'&t='+encodeURIComponent(t));
return false;
}
</script>
<li class='shr-twitter'><a onclick="return twitt_click()"/>Tweet</a></li>

Also you didn't specified the facebook URL.
^ no luck
output like this when pasted

* Facebbok no url redirect

complete header file
<div id="container">
		<a name="top" id="top"></a>

		<div id="header"><table class="tborder" border="0" cellpadding="3" cellspacing="1">
	<thead>
		<tr> 
<td width="25%">

<div class="userbox"><div id="panel">
				{$welcomeblock}</div>
				<a href="{$mybb->settings['bburl']}/search.php?action=getnew">{$lang->welcome_newposts}</a> | <a href="{$mybb->settings['bburl']}/search.php?action=getdaily">{$lang->welcome_todaysposts}</a>

				
			</div>
</td>
			<td width="50%">
			<div class="logo"><a href="{$mybb->settings['bburl']}/index.php" ><img src="{$theme['logo']}" alt="{$mybb->settings['bbname']}" title="{$mybb->settings['bbname']}/></a></div>



</td>

<td width="25%">



<div id="menu" class="menu">
<table class="tborder" border="0" cellpadding="4" cellspacing="1">
	<thead>
		<tr> 
			<td class="thead" align="center"><img src="{$mybb->settings['bburl']}/{$theme['imgdir']}/icons/news.png" title="Latest Threads
" /><strong><a href="{$mybb->settings['bburl']}/portal.php">Latest Threads</a></strong></td>
                       
 <td class="thead" align="center"><img src="{$mybb->settings['bburl']}/{$theme['imgdir']}/icons/mobile.png" title="Mobile" /><strong><a href="<archive_url>">Mobile Version</a></strong></td>			<td class="thead" align="center" width="100"><img src="{$mybb->settings['bburl']}/{$theme['imgdir']}/icons/memberlist.png" title="Staff" /><strong><a href="{$mybb->settings['bburl']}/showteam.php">Staff</a></strong></td>
</tr><tr>
			
			<td class="thead" align="center"><img src="{$mybb->settings['bburl']}/{$theme['imgdir']}/icons/index.png"  title="Forum Index" /><strong><a href="{$mybb->settings['bburl']}/index.php">Forum</a></strong></td>
			<td class="thead" align="center"><img src="{$mybb->settings['bburl']}/{$theme['imgdir']}/icons/search.png"  title="Search" /><strong><a href="{$mybb->settings['bburl']}/search.php">{$lang->toplinks_search}</a></strong></td>

			<td class="thead" align="center"><img src="{$mybb->settings['bburl']}/{$theme['imgdir']}/icons/help.png"  title="Help" /><strong><a href="{$mybb->settings['bburl']}/misc.php?action=help">{$lang->toplinks_help}</a></strong></td>
	
</tr>
	</thead>
</table>
</div>
</td>
	</tr>
	</thead>
</table>
</div>
<div class='shr-bookmarks' >
<script>

function fbs_click() 
{
        u=location.href;
        t=document.title;
        window.open('http://www.facebook.com/sharer.php?u='+encodeURIComponent(u)+'&t='+encodeURIComponent(t),' sharer', 'toolbar=0, status=0, width=626, height=436');
        return false;
}

</script>



<div class="sharing-menu">

<ul class='socials' style="margin: auto auto;">

<li class='shr-facebook'><a href="location.href"onclick="return fbs_click()">Facebook</a></li>

<script>

function twitt_click() 

{

        u=location.href;

        t=document.title;

        window.open('http://twitthis.com/twit?url='+encodeURIComponent(u)+'&t='+encodeURIComponent(t));

        return false;

}

</script>

<li class='shr-twitter'><a onclick="return twitt_click()"/></a></li>
				
}
</script>
<li class='shr-twitter'><a onclick="return twitt_click()"/></a></li>

<li
class='shr-delicious'><a href="http://delicious.com/save" onclick="window.open('http://delicious.com/save?v=5&noui&jump=close&url='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title), 'delicious','toolbar=no,width=550,height=550'); return false;"></a></li>

<li
class='shr-digg'><a href="http://digg.com/submit" onclick="window.open('http://digg.com/submit?url='+encodeURIComponent(location.href)+'&topic=playable_web_games&title='+encodeURIComponent(document.title), 'digg','toolbar=no,width=550,height=550'); return false;"></a></li>

<li
class='shr-googlebuzz'><a onclick="window.open('http://www.google.com/reader/link?url='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title), 'google buzz','toolbar=no,width=550,height=550'); return false;"></a></li>

<li
class='shr-reddit'><a href="http://reddit.com/submit" onclick="window.location = 'http://reddit.com/submit?url=' + encodeURIComponent(window.location); return false"></a></li>

<li
class='shr-stumbleupon'><a onclick="window.open('http://www.stumbleupon.com/submit?url='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title), 'stumbleupon','toolbar=no,width=550,height=550'); return false;"></a></li>

<li
class='shr-yahoobuzz'><script type="text/javascript"
	src="http://d.yimg.com/ds/badge2.js"
	badgetype="text-votes">
encodeURIComponent(location.href)
</script>
</li>

<li
class='shr-mixx'><a href="http://www.mixx.com/submit?page_url=" onclick="window.open('http://www.mixx.com/submit?page_url='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title), 'mixx','toolbar=no,width=550,height=550'); return false;"></a></li>

</ul></div>
</div>

		<div id="content">
			<navigation>

			{$pm_notice}
			{$bannedwarning}
			{$bbclosedwarning}
			{$unreadreports}