1
peterr
XPressMe 2.3.9 and putting it together
  • 2011/4/2 6:15

  • peterr

  • Just can't stay away

  • Posts: 518

  • Since: 2004/8/5 9


Hi,

I have been reading and following the documentation How To module Making and Install(en) | XPressME Integration Kit

Have done the following locally ..

1. Downloaded version 2.3.9 and Wordpress 3.1

2. Made up a folder called (say) 'wordpress' , that will be /modules/wordpress

3. Copied the paths and files as per steps 1, 2 and 3 of "Making XPressME module for XOOPS" , so that they all 'sit' under /modules/wordpress/ path

Now to a part that nearly makes sense but not quite.

The words under the 'Localaize' section (should be 'Localize or Localise' )

Quote:

If the language & wp-config.php file that you need exists in the extras/xpress_i18n folder
The file and the folder in extras/xpress_i18n/en(or other)/xpressme_modules_root are overwrited to the route of the module.


If I unzip the ZIP file and go to this path
XPressME_Integration_Kit_Ver2.3.9/extras/xpress_i18n/en

there is only the following

howto_make_xpressme.html
xpressme_modules_root
---language
---wp-config.php
---wp-content

Both language and wp-content paths are empty

I thought possibly I have downloaded the wrong ZIP file, but there seems to be only one -http://ja.xpressme.info/wp-content/plugins/download-monitor/download.php?id=105

I'm hoping I don't have to make a localised english set of files and folder, like that described athttp://ja.xpressme.info/codex/english/howto-make-localize-files/

Peter

2
peterr
Re: XPressMe 2.3.9 and putting it together
  • 2011/4/2 8:09

  • peterr

  • Just can't stay away

  • Posts: 518

  • Since: 2004/8/5 9


Okay, I think I get it ??

After having 'put it together', have compared these 2 folders

/XPressME_Integration_Kit_Ver2.3.9/extras/xpress_i18n/template/xpressme_modules_root (left side)

/XPressME_Integration_Kit_Ver2.3.9/xpressme_integration_kit (right side)

in particular, the language and wp-content paths and the file wp-config.php

Here are the results

Quote:

Same Files (14)

language/english/mail_template/author_newcomment.tpl
language/english/mail_template/author_newpost.tpl
language/english/mail_template/category_newcomment.tpl
language/english/mail_template/category_newpost.tpl
language/english/mail_template/global_newcomment.tpl
language/english/mail_template/global_newpost.tpl
language/english/mail_template/global_waiting.tpl
language/english/mail_template/post_editpost.tpl
language/english/mail_template/post_newcomment.tpl
language/english/admin.php
language/english/blocks.php
language/english/index.html
language/english/main.php
wp-content/plugins/xpressme/language/xpressme-lang.pot

Left Orphan Files (1)

wp-content/themes/xpress_default/languages/lang.pot

Right Orphan Files (41)

wp-content/plugins/xpressme/language/xpressme-ja_EUC.mo
wp-content/plugins/xpressme/language/xpressme-ja_EUC.po
wp-content/plugins/xpressme/language/xpressme-ja.mo
wp-content/plugins/xpressme/language/xpressme-ja.po
wp-content/plugins/xpressme/language/xpressme-ja_UTF.mo
wp-content/plugins/xpressme/language/xpressme-ja_UTF.po
wp-content/plugins/xpressme/xpressme_class.php
wp-content/plugins/xpressme/xpressme.php
wp-content/plugins/xpressme/xpressme_widget_class.php
wp-content/themes/xpress_default/languages/ja_EUC.mo
wp-content/themes/xpress_default/languages/ja_EUC.po
wp-content/themes/xpress_default/languages/ja.mo
wp-content/themes/xpress_default/languages/ja.po
wp-content/themes/xpress_default/languages/ja_UTF.mo
wp-content/themes/xpress_default/languages/ja_UTF.po
wp-content/themes/xpress_default/404.php
wp-content/themes/xpress_default/archives.php
wp-content/themes/xpress_default/comments.php
wp-content/themes/xpress_default/comments-popup.php
wp-content/themes/xpress_default/footer.php
wp-content/themes/xpress_default/functions.php
wp-content/themes/xpress_default/header.php
wp-content/themes/xpress_default/image.php
wp-content/themes/xpress_default/index.php
wp-content/themes/xpress_default/links.php
wp-content/themes/xpress_default/MFCE03.tmp
wp-content/themes/xpress_default/multi_blog_front.php
wp-content/themes/xpress_default/multi_blog_index.php
wp-content/themes/xpress_default/page.php
wp-content/themes/xpress_default/rtl.css
wp-content/themes/xpress_default/screenshot.png
wp-content/themes/xpress_default/searchform.php
wp-content/themes/xpress_default/sidebar-footer.php
wp-content/themes/xpress_default/sidebar.php
wp-content/themes/xpress_default/single.php
wp-content/themes/xpress_default/style.css
module_icon.php
module_icon.png
notification_update.php
xoops_version.php
xp-config-sample.php

