DNN - Get date a module was upload - dotnetnuke

I need to show a message when a user's last login was before the last time we update a module.
I can get the users last login using a cookie (if need be) but I can't seem to find a way of extracting the date a module was last updated/uploaded.
I am able to create a moduelINfo object which has some date fields but their all MinValue
is there a way of either:
1) Retrieving the date a module was uploaded
2) Automatically saving the date as a portal/moduleSetting when we upload or compile the module (ChrisToc)
3) Some other means of testing whether a user's last visit was before the last update.
Thanks

You will probably end up having to do this by looking directly at the Database, in the DESKTOPMODULES table, to see when the LastModifiedOnDate column is updated for the module in question. I don't know that DNN keeps track of module versions like it does with the platform itself (DNN uses the Versions table)

Related

Update website automatically via database

So I have created a database for my church website that the admin can upload our current sermons easily and it update the website automatically based on what the date is.
Use Case:
Admin Uploads Sermon 3 months before it starts --> No Change on the website --> 3 Months pass and it’s the first Sunday that sermon is airing —> Website updates to show the sermon.
openarms.site down at the bottom is where I want it to be viewable, showing the previous 10ish sermons with the most current one being at the left.
I’ve successfully made the code to upload the sermons to the database but I am not sure where to start on the website updating it’s self. Does anyone have any ideas?
Depends on which language you're writing your website in. The basic idea is you need to have different views in your database and your website only serves the most current view and in the database the views are updated at regular intervals based on whatever update logic you have.

WP Contact Form 7 Database Migration Mail fields missing

After a database migration to another server "Mail" fields are missing.
e.g To, From, Additional Headers, Message Body etc are not there??
The form information is there.
I know this is plugin related I sent a message to contact form 7 message boards with no response yet.
Thanks for your help.
I figured out that it was to do with exporting the database to sql, then using find and replace on my URLs (to point to new URL upon migration), resets the "mail" section of contact form 7 leaving fields blank.
It also reseted the wysiwig content of another plugin called "Accordions" leaving it blank.
Workaround I used was to export the content using "Wordpress Importer" then re-imported files on new migrated site.
I know this is an old question, but I would like to suggest this plugin to fix this missing field error:
https://wordpress.org/plugins/fix-contact-form-7-blank-fields/

Drupal 7 - getting list of pages with number of hits and created date

I'm new to Drupal, I have a site of version 7.12 that I need to make changes to. A complete relaunch. For that I need to provide a list of all the content type pages that are frequently searched and pages that never got hit so that I can remove them. Is there a way to see that list?
You needed to have the statistics module turned on for drupal to track this information. You can see how to turn it on here:
https://drupal.org/documentation/modules/statistics
Another possible solution is if you had google analytics setup on your site you could see all that information.

getting feeds to update in Managing News 1.2 (Drupal 7 distribution)

I am attempting to create a half decent substitute for Google Reader but am running into a problem: when I first set up the distribution named in the title I was able to add a bunch of feeds which were displaying as hoped for (most recent posts first).
My assumption was that every time I visited the site, the RSS feeds would update and show any new content. However, the only content displayed is that which was new the day I added the feeds.
How can I address this? I notice that if I add a new feed, all the other feeds update to their newest content, if this helps put my problem in context.
Grateful for any help!
Feeds are fetched during creation and cron run in managing news distribution.
So try setting up cron jobs properly.
Also make sure the feeds that you are fetching has new contents ( by manually inspecting the feed xml).

accessing form fields in html module in dnn

in my dotnetnuke site, i have added a form and list module. And added the form containing fields name, occupation..., and records are added. will i able to get the values in another html module(row wise or column wise)
I'm not sure what exactly you want to do. What I understand is, you have listing of some object in one module and insert/update/delete in another module and you've installed both of them in same tab and now you wan to update listing module when edit module changes.
you can use IMC for implementing such kind of functionality.
No, you can't access the data from an HTML Module. But, you can certainly display the data in a variety of ways. If you want the same people who enter the data to view the data, just go into module settings and for "Appearance", select "Form Above List" or "Form Below List". That will cause the module to display both the Form and the List.
If you need more advanced control, you could also use the Reports module or a module like Efficion's Advanced Data Grid to display the data but you'll need to understand SQL pretty well to make those work.

Resources