Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » Sidebars & Widgets »

Is it possible to auto-refresh a text widget ?


  #1  
Old Sep 24, 2012, 12:59 AM
Paul33
 
38 posts · May 2009
I can't get an answer to this one elsewhere so here goes !

I run a sports blog on game nights that needs to have a simple widget or plug-in that carries the game score and which updates without visitors/fans having to continually hit F5/Refresh in case the score has changed (that screws the site up big time !). A simple text widget would do.

There is other content on the page - eg: a chat room - so I don't want the whole page to refresh - only the score.

It sounds simple but I just can't find a way to do it and would love some ideas !
  #2  
Old Sep 24, 2012, 06:02 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
The only way I can think it might work would be to have a jscript that did it
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support

Last edited by juggledad; Sep 24, 2012 at 06:16 AM.
  #3  
Old Sep 24, 2012, 04:25 PM
Paul33
 
38 posts · May 2009
I'm looking at using the header image as my scoreboard by uploading an image that I update with the score.

I'm thinking if I place only one image in the theme's images/header directory (with the scoreboard on) and select the option to rotate every 15 seconds with javascript then each time I upload a revised scoreboard image, it will pick that up on refresh.

Will that work - I can't see why it wouldn't ?

Last edited by Paul33; Sep 24, 2012 at 05:44 PM.
  #4  
Old Sep 24, 2012, 06:16 PM
Jam's Avatar
Jam
 
1,112 posts · Mar 2011
Perth, Western Australia
Readers browsers will cache the first image it loads. I dont think it will work, they will only see original image loaded when they first viewed that page.
__________________
May the learning curve never plateau... Thanks Larry for teaching me heaps.
My Themeframe built sites
  #5  
Old Sep 24, 2012, 06:50 PM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
it should be easy to test, let us know if it works.
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #6  
Old Sep 24, 2012, 09:11 PM
lmilesw's Avatar
lmilesw
 
10,176 posts · Jul 2009
Central New York State USA
A quick search on wordpress.org found this plugin.
__________________
~Larry (CNY Web Designs)
This site should be a membership site since it so full of good stuff.
Please consider donating which gives you access to even more good stuff.
  #7  
Old Sep 25, 2012, 02:17 AM
Paul33
 
38 posts · May 2009
Jam was right - the browser just ignores the updated file even if I upload it with a different name.

Is there no code I can add within the header section to make it refresh somehow ?
  #8  
Old Sep 25, 2012, 07:27 AM
lmilesw's Avatar
lmilesw
 
10,176 posts · Jul 2009
Central New York State USA
The plugin I sent a link to does a live update. The only downside I see is that you would see all the scores like a Twitter feed with the latest score at the top. Someone who is logged into the site can update the score from the front end and it will automatically update.
__________________
~Larry (CNY Web Designs)
This site should be a membership site since it so full of good stuff.
Please consider donating which gives you access to even more good stuff.
  #9  
Old Sep 25, 2012, 09:58 AM
Paul33
 
38 posts · May 2009
I think the plug-in is fine as you can limit the displayed messages to just one (the latest) thus making it look like it is updating.

However, cosmetically the header idea looks great if I could make it work but unless somebody knows how to force an auto refresh or somehow to ignore the cache then I'm stuck. I'm positive there is a bit of code that will do this but I'm just not clever enough to know what it is !
  #10  
Old Sep 25, 2012, 10:05 AM
lmilesw's Avatar
lmilesw
 
10,176 posts · Jul 2009
Central New York State USA
You could put the plugin into the header by adding a new widget area per the the header config box. The info on adding a new widget area is in that section of the theme options. Then you could increase the font size of the score with CSS.
__________________
~Larry (CNY Web Designs)
This site should be a membership site since it so full of good stuff.
Please consider donating which gives you access to even more good stuff.
  #11  
Old Sep 25, 2012, 10:13 AM
Paul33
 
38 posts · May 2009
Mmmmm ..... never thought of that !

Will try that out - many thanks !

Bookmarks

Tags
refresh, widget



Similar Threads
Thread Thread Starter Forum Replies Last Post
accordion image menu pictures spread over page on refresh Chuckles Forum How-To 2 Aug 11, 2011 11:16 PM
Header Area Widget Table auto resizing holyyakker Sidebars & Widgets 1 Feb 2, 2011 02:42 PM
[SOLVED] Page title and font changes colour on refresh? norwichkaren Atahualpa 3 Wordpress theme 2 Aug 5, 2009 06:11 AM


All times are GMT -6. The time now is 01:33 PM.


Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.