Jump to content

[FEATURE] Show DNFs in profile


frinklabs

Recommended Posts

This is the code I used to get both "DNF logs written" and "Caches Hidden" on my profile.

 

<div class='mxStats' style='position:relative; top:-358px; left:268px; height:0px;'>
<div id='ctl00_ContentBody_ProfilePanel1_Panel_CachesFound' class='statbox' style='float:none; width:120px;'><strong>DNF Logs Written</strong> <img src='/images/icons/32/dnf.png' alt='' />
<span class='statcount'>78</span>
</div>
</div>
<div class='mxStats' style='position:relative; top:-358px; left:402px; height:0px;'>
<div id='ctl00_ContentBody_ProfilePanel1_Panel_CachesFound' class='statbox' style='float:none; width:120px;'><strong>Caches Hidden</strong> <img src='http://gsak.net/images/Hidden.gif' alt='' />
<span class='statcount'>16</span>
</div>
</div>

A few points worth noting:

 

1. It MUST be the first thing in your profile. Before anything like FSG. It does not work entered in an FSG notes section.

2. The two values "top:-xxx" need to be adjusted to line up with the other boxes. The value is dependent on the height of your profile picture.

3. If your profile pic is wide enough, the "Caches Hidden" box will overlap your picture. If this is a problem, edit your picture and add some white background to the top. This will effectively move your picture down so there isn't an obvious overlap. This, in turn, will change the offset you need. Trial and error is your friend.

4. I have used a modified version of the BadgeGen "Hides" badge for the hides icon. I have written to the author seeking permission to use it but have had no reply. If I get a reply refusing permission, that Icon will change without notice.

 

Enjoy.

Link to comment

This is the code I used to get both "DNF logs written" and "Caches Hidden" on my profile.

 

<div class='mxStats' style='position:relative; top:-358px; left:268px; height:0px;'>
<div id='ctl00_ContentBody_ProfilePanel1_Panel_CachesFound' class='statbox' style='float:none; width:120px;'><strong>DNF Logs Written</strong> <img src='/images/icons/32/dnf.png' alt='' />
<span class='statcount'>78</span>
</div>
</div>
<div class='mxStats' style='position:relative; top:-358px; left:402px; height:0px;'>
<div id='ctl00_ContentBody_ProfilePanel1_Panel_CachesFound' class='statbox' style='float:none; width:120px;'><strong>Caches Hidden</strong> <img src='http://gsak.net/images/Hidden.gif' alt='' />
<span class='statcount'>16</span>
</div>
</div>

A few points worth noting:

 

1. It MUST be the first thing in your profile. Before anything like FSG. It does not work entered in an FSG notes section.

2. The two values "top:-xxx" need to be adjusted to line up with the other boxes. The value is dependent on the height of your profile picture.

3. If your profile pic is wide enough, the "Caches Hidden" box will overlap your picture. If this is a problem, edit your picture and add some white background to the top. This will effectively move your picture down so there isn't an obvious overlap. This, in turn, will change the offset you need. Trial and error is your friend.

4. I have used a modified version of the BadgeGen "Hides" badge for the hides icon. I have written to the author seeking permission to use it but have had no reply. If I get a reply refusing permission, that Icon will change without notice.

 

Enjoy.

 

Awesome work, but with the new profile layout it's not working anymore (or better, it's still the old one!).

Seeing that on your profile you already adapted the code to the new layout can you please provide the code to everyone?

Thanks! :)

Link to comment

Try this:

 

<div class="mxStats" style="position:relative; top:-228px; left:412px;">
<div id="ctl00_ContentBody_ProfilePanel1_Panel_TrackableStats" class="stat">  |  
<img src="/images/icons/32/dnf.png" alt="" height="16" width="16"> 349 DNF</div>
</div>

Link to comment

This is what I used for the new layout. It looks OK on Firefox but the vertical bars are slightly out in Chrome and way out in my Android browser.

 

Cheers

 

Tony

 

<div class='stat' style='position:relative; top:-195px; left:66px; height:0px;'>
<img style='vertical-align:sub' src='/images/icons/32/dnf.png' alt='' height='16' width='16' />
80 DNF Logs
</div>
<div class='stat' style='position:relative; top:-195px; left:104px; height:0px;'>
  <img style='vertical-align:sub' src='http://gsak.net/images/Hidden.gif' alt='' height='16' width='16' />
 19 Caches Hidden
</div>

Link to comment

Bigmada: what browser do you use? Your added line with DNFs and hidden caches is shifted a little bit downwards from the correct position, it nearly touches the "E-mail address: Send message" line in IE 11 and FF 33.0 (it looks pretty much the same in both of them), I do not have any other browser to test with.

 

In a contrary, my profile (or Gill & Tony's) much likely looks weird in your browser, doesn't it? Different programs process CSS (and the whole DOM) differently sometimes.

Link to comment

Bigmada: what browser do you use? Your added line with DNFs and hidden caches is shifted a little bit downwards from the correct position, it nearly touches the "E-mail address: Send message" line in IE 11 and FF 33.0 (it looks pretty much the same in both of them), I do not have any other browser to test with.

 

In a contrary, my profile (or Gill & Tony's) much likely looks weird in your browser, doesn't it? Different programs process CSS (and the whole DOM) differently sometimes.

 

I'm using FireFox 33.0

 

This is what it looks like for me. The line is to the right to far on mine.

 

kNd2UM7.png

Link to comment

Wow, this is funny. :) I have FF 33.0 as well and I'm surprised to see from screenshots you attached that my profile looks the SAME WAY (the DNFs line shifted down) on your Firefox as yours is displayed on mine. :D Only Gill&Tony is consistent everywhere.

I don't get it...

 

I wonder if it has to do with the Location section and the edit profile link. Gill&Tony doesn't have a location listed and we only can see the edit link on our own page.

Link to comment

Ah, so it isn't just me that sees these things positioned in weird ways. Although what I see has worse positioning:

 

That's because your font size is larger than what the designers chose for us in the top section of the profile (I do not appreciate

this standard tiny font, but do not want to change it due to side effects this has)

