4 of 20
4
Plugin: CSVGrab
Posted: 12 September 2007 10:04 AM   [ Ignore ]   [ # 55 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  220
Joined  07-23-2005

The code you provided and the code shown in the error message do not match. All the parameters have different values.

Which one are you actually using?

 Signature 
Profile
 
 
Posted: 14 September 2007 04:04 PM   [ Ignore ]   [ # 56 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  375
Joined  10-01-2003

still trying—- but I have not been able to add a csv file into my weblog.

1) I created a template called import in my Template Group - Membership

2) i saved my xls spreadsheet as a comma delimited file ssfv.csv and loaded into my files dir

4) here is the file (it only has two records for testing purposes):

TITLE;LAST NAME;FIRST NAME;ADDRESS;CITY;PROV.;AREA CODE;TELEPHONE;CELL PHONE;FAX;E-MAIL ADDRESS;MEMBER;MEMBERNUM;EXPIRY DATE;EXPIRY DATE2
SFV mem
;fsdergel;Mattdw;848 Fender St.;Vadfee;WA;09281;345 655-44563;;;matt@gianft.com;FALSE;CA1000000022;31-03-2006; 06/03
;Adews;Micdad;171 dn d Farm;New Land;BC;V4K 1C9;555 537-1989;;;info@madfarm.com;TRUE;CA0001053349 & CA0001053350;30-06-2007; 07/06

3) I added ONLY the following to the import template:

{exp:csvgrab url="http://www.mydomain.com/files/ssfv.csv"                                                  
                          weblog
="12"         
                          title
="1"
                          
skip="2"
                          delimiter=";"
                          encloser="QUOTE"
                          use="2|3|4|5|6|7|8|9|10|11|12|13|14|15"
                          fields="first_name|last_name|address|city|prst|area_code|tel|cell|fax|email_address|office|member_status|member_number|expiry_date|expiry_dateMY"}

( I tried both delimiter=”;” and delimiter=”,” as i noticed the csv uses” ;” )

4) and then i do a VIEW RENDERED TEMPLATE while i have the import template open in my CP

5) the template is rendered but nothing gets loaded.

any clues as how to fix??

 Signature 

“Things look different from the seat of a bike carrying a sleeping bag with a cold beer tucked inside.”  ~Jim Malusa
“The bicycle has a soul. If you succeed to love it, it will give you emotions that you will never forget” ~ Mario Cipollini

Profile
 
 
Posted: 14 September 2007 10:42 PM   [ Ignore ]   [ # 57 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  375
Joined  10-01-2003
Lisa Wess - 18 December 2006 03:01 PM

I’ve added this here - I hope you’ll keep that updated if you get this added to the plugins site, etc.  Great tool, thank you. =)

lisa - there is no mention of the CSV Grab utility / plugin to which you link to….

 Signature 

“Things look different from the seat of a bike carrying a sleeping bag with a cold beer tucked inside.”  ~Jim Malusa
“The bicycle has a soul. If you succeed to love it, it will give you emotions that you will never forget” ~ Mario Cipollini

