/    Sign up×
Community /Pin to ProfileBookmark

Adding the purchase price under the thumbnail

I am using a php web video script which, when searched, displays a list of thumbnail image search results, with a View button, below each image. I’m trying to add the numeric price under each one, but haven’t gotten it correct yet. Here is the list.html page code. I’m trying to add this code:

[CODE]
‘video_play_price_user’ => number_format($video->video_play_price?$video->video_play_price:$config[‘video_play_price’],2)
[/CODE]

to work with this array, but something is wrong:

[CODE]
if (!empty($get_videos)) {
$len = count($get_videos);
foreach ($get_videos as $key => $video) {
$video = PT_GetVideoByID($video, 0, 0, 0);
$pt->last_video = false;
if ($key == $len – 1) {
$pt->last_video = true;
}
$final .= PT_LoadPage(‘search/list’, array(
‘ID’ => $video->id,
‘USER_DATA’ => $video->owner,
‘THUMBNAIL’ => $video->thumbnail,
‘URL’ => $video->url,
‘TITLE’ => $video->title,
‘DESC’ => $video->markup_description,
‘VIEWS’ => $video->views,
‘VIEWS_NUM’ => number_format($video->views),
‘TIME’ => $video->time_ago,
‘DURATION’ => $video->duration,
‘PRICE’ => $video_play_price_user,
‘video_play_price_user’ => number_format($video->video_play_price?$video->video_play_price:$config[‘video_play_price’],2)

));
}
}
[/CODE]

Any guidance will be appreciated

to post a comment
HTML

0Be the first to comment 😎

×

Success!

Help @chrisjchrisj spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.14,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...