Results 1 to 6 of 6

Thread: It's a bug but not annoying

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #5

    Default

    Quote Originally Posted by jayscot View Post
    Here is another mini-bug that 2.8.1 has.

    There are two places that a user's number of uploads can be displayed to the admin. First place is on All Users and the Video column shows the number of videos he has uploaded. The second place is to click on the username when in that screen - then on the Videos link at the bottom of that page.

    So the problem is that video numbers display correctly when a file is uploaded normally. But if I ftp a file to the /templates_c/import/ folder and then import it as the admin, and assign it to a user- then the second place shows the updated number of videos. But the first place (the All Users menu) does not ever get incremented.

    Where would the code be that needs to be fixed?
    Thanks.
    Do the following,

    Open vShare/templates/admin/users.tpl file and find
    Code:
                <td align="right">
                    {if $users[aa].user_videos gt "0"}
                        <a href="user_videos.php?uid={$users[aa].user_id}">
                            {$users[aa].user_videos}
                        </a>
                    {else}
                        {$users[aa].user_videos}
                    {/if}
                </td>
                {if $enable_package eq "yes"}
                <td>
                    {insert name=subscriber_info assign=pack uid=$users[aa].user_id}
                    {$pack.package_name}
                </td>
                {/if}
    Replace it with
    Code:
    {insert name=subscriber_info assign=pack uid=$users[aa].user_id}
                <td align="right">
                    {if $pack.total_video gt "0"}
                        <a href="user_videos.php?uid={$users[aa].user_id}">
                            {$pack.total_video}
                        </a>
                    {else}
                        0
                    {/if}
                </td>
                {if $enable_package eq "yes"}
                <td>
                    {$pack.package_name}
                </td>
                {/if}
    Also, you can update user video count in vShare -> Admin -> Maintenance -> Update Counters -> Update Video Counts

    If you can't get it fixed, open a support ticket.

    Thanks,
    Last edited by vshare2; 02-20-2012 at 06:19 AM.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •