My problem with the codes of the translator help me thank you in advance

Views: 152

Reply to This

Replies to This Discussion

Sorry, I do not know. These custom codes can be impacted by your current custom codes. I answered this here:

#google_translate_element {height:26px!important;margin-top:3px;}
.goog-te-gadget-simple {padding:0px!important;height:24px!important;}
.goog-te-gadget img {float: left;}
.goog-te-menu-value  {margin-top:-5px!important;}

<!-- Google Translate -->
<div id="tmp_translatenbar" style="display:none;">
<div id="google_translate_element"></div>
<script type="text/javascript">// <![CDATA[
function googleTranslateElementInit() {
new google.translate.TranslateElement({
pageLanguage: 'en',
layout: google.translate.TranslateElement.InlineLayout.SIMPLE
}, 'google_translate_element');
// ]]></script>
<script src="//" type="text/javascript">// <![CDATA[

// ]]></script>
<script type="text/javascript">
if (typeof(x$) != 'undefined') {
x$("#xn_bar_menu_tabs").prepend('<div style="float:left;padding-right:20px;" id="translatenbar"></div>');
var t_translatenbarCode = document.getElementById('tmp_translatenbar');
var translatenbarCode = document.getElementById('translatenbar');
translatenbarCode.innerHTML = t_translatenbarCode.innerHTML;
<!-- End Google Translate -->

Read more:
Under Creative Commons License: Attribution Non-Commercial No Derivatives
Follow us: @jensocial on Twitter | JenSocialTips on Facebook
<!-- NingBar Navigation Links for Member Account Box -->
.lsep { margin:10px 2px 0;float:left;color:#ccc;font-size:110%; }
.account-links { display:none!important; }
.ningbarlink a { text-decoration:underline!important; }
.ningbarlink img { margin-top:7px!important; }

<script type="text/javascript">
var getinbox;
var getalert;
var getrequest;

if (ning.CurrentProfile != null ) {
getinbox = x$('.xj_messages_present .xj_count_unreadMessages').html();
getalert = x$('.xj_alerts_present .xj_count_unreadAlerts').html();
getrequest  = x$('.xj_count_friendRequestsReceived .xj_multiple_friend_requests a').html();

var NingBarLinks = '<li id="ninbox" class="ningbarlink"><a href="/profiles/message/listInbox"><img alt="Inbox" src="">Inbox</a></li>' + '<span class="lsep">|</span>'
+ '<li id="nalert" class="ningbarlink"><a href="/profiles/message/listAlerts"><img alt="Alerts" src="">Alerts</a></li>' + '<span class="lsep">|</span>'
+ '<li id="nfriends"  class="ningbarlink"><a href="/profiles/friend/list?my=1"><img alt="Friends"src="" width="16">Friends</a></li>' + '<span class="lsep">|</span>'
+ '<li class="ningbarlink"><a href="/main/invitation/new"><img src="" width="16">Invite</a></li>' + '<span class="lsep">|</span>'
+ '<li class="ningbarlink"><a href="/profiles/settings/editProfileInfo"><img src="" width="16">Settings</a></li>';
x$('#xn_bar #xn_bar_menu #xn_bar_menu_tabs').prepend(NingBarLinks);

var ninboxa = x$('#ninbox a').html();
var nalerta = x$('#nalert a').html();
var nfriendsa = x$('#nfriends a').html();

if(getinbox > '0') x$('#ninbox a').html(ninboxa + ' ( ' + getinbox + ' ) ');
if(getalert > '0') x$('#nalert a').html(nalerta + ' ( ' + getalert + ' ) ');
if(getrequest.indexOf( 'xj_count') <= 0) x$('#nfriends a').html(nfriendsa + '  ' + getrequest);
<!-- End NingBar Navigation Links -->


Custom Code

I would need to see the code "installed" on a live site.

If you have any of the "copyright" text in your code, it will break it. Anywhere you see anything like this:

Read more:
Under Creative Commons License: Attribution Non-Commercial No Derivatives
Follow us: @jensocial on Twitter | JenSocialTips on Facebook

Hope that helps,

The translator and disappeared completely in this way JenSocial

If you will send me the signin credentials for your test site, to my Inbox on JenSocial, I will take a look at your code.





© 2019   Created by JenSocial.   Powered by

Badges  |  Report an Issue  |  Terms of Service

VIP Ning Tips