php forum
php mysql forum
php mysql smarty
 
Topic Options
#115935 - 06/27/05 07:56 PM random images in place of title image
Wendy Anderson Offline
Junior Member

Registered: 06/27/05
Posts: 17

   random images in place of title image to Del.icio.us Add to del.icio.us
  Digg random images in place of title image Digg it
Boo!

Rather than the same title image appearing over and over and over, I am trying to implement a simple random image perl script. How can this be done? I realize each style and forum can be customized but even that get's boring...

I'm using Matt's Random Image script, btw. It's just a few lines of code.

I realize that the style template pages will have to be changed, which seem to have precedence over public_commom.pl.

In my public_common.pl, I have:

$standard_title_table = qq~
<table border="0" width="$vars_style{TableWidth}">
<tr><td align="right" valign="top"><img src="http://housechurch.org/cgi-bin/rand_image.pl" border="0" align="right" alt="$vars_config{BBName}" />
</td>
<td align="center">
<b>

In the styles template, what do I substitute the title.gif for in order to allow/engage the random image script?

Thank you for considering.

Top
#115936 - 06/28/05 12:56 PM Re: random images in place of title image
Ian Spence Offline
Master Hacker

Registered: 01/25/03
Posts: 3765
Loc: Saint Johns, PA
In public_common.pl, find
Code:
my $image_cell = qq~<a href="$args{image_href}"><img src="$args{image_src}" border="0" alt="$args{image_title}" /></a>~;
ABOVE IT ADD:
Code:
$args{image_src} = "$vars_config{CGIURL}/rand_image.pl"; 
_________________________
Code monkey like Fritos

Top
#115937 - 06/28/05 02:07 PM Re: random images in place of title image
Wendy Anderson Offline
Junior Member

Registered: 06/27/05
Posts: 17
I can't wait to try that code, bro. It looks very sly. I bet we could put a tail on it and call it a weasel. smile

Well, a hearty thanks coming at you from East Tennessee.

Top


Moderator:  Gizmo, tackaberry 
Top Posters Last 30 Days
AllenAyres 20
Gizmo 10
blaaskaak 2
S7ARBVCK 2
Iann128 1
Claus1 1
M4D 1
Who's Online
0 Registered (), 33 Guests and 5 Spiders online.
Key: Admin, Global Mod, Mod
Shout Box

Latest Posts
Security Patch released for all 7.x versions
by AllenAyres
Yesterday at 08:00 PM
What do you use to edit the files
by AllenAyres
Yesterday at 07:54 PM
Team UBBDev Rides Again!
by AllenAyres
Yesterday at 07:32 PM
Here I am! Rock me like a Hurricane!
by AllenAyres
Yesterday at 07:20 PM
BeyondCompare v3.00
by AllenAyres
Yesterday at 07:16 PM
[7.3.1] add search to showmembers page
by AllenAyres
Yesterday at 07:13 PM
Noob - need help, or a reality check!
by Gizmo
09/04/08 03:21 AM
New Mods
[7.3.1] add search to showmembers page
by blaaskaak
Yesterday at 04:50 AM
Installing FlashChat with 7.3
by Paug
08/23/08 12:14 AM
[7.3.x] ubb.links
by AllenAyres
06/20/08 11:50 PM
[7.2.1] - Naked shoutbox
by sirdude
08/17/07 10:36 PM
[7.x] Generic Page Outside of forum directory
by
01/14/07 10:58 PM
Newest Members
veedubb8, twentyseven, Claus1, welcomeback1, Paug
13327 Registered Users

 

 

 
fusionbb message board php hacks