why we have this in functions.php
Board index / PHP Melody - Video CMS
3 posts • Page 1 of 1
/*
* 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
* 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
-
siva - Verified Customer
- Posts: 554
- Joined: Jan 15, 2008 1 am
- Reputation points: 10
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
Let's what we can achieve with it
- rabad
- Verified Customer
- Posts: 4
- Joined: Dec 31, 2014 5 am
- Location: California
- Reputation points: 0
There is a post explaining how to use those codes here:
https://www.phpsugar.com/forum/viewtopi ... 887#p60887
https://www.phpsugar.com/forum/viewtopi ... 887#p60887
PHP Melody Plugins developer
PHP Melody plugins + themes for 1.6 and 1.7-2.7 | Subscribe to news of my work | Follow me on Facebook
PHP Melody plugins + themes for 1.6 and 1.7-2.7 | Subscribe to news of my work | Follow me on Facebook
-
Trace - Verified Customer
- Posts: 2543
- Joined: Aug 16, 2010 3 pm
- Location: The Netherlands
- Reputation points: 1329
3 posts • Page 1 of 1
Who is online
Users browsing this forum: No registered users and 9 guests