How to implement 'category' based newsletter - drupal

Working on my small classified site; i'd like to give the users the ability to choose some categories, for example : cars, boats and receive daily/weekly notifications based on their choices.
A user that has subscribed to 'cars' category will receive daily newsletter saying 'there are 30 new interesting classifieds for you in category : cars'.
Don't know where to start; 'simplenews' module seems too simple for my usage.
Any idea ?

The Subscriptions module seems to do this really well. It will allow your users to select categories they wish to subscribe to as well as the interval they choose to receive notification emails.
As an administrator you can set default category subscriptions for users (if you wish) and to send notification emails in digest form (multiple updates in one email). It doesn't have a time interval of 'weekly' but you may be able to request this in the module issue queue. It is very configurable.

Have you checked out http://drupal.org/project/notifications module?
It's not the easiest module to get your head around but the rewards are pretty good. If you categorising your content using taxonomies then this module should help.

Related

Is it possible to use google analytics to prevent click fraud to accurately increment post view counter?

I'm looking for a service that will provide me analytics to prevent click fraud for saving views in a view_counter in a post table. So basically like this:
->Someone visits one of my sites posts
->Analytics service sends me a response that tells me if the view is an organic click, or a robotic click fraud scam
->If the click is organic the view_counter column is incremented on the post table in the database.
Note I don't want to manually hook each post to something that will be able to do this. I would like to automate the task. So when the post is made on my site the service is automatically set up to count those views and send me a response, so I can save it in the database.
I'm looking at some of the I'm looking at some of the reporting APIs, but am unsure what one I would attempt to use and how I would implement this.
Thanks for any help.
I'm not sure it's help but first of all you have to decide what a good session is. For example you can count only sessions with some duration or some user interactions or maybe if user scroll the page.
And then you can make an advanced segment for these sessions and make custom report for all your articles.
Or export your data to Google Sheets and create a table with all your pages and "good sessions" for them.
https://developers.google.com/analytics/solutions/google-analytics-spreadsheet-add-on?hl=en

Need some hints for my own WP Theme

After taking some online tutorials I am willing to create my own custom theme for my myself. This is going to be an online Contact Lense store! So far I have learned how to generate and use Custom Post Types, Custom Taxonamyies, Metaboxes , and Option pages.but there is still one confusing part left for me(hopefully not more! :-))
I need to get some user inputs through HTML Select Options like following image to finalize the users orders:
Now my question is:
1- Do I have to create some thing lik Metaboxes to manipulate these data from users?
2- can I handle these kind of data through simple Form ans Post function in PHP? If so where should I store these data? Do I have to create a table on my own to handle these things?
I really appreciate your time regrading this post,
What you're asking for carries a little more complexity than you think!
Let's break this down into its meaningful steps:
A user visits your shop, and decides that they like what they see and wants to make an order
The user fills out a form defining their exact eye requirements, quantity, as well as their contact information
Upon completing this form, a new order has been created
But wait.... how will you get paid? What happens if the user's computer explodes before the payment goes through? How will you know to send them their contacts without first knowing the payment even succeeded?
This is where things start to get tricky. You need to be able to keep a record of orders for the sake of your users, but you also need to look out for your own interests too. Your business is doomed to fail if you're sending out expensive products to people without the proper assurance that you're getting paid.
This is where you'll need to set up a Merchant Account with a service like PayPal or Google Checkout. As much as I despise PayPal, their Instant Payment Notification (IPN) System has been very reliable for me. What this does is automatically send a POST request to your server with all of the information you need to finalize the checkout process and alert your user that their payment has either succeeded or failed.
So with this in mind, how does this affect our step-by-step process?
A user visits your shop, and decides that they like what they see and wants to make an order
The user fills out a form defining their exact eye requirements, quantity, as well as their contact information
Upon completing this form, a new order has been created with a status of pending
The user is then sent to PayPal/Google Checkout to enter their Credit Card information to complete their purchase
PayPal/Google processes the payment
PayPal/Google sends your server the results of the processed payment
The corresponding order is updated with a status of Payment Received or Payment Failed for your own records
You send out the product to a very satisfied customer
So what will this mean from a Wordpress standpoint?
My first suggestion:
Check if a Plugin already exists that can handle this for you!!!
Seriously, this will make your life much easier. Handling people's money as well as your own stock is a nightmare all in itself, you don't want to be responsible for handling the code that drives it, or the possibility of security holes that you might not know about (that other plugins may have already addressed). WooCommerce is a popular one. See if that can handle what you need.
If a Plugin can't do it for you, then you'll need to:
Register a Custom Post Type for Orders
Create a new Order Post using wp_insert_post when a user submits the form with their POST data
Save the relevant POST data you need as metadata using update_post_meta
Send PayPal/Google/Whatever some Custom Information it needs to hang on to - in this case, the newly created Order Post ID - so that it can send it back to your own server
Set up a side-script to process the data sent by PayPal/Google Checkout/Whatever and send an email to the user detailing the status of their purchase and update the corresponding Order Post ID that was sent back by PayPal/Google Checkout/Whatever
(Optional) Set up a CRON Job to periodically scan all Pending orders in case a user's session was interrupted, or they bailed at the last second during checkout and send them an email notifying them about this and provide them a link to your website to reopen, reevaluate, and resend the order, or cancel and clear it from your database
Quite honestly, this would take even a seasoned Developer at least a few weeks worth of work just to get it in working condition. Presentation is a whole different animal.
Hopefully this will give you a step in the right direction. I doubt anybody here will give you the code to do what you need, because there's just too much to post. Entire libraries are built just for these kinds of things.
Good luck!

