Site changes and upgrade roadmap 2013-2014

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

  1. Druidic teacher

    Druidic teacher Officer at Arms

    Joined:
    Jun 6, 2006
    Messages:
    3,643
    Likes Received:
    129
    x
     
    Last edited: Jun 22, 2017
  2. leetwolf

    leetwolf Peppy Member

    Joined:
    Apr 25, 2011
    Messages:
    348
    Likes Received:
    5
    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 Staff Member

    Joined:
    Mar 13, 2004
    Messages:
    19,394
    Likes Received:
    995
    /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:
    348
    Likes Received:
    5
    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 20, 2013
  5. leetwolf

    leetwolf Peppy Member

    Joined:
    Apr 25, 2011
    Messages:
    348
    Likes Received:
    5
    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 20, 2013
  6. leetwolf

    leetwolf Peppy Member

    Joined:
    Apr 25, 2011
    Messages:
    348
    Likes Received:
    5
    .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 20, 2013
  7. leetwolf

    leetwolf Peppy Member

    Joined:
    Apr 25, 2011
    Messages:
    348
    Likes Received:
    5
    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 Staff Member

    Joined:
    Mar 13, 2004
    Messages:
    19,394
    Likes Received:
    995
    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 7, 2011
    Messages:
    445
    Likes Received:
    4
    So users under 50 posts can't make threads in the marketplace? Well that will relieve some mod work.
     
  10. ASSEMbler

    ASSEMbler Administrator Staff Member

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

    beepboop <B>Site Supporter 2013</B>

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

    Druidic teacher Officer at Arms

    Joined:
    Jun 6, 2006
    Messages:
    3,643
    Likes Received:
    129
    x
     
    Last edited: Jun 22, 2017
  13. leetwolf

    leetwolf Peppy Member

    Joined:
    Apr 25, 2011
    Messages:
    348
    Likes Received:
    5
    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:
    348
    Likes Received:
    5
    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. Druidic teacher

    Druidic teacher Officer at Arms

    Joined:
    Jun 6, 2006
    Messages:
    3,643
    Likes Received:
    129
    x
     
    Last edited: Jun 22, 2017
  16. leetwolf

    leetwolf Peppy Member

    Joined:
    Apr 25, 2011
    Messages:
    348
    Likes Received:
    5
    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,425
    Likes Received:
    153
    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:
    348
    Likes Received:
    5
    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. Druidic teacher

    Druidic teacher Officer at Arms

    Joined:
    Jun 6, 2006
    Messages:
    3,643
    Likes Received:
    129
    x
     
    Last edited: Jun 22, 2017
  20. ASSEMbler

    ASSEMbler Administrator Staff Member

    Joined:
    Mar 13, 2004
    Messages:
    19,394
    Likes Received:
    995
    Let's stick to agreeing on optimal code. This is a cooperative effort.
     
sonicdude10
Draft saved Draft deleted
Insert every image as a...
  1.  0%

Share This Page