Re: Adding Profile Phot and URL to view_video.tpl
OK, here's another profile pic thing on the view_video page for you.
What this does is:
If user has a profile pic uploaded, their profile pic will display on the view_video page.
If user has no profile pic uploaded, their last uploaded video thumb will display instead.
The user URL is displayed.
Insert into view_video.tpl wherever you'd like to use it (usually along with the "who the video was posted by and video description" section.
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