The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

Avatar can't be seen

View previous topic View next topic Go down

Solved Avatar can't be seen

Post by Guest on June 28th 2015, 12:49 pm

Just changed my forum version from phpbb2 to punbb.
On my test forum the skin worked okay, but when I copied everything into my forum it became buggy. o.o
The avatars at the top right corner don't load.
    

Test forum: http://boomboom.ohmylife.net/
Forum: http://tophun.net/


What could cause the problem?  scratch

Guest
Guest


Back to top Go down

Solved Re: Avatar can't be seen

Post by Ange Tuteur on July 1st 2015, 8:49 am

@Diana is it using any JavaScript for adding the avatar ? From what I can tell, the only JS I see attached to it is for the menu popup.

I can give you a temp solution using JavaScript though, if you want.
( JS code management > Create a new script )

Placement : All pages
Code:
$(function() {
  var a = document.getElementById('gt_ava'), b = document.getElementById('usavatar'), c = document.createElement('SPAN');
  c.innerHTML = _userdata.avatar;
  a && a.appendChild(c);
  b && b.appendChild(c.cloneNode(true));
});

Ange Tuteur
Forumaster

Male Posts : 13021
Reputation : 2683
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

Solved Re: Avatar can't be seen

Post by Guest on July 1st 2015, 8:40 pm

I don't know if it's using javascript for that. ._.
These 2 scripts are used for this theme:
Spoiler:

