Previous Thread
Next Thread
Print Thread
Rate Thread
#183172 02/16/2004 12:12 PM
Joined: Dec 2001
Posts: 699
Member
Member
Offline
Joined: Dec 2001
Posts: 699
I've got an ad script which I want to put up (ported to Perl for convenience - so it can provide a variable containing the ad code).

My question is how can I set this up so that I can use $adcode from my templates, but not break the cache?

UBB.classic 6.3.0, so pretty old.

Sponsored Links
#183173 02/16/2004 2:19 PM
Joined: Jan 2000
Posts: 5,073
Admin Emeritus
Admin Emeritus
Joined: Jan 2000
Posts: 5,073
Look to a client-side solution instead. iframes or Javascript document.write()s that call the script, for instance. Ads could be put on static pages (without SSI) using that method as well.


UBB.classic: Love it or hate it, it was mine.
#183174 02/16/2004 2:50 PM
Joined: Dec 2001
Posts: 699
Member
Member
Offline
Joined: Dec 2001
Posts: 699
So there's no way to capture one state and cache it, then use that?

I'll look at other methods, just would prefer to keep it using the same basic method over the site

[EDIT]And I've just remembered that the file itself is in a .htaccess protected dir...[/EDIT]

#183175 02/16/2004 4:12 PM
Joined: Jan 2000
Posts: 5,073
Admin Emeritus
Admin Emeritus
Joined: Jan 2000
Posts: 5,073
It's more a matter of minimal effort than anything.

You could hijack the cache recall bits to filter in the ads, but that would require quite a bit of custom coding.

Avoiding the entire mess altogether makes much more sense, and avoids yet another code hack... smile


UBB.classic: Love it or hate it, it was mine.
#183176 02/16/2004 4:32 PM
Joined: Dec 2001
Posts: 699
Member
Member
Offline
Joined: Dec 2001
Posts: 699
Hmm
Time to download /cgi-bin/ and /ubbnoncgi/ then tipsy

Sponsored Links

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
Bill B
Bill B
Issaquah, WA
Posts: 87
Joined: December 2001
Forum Statistics
Forums63
Topics37,575
Posts293,932
Members13,824
Most Online6,139
Sep 21st, 2024
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,835
Greg Hard 4,625
Top Posters(30 Days)
Gizmo 1
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-2025 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.1
(Snapshot build 20240918)