Home
Welcome, Guest
Please Login or Register.    Lost Password?
Please take a couple of minutes to search previous discussions and documentation for solutions before starting new threads.

Display video details on frontpage
(1 viewing) (1) Guest
Go to bottomPage: 12
TOPIC: Display video details on frontpage
*
#18064
Display video details on frontpage 11 Months ago Karma: 0
Hi,
This is a great app! I've upgraded to the pro account and have run into a roadblock regarding displaying the uploader, title, and votes of each video on the homepage of HWDVideoShare.

I know you have posted in the past about this, but I wasn't able to find any details as to where I can extend the variables available to index.tpl.

It would be great to get help on this!

Again, great job!
nississima
Fresh Boarder
Posts: 5
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#18100
Re:Display video details on frontpage 10 Months, 4 Weeks ago Karma: 189
have run into a roadblock regarding displaying the uploader, title, and votes of each video on the homepage of HWDVideoShare.At the moment, in the video list of the default template you can see the title, number of view, category, rating and the uploader. If you wish to change this, you need to edit the template file called video_list_full_v.tpl. This file controls the layout of the video details for each video in the list. If you wish to add and remove details, you can do it from this file. Remember to clear your cache after you make modification to see your changes.

The other template variables that are available are listed in the template file, but are commented out:
<!--<div class="listdesc">{$data->description}</div>-->
<!--<div class="listduration">{$smarty.const._HWDVIDS_INFO_DURATION}: {$data->duration}</div>-->
<!--<div class="listduration">{$smarty.const._HWDVIDS_DETAILS_VDATE}: {$data->upload_date}</div>-->
<!--{$data->avatar}-->

You just need to remove the comment markers to show them...

Does this help? If I have misunderstood, let me know.

Again, great job!Thank you!
Davros
Administrator
Posts: 13078
graph
User Online Now Click here to see the profile of this user
Last Edit: 2009/09/03 19:02 By Davros.
If you like hwdVideoShare please consider rating it in the Joomla Extensions Directory
The administrator has disabled public write access.
 
#18126
Re:Display video details on frontpage 10 Months, 4 Weeks ago Karma: 0
Davros, thanks for getting back to me so quickly! My question wasn't clear - sorry about that.

What I'm trying to do is edit the index.tpl file to show a featured video (check!) and a list of videos (check!).

Next to the featured video, I'd like to show its title, the uploader, and the amount of ratings/votes it has.

Currently, that section of my index.tpl looks like this:

{$featured_video_player}


<div id="featured-video-details">
<p><strong>title:</strong> {$title}<br />
<strong>submitted by:</strong> {$uploader}<br />
<strong>current votes:</strong> ??? </p>
</div>


How can I get $title, $uploader, and ratings to display on index.tpl?
nississima
Fresh Boarder
Posts: 5
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#18237
Re:Display video details on frontpage 10 Months, 3 Weeks ago Karma: 189
OK, now I understand. You will still need to edit the template files, but different ones!

Edit the template file called featured_videos_01.tpl. There is a zip file attached to this forum post. Download it, unzip and edit the file enclosed. Copy the text from this file and paste it to replace everything in featured_videos_01.tpl. Save the new template, clear your template cache and then view your homepage. You should see the featured video player, with all the details underneath it.

If you study the updated template file you should see how you can edit the details displayed as you want.

Does this help?

File Attachment:
File Name: featured_videos_03.zip
File Size: 1138


Please note, I will include this different template in the main package under the file featured_videos_03.tpl. Users will then have quick access to it.
Davros
Administrator
Posts: 13078
graph
User Online Now Click here to see the profile of this user
If you like hwdVideoShare please consider rating it in the Joomla Extensions Directory
The administrator has disabled public write access.
 
#18377
Re:Display video details on frontpage 10 Months, 3 Weeks ago Karma: 0
This worked wonderfully! Thanks so much for your help. One more question (sorry!). Is there any way I can pull the numerical rating rather than the star display? I am displaying it in a text block, so that would be great to have.


Thanks again!
nississima
Fresh Boarder
Posts: 5
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
Go to topPage: 12
get the latest posts directly to your desktop

Copyright © 2007-2010 Highwood Design | Your Details | Terms of Use | About