Results 1 to 6 of 6

Thread: It's a bug but not annoying

  1. #1
    Join Date
    Oct 2007
    Posts
    126

    Default It's a bug but not annoying

    Admin panel 2.8.1
    The help button (question mark) beside the admin email in System Settings takes you to the wrong help page- the same one as the List Per Page item below it.
    CasselmanCanada.com (free access)


  2. #2

    Default

    Hi,

    Open vShare/templates/admin/settings.tpl file and find first,
    Code:
    <a href="http://labs.buyscripts.in/projects/vshare/wiki/List_Per_Page" target="_blank"><img src="{$img_css_url}/images/help.png" alt="help" /></a>
    then, replace it with
    Code:
    <a href="http://labs.buyscripts.in/projects/vshare/wiki/Admin_Email" target="_blank"><img src="{$img_css_url}/images/help.png" alt="help" /></a>

  3. #3
    Join Date
    Oct 2007
    Posts
    126

    Default

    Thanks. It was not even worth the effort as there was nothing exciting to read there anyway.
    CasselmanCanada.com (free access)


  4. #4
    Join Date
    Oct 2007
    Posts
    126

    Default

    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.
    CasselmanCanada.com (free access)


  5. #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.

  6. #6
    Join Date
    Oct 2007
    Posts
    126

    Default

    Quote Originally Posted by vshare2 View Post
    Do the following,

    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 rel="nofollow" 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
    Thanks, that is moving in the right direction. However that code accesses the wrong record in the database. Here is what I would like that section to be for me. The first section works fine, but the subscriber records don't seem to respond.

    {insert name=subscriber_info assign=pack uid=$users[aa].user_id}
    <td align="right">
    {if $users[aa].user_watched_video gt "0"}
    {$users[aa].user_watched_video}
    </a>
    {else}
    0
    {/if}
    </td>
    <td align="right">

    {if $subscriber[aa].total_video gt "0"} //Here I need to access a different record
    <a href="user_videos.php?uid={$users[aa].user_id}">
    {$subscriber[aa].total_video} //Here too.
    </a>
    {else}
    0
    {/if}
    </td>

    I tried the update user video count and that works fine but this section needs to access the correct record to display it properly for me.

    Thanks Dave
    CasselmanCanada.com (free access)


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
  •