and so less fits into the fixed width area.

Link to comment

Maybe the location really matters? Still awaiting confirmation from Bigmada as well.

Thanks Chrysalides - BTW you also think you tuned the position of your DNF's perfectly in your Firefox, right? :) So this is how it looks in mine:

 

8tbXDcR.png

*sigh* can't win. It looks fine on my setup on both Firefox and Chrome.

 

Ah, I get it now. When I view my own profile, I don't see "Send this person a friend request". Neither do anyone who's already my friend. So I need to determine if I want to optimize for myself and friends, or for everyone else. The other alternative is to get rid of location, like Pontiac_CZ did.

Link to comment

Maybe it would be better to use absolute positioning which is not sensitive to the content that may get in front of our custom DIV but is related only to the parent element. A quick tune in Firebug for your profile, Chrysalides, resulted in these settings: position:absolute; top:63px; left:433px

 

Try it and if it looks perfect on your system then this could be the way to go.

 

.

Edited by Pontiac_CZ
Link to comment

Hello,

I'm a noob in html, buth i realy want this dnfpride :D

Just tried alot of thing. I coppied the code and try to past it in the box of my username (on edit your profile) , this does not work, the box is to small.

Tried to put it in location, this only shows the html code.

So were exactly do i have to paste the code?

Can someone help me out?

Link to comment

Maybe it would be better to use absolute positioning which is not sensitive to the content that may get in front of our custom DIV but is related only to the parent element. A quick tune in Firebug for your profile, Chrysalides, resulted in these settings: position:absolute; top:63px; left:433px

 

Try it and if it looks perfect on your system then this could be the way to go.

 

.

Absolute positioning didn't work, unfortunately - I tried it both in Firefox and Chrome. So decided to just nuke the location information instead. Until GS changes the layout again, probably in the next update.

Link to comment

To me the mobile phone view, which drops the DNF over the last visited date, is still the deal breaker simply because I tend to use that if I have any reason to go through my public profile on to look at someone else's. It looks great on the tablet, though.

Edited by geodarts
Link to comment

Since i started caching in 2004 i have done a log for all my dnf s i would absolutely love to have this dnf count on my page but feel incapable of doing the techie typing and clicking to get it there, is there somewhere that explains in simple language for us non techies a way to do it. jeff=bones1.

Link to comment

Since i started caching in 2004 i have done a log for all my dnf s i would absolutely love to have this dnf count on my page but feel incapable of doing the techie typing and clicking to get it there, is there somewhere that explains in simple language for us non techies a way to do it. jeff=bones1.

Step 1 : Find out your DNF count. Go to this page to find out : http://www.geocaching.com/my/logs.aspx?s=1&lt=3

 

Step 2 : Edit your profile. Go to this page to do it : https://www.geocaching.com/account/settings/profile

 

Step 3 : Add the following section to the very beginning of the text box that says "Bio" :

 

<div class='stat' style='position:relative; top:-227px; left:463px; height:0px'>
|  
<img style="vertical-align:sub" src='/images/icons/32/dnf.png' alt="" height="16" width="16" />
#NUMBER# DNF Logs
</div><br />

 

Replace #NUMBER# with the number of DNF that you have.

 

This should be at the very beginning, before your BadgeGen / FindStatGen HTML code.

 

You may need to adjust the "-227px" if the vertical alignment is off (not exactly in the same line), and you will need to adjust "463px" to something larger because you have 5 digits for the find count. Experiment with different values. Go to http://www.geocaching.com/profile/ to see the result.

Link to comment

You seem to be using the "old" style HTML. Groundspeak have altered the profile page so that no longer works.

 

Try using this as a starting point

<div class='stat' style='position:relative; top:-205px; left:66px; height:0px;'>
<img style='vertical-align:sub' src='/images/icons/32/dnf.png' alt='' height='16' width='16' />
82 DNF Logs
</div>
<div class='stat' style='position:relative; top:-205px; left:104px; height:0px;'>
  <img style='vertical-align:sub' src='http://gsak.net/images/Hidden.gif' alt='' height='16' width='16' />
 20 Caches Hidden
</div>

 

You can change the Top:xxx values, the Left:yyy values and the text to suit.

Link to comment

Account settings -> Preferences -> uncheck "Block friend requests from other geocachers".

 

Although I think that GrayHawk13 has handled him/herself pretty well in the forums as a father of an 11 year old son that is also becoming fairly proficient with a computer I'd concern about having user profile with a working email address and his age posted multiple times on a public forum that allows anonymous access, not to mention, allowing friend requests.

Link to comment

Went with this one too, looks fab. Thanks for sharing Gill & Tony!

 

This is what I used for the new layout. It looks OK on Firefox but the vertical bars are slightly out in Chrome and way out in my Android browser.

 

Cheers

 

Tony

 

<div class='stat' style='position:relative; top:-195px; left:66px; height:0px;'>
<img style='vertical-align:sub' src='/images/icons/32/dnf.png' alt='' height='16' width='16' />
80 DNF Logs
</div>
<div class='stat' style='position:relative; top:-195px; left:104px; height:0px;'>
  <img style='vertical-align:sub' src='http://gsak.net/images/Hidden.gif' alt='' height='16' width='16' />
 19 Caches Hidden
</div>

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...