Code:
$(document).ready(function(){$(window).scroll(function(){var scrollTop=((window.scrollY-0));if($(this).scrollTop()<102){$("nav, .left-side_nav").css('top',(102-(scrollTop))).removeClass('justthumb');$("nav #mesg_noti").slideUp('fast');$("#chat_hangout, .full_hangout").css('top',146)}if($(this).scrollTop()>102){$("nav, .left-side_nav").css('top',0).addClass('justthumb');$("nav #mesg_noti").slideDown('fast');$("#user_panel").fadeOut('fast');$(".full_hangout").css('top',44)}if($(this).scrollTop()<352){$("header").removeClass('small_info').parent().css('padding-top',0);$("#jump_top").fadeOut('fast')}if($(this).scrollTop()>352){$("header").addClass('small_info').parent().css('padding-top',354);$("#jump_top").fadeIn('fast')}})});$(document).ready(function(){var curlink=location.href;if((curlink.indexOf('wall')>-1)&&(curlink.indexOf('u')>-1)){var rdt=curlink.replace("wall","");location.href=rdt}if((curlink.indexOf('stats')>-1)&&(curlink.indexOf('u')>-1)){var rdt=curlink.replace("stats","");location.href=rdt}if((curlink.indexOf('friends')>-1)&&(curlink.indexOf('u')>-1)){var rdt=curlink.replace("friends","");location.href=rdt}if((curlink.indexOf('contact')>-1)&&(curlink.indexOf('u')>-1)){var rdt=curlink.replace("contact","");location.href=rdt}if(curlink.indexOf('?tt=1')>-1){var gulink=curlink.replace("?tt=1","")}else{var gulink=curlink}var wheight=document.documentElement.clientHeight;$("#nav_current").hover(function(){$('.left-side_nav').animate({left:'0px'},100)});$(".left-side_nav").hover(function(){$('.left-side_nav').animate({left:'0px'},100)},function(){$('.left-side_nav').animate({left:'-270px'},100)});$(".g_search_box").submit(function(e){var keyword=$(this).children('input#g_search_input').val();$("#gkw").html(keyword);if(keyword!=''){$('.search_rs_box').show();$(this).children('input#g_search_input').removeClass('error').focus()}else{$('.search_rs_box').hide();$(this).children('input#g_search_input').addClass('error').focus()}$(".put_the_rs").empty();$(".search_rs_box").append('<div id="no_rs_box" class="still_loading nodis">Loading...</div>');$('.still_loading').fadeIn('fast');$.get("/search?search_keywords="+keyword,function(data){$(data).find(".statused").children().appendTo(".put_the_rs");$(".still_loading").fadeOut("slow",function(){$(this).remove();if($(".put_the_rs").html()==''){$(".put_the_rs").append('<div id="no_rs_box">No results for keyword'+keyword+'!</div>')}});$(".put_the_rs tr").children(".tc2,.tcr").remove();$(".put_the_rs tr .tcl").children("img").remove();$(".put_the_rs tr").children(".tc3").prepend('&nbsp; - ');$(".put_the_rs tr").children(".tc3:last-child").prev('.tc3').append(' reply');$(".put_the_rs tr").children(".tc3:last-child").append(' view')});return false});$('#close_srch').live("click",function(){$('.search_rs_box').fadeOut('fast',function(){$(".put_the_rs").empty()})});$("#turn_chat, #close_hangout").live("click",function(){$("#chat_hangout").toggle().removeClass("full_hangout")});$("#full_hangout").live("click",function(){var scrollTop=((window.scrollY-0));$("#chat_hangout").toggleClass("full_hangout").removeClass("hide_hangout");if(scrollTop>102){$("#chat_hangout").css('top',146);$(".full_hangout").css('top',44)}else{$("#chat_hangout").css('top',146)}});$("#hide_hangout").live("click",function(){$("#chat_hangout").toggleClass("hide_hangout");if($("#chat_hangout").hasClass("hide_hangout")){$("#chat_hangout").css('top',(wheight-39)).removeClass("full_hangout")}else{$("#chat_hangout").css('top',146)}});$("#show_s_option").live("click",function(){$("#stream_option").fadeToggle('fast')});$("#stream_option .str_button").live("click",function(){$("#stream_option .str_button").removeClass("active");$("#stream_option").fadeOut('fast');$(this).addClass("active")});$(".str_button.tscol").live("click",function(){$("#wrapper").removeClass("ocolonly")});$(".str_button.oscol").live("click",function(){$("#wrapper").addClass("ocolonly")});$("#gt_ava").live("click",function(){$("#user_panel").fadeToggle('fast')});$(".collapse_boxes").live("click",function(){$(this).children("b").toggle();$(this).parent().parent(".boxes").children("#all_boxes").slideToggle()});$("#control_m_tab span").live("click",function(){var datam=$(this).attr("data-module");var label=$(this).text();var cdatam=$(".a_box.current_tab").attr("data-module");var clabel=$(".a_box.current_tab #abox_descript h3 span").text();$(".a_box.current_tab #abox_descript h3 span").html(label);$(".a_box.current_tab").attr("data-module",datam);$("#control_m_tab").append('<span data-module="'+cdatam+'">'+clabel+'</span>');$(this).remove();var taken=$(datam+" .content_to_take").html();$(".a_box.current_tab .current_content").html(taken)});$("#profile_username").live("mouseover",function(){$(this).children(".profile_box").fadeIn("fast")});$("#profile_username").live("mouseleave",function(){$(this).children(".profile_box").hide()});$('strong').each(function(i){if($(this).html()=="Advanced Search"){$(this).html("Advanced Search")}});if($("title").html()=="Advanced Search"){$("title").html("Advanced Search")}$(".glogin").live("click",function(){$(".g_login_panel").toggle();$("body").toggleClass("noscroll")});$('input[value="gcover_photo"]').attr('value','gcover_photo').hide();$('.profile_box img[alt="gcover_photo"]').each(function(i){var gcover=$(this).attr("src");$(this).parent().parent(".profile_box").children("#pcover_box").css("background-image","url("+gcover+")");$(this).parent().remove()});$('#profile-advanced-left img[alt="gcover_photo"]').each(function(i){var gcover=$(this).attr("src");$('header').css("background-image","url("+gcover+")");$(this).parent().parent().parent().next('.separator').remove();$(this).parent().parent().parent().remove();$(".center_nav li.active").html('<a direction="#goto_profile">Profile</a>');$(".center_nav li.active").after('<li><a direction="#goto_wall"><span>Wall</span></a></li><li><a direction="#goto_stats"><span>Stats</span></a></li><li><a direction="#goto_cont"><span>Contact</span></a></li><li><a direction="#goto_friend"><span>Friend</span></a></li>');$('.center_nav li.activetab').remove();$('.center_nav a[href="/#goto_stats"],.center_nav a#show_s_option,#profile-advanced-left #tabs').parent().remove()});$("#profile-advanced-layout").prepend('<a class="fake_pos" id="goto_profile"></a>');$('#profile-advanced-right').each(function(i){if($('#profile-advanced-add').length>0){var gusername=$(this).children("#profile-advanced-add").next(".module").children('.main-head').children('.h3').html();$('#n-site_infom h1').html('<a href="'+gulink+'">'+gusername+'</a>');var guserava=$(this).children("#profile-advanced-add").next(".module").children('.main-head').next('.main-content').children('img:first').attr("src");$('#n-site_logo img').attr('src',guserava);$(this).children("#profile-advanced-add").next(".module").remove();$(this).children("#profile-advanced-add").children('br').remove();$(this).children("#profile-advanced-add").children('a').after('&nbsp;');$(this).children("#profile-advanced-add").children('a').addClass('button').addClass('flat');$(this).children("#profile-advanced-add").children('a:last').addClass('red');var guadd=$(this).children("#profile-advanced-add").html();$('#n-site_infom p').html('Thà nh viên cᝧa diᝅn đà n!<br/>'+guadd)}else{var gusername=$(this).children(".module:first").children('.main-head').children('.h3').html();$('#n-site_infom h1').html('<a href="'+gulink+'">'+gusername+'</a>');var guserava=$(this).children(".module:first").children('.main-head').next('.main-content').children('img:first').attr("src");$('#n-site_logo img').attr('src',guserava);$(this).children(".module:first").remove();$('#n-site_infom p').html('Members of the forum!')}var fr_temp=$(this).children(".module:last").html();$("#profile-advanced-left").append('<div id="pmd_wall" class="gfriend_module"><div class="main-head"><a class="fake_pos" id="goto_wall"></a>Wall</div></div><div id="pmd_stats" class="gfriend_module"><div class="main-head"><a class="fake_pos" id="goto_stats"></a>Statistic</div></div><div id="pmd_cont" class="gfriend_module"><div class="main-head"><a class="fake_pos" id="goto_cont"></a>Contact</div></div><div class="gfriend_module"><a class="fake_pos" id="goto_friend"></a>'+fr_temp+'</div>');$(this).children(".module:last").remove();$.get(gulink+"wall",function(data){$(data).find("#profile-advanced-details:first").appendTo("#pmd_wall");$(".new-message a").addClass('button flat blue').html('Send new message').css('margin-bottom',10)});$.get(gulink+"stats",function(data){$(data).find("#profile-advanced-details:first").appendTo("#pmd_stats")});$.get(gulink+"contact",function(data){$(data).find("#profile-advanced-details:first").appendTo("#pmd_cont")})});$('a').each(function(i){if($(this).html()=="Add to my friends list"){$(this).html("Add to friends list")}if($(this).html()=="Add to my foes list"){$(this).html("Add to my foes list")}});$('#gquickreply .frm-buttons input[type="submit"]').addClass('flat');$('#gquickreply .frm-buttons input[value="Send"]').attr('value','Reply').addClass('blue');$(".posting [href*='/privmsg?mode=post']").addClass('button flat blue').html('Send new message')});jQuery(document).ready(function($){$('*').click(function(){$('body').scrollTo($(this).attr('direction'),600);return false})});


