Jump to content

Recommended Posts

Posted

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

Posted

Check your file structure.

And advise to move the templates out of core/templates folder to your personal skin that you are using folder. I.E. yoursite/lib/skins/yourskin

Posted

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.

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

Posted

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,

  • 2 months later...
Posted

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

  • Moderators
Posted

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.

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

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

Posted

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

  • 4 weeks later...
Posted

Hello can i iframe this or somethin' similar to iframe, because this ObsessBlue template im using over laps the Next Photo button, and a portion of the photo, unless there's a fix for the template...????????????

Posted

Hey guys i need some help here. I am trying to install this module for my va and i am having very little sucess. I have the module install but when i upload photos they dont show up on the approval list.

Help is greatly appreciated

  • 1 month later...
Posted

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

  • 3 weeks later...
  • Administrators
Posted

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.

  • 3 months later...
Posted

Wonderfull.

But is there a reason why I only see 8 images?

I have uploaded 13 images so far, and I only see the last 8 of them.

I tried to change this:

if ($tiles == '2')

Or 8 or 4, but I only see 8.

Posted

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?

Posted

Put this in your skins css

.pagination ul{
       display: inline;
}
.pagination ul li{
               margin-left: 0;
               padding: 3px 5px;
               color: #2b6b97;
               list-style: none;
               display: inline;
               font-size: 1.2em;
               font-weight: bold;
}

  • Like 1
Posted

Thank you for the CSS code.

I have added it in the css file and uploaded it. But it does not seem to function.

Yet I do not see the pages.

Perhaps I need some extra coding?

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