Profile
 
 
Posted: 14 September 2007 10:53 PM   [ Ignore ]   [ # 58 ]  
Administrator
Avatar
RankRankRankRankRankRankRankRank
Total Posts:  40207
Joined  05-14-2004

What, giovanni? At the top, under “Random”

If you have your entries in CSV format, check out Plugin: CSV Grab

 Signature 
Profile
MSG
 
 
Posted: 14 September 2007 11:33 PM   [ Ignore ]   [ # 59 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  375
Joined  10-01-2003

thx -  i was looking for “CSVGrab”  red face

 Signature 

“Things look different from the seat of a bike carrying a sleeping bag with a cold beer tucked inside.”  ~Jim Malusa
“The bicycle has a soul. If you succeed to love it, it will give you emotions that you will never forget” ~ Mario Cipollini

Profile
 
 
Posted: 15 September 2007 12:18 AM   [ Ignore ]   [ # 60 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  375
Joined  10-01-2003

getting a little further:

I now i have this working but it only loads one record!

{exp:csvgrab url="/home/giovanni/domains/mydomain.com/public_html/files/ssfv.txt"
weblog="12"
title="1"
delimiter="TAB"
encloser="QUOTE"
use="2|3"
fields="first_name|last_name"}

here is my file tab delimited:
a   fsdergel   Mattdw
b   Adews   Micdad
c   SFfredy   sowhat

here is what it reports when i run it:
Checking: a
Found: a

New entries: 1

 Signature 

“Things look different from the seat of a bike carrying a sleeping bag with a cold beer tucked inside.”  ~Jim Malusa
“The bicycle has a soul. If you succeed to love it, it will give you emotions that you will never forget” ~ Mario Cipollini

Profile
 
 
Posted: 15 November 2007 05:37 PM   [ Ignore ]   [ # 61 ]  
Grad Student
Rank
Total Posts:  79
Joined  10-17-2006

Hi, just checking in, but last I looked, there was no solution (or, otherwise, method given) for using the entry_date and expiration_date fields. Is this still the case?

Thanks.

Profile
 
 
Posted: 20 November 2007 02:24 PM   [ Ignore ]   [ # 62 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  343
Joined  01-23-2006

I’m trying to import to a custom date field. Does anyone have pointers on this? I’ve tried a couple different formats (10/22/07 12:00 AM and 2007-01-01 12:00 AM).
The entries end up 1969-12-31 02:00 PM. (I see there was a post here about that. Don’t see a solution though.

So, I’m thinking there is a formatting conflict? In the database it says 2007. Not sure what’s up. Help?


@ jtnews - maybe using the offset for the entry_date would work? I’ve tried to make that work with no success either, but I’m not exactly sure how it should work.

 Signature 

jeremy douglas media design | twitter

Profile
 
 
Posted: 22 November 2007 02:02 PM   [ Ignore ]   [ # 63 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  343
Joined  01-23-2006

I know it’s been discussed earlier, and I’m not sure where it’s at. Currently for me it’s ignoring duplicate titles. It would be nice to have an option whether to allow or disallow duplicate title fields.

 Signature 

jeremy douglas media design | twitter

Profile
 
 
Posted: 26 November 2007 07:57 PM   [ Ignore ]   [ # 64 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  177
Joined  05-13-2006

I would buy somebody many cases of beer if they could figure out how to map the CSV date to an entry date in EE. Anyone up for the beer-soaked challenge?

 Signature 

Websites, enterprise software and collaboration systems
Subvert Marketing Inc.
Whitehorse, Yukon, Canada

Profile
 
 
Posted: 26 November 2007 08:43 PM   [ Ignore ]   [ # 65 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  343
Joined  01-23-2006

I would use the CSV date to entry on an ongoing basis… I second Geof’s challenge!

 Signature 

jeremy douglas media design | twitter

Profile
 
 
Posted: 26 November 2007 11:44 PM   [ Ignore ]   [ # 66 ]  
Grad Student
Rank
Total Posts:  79
Joined  10-17-2006

Count me in as a solid third.

Profile
 
 
Posted: 06 December 2007 03:27 PM   [ Ignore ]   [ # 67 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  177
Joined  05-13-2006

Some very good news for people seeking an update to this CSVGrab plugin.

Andrew and I have recently worked together to deliver a new version that includes the ability to import dates directly from the CSV file. I’ve only tried it with dates formatted in this manner, “2007-10-12”, so I don’t know what will happen with other formats.

To use, simply add date=”” with your desired column from the CSV file.

The updated file is attached as pi.csvgrab.php.zip.

geof

File Attachments
pi.csvgrab.php.zip  (File Size: 5KB - Downloads: 489)
 Signature 

Websites, enterprise software and collaboration systems
Subvert Marketing Inc.
Whitehorse, Yukon, Canada

Profile
 
 
Posted: 06 December 2007 03:36 PM   [ Ignore ]   [ # 68 ]  
Grad Student
Avatar
Rank
Total Posts:  46
Joined  01-04-2006

Thanx for the update.

This plug is the best pi. off all.

 Signature 

I like smiling people grin
twitter.com/mikeverbruggen

Profile
 
 
Posted: 06 December 2007 06:10 PM   [ Ignore ]   [ # 69 ]  
Grad Student
Rank
Total Posts:  79
Joined  10-17-2006

Can we do time as well? I’m trying to use this for an events calendar. Thanks for the hard work thus far!

Profile
 
 
Posted: 06 December 2007 07:36 PM   [ Ignore ]   [ # 70 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  177
Joined  05-13-2006

jtnews - That’d be up to the author, Andrew, to decide. I was only seeking date import at present.

 Signature 

Websites, enterprise software and collaboration systems
Subvert Marketing Inc.
Whitehorse, Yukon, Canada

Profile
 
 
Posted: 07 December 2007 09:53 AM   [ Ignore ]   [ # 71 ]  
Lab Assistant
RankRank
Total Posts:  190
Joined  12-21-2005

Just to follow up Geof’s post above:

I’m hoping to restart development of this plugin in the very near future. Its probably the most useful plugin I have written, but has got neglected as I personally don’t use it very often.

I’ll check through this forum for feature requests and bugs, but feel free to add ideas or ‘PM’ me if you have any particular requests.

 Signature 

Andrew Weaver — brandnewbox.co.uk


Member of EE Professional Network · More plugins, extensions and modules · Documentation

Profile
 
 
Posted: 07 December 2007 10:02 AM   [ Ignore ]   [ # 72 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  343
Joined  01-23-2006

I’m really glad to hear that Andrew. Definitely importing a date and time to a custom field would be my top request. I haven’t had a chance to try out the update yet, but hopefully will later on today.

 Signature 

jeremy douglas media design | twitter

Profile
 
 
   
4 of 20
4
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 1743, on December 02, 2009 03:47 PM
Total Registered Members: 120594 Total Logged-in Users: 70
Total Topics: 126635 Total Anonymous Users: 34
Total Replies: 665682 Total Guests: 392
Total Posts: 792317    
Members ( View Memberlist )