Jump to content


- - - - -

(FSY23) Posts Per Day in Topics v1.0


  • Please log in to reply
8 replies to this topic

#1 Michael

Michael

    See code 431.322.12 of the Internet Privacy Act

  • Modders
  • PipPipPipPipPipPipPipPipPipPip
  • 22,042 posts
  • Location:Columbus, OH
  • Real Name:Michael McCune
  • IPB Version:v3.1.x
Contributor

Posted 14 June 2007 - 07:09 PM


File Name: (FSY23) Posts Per Day in Topics v1.0
File Submitter: Michael
File Submitted: 14 Jun 2007
File Updated: 25 Jun 2007
File Category: IP.Board v2.3.x Mods

This will add an item below each user's avatar in the topic view which shows that user's Posts Per Day stat. Handy so that you can see who the really consistently active members on your site are.

Compatibility:
This mod is compatible only with the IP.Board 2.3.x series. Please use the IP.Board 2.2.x version of this mod if you are using IP.Board 2.2.x.

Requirements:
This mod was designed to be installed using the Universal Mod Installer, available from IPS Resources or Invision Modding.

Files Affected:
  • sources\ipsclass.php
Click here to download this file
Michael McCune - IPS Marketplace Moderator

My Stuff: My Forum · My Resources · My Tutorials
Contact Me: Email · Facebook · Twitter

#2 Nightwisher

Nightwisher

    Coder

  • Banned
  • PipPipPipPipPip
  • 221 posts
  • Location:Bosnia
  • Real Name:Damir
  • IPB Version:v2.3.x

Posted 16 June 2007 - 01:05 AM

Thanks for mod on IPB 2.3.0 !

Working perfect !

#3 Michael

Michael

    See code 431.322.12 of the Internet Privacy Act

  • Modders
  • PipPipPipPipPipPipPipPipPipPip
  • 22,042 posts
  • Location:Columbus, OH
  • Real Name:Michael McCune
  • IPB Version:v3.1.x
Contributor

Posted 16 June 2007 - 01:45 AM

smile.gif
Michael McCune - IPS Marketplace Moderator

My Stuff: My Forum · My Resources · My Tutorials
Contact Me: Email · Facebook · Twitter

#4 Soul Destroyer

Soul Destroyer

    Coder

  • IM Supporters
  • PipPipPipPipPip
  • 126 posts
  • IPB Version:v3.0.x

Posted 16 June 2007 - 11:52 AM

Thanks again pal.

thumbsup.gif

#5 Shania

Shania

    Advanced Member

  • Members
  • PipPipPipPip
  • 90 posts

Posted 25 June 2007 - 04:47 PM

Cant install this one.
Well sort of can.

Everytime with alot of mods when I need too edit Topic View, render row and try and save the template it always says now:

These template bits could not be saved because they cause an error when parsed. Please check the data including any HTML logic used and any input data variables.

I don't know why its doing this for now.
Sometimes by closing and re-opening the ACP fixes it but not this time.
What do I do about this ?

Code I'm adding is:

CODE
<br />
<div class="catheader"><div class="catheader1"><div

class="catheader2"></div></div></div>
<div class="cleared"><!--no content--></div>
<div class="borderwrap">
<!--Begin Msg Number {$post['pid']}-->
<table class='ipbtable' cellspacing="0">
    <tr>
        <td class="row5" width="1%">
            <div style="float: left;">
                <span

class="postdetails">{$post['post_icon']} <img

src='{$this->ipsclass->vars['img_url']}/to_post_off.gif'

alt='{$this->ipsclass->lang['to_post_alt']}' border='0'

style='padding-bottom:2px' /> {$post['post_date']}</span>
            </div>
        </td>
        <td class="row6" valign="middle" width="99%"

colspan="2">
            <!-- POSTED DATE DIV -->
            
            <!-- REPORT / DELETE / EDIT / QUOTE DIV -->
            <div align="right">
                <span

class="postdetails">{$post['ip_address']}

{$this->ipsclass->lang['posted_on']}
                    <a

title="{$this->ipsclass->lang['tt_link']}" href="#"

onclick="link_to_post({$post['pid']}); return

false;">#{$post['post_count']}</a>
                    

<if="$this->ipsclass->member['is_mod']">
                        | <a href="#"

title="{$this->ipsclass->lang['click_for_mod']}"

onclick="topic_toggle_pid('{$post['pid']}'); return

false;">{$post['pid_start_image']}</a>
                    </if>
                </span>
            </div>
        </td>
    </tr>
    <tr>
        
        <td valign="top" class="row5">
<div align='center'><div style='width:100%'>
<div class="userinfo">
<div>
            <a name="entry{$post['pid']}"></a>
            <if="$author['id']">
                <div id="post-member-{$post['pid']}"

class='username'>
                    <span

