Drupal import Tweets from Twitter as Nodes - drupal

I want to be able to import my tweets from twitter into Drupal as Nndes. I want to be able to link #names and #tags back to the correct pages. I also don't want myTweeterName to appear at the start of the tweet.
How would you go about doing this? The twitter module does not create nodes but stores data in its own table. The feed module can read in the tweets from the RSS feed as nodes, but will display my name and not link #names and #tags.
The following post by Gábor shows how he has done it but I am not sure how he has written a custom module to do this.
Any pointers would be appreciated.

Gabor is using the Feeds module along with the input filter from the twitter module.
From his post:
Tweets have certain special items like
#username references and #hashtags.
These should be linked to their
respective twitter.com pages, and
twitter module has input filters for
these which I could use to build up an
input format. (Given my use case, I
had no use for the rest of the twitter
module, so I took the format code into
my site-specific module, and do not
actually use twitter.module.) The
twitter feed also includes my username
at the beginning, which my site
readers will either know or do not
care about, so I also wrote a quick
filter which will transform my
username to a "from twitter" link at
the end of the node body.
You'll need to start importing your tweets using the feeds module. Then you'll need to add the input formats from the Twitter module to your default import (probably "Filtered HTML").

This is not possible any more, as Twitter does not export the user timeline as an RSS feed

Related

How to use URLs extracted from a website as data source for another table in Power BI

