Profile Pic and URL on View Video Page
Since the original topic is now 4 pages long (as of this writing) I thought I'd re-post here so that you don't have to weed through the oodles of posts to find this. Original topic here: viewtopic.php?f=12&t=3385&p=17599#p17599
This will:
Add user profile pic if they have uploaded one.
Add last uploaded video thumbnail if user has not uploaded a profile pic.
Add users URL to the information (if they added one to their profile/account info).
Put this in view_video.tpl (usually in the section where the "from" and user/video description section is).
Code:
{if $total gt "0"}
<a href="{$baseurl}/view/{$answers[i].VID}/{$answers[i].seo_name}/">
[img]{$baseurl}/thumb/1_{$answers[i].VID}.jpg[/img]</a>
{else}
{insert name=member_img UID=$UID}
{/if}
{insert name=getfield assign=website field=website table=signup qfield=UID qvalue=$UID}
{if $website ne ""}
Website: {$website|replace:'http://':''}
{/if}
If it's not fun, stop doing it!
Bookmarks