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.

Help with Homepage Code

View previous topic View next topic Go down

Solved Help with Homepage Code

Post by Legionheart on March 2nd 2016, 1:50 am

@Ange Tuteur
I need a bit of help fixing a code that was created it shows 'undefined' for everything I will place the code below.
Image of what it looks like: https://gyazo.com/648e579c5f4a2ca1172e9a5122e78bd9
Here is a link to my forum: http://www.therelaxationzone.net/
Spoiler:
Code:
<style type="text/css">#userProfile { font-size:11px; position:relative; margin-top:30px; margin-bottom:10px; padding:3px; }
#userProfile .leftCol { float:left; text-align:center; width:20%; }
#userProfile .rightCol { float:left; width:25%; }
#userName { background:#ECF3F7; color:#0076B1; font-weight:bold; font-family:"Trebuchet MS", Verdana, Arial, Sans-serif; border-radius:3px 3px 0 0; position:absolute; left:3px; top:-18px; padding:0 12px; line-height:18px; }
#userName span { font-weight:normal }
#userAvatar img { max-width:100px }
#userAvatar { display:inline-block; overflow:hidden; min-height:100px; min-width:100px; }
#userProfile .title { color:#0076B1; font-weight:bold; border-bottom:1px solid #0076B1; padding-bottom:3px; margin-bottom:3px; width:90%; }
#userProfile .statLabel { display:inline-block; width:85px; font-weight:bold; text-align:right; margin-right:6px; }</style><script type="text/javascript">// <![CDATA[
(function(J, U, L) {
  var main = document.getElementById('main-content'),
      homepage = J('.introduction', main)[0],
      profil;
 
  if (U.session_logged_in) {
    profil = document.createElement('DIV');
    profil.id = 'userProfile';
    profil.className = 'panel introduction';
    profil.innerHTML = '<div id="userName"><span>Logged in as </span>' + U.username + '</div><div class="leftCol"><span id="userAvatar">' + U.avatar + '</span></div><div class="rightCol"><div class="title">General</div><div><span class="statLabel">Rank : </span>' + L.rank_title + '</div><div><span class="statLabel">' + L.Posts + ' : </span>' + U.user_posts + '</div><div><span class="statLabel">' + L.PMs + ' : </span>' + U.user_nb_privmsg + '</div><div><span class="statLabel">' + L.Reputation + ' : </span>' + U.point_reputation + '</div></div><div class="rightCol"><div class="title">Profile</div><div><a href="/u' + U.user_id + '">' + L.See_my_profile + '</a></div><div><a href="/profile?mode=editprofile">' + L.Edit_profile + '</a></div><div><a href="/privmsg?folder=inbox">' + L.All_PMs + '</a></div><div><a href="/profile?mode=editprofile&page_profil=notifications">' + L.Notif_see_all + '</a></div></div><div class="rightCol"><div class="title">Search</div><div><a href="/sta/' + U.username + '">' + L.All_Topics + '</a></div><div><a href="/spa/' + U.username + '">' + L.All_Messages + '</a></div><div><a href="/search?search_id=watchsearch">' + L.js_topics_followed + '</a></div><div><a href="/search?search_id=newposts">View new posts</a></div></div><div class="clear"></div>';
    main.insertBefore(profil, homepage);
  }
  // par ange tuteur
})(jQuery, _userdata, _lang);
//]]></script>

Thank You,
Distruktion1408


Last edited by Distruktion1408 on March 2nd 2016, 6:24 pm; edited 1 time in total

Legionheart
Forum Reviewer
Forum Reviewer

Male Posts : 415
Reputation : 67
Language : English
Location : San Venganza

http://forumrate.forumotion.com/

Back to top Go down

Solved Re: Help with Homepage Code

Post by SLGray on March 2nd 2016, 4:09 am

Where did you get this code?


When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.


SLGray
Administrator
Administrator

Male Posts : 36663
Reputation : 2444
Language : English
Location : United States

http://ztwds.forumotion.com/

Back to top Go down

Solved Re: Help with Homepage Code

Post by Legionheart on March 2nd 2016, 4:23 am

@SL Gray. I used to work at a forum called Pendulums Duel Academy. I asked the owner if I could use that code. I'm not sure where he got it from. The place was open long before I got there and I don't know where he got it from. I assumed since he had it, it was ok for him to give it to me to use.

Legionheart
Forum Reviewer
Forum Reviewer

Male Posts : 415
Reputation : 67
Language : English
Location : San Venganza

http://forumrate.forumotion.com/

Back to top Go down

Solved Re: Help with Homepage Code

Post by SLGray on March 2nd 2016, 4:26 am

My username does not have a space @SLGray .

Was the forum hosted by Forumotion?


When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.


SLGray
Administrator
Administrator

Male Posts : 36663
Reputation : 2444
Language : English
Location : United States

http://ztwds.forumotion.com/

Back to top Go down

Solved Re: Help with Homepage Code

Post by Legionheart on March 2nd 2016, 4:28 am

Yes it is hosted by forumotion. The link was http://pendulumsduelacademy.forumotion.com/

Legionheart
Forum Reviewer
Forum Reviewer

Male Posts : 415
Reputation : 67
Language : English
Location : San Venganza

http://forumrate.forumotion.com/

Back to top Go down

Solved Re: Help with Homepage Code

Post by Ange Tuteur on March 2nd 2016, 11:05 am

Hey,

This module needs the toolbar enabled for some various object data. Admin Panel > Modules > Toolbar > Activate

Ange Tuteur
Forumaster

Male Posts : 13028
Reputation : 2704
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

Solved Re: Help with Homepage Code

Post by Legionheart on March 2nd 2016, 6:24 pm

@Ange Tuteur wrote:Hey,

This module needs the toolbar enabled for some various object data. Admin Panel > Modules > Toolbar > Activate
Thanks for the Help

Legionheart
Forum Reviewer
Forum Reviewer

Male Posts : 415
Reputation : 67
Language : English
Location : San Venganza

http://forumrate.forumotion.com/

Back to top Go down

Solved Re: Help with Homepage Code

Post by SLGray on March 2nd 2016, 7:44 pm

Topic solved and archived


When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.


SLGray
Administrator
Administrator

Male Posts : 36663
Reputation : 2444
Language : English
Location : United States

http://ztwds.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