View Full Version : Single large random image on index
karim
11th of April 2005 (Mon), 06:26
Hi Pekka,
is it at all possible to have a single large random image on the index page?
Currently, I have one thumnail per exhibition group. And I have 3 groups, so three thumbnails on the main page.
I'd like to simplify things and have a SINGLE image. Not a thumb or microtumb... I hope this makes sense.
Thanks
k
karim
15th of April 2005 (Fri), 18:51
Not possible at all?
thanks.
EricKonieczny
17th of April 2005 (Sun), 15:44
eveything is possible with PHP code. Someone just needs to code it.
If you want 1 random image or 1 static image it can be done with the right code.
If you think of it, it usually can be done, just takes the right person.
Pekka
17th of April 2005 (Sun), 16:20
There are always several solutions to a problem, some real and some hacks - I am very busy now with some code which you most likely will want to see finished but here's one hack:
- in groupindex.php do simple if clause (after current if ($groupimage != "")....) by group id, like
if ($groupid == "1") {
print "http://www.yourserver.com/photos/image/this.jpg";
}
if ($groupid == "5") {
print "http://www.yourserver.com/photos/image/that.jpg";
}
and set group thumbs to zero in group editor.
karim
20th of April 2005 (Wed), 05:25
Pekka,
thanks for your reply. I looked at the code, but couldn't really figured out what you meant. Could you please enlighten me?
in groupindex.php, i see this:
if ($groupimage != "") { print "<a href =\"index.php?groupid={$groupid2}&lang={$lang}&pass={$pass}\">
<img src=\"{$groupimage}\" alt=\"{$groupname}\" border=\"2\" align=\"right\" hspace=\"8\" style=\"border-color: #{$s_photo_border_color};\"></a>";
} else {
print "<table align=\"right\" width=\"{$thumbplacebo}\" cellpadding=\"3\" border=\"0\"><tr><td>";
print "<table cellpadding=\"0\" border=\"0\"><tr><td valign=\"top\">";
get_group_thumbs($groupthumbs_style,$groupid2,$s_g roupthumbs_amount,$s_groupthumbs_amount,$groupthum bs_size);
print " </td></tr></table>";
print "</td></tr></table>";
}
what am I supposed to replace with what. Sorry, I see variables, but I'mnot sure if I'm supposed to replace the entire string with somthing that points to an image in particular...
Any help is appreciated. Thanks
k
There are always several solutions to a problem, some real and some hacks - I am very busy now with some code which you most likely will want to see finished but here's one hack:
- in groupindex.php do simple if clause (after current if ($groupimage != "")....) by group id, like
if ($groupid == "1") {
print "http://www.yourserver.com/photos/image/this.jpg";
}
if ($groupid == "5") {
print "http://www.yourserver.com/photos/image/that.jpg";
}
and set group thumbs to zero in group editor.
vBulletin® v3.6.12, Copyright ©2000-2012, Jelsoft Enterprises Ltd.