[HOW-TO] Call or display a field from database in the watch_video page on Clip-Bucket

Hello,

I am going to show you how to display any field in the video row. This is very useful when you have added more fields to the table, and you want to show them, for example a ‘likes’ field.

Difficulty level: Easy (Super easy if you have some very, but very basic PHP or MySQL knowledge)

Let’s say you have a field called “likes”.

1. Open up watch_video.html located in ./styles/{YOURTEMPLATE}/layout/*

2. Position your cursor wherever you want to show the data, and type in:

{$vdo.likes}

NOTE:

  • After the dot (.), you must write the field name.
  • Remember to keep the braces ({,})

$vdo is an array that holds all the fields in the video row.

Well that’s all, you can save and upload your file to test it out. Anything else you need, please let me know =).

Best Regards,

Richi

Looking for quality ClipBucket hosting? Try out Arvixe and you won’t be disappointed.

Tags: , , , , , , , , , | Posted under ClipBucket | RSS 2.0

Author Spotlight

Richi González

Richi González

I started programming when I was 12. I'm a Developer and have been working with the Clip-Bucket script since it came out. I became a Liaison between Arvixe and Clip-Bucket, so I am here to assist you with anything you need regarding Clip-Bucket or any particular computer-related subject you need. Best Regards, Richi

Leave a Reply

Your email address will not be published. Required fields are marked *


7 − 5 =

You may use these HTML tags and attributes: <a href="" title="" rel=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>