Originally Posted by
vshare2
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