Spoiler:

Code:
;(function($){var $scrollTo=$.scrollTo=function(target,duration,settings){$(window).scrollTo(target,duration,settings)};$scrollTo.defaults={axis:'xy',duration:parseFloat($.fn.jquery)>=1.3?0:1};$scrollTo.window=function(scope){return $(window)._scrollable()};$.fn._scrollable=function(){return this.map(function(){var elem=this,isWin=!elem.nodeName||$.inArray(elem.nodeName.toLowerCase(),['iframe','#document','html','body'])!=-1;if(!isWin)return elem;var doc=(elem.contentWindow||elem).document||elem.ownerDocument||elem;return $.browser.safari||doc.compatMode=='BackCompat'?doc.body:doc.documentElement})};$.fn.scrollTo=function(target,duration,settings){if(typeof duration=='object'){settings=duration;duration=0}if(typeof settings=='function')settings={onAfter:settings};if(target=='max')target=9e9;settings=$.extend({},$scrollTo.defaults,settings);duration=duration||settings.speed||settings.duration;settings.queue=settings.queue&&settings.axis.length>1;if(settings.queue)duration/=2;settings.offset=both(settings.offset);settings.over=both(settings.over);return this._scrollable().each(function(){var elem=this,$elem=$(elem),targ=target,toff,attr={},win=$elem.is('html,body');switch(typeof targ){case'number':case'string':if(/^([+-]=)?\d+(\.\d+)?(px|%)?$/.test(targ)){targ=both(targ);break}targ=$(targ,this);case'object':if(targ.is||targ.style)toff=(targ=$(targ)).offset()}$.each(settings.axis.split(''),function(i,axis){var Pos=axis=='x'?'Left':'Top',pos=Pos.toLowerCase(),key='scroll'+Pos,old=elem[key],max=$scrollTo.max(elem,axis);if(toff){attr[key]=toff[pos]+(win?0:old-$elem.offset()[pos]);if(settings.margin){attr[key]-=parseInt(targ.css('margin'+Pos))||0;attr[key]-=parseInt(targ.css('border'+Pos+'Width'))||0}attr[key]+=settings.offset[pos]||0;if(settings.over[pos])attr[key]+=targ[axis=='x'?'width':'height']()*settings.over[pos]}else{var val=targ[pos];attr[key]=val.slice&&val.slice(-1)=='%'?parseFloat(val)/100*max:val}if(/^\d+$/.test(attr[key]))attr[key]=attr[key]<=0?0:Math.min(attr[key],max);if(!i&&settings.queue){if(old!=attr[key])animate(settings.onAfterFirst);delete attr[key]}});animate(settings.onAfter);function animate(callback){$elem.animate(attr,duration,settings.easing,callback&&function(){callback.call(this,target,settings)})}}).end()};$scrollTo.max=function(elem,axis){var Dim=axis=='x'?'Width':'Height',scroll='scroll'+Dim;if(!$(elem).is('html,body'))return elem[scroll]-$(elem)[Dim.toLowerCase()]();var size='client'+Dim,html=elem.ownerDocument.documentElement,body=elem.ownerDocument.body;return Math.max(html[scroll],body[scroll])-Math.min(html[size],body[size])};function both(val){return typeof val=='object'?val:{top:val,left:val}}})(jQuery);



The code you provided works greatly, thank you very much! Mr. Green
Any chance to make that red part into a working new PM counter? fufufu

Guest
Guest


Back to top Go down

Solved Re: Avatar can't be seen

