Jump to the post that solved this thread.
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Solved: 3 Years, 9 Months, 3 Weeks ago Display an image on the redirection page
#1
Solved: 3 Years, 9 Months, 3 Weeks ago
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?
Reply
#2
Solved: 3 Years, 9 Months, 3 Weeks ago
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.
What goes around comes around
Reply
#3
Solved: 3 Years, 9 Months, 3 Weeks ago
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.
Reply
#4
Solved: 3 Years, 9 Months, 3 Weeks ago
For randomization of images this may be helpful:
https://www.namepros.com/posts/3757859/
Reply
#5
Solved: 3 Years, 9 Months, 3 Weeks ago
Godsend. Thank you!
Reply
#6
Solved: 3 Years, 9 Months, 3 Weeks ago
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?
Reply
#7
Solved: 3 Years, 9 Months, 3 Weeks ago
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">
What goes around comes around
Reply
#8
Solved: 3 Years, 9 Months, 3 Weeks ago
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!
Reply
Jump to the post that solved this thread.


Forum Jump:


Users browsing this thread: 1 Guest(s)