Jump to content

Robiss767

Members
  • Posts

    37
  • Joined

  • Last visited

 Content Type 

Downloads

Release Notes

IPS4 Guides

IPS4 Developer Documentation

Invision Community Blog

Development Blog

Deprecation Tracker

Providers Directory

Forums

Events

Store

Gallery

Posts posted by Robiss767

  1. On 5/17/2018 at 8:32 PM, Devin Powers said:

    To explain: I've changed it so both parameters in the where clause are parameterized and I've made it group it by author_id. Then I've checked to see if there is a result (a new member with 0 posts wouldn't have any results returned). Then I've just selected it.

     A neater way would probably be the try-catch-block using the ->first() method where if it fails you assign $you to 0, but this was just a quick dirty fix for me.

    Hope this helps some other people ?

    Cheers.

    For people who may struggle fixing the source code itself, there's a much simpler, but equally effective solution. If the member has not made any posts, then the variable $you gets passed as a SQL query. Hence inside the template you can add this little workaround:

    {{if !(is_numeric($you))}}
    	<span>0</span>
    {{else}}
    	<span>{expression="\IPS\Member::loggedIn()->language()->formatNumber( $you )"}</span>
    {{endif}}

    To edit the template go to: AdminCP -> Customization -> Edit HTML and CSS -> Templates -> jimmotoppostersplus -> jimmoTopPostersPlusRows

    EDIT: This only replaces the 1 with a 0 if you have no posts that week.

  2. I see this design-bug on default theme when a new collab is made an is waiting for approval.

    bug.png.0a54824e58e2e5e2f21be5d0f2a67667

    What can I do about it to fix it?

    Also if there are over 15-20 (can't remember exactly) members in the group, and if you click on active members and then on 2+ page in the pagination, it transfers you to a new page. Is this intentional?

  3. Hello. I have recently purchased and installed this plugin, but unfortunately I'm experiencing some problems with it. The periods of time are partially cut, in other words, I cannot fully see what is written. Instead of Month it shows it as Mo... 

    I believe this is caused due to recent software update. It would be great if you could fix this.

    Image of the issue:

    cutted.png.a0c913580612934850f559d30c284
     

     

     

     

     

     

     

     

    IPS Version: 4.1.1

    Thanks in advance!

×
×
  • Create New...