Post by darkline33 on July 2nd 2015, 4:09 pm

@Diana Have you been fired from Forumotion? Sad

darkline33
Forumember

Male Posts : 110
Reputation : 2
Language : Dutch
Location : Rekt

http://golddddddden-apple.actieforum.com/

Back to top Go down

Solved Re: Avatar can't be seen

Post by Guest on July 2nd 2015, 7:02 pm

Nope, it was my decision to quit. But I would not like to discuss the whys and reasons further, hope you understand. 



By the way, if no solution can be given for the red part thing, the topic can be closed.

Guest
Guest


Back to top Go down

Solved Re: Avatar can't be seen

Post by Ange Tuteur on July 3rd 2015, 2:43 am

Sorry for delay, but I found the script which puts everything together. It's on both your test and full forum :
Code:
$(document).ready(function () {
  $.get('/memberlist', function (data) {
    $(data).find('#take_useravatar').children().appendTo('#gt_ava,#usavatar');
    $(data).find('#take_username').appendTo('#gt_uname,#usname');
    $(data).find('#take_usermsg').appendTo('#mesg_noti,.mesg_noti');
    var msgtitle = $(data).find('#take_usermsg').html();
    if (msgtitle == 0) {
      $('#mesg_noti,.mesg_noti').addClass('grey');
    }
    $('#mesg_noti').attr('title', 'Thông báo tin nhắn');
  });
  $.get('/profile?mode=editprofile', function (data) {
    var userlink = $(data).find('#ucp .main-head .subtitle a').attr('href');
    $('.left-side_nav a.profile').attr('href', userlink);
  });
  var logout_link = $('.orig_nav li a#logout').attr('href');
  $('.glogout').attr('href', logout_link);
});

The problem is that the necessary elements are missing. For example, when I do a search for #take_useravatar on the test forum I instantly find the necessary data :


For some reason on the main forum this node doesn't exist. ( denoted by red outline )


I'm thinking it might be related to the templates. Have you published any which contains the following : take_useravatar, take_username, or take_usermsg. Judging by where it is, I'm going to take a guess that it's in the overall_header template.

Ange Tuteur
Forumaster

Male Posts : 13021
Reputation : 2683
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

Solved Re: Avatar can't be seen

Post by Guest on July 3rd 2015, 9:47 am

Oooh, I don't know what the problem must be, I copied everything from the test forum to my forum the same way. o.o
And yep, you're right the overall_header has those things. o.o Should they be deleted? Or what?  mwii