I have a situation where I need to extract tables from 13 different links, which have the same structure, and then append them into only one table with all the data. This way, at first I extracted the links from a home page by copying the link from the respective hyperlink, and then import the data through the Web connector on Power BI. However, 3 months later, I realized that those links changed every quarter but the link from the homepage where they are listed remain the same.
This way, I did some research and I found out this video on YouTube (https://www.youtube.com/watch?v=oxglJL0VWOI), which explained how I can scrape the links from a website, by building a table with the header of the link as a column and the respective link as another column. This way, I can have the links automatically updated, whenever I refresh the data.
The thing is that I am having issues to figure out how can I use this links to extract the data automatically without having to copy them one by one and then import the data using the Power BI Web connector (Web.BrowserContents). Does anyone can give me a hint of how can I implement this?
Thanks in advance!

How to add a membership cards to my website that can member downloaded

I have a website with Wordpress and I want to add members cards that they can fill their information and can download it from the website, but not sure how to do it I look for a plugin but I did not find.
also, I have 2 data on my website 'Event and Users' could I add them in one excel sheet or no?
I tried to look for a plugin
you need to separate your questions and add more information about your problem.
I'll try to help you:
** members cards **
You can use a form plugin to let the user fill the data (for example: name, surname, birth date, ecc..) that you need to print in the card. I suggest you to use this: https://formidableforms.com
the difficult way: you can intercept the form submission with formidable specific function "https://formidableforms.com/knowledgebase/frm_after_create_entry/" and with the collected data you can create image in the fly with php and imagemagik (or GD or other) https://www.php.net/manual/en/book.imagick.php. This part need that you have a little bit of experience in development. Check next point for a much simpler alternatives
the simple way: With formidable you can create a post (or better custom post) with the collected data without working on code:
https://formidableforms.com/knowledgebase/create-posts/ then you can redirect user to that page.
Invite the user to print that page and setup a specific css for print: https://benfrain.com/create-print-styles-using-css3-media-queries/

Woocommerce CVS Import with Variations?

A site we're building is nearly complete and the last thing to do is import all the products (no problem) and importantly, product variations... I looked through the documentation, specifically the Attributes and Product Variations sections, but am still lost on how this should be done.
From the Product Variations section of the documentation, it is my understanding that a separate CSV needs to be imported just for the variations and that I need to use meta:attribute_pa_size, meta:attribute_pa_color, and meta:attribute_pa_style for the column headers.
But then, in the Attributes section, I'm assuming of the main (non-variations) CSV, it says I need to insert these columns: attribute:attribute name, attribute:pa_size, and attribute_data:pa_size
But after playing around with these columns, I'm getting nowhere and can't for the life of me get variations to import.
I have tried manually creating a product, adding variations and getting everything working, then doing a CSV export. Upon entering a new product in exactly the same format into that same CSV and reimporting, the variations still don't show up.
Maybe it has something to do with the "Attributes" menu under "Products"? I had a play in there but am still at a loss.
I know this must be possible, and help would be very much appreciated.
Here's the method I use, with great success:
Buy Mike's CSV Import Suite plugin for Woocommerce (http://www.woothemes.com/products/product-csv-import-suite/)
Create attributes and add a product with attributes
Export CSV using plugin
Use CSV as a template, and fill out the rest of the product info with attributes (split variation with the pipe '|' symbol)
Import using plugin
That should sort out your problem
WP All Import is better for importing variable products to WooCommerce because you don't need to have the CSV in a specific format like you do with the import suite from WooThemes.
The WooThemes tool is good if you already have your products inside WooCommerce and want to export them, modify them, and re-import them.
The WP All Import plugin is good if you have an XML or CSV file and just need to get it into WooCommerce without the need to modify the file to get it in some special format.
All the suggestions of exporting and using as a template are very good. However if you requires product variations then the export does not, in my experience export what is required.
To achieve this you need a live per variation and the export does not do this.
To answer sootylad's question. you are on the right track. you do need columns:
meta:attribute_pa_colour meta:attribute_pa_sizes
in the Product Variations CSV but if you want to have different attributes for each variation you need a line in the Product Variations CSV for each difference. EG if you want a different image then you need to add the image slug the "meta:attribute_pa_colour" column.
BE VERY CAREFUL - IT IS CASE SENSITIVE.
Pink is not tha same as pink.
I spent weeks on this. It was driving me round the twist.

RSS for Future Items

This may be a simple question, but for some reason I don't know this answer. Is it possible to create an RSS feed file that contains contents for an entire year but only publishes the current date and previous date information?
I have a client that wants to do a "this day in history" post. Currently, I am using IFTTT, and created around sixty dated posts for the next two months. Of course, this works -- but it is very labor intensive.
Is it possible to create an RSS feed that you could put all 365 days of data in to, but if someone pulls up the feed it only shows today's item and prior days in the feed?
Or is RSS not the proper technology to do this? The reason I am using RSS is for ease of use, and IFTTT will take those RSS feeds and pump it in to Facebook and Twitter for automatic status updates for my client.
There are various tools that let you define Facebook and Twitter posts in advance, to be published at a specified date and time in the future. Why not use one of those instead of writing your own?
A quick search for "scheduled twitter post" uncovered Later Bro, Twuffer and twAitter but there must be dozens to choose from.
If you're looking for just posting on Facebook and Twitter, and not an RSS feed as well, I'd follow Matthew's suggestion. If you want an RSS feed, there is a feed for each Twitter feed. But if you want actual RSS, you need to add something in between. An RSS feed is just an XML file. it's not a process. I suggest having a file of some type (maybe RSS, or other XML, or a database table, or even a csv file with all the posts and relevant information, including date. Then a small script that runs as a chron job (or IFTTT if it supports date as trigger and running a script as the "then" part) that pulls the day's feed and updates the actual RSS feed. Pretty simple.
Here is what I ended up doing
Using the Drupal backend of my website, I created a content type specifically for these posts.
I created individual articles for each day, and used the schedule module to schedule the publish date to the date I wanted.
I created an RSS feed of these posts through Drupal.
I linked the newly created RSS feed to IFTTT.
Created an IFTTT recipe to post the text from the RSS feed to Facebook/Twitter/etc.
It wasn't the best solution, but it worked. I was really trying to do this without having to rely on a third-party such as IFTTT, but never really figured out a good way to do it.

Combining content types into a single PDF in Drupal 6

So, I'm working on a Drupal 6 project that ultimately replaces a big, complex Excel spreadsheet with a workflow as such:
Customer books an appointment via the Bookings API
Employee goes to customer and does a bunch of measurements
Employee enters measurements into either an uploaded Excel spreadsheet or a web-based form
Website generates a PDF with measurement sheet and the output from the Invoice module
Customer receives an email with link to watermarked version of PDF.
Customer pays online and receives link to unwatermarked PDF.
My questions are:
What is the best way to go about Part 3 (Such that the data can be used by Parts 4-6)? CCK fields and a custom content type?
What is the best way to combine content types (I.e., "Measurements" custom content type with "Invoice" content type) into a single PDF?
Bonus Marks: Any way to auto-populate Invoice module content types?
Any help will be muchly appreciated!
You are actyally trying to sell a product with customisable input (comparable to a t-shirt with a custom print, but instead of using a custom picture, you use custom data).
Here is what I did for a comparable project:
Use ubercart: http://www.ubercart.org/
Use the UC Node Checkout extension, this allows you to link a node to an ubercart product and use the information in the node for your customised product: http://drupal.org/project/uc_node_checkout
Here's an excellent walkthrough for UC Node Checkout: http://drupaleasy.com/blogs/ultimike/2009/03/event-registration-ubercart
You can use FileField for uploading the Excel file: http://drupal.org/project/filefield
Make sure you use the Transliteration module: http://drupal.org/project/transliteration
The PECL upload progress is also nice to have
You will also need a csv reader, but haven't tried this yet
Finally, to give a link to the file, you can use the Ubercart selling files mechanism: http://www.ubercart.org/docs/user/3345/selling_files
Bonus:
You can use the Automatic node tite module to autoname a node: http://drupal.org/project/auto_nodetitle
For other fields, you can use the token mechanism: http://drupal.org/project/token
I ended up using:
a. Storm for CRM functionality
b. Simple Payments for Storm Invoice payment
c. Print module for PDF output
d. Calendar (+ Views) for appointment booking (Used internally; stage 1 changed to "employee sets up appointment" in Storm Project)
e. CCK + Flexifield for the measurement sheet content type
f. Custom-written module to pass cost values to Storm and automate tasks between Storm/CCK measurement sheet.
Ubercart really is overkill for simple payment applications. Alas, Simple Payments is pretty poorly supported. If only there was a unified payment API or something...

Resources