Thomas Rozanov Posted February 19, 2011 Report Posted February 19, 2011 Ray +1 Thanks! THANK YOU SO MUCH! I made that mistake because in the .zip file the screenshots folder is in the core/templates directory. Maybe Dave can change that in his next release or update this one? Quote
Moderators mark1million Posted February 19, 2011 Moderators Report Posted February 19, 2011 You know, all the add on templates should really go in to your active skin folder and not the core templates, that way you know everything that is being served up is in the same place, and its less confusing. 1 Quote
Thomas Rozanov Posted February 19, 2011 Report Posted February 19, 2011 You know, all the add on templates should really go in to your active skin folder and not the core templates, that way you know everything that is being served up is in the same place, and its less confusing. Thanks For the Advice Mark! I just am new to PHP and PHPVMS and i don't no all the small tricks and things that i guess come with time and experience . Quote
Administrators simpilot Posted February 19, 2011 Author Administrators Report Posted February 19, 2011 Ray +1 Thanks! THANK YOU SO MUCH! I made that mistake because in the .zip file the screenshots folder is in the core/templates directory. Maybe Dave can change that in his next release or update this one? The core/templates folder is the default location for skin templates in phpVMS. I have no way of knowing what everyone is naming their custom skin folder.... Quote
TAV1702 Posted February 21, 2011 Report Posted February 21, 2011 Another advantage of them actually going in to the core folder as Simpilot has pointed out is, when airlines switch Templates from time to time to change the look for a bit, there only has to be one screenshots folder. If you have limited disc space on your hosting package it might kind of suck to have 3 or 4 or 5 template folders with the same exact screenshots folder in each one. BUT the way I said to do it is the only way to make it not error. I can see how that would be confusing a bit to a new user, but none the less, it is an easy fix. Quote
Thomas Rozanov Posted February 24, 2011 Report Posted February 24, 2011 Thanks Everyone For Your Help And Support! It really is a pleasure to be using PHPVMS. It's easy to learn how to use it. And if you have a problem you can post it on the forum. Honestly I just Love It I actually have fun making my VA's Website Quote
Thomas Rozanov Posted March 1, 2011 Report Posted March 1, 2011 Can somebody help me out? As far as I know the screenshot center only supports .jpg files (to upload). I need it to support .png files too. What files do I edit? Thanks! Quote
Moderators mark1million Posted March 1, 2011 Moderators Report Posted March 1, 2011 The line you want is about 43 in the core>modules>screenshots>screenshots.php if ((($_FILES["uploadedfile"]["type"] == "image/x-png") Change to, if ((($_FILES["uploadedfile"]["type"] == "image/png") 2 Quote
Angel Air Posted March 2, 2011 Report Posted March 2, 2011 great add on +1 point to simpilot. Thanks 1 Quote
Industrialshadow Posted April 27, 2011 Report Posted April 27, 2011 Hello folks I have installed this Addon. All working fine but i have a Problem with the Random Pics on my Mainsite I have added in the frontpagemain.tpl my code to show a randompic Template::Show('screenshots_random.tpl'); This doesnt work. When i using the php codes in the first post. I become a failuremessage from my server. Any idea? You can look here the Problem on the Ground of the Website Click me to see the Failure Quote
Administrators simpilot Posted April 27, 2011 Author Administrators Report Posted April 27, 2011 That is not the code from the original post, not sure where you got it from but it should be; <?php Screenshots::show_random_screenshot(); ?> Quote
Industrialshadow Posted April 27, 2011 Report Posted April 27, 2011 Hi I have made this so. When i will use your code <?php Screenshots::show_random_screenshot(); ?> i become a failure whos called Parse error: syntax error, unexpected '<' in /www/htdocs/w00dac26/SF/lib/skins/ObsessBlue/frontpage_main.tpl on line 15 and here is my frontpage_main.tpl <div class="mc0201"> Welcome to SF Logistik </div> <br /> <br /> <div class="mc020303"> <?php // Show the News module, call the function ShowNewsFront // This is in the modules/Frontpage folder MainController::Run('FrontBids', 'RecentFrontPage', 15); Template::Show('acarsmap.tpl'); <?php Screenshots::show_random_screenshot(); ?>]<----i will use this and then come the error ?> </div> <div class="mc020303"> </div> Quote
Administrators simpilot Posted April 27, 2011 Author Administrators Report Posted April 27, 2011 You have php tags within php tags, you cant do that Quote
Industrialshadow Posted April 27, 2011 Report Posted April 27, 2011 hm and we can i solve the Problem? i dont know Quote
Moderators mark1million Posted April 27, 2011 Moderators Report Posted April 27, 2011 You don't make sense, All you need to do move that code out of the php tags, I dont know if this will work,within the existing tags, Screenshots::show_random_screenshot(); Or just move that code like this, <div class="mc0201"> Welcome to SF Logistik </div> <br /> <br /> <div class="mc020303"> <?php // Show the News module, call the function ShowNewsFront // This is in the modules/Frontpage folder MainController::Run('FrontBids', 'RecentFrontPage', 15); Template::Show('acarsmap.tpl'); ?> <?php Screenshots::show_random_screenshot(); ?> </div> <div class="mc020303"> </div> Quote
Industrialshadow Posted April 27, 2011 Report Posted April 27, 2011 Wow many thanks for help. Its working.......I will give you a virtual beer cheers I have another Question Now. Were can i add the random image in my sidebar like See her Quote
Industrialshadow Posted April 29, 2011 Report Posted April 29, 2011 anybody a idea to become the Screenhot in rthe left side? see my post above the link Quote
Moderators mark1million Posted April 29, 2011 Moderators Report Posted April 29, 2011 What skin are yo using, you will need to add it to the menu divs, remove it from frontpage_main.tpl Ok i see, To get another menu box displayed have a look in your header.tpl you will see the divs for the menu and box content, you can add it in there or create another for it Quote
Industrialshadow Posted April 29, 2011 Report Posted April 29, 2011 Ok i have putted the screenshot_random.tpl in my skinfolder. Now working. But the Pic is on the right site. I need this in the middle of the Box thats i have made and its working. <div class="mcbox01"> <div class="mc01t2"> Pics </div> <div class="mc01cc"> <ul> <?php Screenshots::show_random_screenshot(); ?> </ul> </div> <div class="mc01b"> <img src="<?php echo SITE_URL?>/lib/skins/ObsessBlue/image/img_272.jpg" alt="" /> </div> </div> where must set it to see the shot in the middle? Quote
Administrators simpilot Posted April 29, 2011 Author Administrators Report Posted April 29, 2011 Ok i have putted the screenshot_random.tpl in my skinfolder. Now working. But the Pic is on the right site. I need this in the middle of the Box thats i have made and its working. <div class="mcbox01"> <div class="mc01t2"> Pics </div> <div class="mc01cc"> <ul> <?php Screenshots::show_random_screenshot(); ?> </ul> </div> <div class="mc01b"> <img src="<?php echo SITE_URL?>/lib/skins/ObsessBlue/image/img_272.jpg" alt="" /> </div> </div> where must set it to see the shot in the middle? This needs to be asked in the skinning forum, it is not a coding issue with the module. Quote
Moderators mark1million Posted April 29, 2011 Moderators Report Posted April 29, 2011 <div align="center"><?php Screenshots::show_random_screenshot(); ?></div> Quote
Industrialshadow Posted April 30, 2011 Report Posted April 30, 2011 doesnt work for me. <div class="mcbox01"> <div class="mc01t2"> Pics </div> <div class="mc01cc"> <ul> <div align="center"><?php Screenshots::show_random_screenshot(); ?></div> </ul> </div> <div class="mc01b"> <img src="<?php echo SITE_URL?>/lib/skins/ObsessBlue/image/img_272.jpg" alt="" /> </div> </div> Quote
Moderators mark1million Posted April 30, 2011 Moderators Report Posted April 30, 2011 Try replacing the <ul> with the divs Quote
TAV1702 Posted May 1, 2011 Report Posted May 1, 2011 yeah I originally tried that too and it did not work. I actually used the plain center tags and it worked. I hated to do it since the center tag is deprecated now days, but it worked. Quote
ssting34 Posted June 5, 2011 Report Posted June 5, 2011 I tried to upload it and get this error Notice: The template file "/home/dutchess/public_html//lib/skins/brilliancev1/Screenshots/screenshots_random.tpl" doesn't exist in /home/dutchess/public_html/core/classes/TemplateSet.class.php on line 248 http://www.dutchessairva.org/index.php/ any help would be great **also when I upload a screenshot it won't display the pic in the gallery, but it says I uploaded one. Quote
TAV1702 Posted June 6, 2011 Report Posted June 6, 2011 That error is exactly what it says. The file does not exist. Even though you uploaded it, I am willing to bet it is not where it is looking. If you go and look at the file structure that Simplot has created in the download, you will notice the Screenshots templates in the Core/Templates/Screenshots folder. Notice the difference between that path I just gave and the path from the error? The reason Simpilot put that folder there was because he has no idea what templates everyone is using. So he packs all his great releases in a generic form. So all you need to do in this case is get in to your core/templates folder on your server and move that screenshots folder of tpl files over to your current templates directory and that should fix it. Quote
ssting34 Posted June 8, 2011 Report Posted June 8, 2011 thanks for the awesome advice and that fixed it. It works awesome now thanks alot for the help. Quote
Francisco Posted June 8, 2011 Report Posted June 8, 2011 Hi, I have a problem with DB, I show a picture for you to see: Thanks so Much, Kind Regards. Quote
Moderators mark1million Posted June 9, 2011 Moderators Report Posted June 9, 2011 Thats a permissions error, just check that the folder where your pictures are going has full read write permissions. Quote
Francisco Posted June 9, 2011 Report Posted June 9, 2011 Mark thanks so much for you answer! The problem was solved! 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.