Spoiler:
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="{S_CONTENT_DIRECTION}" id="min-width" lang="{L_LANG_HTML}" xml:lang="{L_LANG_HTML}" {NAMESPACE_FB_LIKE} {NAMESPACE_FB} {NAMESPACE_BBCODE}>
<head>
   <title id="title_tag">{SITENAME_TITLE}{PAGE_TITLE}</title>
   <meta http-equiv="content-type" content="text/html; charset={S_CONTENT_ENCODING}" />
   <meta http-equiv="content-script-type" content="text/javascript" />
   <meta http-equiv="content-style-type" content="text/css" />
   <!-- BEGIN switch_compat_meta -->
   <meta http-equiv="X-UA-Compatible" content="IE={switch_compat_meta.VERSION}" />
   <!-- END switch_compat_meta -->
   <!-- BEGIN switch_canonical_url -->
   <link rel="canonical" href="{switch_canonical_url.CANONICAL_URL}" />
   <!-- END switch_canonical_url -->
   {META_FAVICO}
   {META}
   {META_FB_LIKE}
   <meta name="title" content="{SITENAME_TITLE}{PAGE_TITLE}" />
   {T_HEAD_STYLESHEET}
   {CSS}
   <link rel="search" type="application/opensearchdescription+xml" href="/improvedsearch.xml" title="{SITENAME}" />
   <link rel="search" type="application/opensearchdescription+xml" href="{URL_BOARD_DIRECTORY}/search/improvedsearch.xml" title="{SEARCH_FORUMS}" />
   <script src="{JQUERY_PATH}" type="text/javascript"></script>
   <script src="{JS_DIR}{L_LANG}.js" type="text/javascript"></script>

   <!-- BEGIN switch_fb_login -->
   <script src="http://connect.facebook.net/{switch_fb_login.FB_LOCAL}/all.js" type="text/javascript"></script>
   <script src="{switch_fb_login.JS_FB_LOGIN}" type="text/javascript"></script>
   <!-- END switch_fb_login -->

   <!-- BEGIN switch_ticker -->
   <link type="text/css" rel="stylesheet" href="{JS_DIR}jquery/ticker/ticker.css" />
   <script src="{JS_DIR}jquery/ticker/ticker.js" type="text/javascript"></script>
   <!-- END switch_ticker -->

   <!-- BEGIN switch_ticker_new -->
   <script src="{JS_DIR}jquery/jcarousel/jquery.jcarousel.js" type="text/javascript"></script>
   <script type="text/javascript">//<![CDATA[
      /* Definir le sens de direction en fonction du panneau admin */
      var tickerDirParam = "{switch_ticker.DIRECTION}";
      var slid_vert = false;
      var auto_dir = 'next';
      var h_perso = parseInt({switch_ticker.HEIGHT});

      switch( tickerDirParam )
      {
         case 'top' :
            slid_vert = true;
            break;

         case 'left':
            break;

         case 'bottom':
            slid_vert = true;
            auto_dir = 'prev';
            break;

         case 'right':
            auto_dir = 'prev';
            break;

         default:
            slid_vert = true;
      }

      $(document).ready(function() {

         var width_max = $('ul#fa_ticker_content').width();
         var width_item = Math.floor(width_max / {switch_ticker.SIZE});

         if (width_max > 0)
         {
            $('#fa_ticker_content').css('display','block');

            $('ul#fa_ticker_content li').css('float','left').css('list-style','none').width(width_item).find('img').each(function () {
               if ($(this).width() > width_item)
               {
               var ratio      = $(this).width() / width_item;
               var new_height = Math.round($(this).height() / ratio);
               $(this).height(new_height).width(width_item);
               }
            });

            if (slid_vert)
            {
               var height_max = h_perso;

               $('ul#fa_ticker_content li').each( function () {
                  if ($(this).height() > height_max)
                  {
                     height_max = $(this).height();
                  }
               } );

               $('ul#fa_ticker_content').width(width_item).height(height_max).css('marginLeft','auto').css('marginRight','auto');
               $('ul#fa_ticker_content li').height(height_max);
            }

            $('#fa_ticker_content').jcarousel({
                  vertical: slid_vert,
               wrap: 'circular',
               auto: {switch_ticker.STOP_TIME},
               auto_direction: auto_dir,
            scroll: 1,
            size: {switch_ticker.SIZE},
            height_max: height_max,
            animation: {switch_ticker.SPEED}
            });
         }
         else
         {
            $('ul#fa_ticker_content li:not(:first)').css('display','none');
            $('ul#fa_ticker_content li:first').css('list-style','none').css('text-align','center');
         }
      });
   //]]>
   </script>
   <!-- END switch_ticker_new -->

   <script type="text/javascript">
   //<![CDATA[
   $(document).ready(function(){
      <!-- BEGIN switch_enable_pm_popup -->
         pm = window.open('{U_PRIVATEMSGS_POPUP}', '_faprivmsg', 'HEIGHT=225,resizable=yes,WIDTH=400');
         if(pm != null) { pm.focus(); }
      <!-- END switch_enable_pm_popup -->
      <!-- BEGIN switch_report_popup -->
         report = window.open('{switch_report_popup.U_REPORT_POPUP}', '_phpbbreport', 'HEIGHT={switch_report_popup.S_HEIGHT},resizable=yes,scrollbars=no,WIDTH={switch_report_popup.S_WIDTH}');
         if(report != null) { report.focus(); }
      <!-- END switch_report_popup -->
      <!-- BEGIN switch_ticker -->
         ticker_start({switch_ticker.HEIGHT}, {switch_ticker.SPACING}, {switch_ticker.SPEED}, '{switch_ticker.DIRECTION}', {switch_ticker.STOP_TIME});
      <!-- END switch_ticker -->
   });

   <!-- BEGIN switch_login_popup -->
      var logInPopUpLeft, logInPopUpTop, logInPopUpWidth = {LOGIN_POPUP_WIDTH}, logInPopUpHeight = {LOGIN_POPUP_HEIGHT}, logInBackgroundResize = false, logInBackgroundClass = false;
   <!-- END switch_login_popup -->

   <!-- BEGIN switch_login_popup -->
   $(document).ready( function() {
      $(window).resize(function() {
         var windowWidth = document.documentElement.clientWidth;
         var popupWidth = $("#login_popup").width();
         var mypopup = $("#login_popup");

         $("#login_popup").css({
         "left": windowWidth/2 - popupWidth/2
            });
      });
   });
   <!-- END switch_login_popup -->
   //]]>
   </script>
   {GREETING_POPUP}
   <!-- BEGIN switch_ticker_new -->
   <style>
   .jcarousel-skin-tango .jcarousel-item {
      text-align:center;
      width: 10px;
   }

   .jcarousel-skin-tango .jcarousel-item-horizontal {
      margin-right: {switch_ticker.SPACING}px;
   }

   .jcarousel-skin-tango .jcarousel-item-vertical {
      margin-bottom: {switch_ticker.SPACING}px;
   }
   </style>
   <!-- END switch_ticker_new -->
   {HOSTING_JS}
   <!-- BEGIN google_analytics_code -->
   <script type="text/javascript">
   //<![CDATA[
    var _gaq = _gaq || [];
    _gaq.push(["_setAccount", "{G_ANALYTICS_ID}"]);
    _gaq.push(["_trackPageview"]);
   _gaq.push(['_trackPageLoadTime']);

   <!-- BEGIN google_analytics_code_bis -->
   _gaq.push(['b._setAccount', '{G_ANALYTICS_ID_BIS}']);
   _gaq.push(['b._trackPageview']);
   <!-- END google_analytics_code_bis -->

    (function() {
      var ga = document.createElement("script"); ga.type = "text/javascript"; ga.async = true;
      ga.src = ("https:" == document.location.protocol ? "https://ssl" : "http://www") + ".google-analytics.com/ga.js";
      var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(ga, s);
    })();
   //]]>
   </script>
   <!-- END google_analytics_code -->
