Site changes and upgrade roadmap 2013-2014

Discussion in 'Site Help and Suggestions' started by ASSEMbler, Sep 19, 2013.

  1. Druid II

    Druid II Officer at Arms

    Joined:
    Jun 6, 2006
    Messages:
    3,600
    Likes Received:
    101
    OK, my fault then: check postbit_legacy instead of postbit. On the default skin, at least, it seems to use postbit_legacy instead.
     
  2. leetwolf

    leetwolf Peppy Member

    Joined:
    Apr 25, 2011
    Messages:
    329
    Likes Received:
    2
    druid, your wrong:) it's a clear and float issue:). I will help him if he messages me (also will help install the selling mod) - This was not a serious "your wrong" btw:|
     
    Last edited: Sep 20, 2013
  3. ASSEMbler

    ASSEMbler Administrator

    Joined:
    Mar 13, 2004
    Messages:
    19,273
    Likes Received:
    497
    /a>
    </vb:if>
    <vb:if condition="$post['userid']">
    <hr />
    <dl class="userinfo_extra">
    <dt>{vb:raw post.crowns}{vb:raw post.champtext}</dd><br />
    <vb:if condition="$post['joindate']"><dt>{vb:rawphrase join_date}</dt> <dd>{vb:raw post.joindate}</dd></vb:if>
    <vb:if condition="$post['field2']"><dt>{vb:rawphrase location_perm}</dt> <dd>{vb:raw post.field2}</dd></vb:if>
    <vb:if condition="$post['age']"><dt>{vb:rawphrase age}</dt> <dd>{vb:raw post.age}</dd></vb:if>
    <dt>{vb:rawphrase posts}</dt> <dd>{vb:raw post.posts}</dd>
    {vb:raw template_hook.postbit_userinfo_right_after_posts}
    </dl>

    From what I see it's going to be elsewhere. Adding more breaks does nothing.
     
  4. leetwolf

    leetwolf Peppy Member

    Joined:
    Apr 25, 2011
    Messages:
    329
    Likes Received:
    2
    Assembler, just PM me on AIM. I will have it all fixed in 2 minutes. natalichwolf -- I have already wrote the fix. You're not really adding breaks, you're literally just breaking it.
     
    Last edited: Sep 21, 2013
  5. leetwolf

    leetwolf Peppy Member

    Joined:
    Apr 25, 2011
    Messages:
    329
    Likes Received:
    2
    Find <dl class="userinfo_extra"> then the </dl> after the _right_after_posts hook and replace

    <dl class="userinfo_extra">
    <dt>{vb:raw post.crowns}{vb:raw post.champtext}</dd><br />
    <vb:if condition="$post['joindate']"><dt style="clear:both">{vb:rawphrase join_date}</dt> <dd style="float:left">{vb:raw post.joindate}</dd></vb:if>
    <vb:if condition="$post['field2']"><dt style="clear:both">{vb:rawphrase location_perm}</dt> <dd style="float:left">{vb:raw post.field2}</dd></vb:if>
    <vb:if condition="$post['age']"><dt style="clear:both">{vb:rawphrase age}</dt> <dd style="float:left">{vb:raw post.age}</dd></vb:if>
    <dt style="clear:both">{vb:rawphrase posts}</dt> <dd style="float:left">{vb:raw post.posts}</dd>
    {vb:raw template_hook.postbit_userinfo_right_after_posts}
    </dl>
     
    Last edited: Sep 21, 2013
  6. leetwolf

    leetwolf Peppy Member

    Joined:
    Apr 25, 2011
    Messages:
    329
    Likes Received:
    2
    .postbitlegacy dl.userinfo_extra dd { float:left!important}
    .postbitlegacy dl.userinfo_extra dt {clear: both!important;}
    .postbitlegacy dl.user_rep dt {clear:both!important}
    .postbitlegacy dl.user_rep dd {float:left!important}
     
    Last edited: Sep 21, 2013
  7. leetwolf

    leetwolf Peppy Member

    Joined:
    Apr 25, 2011
    Messages:
    329
    Likes Received:
    2
    Find <form
    Above it put <vb:if condition="($vbulletin->userinfo['posts'] >= 50 && $foruminfo['forumid'] == 8 ) || $foruminfo['forumid'] != 8">

    Now find </form>
    Under it paste

    <vb:else />
    <div class="blockhead">Requirements Error!</div>
    <div class="blockbody" style="font-weight:bold; font-size:18px;>Error: You do not have enough posts to post in this section.<br /><a href="http://www.assemblergames.com/forums/showthread.php?4888-MARKETPLACE-RULES-as-of-September2013">Read Rules and Requirements for Posting In Sales Section</a></div>
    </vb:if>
     
    Last edited: Sep 21, 2013
    Cyantist and ASSEMbler like this.
  8. ASSEMbler

    ASSEMbler Administrator

    Joined:
    Mar 13, 2004
    Messages:
    19,273
    Likes Received:
    497
    Thanks to leetwolf for the help!

    We now have properly aligned text under the avatars, and a marketplace spam filter.
     
  9. MSX

    MSX Is secretly 32-bit ---- Site Supporter 2013 & 2014

    Joined:
    Dec 8, 2011
    Messages:
    444
    Likes Received:
    3
    So users under 50 posts can't make threads in the marketplace? Well that will relieve some mod work.
     
  10. ASSEMbler

    ASSEMbler Administrator

    Joined:
    Mar 13, 2004
    Messages:
    19,273
    Likes Received:
    497
    Thanks to leetwolf
     
  11. beepboop

    beepboop <B>Site Supporter 2013</B>

    Joined:
    Jul 10, 2013
    Messages:
    237
    Likes Received:
    49
    That's some fairly ugly boolean logic. How about "($foruminfo['forumid'] !=8 || $vbulletin->userinfo['posts'] >= 50)"?
     
    Last edited: Sep 21, 2013
  12. Druid II

    Druid II Officer at Arms

    Joined:
    Jun 6, 2006
    Messages:
    3,600
    Likes Received:
    101
    Not quite. If you check the page source you'll see that there is some un-closed dt/dd tags there... in fact there still are. It is true that they are positioned with float/clear, but the problem is caused by some extra unclosed tags.

    See here:
    This is very unprofessional. You are adding unnecessary inline float/clears, but ignore the malformed HTML.

    In fact now we have an extra colon between the avatar and post infos.

    What you should do instead is this:

    Those changes in the CSS were also unnecessary; the stylesheet is fine, it was the HTML that was malformed.
     
    Last edited: Sep 21, 2013
  13. leetwolf

    leetwolf Peppy Member

    Joined:
    Apr 25, 2011
    Messages:
    329
    Likes Received:
    2
    Yeah, you're right, that would work. Oh well :p It was a first draft, I never optimized it.
     
  14. leetwolf

    leetwolf Peppy Member

    Joined:
    Apr 25, 2011
    Messages:
    329
    Likes Received:
    2
    Being honest, I never noticed unclosed tag, the HTML is a mess to look at. It was to help the site and late. Druid is right, removing that line or fixing the tag will resolve the issue proper. I had told him to remove that extra line, but we never did it (so I noticed it but never realized it was the cause). I honestly have never used the dt and dd tags (never worked with Vbulletin either haha), so it didn't catch my attention like say a div would have. Yeah yeah, should have noticed it...I spent all day working on my own code so....give me a break:p

    And just to be fair, it took you a while to find it! Muahahah!

     
    Last edited: Sep 21, 2013
  15. Druid II

    Druid II Officer at Arms

    Joined:
    Jun 6, 2006
    Messages:
    3,600
    Likes Received:
    101
    I was asleep, and I first mentioned the unclosed dt/dd lines approx. half a year ago.

    Right click on the problematic area, select "inspect element" (may vary depending on browser). In the DOM Explorer, find the nearest unique class identifier, then press ctrl+u to view the source (preferable with notepad++ set to HTML display), and ctrl+f for the class identifier.

    Basic debugging for any web dev.
     
    Last edited: Sep 21, 2013
  16. leetwolf

    leetwolf Peppy Member

    Joined:
    Apr 25, 2011
    Messages:
    329
    Likes Received:
    2
    If I had noticed it, I would have fixed it. It was an oversight on my part, I usually am good at seeing that stuff.
     
  17. mairsil

    mairsil Officer at Arms

    Joined:
    Apr 20, 2005
    Messages:
    3,370
    Likes Received:
    55
    No need to nitpick. He missed it, you caught it, it's fixed. As someone who does web development too, this is an easy thing to miss with a complex DOM.
     
  18. leetwolf

    leetwolf Peppy Member

    Joined:
    Apr 25, 2011
    Messages:
    329
    Likes Received:
    2
    He wants to be right he can be. Thats on him. I know my skill set. Google my name you will see what I do all day.
     
    Last edited: Sep 21, 2013
  19. Druid II

    Druid II Officer at Arms

    Joined:
    Jun 6, 2006
    Messages:
    3,600
    Likes Received:
    101
    I'm not saying this to be right, I'm just saying, it IS the most basic debugging possible... it doesn't even matter how complex the DOM is because you can immediately pinpoint the area in question from its unique class. You don't even have to look for it, really.
     
  20. ASSEMbler

    ASSEMbler Administrator

    Joined:
    Mar 13, 2004
    Messages:
    19,273
    Likes Received:
    497
    Let's stick to agreeing on optimal code. This is a cooperative effort.
     

Share This Page