Jump to content
topher2880

LARGE random screenshot on frontpage_main.tpl

Recommended Posts

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

Thanks PHPVMS family

 

 

Edited by topher2880

Share this post


Link to post
Share on other sites
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 :D

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>

Share this post


Link to post
Share on other sites
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 

 

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×