</head>

<body>
     <!-- BEGIN switch_user_logged_in -->
     <script type="text/javascript">
   $(document).ready(function(){
      $.get("/memberlist", function(data) {
         $(data).find("#take_useravatar").children().appendTo("#gt_ava,#usavatar");
         $(data).find("#take_username").appendTo("#gt_uname,#usname");
         $(data).find("#take_usermsg").appendTo("#mesg_noti,.mesg_noti");
         var msgtitle = $(data).find("#take_usermsg").html();
         if (msgtitle == 0) {
            $("#mesg_noti,.mesg_noti").addClass("grey");
         }
                $("#mesg_noti").attr("title","");
      });
      $.get("/profile?mode=editprofile", function(data) {
         var userlink = $(data).find("#ucp .main-head .subtitle a").attr('href');
         $(".left-side_nav a.profile").attr('href',userlink);
      });
             var logout_link = $('.orig_nav li a#logout').attr('href');
      $(".glogout").attr("href",logout_link);
   });
   </script>
     <!-- END switch_user_logged_in -->
     <!-- BEGIN switch_user_logged_out -->
   <div class="g_login_panel">
      <div id="head_g_login">
         <div class="right">
            Van pár profilod? &nbsp;<a href="#register" class="button_mini red">Készíts új profilt!</a>
            <button class="button_mini glogin">Go back</button>
         </div>
         <img src="http://i1370.photobucket.com/albums/ag257/AppleDrink/minitophunlogo_zpsd2lfj0hp.png" id="hg_logo"/>
      </div>
      <div class="gwrapp">
      <form class="glogin_form" action="{S_LOGIN_ACTION}" method="POST" name="form_login">
         <h2>Login</h2>
         <label for="gusername">Felhasználónév</label>
         <input type="text" id="gusername" name="username"/>
         <label for="gpassword">Jelszó</label>
         <input type="password" id="gpassword" name="password"/>
         <button type="submit" class="button_mini" name="login">Belépés</button>
                  
                 
                  
         <input type="checkbox" name="autologin" {AUTOLOGIN_CHECKED}/> Online maradok<br/>
         <a href="#">Nem tudsz belépni?</a>
           
                  
                  <br/><br/> <center> Vagy<br/><br/> <fb:login-button size="large" onlogin="window.location='/facebook_connect.forum'" scope="{switch_login.switch_fb_connect_login.L_FB_PERMISSIONS}" class="margTop4">{switch_login.switch_fb_connect_login.L_FB_LOGIN_BUTTON}</fb:login-button>
                  </center>
                  <br/>
      </form>
      <div class="stuff">
         <!-- Bạn có thể chỉnh sửa hoặc xoá code trong cặp thẻ nŕy theo ý muốn -->
         Semmi
         <!-- Bạn có thể chỉnh sửa hoặc xoá code trong cặp thẻ nŕy theo ý muốn -->
      </div>
      <ul id="gfoot">
         <li>©2013 MenOne</li>
                     <li>Code by Juskteez</li>
         <li><a href="">Terms of service</a></li>
         <li><a href="">Privacy Policy</a></li>
         <li><a href="">Help</a></li>
      </ul>
      </div>
   </div>
     <!-- END switch_user_logged_out -->
     <div class="search_rs_box">
      <p><button id="close_srch" class="right">Bezár</button>Kulcsszavak alapján "<i id="gkw"></i>"</p>
      <div class="put_the_rs">
      </div>
   </div>
      
      <div id="search_area">
                     <a href="{U_INDEX}" id="s-logo"><img src="http://i1370.photobucket.com/albums/ag257/AppleDrink/minitophunlogo_zpsd2lfj0hp.png" style="
    
    margin: -6px;
