Is there a specific DNN Table which can be used to store Product Reviews or third party data? - dotnetnuke

I want to know if there is a specific DNN table in which I can store Product Reviews or any additional information?
Correct me if I am wrong, but I think at the moment you can only use ModuleSettings and TabSettings to achieve this?

Typically, an ecommerce module would have such a feature. Do you have an ecommerce module? (I think that you'd want to tie product reviews to products, so you'll need a place for products, too.
One product, Cart Viper includes reviews, comments, and ratings.
(I just happen to have been working on a site recently that uses Cart Viper, which is the only reason I mention it.)

ModuleSettings and TabSettings are for storing specific settings to a module or a page (aka Tab), e.g. the used skin (theme), container layout, title etc. They should not be used for something else, as they always require a valid ModuleID or TabID, and if that module or page is deleted the entries are gone...
DNN is a very extensible system. If you need this functionality you may search for a module that provides it (e.g. in the DNN Store https://store.dnnsoftware.com, a basic form module could do) - or write one yourself if you are a bit into C# or VB.Net programming. Have a look at various tutorials you can find in the web, also videos on YouTube etc. - and last but not least the DNN Community Wiki (https://www.dnnsoftware.com/wiki), the Documentation (https://www.dnnsoftware.com/docs/index.html), the Community Blog (https://www.dnnsoftware.com/community-blog) and Documentation Center for Developers (https://www.dnnsoftware.com/docs/developers/index.html).
The Forum on the DNN site is also a good place to ask questions if you are stuck at some point, and also the DNN Connect group on Facebook.
Therefore:
Happy DNNing!
Michael

I ended up using the SQLDataProvider from DNN to create a new Database table on the DNN database. I could've used our ERP database but this would've taken longer as I have to consult with other backend developers.
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'{databaseOwner}[{objectQualifier}ProductReviews]') AND type in (N'U'))
BEGIN
CREATE TABLE {databaseOwner}[{objectQualifier}ProductReviews](
ReviewID int IDENTITY(1,1) PRIMARY KEY,
SKU varchar(255),
ReviewText varchar(255),
DatePosted DATETIME,
RatingValue int,
Author varchar(255),
Show int
)
END

Related

Hotel Booking Integration Using Catalook

We want to add a hotel booking system to a DNN site. This concept is discussed here.
We tried to implement hotel booking using catalook, but the catalook store did not find all hotel related fields, like number of bed rooms, beds, bath rooms, accommodates, property type, amenities, etc. We are not clear how to add a custom field in the catalook product detail page for filtering things.
We are using latest catalook version 6.9.1 in DNN 7.4.1. We need additional fields when adding product (hotel) management and we are not sure about booking hotel system using catalook module. Can anyone assist me to move forward for configuring online reservation system using catalook module?
You need to create a new rentable or configurable product. Then under the attributes of the product you can add options such as extra room etc along with prices for each add-on. The manual explains everything. The tabs under the product edit have all the functionalities you need.

Many-to-Many relationship Database in Windows Phone 8.1

I have a simple task:
To build notepad with hashtags.
So user will be able to add a note and to add a list of #hashtags to it.
Basically I will have 2 objects:
Note
Hashtag
I want to be able to access all:
Assigned hashtags to a specific note by note.RelatedHashtags
Assigned notes to a specific hashtag by hashtag.RelatedNotes
It sounds like many-to-many, but I can't find any code example that I can learn from for Windows Phone. Also it sounds like I need to add a third object (table) to keep the data in the needed structure, but than how the mappings should be configured?
The most informative link I found so far:
http://www.geekchamp.com/tips/windows-phone-mango-local-database-sql-ce--association-attribute
Thank you.
The solution was quite simple - to create a third table and relate it to both Notes and Hashtags tables.
I found some very useful code example here.
P.S.: Don't forget to check Local database best practices for Windows Phone

User import to Joomla from CSV file

Sorry for probably duplication but I am not technically minded so I do not understand most of the other posts.
I used to have a website hosted by Spruz - I have exported the user data in CSV files. I want to import this data into my Joomla site (hosted by 1and1) so users of the old ste can log in to the new one without signing up again - I have contacted 1and1 multiple times but I haven't got a helpful answer yet.
Any advice is greatly appreciated.
If you are not technically minded, then you are going to have to use a third party extension to do this. There are a few here:
http://extensions.joomla.org/extensions/migration-a-conversion/users-import-a-export
Make sure your csv matches the format they require.
If you want to do it manually with a database query, then the users table is where most of the data is stored, but check out what all the other tables starting user_ are saving when a user is created, as you may need to link their id to their usergroup or profile.
http://docs.joomla.org/Tables
(Unless they built your site, then it is very unlikely that web hosts will help with any questions about the website's content. You may need to hire a developer to help you if you get really stuck.)

How to create tables dynamically in Google app engine

Hey can anyone tell me how can i create tables dynamically in GAE.I want to create a friend list like in Facebook where i can store the details of my friends.Likewise everyone will have a table of their own.I cannot make a single table because if someone is my friend he might have people who are not my friends so why should i store their details.
I've searched a lot but not found anything.
Also please suggest some alternatives if possible.
In that case you can use namespaces.
https://developers.google.com/appengine/docs/java/multitenancy/multitenancy
For an example of dynamic table creation, you can look at Google's ShardedCounter class at https://developers.google.com/appengine/articles/sharding_counters to see how the name of the table (really Entity in GAE) can be composed at runtime.

Wordpress: difference between site_id and blog_id?

I'm trying to get some understanding of how Wordpress works and while inspecting the database I found that, in a multisite installation, there is a table called wp_site that seems always holding a single record with a corresponding site_id.
I cannot understand (nor find on internet) what is the use of site_id when actually multisites seem to use wp_blogs and corresponding blog_id for identifying different sites.(http://codex.wordpress.org/Database_Description)
Can someone shed some light on what should be my understanding of site_id?
Thanks
Giuseppe
site is a reference to a network of blogs. There are efforts under way to allow WordPress to support multiple networks in addition to multiple blogs, but right now that's not a stock feature (which is why the wp_site table only contains one value.
The wp_blogs table contains all of the blogs for your entire installation, with each identified by the site it's associated with.
This gives you a clean separation between networks, and (eventually) you'll be able to have different "groups" of blogs on one WordPress installation behave like distinct multisite installations.

Resources