Left Newer Files (0)
Right Newer Files (0)

Differences Files (2)

language/english/modinfo.php
wp-config.php


Right orphan files doesn't matter, they are the ones to be uploaded under /modules/wordpress/ path

One left orphan file - wp-content/themes/xpress_default/languages/lang.pot , which is strange, it won't get uploaded ??

Now, for the 2 files that are different

1. language/english/modinfo.php

left file ..

define("_MI_MEMORY_LIMIT_DESC","Se o memory_limit avaliam de php.ini é menor que este valor. Tente o re-colocação de memory_limit com ini_set ('memory_limit', Valor);.");


right file ..

define("_MI_MEMORY_LIMIT_DESC","If the memory_limit value of php.ini is smaller than this value. Try the re-setting of memory_limit with ini_set('memory_limit', Value);.");


which is okay, as the english one gets uploaded

2. wp-config.php

Lines 12, 66 and 76 are different in each one (ONLY those lines displayed below)

left file ..

// if (function_exists("mb_language")) mb_language('uni');
 
WordPress Localized Languagedefaults to English.
define ('WPLANG''');


right file ..

if (function_exists("mb_language")) mb_language('uni');
 * 
WordPress Localized Languagedefaults to Japanese.
define ('WPLANG''ja');        // language support to Japanese


which is probably NOT okay, as Japanese language settings would get uploaded.

Peter

3
jdseymour
Re: XPressMe 2.3.9 and putting it together

All looks OK. As far as the file with:

define ('WPLANG''');


I inserted "en" for good measure.

4
peterr
Re: XPressMe 2.3.9 and putting it together
  • 2011/4/3 6:56

  • peterr

  • Just can't stay away

  • Posts: 518

  • Since: 2004/8/5 9


Okay thanks. I will do the same as you have done, then upload/install it.

I was hoping I didn't have to 'make' a .PO , .MO or .POT file; seems like I don't have to.

Thanks,

Peter

5
jdseymour
Re: XPressMe 2.3.9 and putting it together

No, but some of the english language fields are not as clear as they could be.

You may have to adjust as necessary if this is for someone else.

6
peterr
Re: XPressMe 2.3.9 and putting it together
  • 2011/4/3 8:03

  • peterr

  • Just can't stay away

  • Posts: 518

  • Since: 2004/8/5 9


Okay, thanks.

7
peterr
Re: XPressMe 2.3.9 and putting it together
  • 2011/4/3 10:02

  • peterr

  • Just can't stay away

  • Posts: 518

  • Since: 2004/8/5 9


When adding a post, the post Id's are weird. The first one was 1, then 13, then 18 ??

Would have thought it just incremented by 1.

Peter

8
peterr
Re: XPressMe 2.3.9 and putting it together
  • 2011/4/5 11:48

  • peterr

  • Just can't stay away

  • Posts: 518

  • Since: 2004/8/5 9


The post ID's are a wordpress thing. You can change it, a setting in the db re auto-incrementing, but why bother I guess.

One thing I noticed about comments. We have these disabled, but with some posts it says down the bottom ..

Quote:

Comments are closed.


which is good. However on some other posts it says down the bottom ..

Quote:

Leave a Reply

You must be logged in to post a comment.


Would prefer not to have bots and people trying to login to wordpress.

Does anyone know how to 'force' the 'Comments are closed' please ?

.. Later , this seemed to fix it ..

UPDATE `XOOPS_db_name`.`XOOPS_tablename_prefix_wp_postsSET `comment_status` = 'closed' WHERE `tablename_prefix_wp_posts`.`post_status` = 'publish';


There should really be a function to do this via the dashboard. Hope I haven't messed up anything else in the db, but the 'posts' table seems pretty basic.

There are 62 rows in the 'posts' table, yet I know there are only 11 that are in 'publish' mode. All the others say 'auto-draft' or 'inherit'. The dashboard from wordpress needs a function to cleanup the db of this uneccessary garbage.

Peter


9
peterr
Re: XPressMe 2.3.9 and putting it together
  • 2011/4/5 13:24

  • peterr

  • Just can't stay away

  • Posts: 518

  • Since: 2004/8/5 9


Quote:

peterr wrote:
There should really be a function to do this via the dashboard. Hope I haven't messed up anything else in the db, but the 'posts' table seems pretty basic.

There are 62 rows in the 'posts' table, yet I know there are only 11 that are in 'publish' mode. All the others say 'auto-draft' or 'inherit'. The dashboard from wordpress needs a function to cleanup the db of this uneccessary garbage.


The plugin WP-Optimize will do the trick.

Peter

Login

Who's Online

208 user(s) are online (125 user(s) are browsing Support Forums)


Members: 0


Guests: 208


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Mar 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits