Site Links
Home
Features
Documentation
Pricing & Order
Members Area
Support Options
UBBDev.com
UBBWiki.com
Who's Online Now
2 registered members (isaac, mmkk), 44 guests, and 382 spiders.
Key: Admin, Global Mod, Mod
Member Spotlight
whk
whk
Portsmouth, RI
Posts: 86
Joined: January 2009
Show All Member Profiles 
Top Posters(30 Days)
Gizmo 12
M4TT 9
Ruben 8
mmkk 4
isaac 4
FREAK 3
Latest Photos
Chinese Buddhist temple.
My buddha beads.
Rendered Walls
Multi-Screen wallpaper
Stockholm Metro
Previous Thread
Next Thread
Print Thread
Refresh the Header Graphic automatically #256179
12/09/14 02:18 PM
12/09/14 02:18 PM
Joined: Oct 2006
Posts: 370
Issaquah, WA
Bill B Offline OP

enthusiast
Bill B  Offline OP

enthusiast
Joined: Oct 2006
Posts: 370
Issaquah, WA
Every two weeks or so, I change the header graphic on our forum. That keeps it looking FRESH and I get to show-off different cars.

I've just realized that lots of folks DON"T see the new header because they stay logged in for weeks at a time -- and they never REFRESH the screen.

So, my question is, can I add a "Refresh" statement that will "automatically" do this?? Even if they stay logged in?

(I want a person's account to LOOK for a new header graphic each time they visit the site.)


--BIll B
Express Hosting
Express Hosting "We are the official hosting company of UBB.threads. Ask us about our free migration services to migrate your UBB.threads installation."
Re: Refresh the Header Graphic automatically [Re: Bill B] #256180
12/09/14 02:31 PM
12/09/14 02:31 PM
Joined: Apr 2004
Posts: 1,005
California
isaac Online splat
UBB.threads Developer
isaac  Online Splat
UBB.threads Developer
Joined: Apr 2004
Posts: 1,005
California
That would be controlled mainly by their cached files, and their cache file settings.

You could possibly add a few lines to your htaccess file to give your site some control over how it requests others to cache your files, but ultimately, their cache is prority over whatever you tell it to do.

Add this to your .htaccess file -

Code
<FilesMatch "\.(ico|pdf|flv|jpg|jpeg|png|gif|js|css|swf)$">
  Header set Cache-Control "max-age=1209600, public"
</FilesMatch>


But the best way to control that your users see your most up to date header image, is just to use a different file name when you change the image.

If your current header image is name "201412.jpg", and you want that image to refresh for everyone in January, edit your header and use "201501.jpg". At first, no one will have that file in their cache, so it will be requested from the server. Then use "201502.jpg" for February... and so on.

Re: Refresh the Header Graphic automatically [Re: isaac] #256181
12/10/14 01:55 AM
12/10/14 01:55 AM
Joined: Oct 2006
Posts: 370
Issaquah, WA
Bill B Offline OP

enthusiast
Bill B  Offline OP

enthusiast
Joined: Oct 2006
Posts: 370
Issaquah, WA
Oh, yes, of course... change the name! Dang it... Should have thought of that.

I liked using the same name, because all I had to do was save a new graphic file with same name... but of course, you're right... using a different name would FORCE it to change the display...

Hummm... Let me think about this. How can I easily change the name that CP is looking for?
I guess that I could change forum/includes/header.php -- or just modify it via the CP.

Okay... just changed the name and EVERYONE got bumped to the new graphic.

Thanks -- Sometimes the answer is just TOO obvious! :-)



--BIll B
Re: Refresh the Header Graphic automatically [Re: Bill B] #256183
12/10/14 10:18 AM
12/10/14 10:18 AM
Joined: Jun 2006
Posts: 16,788
Portland, OR; USA
Gizmo Offline
UBB.threads Developer
Gizmo  Offline
UBB.threads Developer
Joined: Jun 2006
Posts: 16,788
Portland, OR; USA
You could just add it to the header includes in the CP, then there is no modifications needed.

