Jump to content

ScreenshotCenter 2.0


simpilot

Recommended Posts

hey i have installed the screenshot module on my site but every time i try to add a screen shot this comes up

Warning: move_uploaded_file(pics/1311115532_2011-7-19_22-39-47-334.jpg) [function.move-uploaded-file]: failed to open stream: No such file or directory in /var/www/vhosts/royles.eu/httpdocs/core/modules/Screenshots/Screenshots.php on line 59

Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move '/tmp/phpWWMR42' to 'pics/1311115532_2011-7-19_22-39-47-334.jpg' in /var/www/vhosts/royles.eu/httpdocs/core/modules/Screenshots/Screenshots.php on line 59

any ideas???

Thanks

Link to comment
Share on other sites

Im getting this

Warning: move_uploaded_file(pics/1311196399_BANNER02.jpg) [function.move-uploaded-file]: failed to open stream: No such file or directory in /home/spiritvi/public_html/core/modules/Screenshots/Screenshots.php on line 59

Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move '/tmp/phpH3ts23' to 'pics/1311196399_BANNER02.jpg' in /home/spiritvi/public_html/core/modules/Screenshots/Screenshots.php on line 59

There was an error uploading the file, please try again!

What am I missing? Thanks

NVM I solved it my self lol, But would like to know if there is a way to list the code for the photo like of to the side to show the url for the photo to post in forums or something like.

Link to comment
Share on other sites

NVM I solved it my self lol, But would like to know if there is a way to list the code for the photo like of to the side to show the url for the photo to post in forums or something like.

That would be a nice addition for sure. I would check how Nabeel has the badge codes working in the profile page. You should be able to grab some code or at least get a good idea from there how it works.

Link to comment
Share on other sites

Hi! I did this with the code box time ago ;) here is the code to add at

screenshots_large.tpl

    	<tr>
   	<td>
   	BB Forum Code:
   	</td>
   	<td colspan="2">
     	<input type="text" name="textfield" id="textfield" value="[img=<?php echo SITE_URL; ?>/pics/<?php echo $screenshot->file_name; ?>]" style="width:500px;" readonly="readonly" /></td></tr>
     	<tr>
     	<td>
   	HTML Code:
   	</td>
   	<td colspan="2">
     	<input type="text" name="textfield" id="textfield" value='<img src="<?php echo SITE_URL; ?>/pics/<?php echo $screenshot->file_name; ?>" style="max-width: 940px" alt="<?php echo $screenshot->file_description; ?>" />' style="width:500px;" readonly="readonly" /></td>
   	</tr>

wherever you like it BUT inside the table ;)

Regards,

Link to comment
Share on other sites

  • 2 months later...

G'day Simpilot,

Love this addon, works like a charm. I have something to consider for an update, i personally would be interested in it.

Currently i have the random shot code on the sidebar of my site, I've linked it up so it takes me to the large version of the shot. I have had to shrink the large version of the screenie to fit within my site (this is taking away from the potential of the shot, as it's lost its true resolution when it was shrunk), otherwise it will leak over into the sidebar, so i was wondering if you could make it 'pop out onto its own page, I'm not sure if its some third party script that does that, but any info here would be great.

Once again keep up the good work simpilot :)

Tylor

Link to comment
Share on other sites

  • Moderators

You could use jquery as a popup, or just code it up to display in its own page like, its something that i meant to do but never had the time really.

$pilot = PilotData::getPilotData($screenshot->pilot_id);
echo '<b>Random Screenshot!</b><br /><a href="'.SITE_URL.'/pics/'.$screenshot->file_name.'" target="_blank"><img src="'.SITE_URL.'/pics/'.$screenshot->file_name.'" alt="Random Screenshot" width="180px" height="125px" border="0" /></a>                <br />Submitted By '.$pilot->firstname.' - '.PilotData::GetPilotCode($pilot->code, $screenshot->pilot_id)
   .'<br />On - ';
echo $date;
?>

That code belongs in the Screenshots>screenshots_random.tpl in your skins folder.

As you can see you can define the initial smaller dimensions and when you click the image it will open up full size on its own page.

Link to comment
Share on other sites

  • 3 months later...
  • 3 weeks later...
  • 5 months later...

I am willing to bet the screenshots folder went to your core templates folder and not the skins /yourtemplate/folder

I had the exact smae problem. Once I moved the screenshots folder from the core to my skin folder all was well.

So it should be like root/lib/skins/crystal/screenshots

if it is in root/core/templates/screenshots it will give that error. At least it did for me.

you just got my screenshots working my friend after loads of futration and question marks in my head as to why it wasnt working

rep+5 for you sir

Link to comment
Share on other sites

Hi,

great module +5!

but when i upload more than 8 screenshots you will get more pages... when i press page 2 ill get this message:

Warning: call_user_func_array() expects parameter 1 to be a valid callback, class 'Screenshots' does not have a method 'screenshots' in /volume1/web/phpvms/core/classes/MainController.class.php on line 218

i've tryed reinstalling the module but without any help..

thanx,

Jacques

Edit: Strange when i rebooted my pc the bugg was gone :-) great app!!

Link to comment
Share on other sites

  • 4 weeks later...
  • 1 month later...

Hi all I am getting an error from this here is the error i am getting any help would be great.

Notice: The template file "/home/angelair/public_html//lib/skins/vairline/Screenshots/screenshots_random.tpl" doesn't exist in/home/angelair/public_html/core/classes/TemplateSet.class.phpon line 248

I think it is because it can't find the templateset.class file but i no longer have the download of this to re-install to try and fix problem

Link to comment
Share on other sites

  • 3 weeks later...
  • Administrators

Hi all I am getting an error from this here is the error i am getting any help would be great.

Notice: The template file "/home/angelair/public_html//lib/skins/vairline/Screenshots/screenshots_random.tpl" doesn't exist in/home/angelair/public_html/core/classes/TemplateSet.class.phpon line 248

I think it is because it can't find the templateset.class file but i no longer have the download of this to re-install to try and fix problem

The code is available on my github account - link is in my signature.

Link to comment
Share on other sites

  • 3 months later...

It seems that there should be a link to another page of screenshots.

But I do not see that link.

Should I do something to make it visable?

This piece of code does not seem to show items:

$navigation = $pagination->create_links();
echo $navigation;
?>

Is there something that I missed?

Link to comment
Share on other sites

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...