"/></a>
                     <form class="g_search_box" action="/search" method="GET">
            <input type="text" name="search_keywords" id="g_search_input"/>
            <button id="g_search_start" type="submit"><span></span></button>
         </form>
         <div class="user_controls">
                             <!-- BEGIN switch_user_logged_in -->
            <span id="gt_uname"></span>
            <button id="mesg_noti" title="Message notification" onclick="window.location='/privmsg?folder=inbox';"></button>
            <span id="gt_ava"><span id="gt_a_arrow"></span></span>
            <div id="user_panel">
               <div class="top_control">
                  <div id="usavatar">
                     <a href="/profile?mode=editprofile&page_profil=avatars">Változtass profil fotót</a>
                  </div>
                  <div id="usminfo">
                     <strong id="usname"></strong>
                     Admin
                     <p><a href="/profile?mode=editprofile&page_profil=signature">Aláírás szerkesztése</a></p>
                     <a href="/profile?mode=editprofile" class="button">Profil edit</a>
                  </div>
               </div>
               <div class="bottom_control">
                  <a href="login?logout" class="button right glogout">Kilépés</a>
                                                                               
                  <br class="clfloat"/>
                                       
               </div>
            </div>
                             <!-- END switch_user_logged_in -->
                             <!-- BEGIN switch_user_logged_out -->
                             <button class="button_mini red glogin">Belépés</button><a href="register" class="button_mini">Regisztráció</a>
                             <!-- END switch_user_logged_out -->
         </div>
      </div>
   <div class="left-side_nav">
      <ul>
         <li><a href="{U_INDEX}" class="dex_w_icon home"><span></span>Főoldal</a></li>
         <li><a href="#" class="dex_w_icon profile"><span></span>Profil</a></li>
         <li><a href="/search?search_id=activetopics" class="dex_w_icon popular"><span></span>Népszerű ma</a></li>
         <li><a href="/memberlist" class="dex_w_icon community"><span></span>Közösség</a></li>
                    <li><a href="/chatbox/index.forum" class="dex_w_icon hangouts" target="_blank"><span></span>Chat</a></li>
         <li><a href="/?mark=forums&tt=1" class="dex_w_icon neibor"><span></span>Megjelöl olvasottként</a></li>
         <li><a href="/profile?mode=editprofile&page_profil=preferences" class="dex_w_icon setting"><span></span>Beállítások</a></li>
      </ul>
   </div>
   <nav>
      <span id="nav_current" class="dex_w_icon"><b></b><span></span>Főoldal<i></i></span>
             <!-- BEGIN switch_user_logged_in -->
             <button id="turn_chat" class="dex_w_icon"><span></span>Chat</button>
      <button id="mesg_noti" class="mesg_noti" title="Messenger notification" onclick="window.location='/privmsg?folder=inbox';"></button>
             <!-- END switch_user_logged_in -->
      <ul class="center_nav">
         <li><a direction="#search_area">Keresés</a></li>
         <li class="active"><a href="{U_INDEX}#goto_forum" direction="#goto_forum">Fórum</a></li>
                     <li><a href="/memberlist#">Tagok</a></li>
         <li><a href="/groups#">Csoportok</a></li>
         <li><a href="{U_INDEX}#goto_stats" direction="#goto_stats">Statisztika</a></li>
      </ul>
   </nav>
   
      
   <!-- BEGIN hitskin_preview -->
   <div id="hitskin_preview" style="display: block;">
      <h1><img src="http://illiweb.com/fa/hitskin/hitskin_logo.png" alt="" /> Hit<em>skin</em>.com</h1>
      <div class="content">
         <p>
            {hitskin_preview.L_THEME_SITE_PREVIEW}
            <br />
            <span>{hitskin_preview.U_INSTALL_THEME}<a href="http://{hitskin_preview.U_RETURN_THEME}">{hitskin_preview.L_RETURN_THEME}</a></span>
         </p>
      </div>
   </div>
   <!-- END hitskin_preview -->

   <!-- BEGIN switch_login_popup -->
   <div id="login_popup" class="module main">
      <div id="login_popup_title" class="main-head">
         <div class="h3">{SITENAME}</div>
      </div>
      <div class="main-content">
         {LOGIN_POPUP_MSG}
         <div id="login_popup_buttons">
            <form action="{S_LOGIN_ACTION}" method="get">
               <input type="submit" class="button2" value="{L_LOGIN}" />
               <input type="button" class="button2" value="{L_REGISTER}" onclick="parent.location='{U_REGISTER}';" />
               <input id="login_popup_close" type="button" class="button2" value="{L_DONT_DISPLAY_AGAIN}" />
            </form>
         </div>
      </div>
   </div>
   <!-- END switch_login_popup -->

   <a id="top" name="top" accesskey="t"></a>

   <div class="minwidth_IE">
      <div class="layout_IE">
         <div class="container_IE">
                <header style="background-image: url(http://i61.tinypic.com/2rzyq2e.png);">
         <div class="info_tab">
            <div id="n-site_logo">
               <img src="{LOGO}" alt="{L_INDEX}"/>
            </div>
            <div id="n-site_infom">
                                     
                                     <h1><a href="{U_INDEX}">{L_INDEX}</a></h1>
               <p>
                                             <!-- BEGIN switch_desc -->
                  <small>{L_INDEX} | {switch_desc.SITE_DESCRIPTION}</small>
                                             <!-- END switch_desc -->
               </p>
                                     <ul class="nodis orig_nav">
                  <li>{GENERATED_NAV_BAR}</li>
               </ul>
            </div>
                          
                  
         
                          
         </div>
         
                  
                  
                  
                  
                  
                  
                  
                  
                  
                  
      </header>
            <div class="pun">
               <!-- BEGIN switch_ticker_new -->
               <div id="fa_ticker_block" style="padding-top:4px;">
                  <div class="module main">
                     <div class="main-content clearfix">
                        <div id="fa_ticker_container">
                           <ul id="fa_ticker_content" class="jcarousel-skin-tango" style="display: none;width: 100%;">
                              <!-- BEGIN ticker_row -->
                              <li>{switch_ticker.ticker_row.ELEMENT}</li>
                              <!-- END ticker_row -->
                           </ul>
                        </div>
                     </div>
                  </div>
               </div>
               <!-- END switch_ticker_new -->

               <!-- BEGIN switch_ticker -->
               <div id="fa_ticker_block" style="padding-top:4px;">
                  <div class="module main">
                     <div class="main-content clearfix">
                        <div id="fa_ticker_container">
                           <div id="fa_ticker" style="height:{switch_ticker.HEIGHT}px;">
                              <div class="fa_ticker_content">
                                 <!-- BEGIN ticker_row -->
                                 <div>{switch_ticker.ticker_row.ELEMENT}</div>
                                 <!-- END ticker_row -->
                              </div>
                           </div>
                        </div>
                     </div>
                  </div>
               </div>
               <!-- END switch_ticker -->

               <div id="page-body">
                  <div id="{ID_CONTENT_CONTAINER}"{CLASS_CONTENT_CONTAINER}>
                     <div id="outer-wrapper">
                        <div id="wrapper">
                           <div id="container">
                              <div id="content">
                                 <div id="modules_area">
                                    <!-- BEGIN giefmod_index1 -->
                                    {giefmod_index1.MODVAR}
                                    <!-- BEGIN saut -->
                                    <!-- END saut -->
                                    <!-- END giefmod_index1 -->
                                                                                             <br class="clfloat"/>
                                 </div>
                                 <div id="main">
                                    <div id="main-content">