I don't recall which former member it was, due to lack of communication and lack of updates a huge amount of members have flocked away from the UBB, but someone had a php script which would randomly change their signature graphic; a little complicated for what you're looking for though.


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Forums: A Gardeners Forum Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Re: Refresh the Header Graphic automatically [Re: Bill B] #256185
12/10/14 01:56 PM
12/10/14 01:56 PM
Joined: Dec 2003
Posts: 5,827
Lutz,FL
Ruben Offline

Ruben  Offline


Joined: Dec 2003
Posts: 5,827
Lutz,FL
Something I use is:
http://www.spyka.net/scripts/javascript/simple-banner-rotator.
I add it all to the html includes section of UBB and edit from it also.


Blue Man Group


There is no such thing as stupid questions. Just stupid answers
Re: Refresh the Header Graphic automatically [Re: Bill B] #256188
12/10/14 07:30 PM
12/10/14 07:30 PM
Joined: Jun 2006
Posts: 16,788
Portland, OR; USA
Gizmo Offline
UBB.threads Developer
Gizmo  Offline
UBB.threads Developer
Joined: Jun 2006
Posts: 16,788
Portland, OR; USA
Wouldn't be much harder than randomizing a php array really; don't see the point of it having to be any more involved if you wanted multiple ad's to cycle through


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Forums: A Gardeners Forum Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Re: Refresh the Header Graphic automatically [Re: Bill B] #256192
12/13/14 03:30 AM
12/13/14 03:30 AM
Joined: Oct 2006
Posts: 370
Issaquah, WA
Bill B Offline OP

enthusiast
Bill B  Offline OP

enthusiast
Joined: Oct 2006
Posts: 370
Issaquah, WA
Thanks guys... i wasn't looking for a rotating header or randomizing it.

Just want to replace it every week or two. I realized that many guys were still seeing the "old" header since they don't log out.

So just changing the graphic name is probably the quickest and easiest way - using the CP.

By the way, I do use a "changing graphic" in one of my islands -- "Wha Sup?" It changes every day to a new graphic and text. I have set it up with 365 days. (although I only have about 100 graphics so far)... but it's cool and it keeps the site "fresh".

http://vcca.org/forum/

--Bill


--BIll B
Re: Refresh the Header Graphic automatically [Re: Bill B] #256193
12/13/14 01:38 PM
12/13/14 01:38 PM
Joined: Jun 2006
Posts: 16,788
Portland, OR; USA
Gizmo Offline
UBB.threads Developer
Gizmo  Offline
UBB.threads Developer
Joined: Jun 2006
Posts: 16,788
Portland, OR; USA
Originally Posted by Bill B
By the way, I do use a "changing graphic" in one of my islands -- "Wha Sup?" It changes every day to a new graphic and text. I have set it up with 365 days. (although I only have about 100 graphics so far)... but it's cool and it keeps the site "fresh".
I'd totally add all graphics to an array, randomize it, and set its cache for 1 day; you'd never have to update a thing, lol


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Forums: A Gardeners Forum Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Re: Refresh the Header Graphic automatically [Re: Bill B] #256200
12/16/14 01:43 AM
12/16/14 01:43 AM
Joined: Oct 2006
Posts: 370
Issaquah, WA
Bill B Offline OP

enthusiast
Bill B  Offline OP

enthusiast
Joined: Oct 2006
Posts: 370
Issaquah, WA
Well, tomorrow (the 16th) is our Forum's Birthday -- 13 years!! So I had to create a new header for tomorrow.... Hooray!!

That makes three new headers in about 10 days... ouch... Sure glad that you reminded me to change the name -- that way EVERYONE sees all of the hard work that I put into this thing. :-)


--BIll B

Shout Box
Today's Birthdays
No Birthdays
Recent Topics
Users Unable to Upload Avatar [Not a Bug]
by M4TT. 12/13/17 08:51 AM
Shout Box Sound Effect
by M4TT. 11/29/17 08:28 PM
Ad island
by TGCsanderson. 11/25/17 06:41 PM
Taking to long to connect to DB
by AstroCat. 11/24/17 12:34 PM
Forum Statistics
Forums36
Topics35,015
Posts190,545
Members12,045
Most Online978
Jun 24th, 2007
Random Image
Powered by UBB.threads™ PHP Forum Software 7.6.1
(Snapshot build 20171217)