Jump to content

Can someone help me with SP screenshot mod?


nabpp

Recommended Posts

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/

Link to comment
Share on other sites

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/

Link to comment
Share on other sites

  • 3 weeks later...
  • Moderators

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);
?>

Link to comment
Share on other sites

  • 3 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...