Merge lp:~edb/quam-plures/sample_posts_done into lp:quam-plures

Proposed by EdB
Status: Merged
Merged at revision: 7567
Proposed branch: lp:~edb/quam-plures/sample_posts_done
Merge into: lp:quam-plures
Diff against target: 227 lines (+71/-64)
3 files modified
media/shared/global/monument-valley/index.html (+0/-1)
media/users/id_1/index.html (+1/-0)
qp_install/_functions_create.php (+70/-63)
To merge this branch: bzr merge lp:~edb/quam-plures/sample_posts_done
Reviewer Review Type Date Requested Status
Yabs (community) Approve
Review via email: mp+39706@code.launchpad.net

Description of the change

This replaces the remaining original sample images with new stuff, and edits the sample posts to match.

To post a comment you must log in.
Revision history for this message
Yabs (yabs) wrote :

Glad you resubmitted this, I managed to kill my copy :-S

¥

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== removed directory 'media/shared/global/monument-valley'
2=== removed file 'media/shared/global/monument-valley/bus-stop-ahead.jpg'
3Binary files media/shared/global/monument-valley/bus-stop-ahead.jpg 2008-09-23 05:56:47 +0000 and media/shared/global/monument-valley/bus-stop-ahead.jpg 1970-01-01 00:00:00 +0000 differ
4=== removed file 'media/shared/global/monument-valley/index.html'
5--- media/shared/global/monument-valley/index.html 2010-01-29 22:09:05 +0000
6+++ media/shared/global/monument-valley/index.html 1970-01-01 00:00:00 +0000
7@@ -1,1 +0,0 @@
8-
9\ No newline at end of file
10
11=== removed file 'media/shared/global/monument-valley/john-ford-point.jpg'
12Binary files media/shared/global/monument-valley/john-ford-point.jpg 2008-09-23 05:56:47 +0000 and media/shared/global/monument-valley/john-ford-point.jpg 1970-01-01 00:00:00 +0000 differ
13=== removed file 'media/shared/global/monument-valley/monument-valley-road.jpg'
14Binary files media/shared/global/monument-valley/monument-valley-road.jpg 2008-09-23 05:56:47 +0000 and media/shared/global/monument-valley/monument-valley-road.jpg 1970-01-01 00:00:00 +0000 differ
15=== removed file 'media/shared/global/monument-valley/monument-valley.jpg'
16Binary files media/shared/global/monument-valley/monument-valley.jpg 2008-09-23 05:56:47 +0000 and media/shared/global/monument-valley/monument-valley.jpg 1970-01-01 00:00:00 +0000 differ
17=== removed file 'media/shared/global/monument-valley/monuments.jpg'
18Binary files media/shared/global/monument-valley/monuments.jpg 2008-09-23 05:56:47 +0000 and media/shared/global/monument-valley/monuments.jpg 1970-01-01 00:00:00 +0000 differ
19=== added directory 'media/users/id_1'
20=== added file 'media/users/id_1/index.html'
21--- media/users/id_1/index.html 1970-01-01 00:00:00 +0000
22+++ media/users/id_1/index.html 2010-10-31 11:56:08 +0000
23@@ -0,0 +1,1 @@
24+
25\ No newline at end of file
26
27=== added file 'media/users/id_1/samplephoto1.jpg'
28Binary files media/users/id_1/samplephoto1.jpg 1970-01-01 00:00:00 +0000 and media/users/id_1/samplephoto1.jpg 2010-10-31 11:56:08 +0000 differ
29=== added file 'media/users/id_1/samplephoto2.jpg'
30Binary files media/users/id_1/samplephoto2.jpg 1970-01-01 00:00:00 +0000 and media/users/id_1/samplephoto2.jpg 2010-10-31 11:56:08 +0000 differ
31=== added file 'media/users/id_1/samplephoto3.jpg'
32Binary files media/users/id_1/samplephoto3.jpg 1970-01-01 00:00:00 +0000 and media/users/id_1/samplephoto3.jpg 2010-10-31 11:56:08 +0000 differ
33=== added file 'media/users/id_1/samplephoto4.jpg'
34Binary files media/users/id_1/samplephoto4.jpg 1970-01-01 00:00:00 +0000 and media/users/id_1/samplephoto4.jpg 2010-10-31 11:56:08 +0000 differ
35=== added file 'media/users/id_1/samplephoto5.jpg'
36Binary files media/users/id_1/samplephoto5.jpg 1970-01-01 00:00:00 +0000 and media/users/id_1/samplephoto5.jpg 2010-10-31 11:56:08 +0000 differ
37=== modified file 'qp_install/_functions_create.php'
38--- qp_install/_functions_create.php 2010-09-25 12:29:17 +0000
39+++ qp_install/_functions_create.php 2010-10-31 11:56:08 +0000
40@@ -540,7 +540,7 @@
41 $cat_linkblog_contrib = cat_create( 'Contributors', 'NULL', $blog_linkblog_ID );
42
43 // Create categories for photoblog
44- $cat_photo_album = cat_create( 'Monument Valley', 'NULL', $blog_photoblog_ID );
45+ $cat_photo_album = cat_create( 'Owen Michael', 'NULL', $blog_photoblog_ID );
46
47 echo "OK.<br />\n";
48
49@@ -607,51 +607,73 @@
50 // Insert a post into blog #4:
51 $now = date('Y-m-d H:i:s',installer_timestamp());
52 $edited_Item = new Item();
53- $edited_Item->insert( 1, T_('Bus Stop Ahead'), 'In the middle of nowhere: a school bus stop where you wouldn\'t really expect it!',
54- $now, $cat_photo_album, array(), 'published','en-US', '', 'http://fplanque.com/photo/monument-valley' );
55- // attach an image to the item
56- $edit_File = new File( 'shared', 0, 'monument-valley/bus-stop-ahead.jpg' );
57- $edit_File->link_to_Item( $edited_Item );
58-
59-
60- // Insert a post into blog #4:
61- $now = date('Y-m-d H:i:s',installer_timestamp());
62- $edited_Item = new Item();
63- $edited_Item->insert( 1, T_('John Ford Point'), 'Does this scene look familiar? You\'ve probably seen it in a couple of John Ford westerns!',
64- $now, $cat_photo_album, array(), 'published','en-US', '', 'http://fplanque.com/photo/monument-valley' );
65- // attach an image to the item
66- $edit_File = new File( 'shared', 0, 'monument-valley/john-ford-point.jpg' );
67- $edit_File->link_to_Item( $edited_Item );
68-
69-
70- // Insert a post into blog #4:
71- $now = date('Y-m-d H:i:s',installer_timestamp());
72- $edited_Item = new Item();
73- $edited_Item->insert( 1, T_('Monuments'), 'This is one of the most famous views in Monument Valley. I like to frame it with the dirt road in order to give a better idea of the size of those things!',
74- $now, $cat_photo_album, array(), 'published','en-US', '', 'http://fplanque.com/photo/monument-valley' );
75- // attach an image to the item
76- $edit_File = new File( 'shared', 0, 'monument-valley/monuments.jpg' );
77- $edit_File->link_to_Item( $edited_Item );
78-
79-
80- // Insert a post into blog #4:
81- $now = date('Y-m-d H:i:s',installer_timestamp());
82- $edited_Item = new Item();
83- $edited_Item->insert( 1, T_('Road to Monument Valley'), 'This gives a pretty good idea of the Monuments you\'re about to drive into...',
84- $now, $cat_photo_album, array(), 'published','en-US', '', 'http://fplanque.com/photo/monument-valley' );
85- // attach an image to the item
86- $edit_File = new File( 'shared', 0, 'monument-valley/monument-valley-road.jpg' );
87- $edit_File->link_to_Item( $edited_Item );
88-
89-
90- // Insert a post into blog #4:
91- $now = date('Y-m-d H:i:s',installer_timestamp());
92- $edited_Item = new Item();
93- $edited_Item->insert( 1, T_('Monument Valley'), T_('This is a short photo album demo. Use the arrows to navigate between photos. Click on "Index" to see a thumbnail index.'),
94- $now, $cat_photo_album, array(), 'published','en-US', '', 'http://fplanque.com/photo/monument-valley' );
95- // attach an image to the item
96- $edit_File = new File( 'shared', 0, 'monument-valley/monument-valley.jpg' );
97- $edit_File->link_to_Item( $edited_Item );
98+ $edited_Item->insert( 1, T_('Owen'), '',
99+ $now, $cat_photo_album, array(), 'published','en-US' );
100+
101+ // attach an image to the item
102+ $edit_File = new File( 'user', 1, 'samplephoto1.jpg' );
103+ $edit_File->link_to_Item( $edited_Item );
104+ // add meta data for this image (only once per image!)
105+ $query = "UPDATE T_files
106+ SET file_title = 'May 30, 2009', file_alt = 'May 30, 2009', file_desc = 'Just learning to sit at almost four months.'
107+ WHERE file_ID = {$edit_File->ID}";
108+ $DB->query( $query );
109+
110+
111+ // Insert a post into blog #4:
112+ $now = date('Y-m-d H:i:s',installer_timestamp());
113+ $edited_Item = new Item();
114+ $edited_Item->insert( 1, T_('Owen'), 'This photo has some text like a normal blog post might.',
115+ $now, $cat_photo_album, array(), 'published','en-US' );
116+
117+ // attach an image to the item
118+ $edit_File = new File( 'user', 1, 'samplephoto2.jpg' );
119+ $edit_File->link_to_Item( $edited_Item );
120+ // add meta data for this image (only once per image!)
121+ $query = "UPDATE T_files
122+ SET file_title = 'September 3, 2009', file_alt = 'September 3, 2009', file_desc = 'Seven months old in new jammies.'
123+ WHERE file_ID = {$edit_File->ID}";
124+ $DB->query( $query );
125+
126+
127+ // Insert a post into blog #4:
128+ $now = date('Y-m-d H:i:s',installer_timestamp());
129+ $edited_Item = new Item();
130+ $edited_Item->insert( 1, T_('October 18, 2010'), 'This post simulates providing a "title" when uploading the image then immediately making a post directly from file manager. The "title" of the image became the title of the post. (This text would have been added by editing the post after automatically creating it.)',
131+ $now, $cat_photo_album, array(), 'published','en-US' );
132+
133+ // attach an image to the item
134+ $edit_File = new File( 'user', 1, 'samplephoto3.jpg' );
135+ $edit_File->link_to_Item( $edited_Item );
136+ // add meta data for this image (only once per image!)
137+ $query = "UPDATE T_files
138+ SET file_title = 'October 18, 2010', file_alt = 'October 18, 2010', file_desc = 'First Halloween costume--our little chicken.'
139+ WHERE file_ID = {$edit_File->ID}";
140+ $DB->query( $query );
141+
142+
143+ // Insert a post into blog #4:
144+ $now = date('Y-m-d H:i:s',installer_timestamp());
145+ $edited_Item = new Item();
146+ $edited_Item->insert( 1, T_('2 pics in one post'), 'This post shows how you can attach more than one image to a post. By the way all Owen pics courtesy of <a href="http://www.hudson2001.com/blogs/" title="A daily diary of the mostly mundane, sometimes surprising, and often opinionated">his Mom, Jen</a> :)',
147+ $now, $cat_photo_album, array(), 'published','en-US' );
148+
149+ // attach an image to the item
150+ $edit_File = new File( 'user', 1, 'samplephoto4.jpg' );
151+ $edit_File->link_to_Item( $edited_Item );
152+ // add meta data for this image (only once per image!)
153+ $query = "UPDATE T_files
154+ SET file_title = 'January 14, 2010', file_alt = 'January 14, 2010', file_desc = 'My favorite picture ever (11.5 months).'
155+ WHERE file_ID = {$edit_File->ID}";
156+ $DB->query( $query );
157+ // attach another image to the item
158+ $edit_File = new File( 'user', 1, 'samplephoto5.jpg' );
159+ $edit_File->link_to_Item( $edited_Item );
160+ // add meta data for this image (only once per image!)
161+ $query = "UPDATE T_files
162+ SET file_title = 'July 10, 2010', file_alt = 'July 10, 2010', file_desc = 'At grandpa\'s house on vacation (15 months).'
163+ WHERE file_ID = {$edit_File->ID}";
164+ $DB->query( $query );
165
166
167 // Insert a post COMMENT into post #1:
168@@ -659,7 +681,7 @@
169 $query = "INSERT INTO T_comments( comment_post_ID, comment_type, comment_status,
170 comment_author, comment_author_email, comment_author_url, comment_author_IP,
171 comment_date, comment_content, comment_karma)
172- VALUES( 1, 'comment', 'draft', 'EdB', 'edb@quamplures.net', 'http://quamplures.net', '127.0.0.1', '$now', '".
173+ VALUES( 1, 'comment', 'draft', 'Tblue', 'tblue@quamplures.net', 'http://quamplures.net', '127.0.0.1', '$now', '".
174 $DB->escape( T_('Hi, this is a comment that is still in moderation, or "draft".<br />You are already logged in because you can see this, so all you have to do is change the visibility to "Published" to let visitors read this comment.') ). "', 0 )";
175 $DB->query( $query );
176
177@@ -744,19 +766,11 @@
178 // Insert a post into blog #2:
179 $now = date('Y-m-d H:i:s',installer_timestamp());
180 $edited_Item = new Item();
181- $edited_Item->insert( 1, T_('Sample Intro-Sub post'), T_('This uses post type "Intro-Sub". I have no idea what that means or when it will show up.'),
182+ $edited_Item->insert( 1, T_('Sample Intro-Sub post'), T_('This uses post type "Intro-Sub". This post-type shows up on any page except the main page that has more than one post and no other "intro" post to display.'),
183 $now, $cat_appname, array( $cat_ann_b ), 'published', '#', '', '', 'open', array('default'), 1570 );
184
185
186- // Insert a post into blog #2:
187- $now = date('Y-m-d H:i:s',installer_timestamp());
188- $edited_Item = new Item();
189- $edited_Item->insert( 1, T_('Sample Intro-All post'), T_('This uses post type "Intro-All".'),
190- $now, $cat_appname, array( $cat_ann_b ), 'published', '#', '', '', 'open', array('default'), 1600 );
191-
192-
193 /*
194-
195 leaving room for a sample post about toolbars
196
197 // Insert a post into blog #2:
198@@ -764,8 +778,6 @@
199 $edited_Item = new Item();
200 $edited_Item->insert( 1, T_('XXXXXXXXXXXXXXXXXX'), sprintf( T_('foo %s bar'), $app_name ),
201 $now, $cat_appname );
202-
203-
204 */
205
206
207@@ -1095,9 +1107,6 @@
208 $DB->query( $query );
209
210
211-
212-
213-
214 // Insert a post into blog #1:
215 $now = date('Y-m-d H:i:s',installer_timestamp());
216 $edited_Item = new Item();
217@@ -1196,10 +1205,8 @@
218 echo "OK.<br />\n";
219 */
220
221-
222 install_basic_widgets();
223
224 }
225
226-
227 ?>

Subscribers

People subscribed via source and target branches