post/send updates or messages to fans(who likes website) not as user

I have simple website for auctioning.I want people who likes my website needs to be informed about any new auctioning. And sending messages or post updates to their news feed or post on their wall when they win the auction. The user can also share the story of a new auction to their friends.
For this Do I need separate canvas app ?
I went through the documentation http://csharpsdk.org/. Also I read official graph api docs.
I thought there will be lists of classes in a namespace and its use. Lists of methods, properties in a class and its uses and explanation for parameters.
I cant find such documentation for facebook c# sdk. In official docs they only have 5 articles in which 3 are [TO-DO].
I cant find what are the classes are there?
what are the purpose of
the particular class or method ?
For informing about new Auctioning and winning news what can be used ?
sending mesages
post on their news feed
post on their wall(or timeline)
I found how to post on behalf of the user. But I need to inform the fans of my website when there is a new auctioning. How to do it?
Winning an auction
About generating user actions on their walls about winning auctions and stuff, you need to look at facebook open graph
For informing about new Auctioning and winning news what can be used ?
#1 sending messages is not possible
Notifying users
For sending notification to users about new auctions, you need to use apprequests
But apprequests are only for canvas apps, apart from this I don't thing you have a chance of notifying the user, unless you store their emails id and notify them.
Hope this helps

How should I implement currency conversion in my Druppal application?

If an User has X amount of credits on his account (I think CCK can store this value). He can create specific Nodes (requests for admin). Each Node has a Type (Taxonomy defined, may be. Or via CCK). Each Type has associated number of credits. When user publishes a Node providing certain type, his balance of credits decreases by the number of credits Node Type has (admin will perform this request and send user notification email).
This is some kind of very simple e-shop for activation codes. I didn't want to use Ubercart due to it's complexity. May be this functionality can be achieved using some simple Drupal modules? Or may be there are some alternate ways? Or it is better to go Ubercart (can it do what I want BTW)?
I've seen folks in the Ubercart forums do this kind of thing for purchasing/posting ads on a site.
Check out these modules:
http://drupal.org/project/uc_store_credit
http://drupal.org/project/userpoints_ubercart
https://www.drupal.org/sandbox/taggartj/2343093
may be worth a look it is a credit system, adds a product feature to give user credits also has good helper functions to integrate with rules ect , also has a sub module to limit a content type by amount of credits and then deducts after the new node has ben created & has blocks to show the user their credits and credit history :)

Drupal Notifications - Users receiving duplicate emails

We are using Drupal (5.x) Notifications module.
Our users are receiving duplicate emails (related to forum posts)
First email has this subject line: "Your Daily xyz Discussion Digest"
Second email has this subject line: "xyz subscription update for UserABC"
Content is somewhat similar. (formatting is different).
Tried to google for solution. No luck yet.
Any one seen this issue before?
Any suggestions?
sounds like message duping:
Deduping
There may be also more than one
subscription producing multiple
notifications for the same event. I.e.
if you are subscribed to 'story
updates' and subscribed to the
specific thready 'my story 1', then
updating 'my story 1' will actually
produce two notifications, one for
each subscription. These go through
some deduping process before being
sent out, merging notifications for
the same event into one notification.
However, this can be done if (and only
if) both subscriptions are using the
same sending method and the same
sending interval. Otherwise you'll be
getting two or more different
notifications for the same event.
see http://drupal.org/node/318577

Resources