<!-- BEGIN html_validation -->
                                    </div>
                                 </div>
                              </div>
                           </div>
                        </div>
                     </div>
                  </div>
               </div>
            </div>
         </div>
      </div>
   </div>
   
</body>
</html>
<!-- END html_validation -->

Guest
Guest


Back to top Go down

Solved Re: Avatar can't be seen

Post by Ange Tuteur on July 3rd 2015, 12:22 pm

This one is confusing, no ? Lol

hum.. that has all the script data, but it's missing the correct nodes. I'm sorry I didn't clarify this before, but try and search for the following phrase :

id="take_useravatar"

Try making the search on both the test forum and full forum. If it's not in the overall_header, it could be in one of the footer templates. I'm going to look over the test forum to see if I can find the exact location.. blackeye

EDIT :
Do you have any widgets on the test forum with this data ?

If not, try checking in the following templates :
• overall_footer_begin
• overall_footer_end

Ange Tuteur
Forumaster

Male Posts : 13021
Reputation : 2683
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

Solved Re: Avatar can't be seen

Post by Guest on July 4th 2015, 8:40 am

Ooooh I know it now! There was a widget on the test forum named "Login", but I couldn't edit it, deleted it and now it's nowhere and that made the testforum buggy too.  What can be done now?


Btw. I found a id="take_useravatar" here, dunno if still will be needed or not.  Lol

mod_login:

Code:
<div class="module main user_info_to_take nodis">
   <!-- BEGIN switch_profile -->
   <div class="main-head"><h3 id="take_username">{USERNAME}</h3></div>
   <div class="main-content clearfix details">
   <div class="left" id="take_useravatar">
      {USERNAME_AVATAR}
   </div>
   <dl class="left">
      <dt>{L_MESSAGES}: </dt>
      <dd> <strong>{NB_MESSAGES}</strong></dd>
      <dt>{L_PM}: </dt>
             <dd> <span id="take_usermsg">{NB_PM_UNREAD}</span> / {NB_PM_READ}</dd>
      <dd style="text-align: center;"><a href="{U_PROFILE}">{L_MY_PROFILE}</a></dd>
   </dl>
   </div>
   <!-- END switch_profile -->
</div>

Guest
Guest


Back to top Go down

Solved Re: Avatar can't be seen

Post by Ange Tuteur on July 4th 2015, 11:46 am

You found it, that's it !! cheers

You already have that published on your full forum, right ? If so, go to forum widget management and under "existing" widgets, drag and drop the "Log in" widget into an active column. Oh, and once this is done, you can remove the script I gave you before. Smile

Ange Tuteur
Forumaster

Male Posts : 13021
Reputation : 2683
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

Solved Re: Avatar can't be seen

Post by Guest on July 4th 2015, 5:01 pm

Oo, I thought the widget was gone forever, but it was there! Thanks for being patient. Lol

Solved!

Guest
Guest


Back to top Go down

Solved Re: Avatar can't be seen

Post by Ange Tuteur on July 4th 2015, 6:40 pm

Glad we figured it out, you're welcome. ^^

Topic archived

Enjoy your weekend. Smile

Ange Tuteur
Forumaster

Male Posts : 13021
Reputation : 2683
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum