Jump to content

Recommended Posts

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

Thanks PHPVMS family

 

 

Edited by topher2880
Posted
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>

Posted
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 

 

 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...