Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Jun 2005
Posts: 17
W
Junior Member
OP Offline
Junior Member
W
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
I
Master Hacker
Offline
Master Hacker
I
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
W
Junior Member
OP Offline
Junior Member
W
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
jgeoff
jgeoff
NJ
Posts: 96
Joined: April 2001
Forum Statistics
Forums63
Topics37,557
Posts293,856
Members13,847
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,819
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 70
Gizmo 16
Brett 7
WebGuy 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2021 VNC Web Services

 
Responsive Width:

PHP: 7.3.29 Page Time: 0.012s Queries: 20 (0.007s) Memory: 0.7929 MB (Peak: 0.8218 MB) Data Comp: Zlib Server Time: 2021-10-27 10:53:31 UTC
Valid HTML 5 and Valid CSS