Jump to content

Linking Random Picture


flyalaska

Recommended Posts

  • Moderators

Open screenshots_random.php file on your templates/screenshots folder and replace this line:

echo '<b>Random Screenshot!</b><br /><img src="'.SITE_URL.'/pics/'.$screenshot->file_name.'" height="125px" width="180px" alt="Random Screenshot" />

with this one:

echo '<b>Random Screenshot!</b><br /><a href="'.SITE_URL.'/index.php/Screenshots/large_screenshot?id='.$screenshot->id.'"><img src="'.SITE_URL.'/pics/'.$screenshot->file_name.'" height="125px" width="180px" alt="Random Screenshot" /></a>

PS: Just submitted a pull request on github.

Link to comment
Share on other sites

Open screenshots_random.php file on your templates/screenshots folder and replace this line:

echo '<b>Random Screenshot!</b><br /><img src="'.SITE_URL.'/pics/'.$screenshot->file_name.'" height="125px" width="180px" alt="Random Screenshot" />

with this one:

echo '<b>Random Screenshot!</b><br /><a href="'.SITE_URL.'/index.php/Screenshots/large_screenshot?id='.$screenshot->id.'"><img src="'.SITE_URL.'/pics/'.$screenshot->file_name.'" height="125px" width="180px" alt="Random Screenshot" /></a>

PS: Just submitted a pull request on github.

Thank you :)

Link to comment
Share on other sites

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