Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Jun 2005
Posts: 17
Junior Member
Junior Member
Offline
Joined: Jun 2005
Posts: 17
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~


$vars_config{BBName}



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.
Sponsored Links
Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
Joined: Jan 2003
Posts: 3,456
Likes: 2
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"; 

Joined: Jun 2005
Posts: 17
Junior Member
Junior Member
Offline
Joined: Jun 2005
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.


Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
hatter
hatter
USA
Posts: 69
Joined: January 2001
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services