MyBB Community Forums

Full Version: Get Error with Ajdija Theme Help!
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,

I just setup a new forum and installed this cool theme:
http://mods.mybb.com/view/4-0

But there is some error text below the logo:
encodeURIComponent(location.href)

And nothing happens when I click on those social bookmark links at the top left area below the error. I get empty pop-ups.

Here's the forum:
http://www.BackLinksTalk.com

Help Please
This should belong to here: http://community.mybb.com/forum-10.html

In your header template, there is encodeURIComponent(location.href)
code written, try to delete this code from that template.
(2011-10-22, 05:38 PM)Yaldaram Wrote: [ -> ]This should belong to here: http://community.mybb.com/forum-10.html

In your header template, there is encodeURIComponent(location.href)
code written, try to delete this code from that template.

Thanks Yaldaram, you got +rep Wink

So anyone out there can help me with the social bookmark links?
Seems some work in firefox and some are linking to expired/old urls
I have like 6 of those = "encodeURIComponent(location.href)" Which one do I remove from header template?

Here's the code =

<div id="container"> <a name="top" id="top"></a> <div id="header"><table class="tborder" border="0" cellpadding="4" 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" alt="News" title="News" /><strong><a href="{$mybb->settings['bburl']}/portal.php">News</a></strong></td> <td class="thead" align="center"><img src="{$mybb->settings['bburl']}/{$theme['imgdir']}/icons/mobile.png" alt="Version for Mobile Devices" title="Mobile" /><strong><a href="<archive_url>">Mobile</a></strong></td> <td class="thead" align="center" width="100"><img src="{$mybb->settings['bburl']}/{$theme['imgdir']}/icons/memberlist.png" alt="Forum Staff" 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" alt="Forum Index Page" title="Forum" /><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" alt="Search" 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" alt="Help Section" 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()"/></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><liclass='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><liclass='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><liclass='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><liclass='shr-reddit'><a href="http://reddit.com/submit" onclick="window.location = 'http://reddit.com/submit?url=' + encodeURIComponent(window.location); return false"></a></li><liclass='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>encodeURIComponent(location.href)</script></li><liclass='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}
^ all above code needs to be re-written by an experienced ... ( eg. <liclass= should be <li class= )
The whole code is bumbled and jumbled, it needs to be re-written.
hmmm where can I get someone to rewrite this for me for a fee?
replace with below code

<div id="container"> 
<a name="top" id="top"></a> 
<div id="header"> 
<table class="tborder" border="0" cellpadding="4" 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" alt="News" title="News" /> 
<strong><a href="{$mybb->settings['bburl']}/portal.php">News</a></strong> 
</td> 
 <td class="thead" align="center"><img src="{$mybb->settings['bburl']}/{$theme['imgdir']}/icons/mobile.png" alt="Version for Mobile Devices" title="Mobile" /> 
<strong><a href="<archive_url>">Mobile</a></strong> 
</td> 
 <td class="thead" align="center" width="100"> 
<img src="{$mybb->settings['bburl']}/{$theme['imgdir']}/icons/memberlist.png" alt="Forum Staff" 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" alt="Forum Index Page" title="Forum" /> 
<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" alt="Search" 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" alt="Help Section" 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()"/></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> 
<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> 
<!-- LINE REMOVED --> 
<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} 
Quote:replace with below code

WOW Ranjani I love you man Big Grin

How much do I owe you?

It's working now without errors = www.backlinkstalk.com