Loading ...

why we have this in functions.php

Board index / PHP Melody - Video CMS

For PHP Melody version 2 and newer

Postby siva on Jan 21, 2014 10 pm


/*
* How to use in .tpl?
*
* Example 1: get latest added 5 videos
* {get_advanced_video_list assignto="advanced_video_list" limit=5}
* - then run a foreach from=$advanced_video_list ...
*
* Example 2: get latest 8 videos added by Admin in category with id=10
* {get_advanced_video_list assignto="advanced_video_list" submitted="admin" category_id=10 limit=8}
*
* Example 3: get latest 10 videos with tag = "Auto review"
* {get_advanced_video_list assignto="advanced_video_list" tag="Auto review"}
*
* Example 4: get videos added in the past 7 days
* {get_advanced_video_list assignto="advanced_video_list" days_ago=7}
*
* Example 5: get most viewed videos in the past X days (X defined in pm_config table by an Administrator)
* {get_advanced_video_list assignto="advanced_video_list" days_ago="recent"}
*
* Example 6: get featured videos only
* {get_advanced_video_list assignto="advanced_video_list" featured="1"}
*
* Example 7: get most liked videos in category with id=10
* {get_advanced_video_list assignto="advanced_video_list" category_id=10 order_by="rating"}
*
* Example 8: get most viewed videos added by user 'CoolGuy' in category with id=10
* {get_advanced_video_list assignto="advanced_video_list" category_id=10 order_by="site_views" username='CoolGuy'}
*/


if we able to use this , why there is no details example for this above code

example

in index page instead of new videos i want to show certain category

{get_advanced_video_list assignto="advanced_video_list" submitted="admin" category_id=10 limit=8}

after open index.tpl

where i have to add this code to display them fine

any detail help page much be apperciated

thanks
User avatar
siva
Verified Customer
Verified Customer
 
Posts: 554
Joined: Jan 15, 2008 1 am
Reputation points: 10

Postby rabad on Jan 06, 2015 4 am


Thank you for your post , it helped me at least to find where are the functions short-codes are .
Let's what we can achieve with it :-)
rabad
Verified Customer
Verified Customer
 
Posts: 4
Joined: Dec 31, 2014 5 am
Location: California
Reputation points: 0

Postby Trace on Jan 06, 2015 1 pm


There is a post explaining how to use those codes here:
https://www.phpsugar.com/forum/viewtopi ... 887#p60887
User avatar
Trace
Verified Customer
Verified Customer
 
Posts: 2543
Joined: Aug 16, 2010 3 pm
Location: The Netherlands
Reputation points: 1329


Who is online

Users browsing this forum: No registered users and 9 guests

cron