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