月別アーカイブ: 2014年5月

wptest work

1. footer related:

1.1. Need footer-related.css, aux2.css, aux3.css to complete ‘japantourguide’ footer.

1.2. Inclusion of aux3.css makes “Topics” page inappropriate. But aux3.css is also charming for title part in many pages.

1.3. Inclusion of <?php wp_footer(); ?> into footer makes sticky main_navi_menu. Amazing!

wptest again

1. I messed up the links while using searchreplacedb2, while I didn’t backup database. Thus I had to restart wptest.

2. Activate plugin Database Reset, then it will appear in admin-panel: tools: select all table, check “Reactivate plugins after reset”.

3. Remove *.* wp-content/uploads. as root.

4.Settings->media-settings:uncheck “Organize my uploads into month- and year-based folders”.

5. Import: tokyokamakuraguidedtour.wordpress.2014-3-14.org.xml, while checking “import attachements”.

6. Failed to import many; I realized admin-panel shows no custom-post entries.

7. Redo above 2.,3.,4;

8. Set custom posts and taxonomy; This is indispensable.

custom post UI:

9. Step 5.

10. Importer says “All done”.

11. Now correct links.

11.1.  Backup database with phpmyadmin: export tables related to wptest.

(database ->wpdb->export->詳細->select tables-> 実行; Stored:

11.2. Copy searchreplacedb2.php to wptest root, and rename it knsecret.php.

Visit it.

11.3. Search “japantourguide.chips.jp/”, “replace with 192.168.0.16/wptest/”;

search “japantourguide.net/”, replace with “192.168.0.16/wptest/”;

looks like worked. Delete “knsecret.php”.

11.4 Change theme to adventure-child, munus, etc.

 

 

 

Reconstruct wptest to mimic japantourguide (2)

——-continued——-

“Topics” are done, although the looks without aux3.css is better.

Now moves to “Tokyo”

“Contact us” has no problem. May better have breadcrumb and history back.

“About us” is done. aux3.css makes a little better looks.

“About Tokyo” and “Experience Traditional Arts”: look all right.

15.  “Tokyo tour courses”

15.1 page-tokyo_course.php was imported.

15.2 Condition is same as Kamakura Tour courses:

15.3 “Contact” link need some workaround.

15.4 The bottom “Contact jumps to japantourguide.

15.5 Need correction on links to the each site.  Looks like there remains japantourguide links even for picture.

16. I guess he didn’t understand what taxonomy is and the template hierarchy.

Creating taxonomy-in_tokyo.php solved the mess of “Popular Sites in Tokyo”.

17. 10.7, 15.2, 15.3 are solved. They are hidden with the tour-fee-charts, which are custom fields. (You must check the screen option to show the custom fields.)

Reconstruct wptest to mimic japantourguide

1. Customize-> “Author information on/off” directly controls the “by …..” display in home and sample page, that is,  page.php and single.php in parent adventure.

Wrong! both home and sample page are controlled by index.php according to the template hierarchy.

2. Customize->”display the date on/off” controls the date display in single.php, wheras page.php doesn’t show date in either set up.

3. single.php seems to be used in many cases. Very important one is the linking usage in popular sites in tokyo. Considering this and above 1. & 2., single.php which excludes date and author information should be created in adventure-child. In “Customize” setting, both date and author should be set displayed. In front-page.php, the date and author information should be excluded. Also all the ..-page.php must exclude the date and author information.

New single.php is reflected to view post page in dashboard. But it does not display the Custom Fields.

New page.php is reflected every static pages including home. but Sample page has date and information intact.  Sample page seems controlled by index.php.

4. “Sample Page” -> “Topics” by just editing the page.

5. Consult codex.wordpress.org/Template_Hierarchy.

6. “home” page:

6.1 front-page.php was imported from norikoshop (means: copy&paste from norikoshop/wp-content/themes/adventure-child/). Picture comes up.

6.2 Link to the picture was corrected to current site.

6.3 Anyhow, the link to weather in Tokyo was corrupted. Imported from norikoshop at the admin-panel.

6.4 Modify front-page.php so to exclude author information.

6.5 “home” -> “Home”: simply by edit the page.

7. “About us”:

7.1 Import page-about.php.  Member description overlapped.

7.2 Modified style.css following norikoshop. OK as far as “About us” concerns, but needs further assessment because this affected “Topics”, namely index.php. Perhaps “class clearfix” is the key to avoid overlapping.

8. “Kamakura Guided Tour”

8.1 page-kamakura.php is imported.

8.2 author information was excluded in page-kamakura.php.

8.3 Trailing blank was stripped. Breadcrumb was included.

9. Set up Menu:

9.1 Create menu “main_navi”

10. “Kamakura Tour Courses”

10.1 Import page-kamakura_courses.php.

10.2 Modify style.css: include aux3.css.  the post  background is white . Need more work.

10.3 Import images folder to include flags and buttons.

10.4 Anyhow, “Contact me” needed correction.

10.5 Correction was needed in page-kamakura_courses.php as to ref to contact.

10.6 Every link in the chart must be corrected, otherwise it jumps to japantourguide.

10.6.1 Double click the link item; edit/insert will pop up; search for the linked page; select & update;

10.7 single-pop_kamakura.php should be imported: this makes linked page fully displayed including custom field.

“Kamakura Tour Courses” is incomplete.  “Contact” at the very end of page linked to japantourguide page. Also I don’t have any means to change Fee table.

11. “Popular Sites in Kamakura”

11.1 Import: page-popular-sites-in-kamakura.php.  I don’t like file name, but seems working all right.

11.2  In dashboard; Settinggs->Reading-> 30 posts

12. “The Zazen experience”: needed correction of link.

As a matter of fact, japantourguide shows #404 page for both of temples. He may have mixed up, probably because he changed permalink afterwords. This kind of internal link must be set or checked after the permalink change.

13. In reference to 11., 12., I noticed some of the pages of pop_sites_in_kamakura has some extra image custom fields which links to http://Japantourguide. Since these are not displayed anyway, I deleted these custom fields images to avoid possible problems while migration of the site. I am pretty sure that the links to the pictures inside the posts are properly transformed to the new site address. I strongly suggest to put every picture in the post from this viewpoint. Also the size of picture need not be carefully adjusted. It can be adjusted in the course of editing. Picture better be rather large, since the size reduction in editing does not deteriorate the picture quality, whereas the enlargement will deteriorate the quality.

14. Up to Here, Home and Kamakura are basically finished; remains are

14.1 link from the tour courses.

14.2 Mysterious  jump from the “Contact” at the bottom of tor courses.

 

Restart wptest Successfully

WordPress Database Reset; successful. I checked the box “Reactivate plugins …..after reset”.  The status of plug-in’s seems holding the ones before the reset.

For the sake of safety, removed wptest/wp-content/uploads  as root.

In settings->media settings: uncheck ” Organize my uploads into month- and year-based folders”.

Later, checked the background image changeability several times on adventure and adventure-child. While that process, Mt.Fuji images are uploaded. Background image was controlled succesfully in both of themes.  But interestingly or strangely, the “Strict Standards: only variables should be ……..” message only appeared in adventure-child theme.

Most cumbersome process: CPT UI; This is necessary for smooth import. I better try to leave the tables related intact in the Database Reset procedure.

import   tokyokamakuraguidedtour.wordpress. 2014-03-14.org.xml;

Successful: with messages

Strict Standards: Redefining already defined constructor for class WXR_Parser_Regex in /var/www/wptest/wp-content/plugins/wordpress-importer/parsers.php on line 408

Strict Standards: Declaration of WP_Import::bump_request_timeout() should be compatible with WP_Importer::bump_request_timeout($val) in /var/www/wptest/wp-content/plugins/wordpress-importer/wordpress-importer.php on line 38

Title and Tagline seems not imported.

Background image seems preserved as was set before the import : (not sure)

Front page shows 2 posts; one is Hello World, the other seems trial psot before the import. 4lines of Strict …. in adveture/functions.php line56.

2 are in black letter, the other 2 are in blue letter.

Those 4lines are gone when comment information set “off”.

Front page and post page setup woked and now;

fornt page shows the home page and sample page shows posts.

Media link: e.g. image in “about Kamakura” is properly linked to the images in wptest/wp-content/uploads/….

I guess import worked perfect.

Up to this point, theme was adventure child: folder contains only style.css which imports style.css of adventure.  No files else.

Parent “adventure” is rather simple; only 14 files and 4 folders:

“home” (static) page seems following page.php

“sample page” (ost page) seems following single.php

Permalin settings changed succesfully to Post name type.

 

 

 

 

 

 

 

 

 

 

Strict Standards etc. in “adventure”

Theme “adventure” is activated.

Strict Standards: Only variables should be passed by reference in /var/www/wptest/wp-content/themes/adventure/functions.php on line 56

Strict Standards: Only variables should be assigned by reference in /var/www/wptest/wp-content/themes/adventure/functions.php on line 56

Strict Standards: Only variables should be passed by reference in /var/www/wptest/wp-content/themes/adventure/functions.php on line 56

Strict Standards: Only variables should be assigned by reference in /var/www/wptest/wp-content/themes/adventure/functions.php on line 56
no comments yet
.

Without any files from japantourguide, almost every page is displayed,although every page has the above message.  I can edit Home to include the media.

I fixed the functions.php somehow, but seems too much.  I dropped &.

Strict Standards:… message gone.

In this situation, adventure-child was activated.

Thereappears another notice in adventure/functions.php: line 145: undefined index.

I fixed it back; line 145 notice remains, but line 56 issue has gone, why?

Anyhow, I cannot change the background image at the moment.

I remember it starts pretty early when I cleared wptest.  I may have done some wrong procedure in installing or activating adventure and adventure-child.

I give up and restarts again from the beginning.

 

 

 

 

japantourguide files:

In twenty thirteen-child:

single.php:  designed only for terminal file presentation of “Popular sites in Tokyo”:  weird

default display format: content.php is working for the middle stage of pop_sites_in_tokyo.

 

 

文字コード、改行

(CMS一般に) UTF-8, BOM なし (UTF-8Nと呼ぶ場合あり、あまり適当な名称ではないらしい)

(UNIX系一般に) LFのみ: CRLFでも大丈夫な場合多いが、php fileでエラーおこすことあり。 ファイル末の余分な改行コードがエラー原因になることもある。