Moderators mark1million Posted October 15, 2010 Moderators Report Share Posted October 15, 2010 This should be that your looking for Its in the Pageination.class.php at the bottom where the url are created, This si what i done from line 179 to 204, $output .= sprintf('<a href="' . $link . '">«</a>', '1'); } if ($currentPage > 1){ $output .= sprintf('<a href="' . $link . '"> Previous </a>', $currentPage - 1); } for ($i = $loopStart; $i <= $loopEnd; $i++) { if ($i == $currentPage){ $output .= '' . $i . ' '; } else { $output .= sprintf('<a href="' . $link . '">', $i) . $i . '</a> '; } } if ($currentPage < $totalPages){ $output .= sprintf('<a href="' . $link . '"> Next </a>', $currentPage + 1); } if ($loopEnd != $totalPages){ $output .= sprintf('<a href="' . $link . '">»</a>', $totalPages); } return ' ' . $output . ' '; } Quote Link to comment Share on other sites More sharing options...
Moderators mark1million Posted October 15, 2010 Moderators Report Share Posted October 15, 2010 Dave your just too quick Quote Link to comment Share on other sites More sharing options...
Moderators Kyle Posted October 15, 2010 Moderators Report Share Posted October 15, 2010 (edited) I tried that, but still did not work. EDIT: Got it working. Thanks guys. Edited October 15, 2010 by Vansers Quote Link to comment Share on other sites More sharing options...
Cor Posted October 15, 2010 Report Share Posted October 15, 2010 Dave and Mark, It is working as it should. Thank you. Have a great weekend. Regards, Cor Quote Link to comment Share on other sites More sharing options...
vicente Posted November 2, 2010 Report Share Posted November 2, 2010 Simpilot i fallow all the instructions but i don't know if i need upload de file pics into the my site,because when i upload a screenhot show me this error Warning: move_uploaded_file(pics/1288714322_teste.jpg) [function.move-uploaded-file]: failed to open stream: No such file or directory in /home/aviancav/public_html/acars/core/modules/Screenshots/Screenshots.php on line 59 Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move '/tmp/phpmjsYTW' to 'pics/1288714322_teste.jpg' in /home/aviancav/public_html/acars/core/modules/Screenshots/Screenshots.php on line 59 There was an error uploading the file, please try again! How I can fix this ? Quote Link to comment Share on other sites More sharing options...
Administrators simpilot Posted November 7, 2010 Author Administrators Report Share Posted November 7, 2010 Simpilot i fallow all the instructions but i don't know if i need upload de file pics into the my site,because when i upload a screenhot show me this error Warning: move_uploaded_file(pics/1288714322_teste.jpg) [function.move-uploaded-file]: failed to open stream: No such file or directory in /home/aviancav/public_html/acars/core/modules/Screenshots/Screenshots.php on line 59 Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move '/tmp/phpmjsYTW' to 'pics/1288714322_teste.jpg' in /home/aviancav/public_html/acars/core/modules/Screenshots/Screenshots.php on line 59 There was an error uploading the file, please try again! How I can fix this ? Do you have a folder named "pics" in your root directory of your phpvms install and if so, is it writable? Quote Link to comment Share on other sites More sharing options...
TAV1702 Posted November 28, 2010 Report Share Posted November 28, 2010 Can we just update the files if we already have the screenshot center installed or must we update the sql as well? Already have quite a few pics in I hate to loose. Just curious and thanks again for all your hard work Simpilot! Quote Link to comment Share on other sites More sharing options...
Administrators simpilot Posted November 28, 2010 Author Administrators Report Share Posted November 28, 2010 Can we just update the files if we already have the screenshot center installed or must we update the sql as well? Already have quite a few pics in I hate to loose. Just curious and thanks again for all your hard work Simpilot! The database structure has not changed so if you already have it installed you should be fine just updating the files and leaving the database as is. Quote Link to comment Share on other sites More sharing options...
TAV1702 Posted December 1, 2010 Report Share Posted December 1, 2010 Ahh nice. That is music to my ears. Thanks! Quote Link to comment Share on other sites More sharing options...
NAdams Posted December 17, 2010 Report Share Posted December 17, 2010 i got one question... i got everything set up and in the proper places...any everything looks the way it should.....i upload the screenshot and when i go to approve it, it says that none are waiting to be approved the file size is small on the one i'm uploading, the pics folder is writable Quote Link to comment Share on other sites More sharing options...
NAdams Posted December 17, 2010 Report Share Posted December 17, 2010 nevermind....i got it figured out, i had the sql loaded wrong... Quote Link to comment Share on other sites More sharing options...
Txmmy83 Posted January 13, 2011 Report Share Posted January 13, 2011 It works great for me but I get this Warning Warning: move_uploaded_file() [function.move-uploaded-file]: open_basedir restriction in effect. File(/tmp/phpjV7onP) is not within the allowed path(s): (/home/simaerobatic/) in /home/simaerobatic/htdocs/AMI/core/modules/Screenshots/Screenshots.php on line 59 The file 1294957092_AB212Venice2.jpg has been uploaded - An Administrator will approve the screenshot prior to it being available in the gallery. any idea what causes that error and how I can get rid of it? thanks in advance Thomas Quote Link to comment Share on other sites More sharing options...
Administrators simpilot Posted January 16, 2011 Author Administrators Report Share Posted January 16, 2011 open_basedir restriction in effect This setting in php needs to be changed on your server. What type of hosting is this? Quote Link to comment Share on other sites More sharing options...
Txmmy83 Posted January 17, 2011 Report Share Posted January 17, 2011 This setting in php needs to be changed on your server. What type of hosting is this? it is a payed hosting service which runs on an Debian/linux based server but I am not sure if I have enough rights to change Php settings Quote Link to comment Share on other sites More sharing options...
Administrators simpilot Posted January 18, 2011 Author Administrators Report Share Posted January 18, 2011 Try asking your host if they can change the setting for your server space, if they will not, find out if you can put a custom php.ini file in your server root. Quote Link to comment Share on other sites More sharing options...
Thomas Rozanov Posted February 7, 2011 Report Share Posted February 7, 2011 Try asking your host if they can change the setting for your server space, if they will not, find out if you can put a custom php.ini file in your server root. How did mark1million (easyjetva.com) change the dimensions of the image so that it is automatically scaled to fit the webpage? Because when i upload a screenshot it is cut into half or even more because my page is narrow (obsess blue). Thank You Very Much! Quote Link to comment Share on other sites More sharing options...
polirom Posted February 7, 2011 Report Share Posted February 7, 2011 1 .- as an image is deleted. 2 .- where images are saved Quote Link to comment Share on other sites More sharing options...
flyalaska Posted February 7, 2011 Report Share Posted February 7, 2011 How wide across does it go? Mine goes 4 wide, flush with the page. I didn't alter anything on the script. Quote Link to comment Share on other sites More sharing options...
Administrators simpilot Posted February 8, 2011 Author Administrators Report Share Posted February 8, 2011 1 .- as an image is deleted. 2 .- where images are saved When an image is rejected from the approval screen it is marked as rejected in the database but it remains in the folder. You can manually delete it if you would like. All the screenshots are saved in the root/pics folder. Quote Link to comment Share on other sites More sharing options...
Administrators simpilot Posted February 8, 2011 Author Administrators Report Share Posted February 8, 2011 How did mark1million (easyjetva.com) change the dimensions of the image so that it is automatically scaled to fit the webpage? Because when i upload a screenshot it is cut into half or even more because my page is narrow (obsess blue). Thank You Very Much! Look for the image string in the template files, there is a style function added to it style="max-width: 800px;" and change it to how wide you need it to be. Quote Link to comment Share on other sites More sharing options...
Moderators mark1million Posted February 8, 2011 Moderators Report Share Posted February 8, 2011 Look for the image string in the template files, there is a style function added to it style="max-width: 800px;" and change it to how wide you need it to be. You also need to change the display from the default 4 images wide to 3 Its in the code there. Quote Link to comment Share on other sites More sharing options...
Thomas Rozanov Posted February 8, 2011 Report Share Posted February 8, 2011 You also need to change the display from the default 4 images wide to 3 Its in the code there. What do you mean images wide? what file? what command? Quote Link to comment Share on other sites More sharing options...
Moderators mark1million Posted February 8, 2011 Moderators Report Share Posted February 8, 2011 Ok now i am back at a pc i can help you better, Find the file in the screenshots folder screenshots_viewer.tpl there are a couple of adjustments you need to make to the code from displaying 4 pictures wide to 3 which fits in with the skin you are using. For me its line 65, if ($tiles == '3') { echo '</tr>'; $tiles=0; } default code is, if ($tiles == '4') Change the 4 to a 3, there are a couple of other tpl files you need to do this with as well. Quote Link to comment Share on other sites More sharing options...
Thomas Rozanov Posted February 13, 2011 Report Share Posted February 13, 2011 Thanks Mark, And Everyone! And ESPECIALLY Simpilot for creating this module, and LOTS of quality modules too! Quote Link to comment Share on other sites More sharing options...
Thomas Rozanov Posted February 18, 2011 Report Share Posted February 18, 2011 Sorry To Start This Again But I added the random screenshot thing to my sidebar however unfortunately it says this: Notice: The template file "/home/brtvirtu/public_html//lib/skins/ObsessBlue/Screenshots/screenshots_random.tpl" doesn't exist in /home/brtvirtu/public_html/core/classes/TemplateSet.class.php on line 248 Quote Link to comment Share on other sites More sharing options...
Thomas Rozanov Posted February 18, 2011 Report Share Posted February 18, 2011 Sorry To Start This Again But I added the random screenshot thing to my sidebar however unfortunately it says this: Notice: The template file "/home/brtvirtu/public_html//lib/skins/ObsessBlue/Screenshots/screenshots_random.tpl" doesn't exist in /home/brtvirtu/public_html/core/classes/TemplateSet.class.php on line 248 Quote Link to comment Share on other sites More sharing options...
Administrators simpilot Posted February 18, 2011 Author Administrators Report Share Posted February 18, 2011 Notice: The template file "/home/brtvirtu/public_html//lib/skins/ObsessBlue/Screenshots/screenshots_random.tpl" doesn't exist The template file is not there or it is corrupted. Quote Link to comment Share on other sites More sharing options...
Thomas Rozanov Posted February 18, 2011 Report Share Posted February 18, 2011 The template file is not there or it is corrupted. Wait so what files are corrupted? Everything works (the gallery itself + uploading images). Please Help Quote Link to comment Share on other sites More sharing options...
TAV1702 Posted February 18, 2011 Report Share Posted February 18, 2011 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. 2 Quote Link to comment Share on other sites More sharing options...
Administrators simpilot Posted February 19, 2011 Author Administrators Report Share Posted February 19, 2011 Wait so what files are corrupted? Everything works (the gallery itself + uploading images). Please Help The answer is in the error message Notice: The template file "/home/brtvirtu/public_html//lib/skins/ObsessBlue/Screenshots/screenshots_random.tpl" doesn't exist Quote Link to comment Share on other sites More sharing options...
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.