MyBB Community Forums

Full Version: Display an image on the redirection page
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Is there a way to customise the redirection page (displayed after an action is taken, like writing a post, the one where it says "You'll be taken to the new content now, please click here if you don't want to wait)?

What I'd like to do it for that page to display a random image from a selection of imagesĀ each time it's displayed.

Is this possible at all?
Should be possible. If you want to make a change on all the redirect pages, you would only have to edit the template file (redirect) under ungrouped templates.

If you want to make individual changes you may have to make core code changes.
Sounds great, thanks for pointing me in the right direction! I'll do some digging around and see if I can make that happen Smile

I'll post back here with the instructions if (and that's a big IF Wink ) I succeed.
For randomization of images this may be helpful:
https://www.namepros.com/posts/3757859/
Godsend. Thank you!
I tried to add a single image to the redirection page and sadly it's not working.

The code:

<html>
<head>
<title>{$title}</title>
<meta http-equiv="refresh" content="2;URL={$url}" />
{$headerinclude}
</head>
<body>
<br />
<br />
<br />
<br />
<div style="margin: auto auto; width: {$lang->redirect_width}" align="center">
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<tr>
<td class="thead"><strong>{$title}</strong></td>
</tr>
<tr>
<td class="trow1" align="center"><p>{$message}</p></td>
</tr>
<tr>
<td class="trow2" align="right"><a href="{$url}"><span class="smalltext">{$lang->click_no_wait}</span></a></td>
</tr>
</table>
</div>
<img src=www.thewingedhussars.com/images/SOTW/-rr-PostcardsFromTheMilkyWay.jpg>
</body>
</html>

I tried inserting <img> tag (see above) in various places, but it's not working... Any ideas guys?
put the URL in full to the image path: http://www.thewingedhussars.com/images/S...lkyWay.jpg

so use:

<img src="http://www.thewingedhussars.com/images/SOTW/-rr-PostcardsFromTheMilkyWay.jpg">
Ah, silly me...

Thanks! That worked perfectly fine!

All is good, but the image doesn't scale on user's displays. I havew set it to be fixed dimensions for now, but when I remove them, the image just doens't want to scale...

Any ideas?

Nevermind, works good now!