class="{$post['name_css']}">{$author['_pp_online_image']}{$author['_mem

bers_display_name']}</span>
                </div>
                <!-- member menu -->
                <div class='popupmenu-new'

id='post-member-{$post['pid']}_menu' style='display:none;width:230px'>
                    <div

class='popupmenu-item-last'>
                        

<if="$author['members_display_name_short'] !=

$author['members_display_name']">
                            <div

class='popupmenu-item'><strong>{$author['members_display_name']}</stron

g></div>
                        </if>
                        <div

style='float:right'>
                            <div

class='pp-image-thumb-wrap'>
                                <img

src='{$author['pp_thumb_photo']}' width='{$author['pp_thumb_width']}'

height='{$author['pp_thumb_height']}' alt='' />
                            </div>
                            

<if="$this->ipsclass->vars['pp_allow_member_rate']">
                                <div

style='margin-top:5px;margin-left:6px;'>
                                    

<img

src="{$this->ipsclass->vars['img_url']}/rating_{$author['_pp_rating_rea

l']}_mini.gif" alt='{$this->ipsclass->lang['rating_prefix']}:

{$author['_pp_rating_real']}' style='vertical-align:middle' border='0'

/>
                                </div>
                            </if>
                        </div>
                        <div

class='popupmenu-item'>
                            

{$author['_pp_gender_image']} <a

href="{$this->ipsclass->base_url}showuser={$author['id']}">{$this->ipsc

lass->lang['dd_view_profile']}</a>
                        </div>
                        

<if="$this->ipsclass->member['id']">
                            <div

class='popupmenu-item'>
                                

<if="in_array( $author['id'], array_keys(

$this->ipsclass->member['_cache']['friends'] ) )">
                                    

<img

src='{$this->ipsclass->vars['img_url']}/folder_profile_portal/friend_re

move_small.png' alt='' border='0' /> <a href="#"

onclick='friends_pop("&amp;do=remove&amp;member_id={$author['id']}&amp;

md5check={$this->ipsclass->md5_check}"); return

false'>{$this->ipsclass->lang['dd_remove_friend']}</a>
                                <else

/>
                                    

<img

src='{$this->ipsclass->vars['img_url']}/folder_profile_portal/friend_ad

d_small.png' alt='' border='0' /> <a href="#"

onclick='friends_pop("&amp;do=add&amp;member_id={$author['id']}&amp;md5

check={$this->ipsclass->md5_check}"); return

false'>{$this->ipsclass->lang['dd_add_friend']}</a>
                                </if>
                            </div>
                            <div

class='popupmenu-item'>
                                <img

src='{$this->ipsclass->vars['img_url']}/folder_profile_portal/send_pm_s

mall.png' alt='' border='0' /> <a

href="{$this->ipsclass->base_url}act=Msg&amp;CODE=4&amp;MID={$author['i

d']}">{$this->ipsclass->lang['dd_send_pm']}</a>
                            </div>
                            <div

class='popupmenu-item'>
                                <img

src='{$this->ipsclass->vars['img_url']}/folder_profile_portal/find_post

s.png' alt='' border='0' /> <a

href='{$this->ipsclass->base_url}act=Search&amp;CODE=gettopicsuser&amp;

mid={$author['id']}'>{$this->ipsclass->lang['dd_find_topics']}</a>
                            </div>        

                        
                        </if>
                        <div

class='popupmenu-item-last'>
                            <img

src='{$this->ipsclass->vars['img_url']}/folder_profile_portal/find_post

s.png' alt='' border='0' /> <a

href='{$this->ipsclass->base_url}act=Search&amp;CODE=getalluser&amp;mid

={$author['id']}'>{$this->ipsclass->lang['dd_find_posts']}</a>
                        </div>
                    </div>
                </div>
                <!-- member menu -->
                <script type="text/javascript">
                    ipsmenu.register(

"post-member-{$post['pid']}", '', 'username_ro', 'username' );
                </script>
            <else />
                <span

class="{$post['name_css']}">{$author['_members_display_name']}</span>
            </if>
            
        </div>
            
                <if="$author['id'] AND

$author['avatar']">
                    <a

href="{$this->ipsclass->base_url}showuser={$author['id']}"

title="{$this->ipsclass->lang['dd_view_profile']}">{$crowns}<br

/>{$author['avatar']}</a><br /><br />
                <else />
                    <img

src='style_images/<#IMG_DIR#>/noavatar.gif' border='0' alt='' /><br

/><br />
                </if>
                {$author['title']}<br />
                {$author['member_rank_img']}<br />
                <div align="left">{$author['member_group']}<br

/>
                {$author['member_posts']}<br />
                                        {$author['member_ppd']}<br />
                {$author['member_topics']}<br />
{$author['member_points']}
                {$author['member_joined']}<br />
                {$author['member_location']}
                {$author['member_number']}<br />
                <if="$author['custom_fields'] != """>
                    {$author['custom_fields']}
                </if></div>
                <br />
                {$author['warn_text']}

{$author['warn_minus']}{$author['warn_img']}{$author['warn_add']}
{$author['awards']}
            <br />
            <img

src="{$this->ipsclass->vars['img_url']}/spacer.gif" alt="" width="160"

height="1" /><br />
</div>
       </td>
      
       <td width="98%" valign="top" class="{$post['post_css']}"

