nabpp Posted December 15, 2012 Report Posted December 15, 2012 so i am entering <?php PopUpNews::PopUpNewsList(5); ?> and im getting this in a return from my site Notice: The template file "/public_html/phpvms//lib/skins/templatemo_362_gift_red/Screenshots/screenshots_random.tpl" doesn't exist in/home/phpvms/core/classes/TemplateSet.class.phpon line 248 ​Any bod ever had this error before im trying to get this skin all working correctly before i put it on my paid host? http://unitedstatesvirtual.netne.net/phpvms/ Quote
Stealthbird97 Posted December 15, 2012 Report Posted December 15, 2012 That code is for the SP PopUpNews addon. Where exactly did you download the screenshot centre from because I don't know how else you would have got the idea you have to use that code. I suggest you redownload the whole thing as you might have an old version where the readme would have been incorrect https://github.com/DavidJClark/phpVMS-ScreenShotCenter I believe these are the codes you will need instead. To display the newest approved screenshot on your site: <?php Screenshots::show_newest_screenshot(); ?> To display the newest screenshot by a certain pilot on your site: <?php Screenshots::get_pilots_newscreenshot('pilotid'); ?> To display a random approved screenshot on your site: <?php Screenshots::show_random_screenshot(); ?> Hope this helps/ Quote
CPC900 Posted December 15, 2012 Report Posted December 15, 2012 What is the code to make the random screenshot "clickable" to enlarge it it's own page or window? Quote
Stealthbird97 Posted December 16, 2012 Report Posted December 16, 2012 I wouldn't have a clue. I don't actually have the add-on. Quote
Moderators Parkho Posted January 4, 2013 Moderators Report Posted January 4, 2013 so i am entering <?php PopUpNews::PopUpNewsList(5); ?> and im getting this in a return from my site Notice: The template file "/public_html/phpvms//lib/skins/templatemo_362_gift_red/Screenshots/screenshots_random.tpl" doesn't exist in/home/phpvms/core/classes/TemplateSet.class.phpon line 248 ​Any bod ever had this error before im trying to get this skin all working correctly before i put it on my paid host? http://unitedstatesv...tne.net/phpvms/ Try this: <?php MainController::Run('News', 'ShowNewsFront', 5); ?> Quote
Affix Posted January 22, 2013 Report Posted January 22, 2013 To get a random screenshot you would need to do $screenshot = ScreeshotsData::get_random_screenshot(); // This will return a mySQL Row with the screenshot data Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.