automatically updatable widget
This blog is for a group of close to 300 members. I have a database of the members birthdays and anniversaries. In the blog, I update daily the members who are celebrating their birthday or anniversary in 2 different text widgets. Would it be possible to have a widget that would automate this process based on today’s date.
If you’re on WordPress.com, I’m going to say most likely no. It would take some sort of scripting to pull stuff out of a database and show it. And scripts get stripped here for security concerns.
On a self hosted wordpress blog, I don’t see why not. It seems like it would be a fairly simple MySQL (or whatever database you have) lookup (select where type syntax) and some PHP to present it. Not that I could code my way out of a paper bag…
If you are hosted elsewhere, I would take a second and look over the plugin list at the codex to see if something is available already:
I am very much hosted on wordpress and the blog is under construction
You could do it as automatic posts (changing the datestamp when you write them up to set the correct day), but it would appear in the blog itself on the day in question instead of in the sidebar.
Thanks raincoaster for the reply. Like I said, I am very new to blogging. I have this text widget on the side bar and need to update daily based on if any of the group member is celebrating their birthday or anniversary. I can generate the html code for the text widget on my machine on a daily basis and can name it appropriately. Is there any way for this html code to automatically get into the text widget. May be I am asking for a whole lot.
There’s no way I know of to pull information automagically from your local machine to the text widgets. But maybe drmike does.
Not with what we have here. Please note that hosted on wordpress and hosted on wordpress.com are two different things. That’s why we were asking you where you were actually hosted as our answers would be different for each situation.
You could do it if you were using the wordpress software from http://wordpress.org and were hosted elsewhere. May require some coding though.
You can not do it here with the WordPress Multiuser software and being hosted here at http://wordpress.com You would have to add in code and, since we’re on a shared enviornment, that would be a secuirty risk.
Sorry about not being clear in my earlier posts. I am hosted on wordpress.com. I think it will be easier to update the text widget on daily basis manually.
Not a problem :)
The topic ‘automatically updatable widget’ is closed to new replies.