topher2880 Posted July 9, 2018 Report Share Posted July 9, 2018 (edited) This is half and half a code snippet post and also skinning however putting it here. Im using SimPilot's screen shot module, and was just wondering if there was a way of using the screen shot as a random image on the main page? I have an image that is 819 X 311 on the main page, and while I have the random image call working, I cant seem to make the image any larger. <?php Screenshots::show_random_screenshot(); ?> The actual code im using is : <center><?php $allpics = new Screenshots (); $allpics->show_random_screenshot();?></center> Adding any height= or width= seems to throw an error. Of course, in the past, ive made stupid mistakes, but I figure I will throw this out and surely get a reply pretty quick... as I usually do Thanks PHPVMS family Edited July 9, 2018 by topher2880 Quote Link to comment Share on other sites More sharing options...
gio1961 Posted July 9, 2018 Report Share Posted July 9, 2018 5 hours ago, topher2880 said: This is half and half a code snippet post and also skinning however putting it here. Im using SimPilot's screen shot module, and was just wondering if there was a way of using the screen shot as a random image on the main page? I have an image that is 819 X 311 on the main page, and while I have the random image call working, I cant seem to make the image any larger. <?php Screenshots::show_random_screenshot(); ?> The actual code im using is : <center><?php $allpics = new Screenshots (); $allpics->show_random_screenshot();?></center> Adding any height= or width= seems to throw an error. Of course, in the past, ive made stupid mistakes, but I figure I will throw this out and surely get a reply pretty quick... as I usually do Thanks PHPVMS family Hi, open the core / templates / screenshots_random.tpl file and edit the height and width values and see if it works (<img src = "'. SITE_URL.' / Pics /'.$ screenshot-> file_name. '" Height = "350px" width = "672px" alt = "Random Screenshot" />) frontpage_main.tpl file <center> <? php Screenshots :: show_random_screenshot (); ?> </ Center> Quote Link to comment Share on other sites More sharing options...
topher2880 Posted July 10, 2018 Author Report Share Posted July 10, 2018 18 hours ago, gio1961 said: Hi, open the core / templates / screenshots_random.tpl file and edit the height and width values and see if it works (<img src = "'. SITE_URL.' / Pics /'.$ screenshot-> file_name. '" Height = "350px" width = "672px" alt = "Random Screenshot" />) frontpage_main.tpl file <center> <? php Screenshots :: show_random_screenshot (); ?> </ Center> Duh.. I didnt even think to look in the core / templates folder to look at the code *facepalm* Thanks for that, all up and running 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.