id='post-main-{$post['pid']}'>
            <!-- THE POST {$post['pid']} -->
            <div class="postcolor"

id='post-{$post['pid']}'>
                {$post['post']}
                {$post['edit_by']}
                <if="$post['post_edit_reason'] != ''">
                    <div class='post-edit-reason'>
                        

{$this->ipsclass->lang['reason_for_edit']}: {$post['post_edit_reason']}
                    </div>
                </if>
                <!--IBF.ATTACHMENT_{$post['pid']}-->
            </div>
            
            {$post['signature']}
            <!-- THE POST -->        
        </td>
              <td width="1%" class="row6"><!-- no content --></td>
    </tr>
    <tr>
                
        <td class="row5" nowrap="nowrap">
            &nbsp;
        </td>
        <td class="row6" nowrap="nowrap" colspan="2">
            <!-- PM / EMAIL / WWW / MSGR -->
            <div style="float: left;">
                {$post['report_link']}
            </div>
            <!-- REPORT / UP -->
             <div align="right">
                 

{$post['delete_button']}{$post['edit_button']}<a href="#"

onclick="multiquote_add({$post['pid']}); return false;"

title="{$this->ipsclass->lang['mq_title']}">{$post['mq_start_image']}</

a><a

href="{$this->ipsclass->base_url}act=Post&amp;CODE=02&amp;f={$this->ips

class->input['f']}&amp;t={$this->ipsclass->input['t']}&amp;qpid={$post[

'pid']}"

title="{$this->ipsclass->lang['tt_reply_to_post']}"><{P_QUOTE}></a><a

href="java script:scroll(0,0);"><{P_UP}></a>
             </div>
         </td>
    </tr>
</table>
</div>
<div class="footer"><div class="footer1"><div

class="footer2"></div></div></div>
<div class="cleared"></div>
<if="$post['edit_button']!=''">
<script type='text/javascript'>
//<![CDATA[
if ( ajax_loaded && use_enhanced_js )
{
menu_build_menu( 'edit-but-{$post['pid']}',
    new Array(  img_item + " <a

title='{$this->ipsclass->lang['edit_full_desc']}'

href='{$this->ipsclass->base_url}act=post&amp;do=edit_post&amp;f={$post

['forum_id']}&amp;t={$post['topic_id']}&amp;p={$post['pid']}&amp;st={$t

his->ipsclass->input['st']}'>{$this->ipsclass->lang['edit_full_title']}

</a>",
                img_item + " <a href='#'

title='{$this->ipsclass->lang['edit_quick_desc']}' onclick='return

ajax_prep_for_edit({$post['pid']},

event);'>{$this->ipsclass->lang['edit_quick_title']}</a>" ) );
}
//]]>
</script>
</if>


i got it to work

Edited by Shania, 25 June 2007 - 05:22 PM.


#6 drebook

drebook

    Member

  • Members
  • PipPipPip
  • 24 posts
  • IPB Version:v2.3.x

Posted 29 June 2007 - 11:45 PM

the link don't work

#7 Michael

Michael

    See code 431.322.12 of the Internet Privacy Act

  • Modders
  • PipPipPipPipPipPipPipPipPipPip
  • 22,042 posts
  • Location:Columbus, OH
  • Real Name:Michael McCune
  • IPB Version:v3.1.x
Contributor

Posted 30 June 2007 - 03:02 AM

Yes, the Downloads system is having maintenance done on it.
Michael McCune - IPS Marketplace Moderator

My Stuff: My Forum · My Resources · My Tutorials
Contact Me: Email · Facebook · Twitter

#8 xe-cute

xe-cute

    Member

  • Members
  • PipPipPip
  • 39 posts
  • IPB Version:v2.1.x

Posted 07 July 2007 - 09:01 PM

Hiya, I was wondering what edit would I have to make so that I could get it to show how many posts per day a member has made on the same line as Total Posts but for it to show afterwards in brackets.

For Example:

Posts: 4,520 (2.85)

Or If I have enough room for it to be like......

Posts: 4,520 (2.85 Per Day)


No big deal though, I just had a quick tweak myself and could not work it out (newbie me, hehe).


Awesome Modification, Thankyou  smile.gif

#9 Depot

Depot

    Invision Modding.com Helper - Type - Person

  • IM Supporters
  • PipPipPipPipPipPipPipPipPipPip
  • 5,573 posts
  • Location:NE Florida
  • Real Name:Larry C
  • IPB Version:v2.3.x
Contributor

Posted 22 August 2007 - 01:52 PM

Just installed this... great mod - thanks Michael!  thumbsup.gif

- - - - nsMod Community Forums - - - -

Posted Image Services System Modification Installation FAQ Invision Modding Store Posted Image

I DO: IPB UPGRADES, MOD INSTALLS, DATABASE BACKUPS & RESTORATION, CUSTOM SKINS, SITE TRANSFERS

IMPORTANT - READ THIS BEFORE YOU PM ME!!!

Do not ask me for assistance / provide me with your url if you own a nullified board - IM Staff will be notified.





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users