WE LOVE   Click to listen highlighted text! WE LOVE Powered By GSpeech

Breezingforms にてJoomlaのユーザー情報と項目を同期させたい。

お客様から会員制のウェブで、フォームを動かす場合、メールアドレスなどの入力を省略できないかとの要望が出たので調べてみたらこれができるんだわ。

Can I populate the user data like name and Email to my form? 

According to the Joomla! API, you can query the user's data with this PHP code:

1
2
3
4
5
6
7
8
//Name:
<?php $user = JFactory::getUser(); return "$user->name"; ?>
//Username:
<?php $user = JFactory::getUser(); return $user->username; ?>
//User id:
<?php $user = JFactory::getUser(); return "$user->id"; ?>
//Email:
<?php $user = JFactory::getUser(); return "$user->email"; ?>

Of course you can use this code in many places, for example copying this code into the 'Default Value' of a Textfield Element (Quickmode and Classicmode), the result is showed in the next form. 

Please note that you will only see the effect if you are logged in to our site!

引用元:CROSTEC

やっぱり優秀だわBREEZINGFORMS PRO

 

ただそうなるとユーザー登録時のフォームのカスタマイズが必要になるんだけど、これが標準の登録フォームだとほとんど難しい。となるとそのために別のシステムを追加する必要があるけど見つけたのは以下の2つ。

1.Fabrikを利用してカスタマイズ。

https://www.joomlashack.com/blog/joomla/fabrik-user-registration-form/?fbclid=IwAR0VT5_lZXPcCe5Ug9x-p3Nl3Q_5CuOLdENZW0vP7YrXEbOav6EU3SU8ATI

上記にやり方書いてますがエンジニアじゃないと結構厳しいかも。

2.RSFrorm!Proを使う方法。

https://www.rsjoomla.com/blog/view/137-create-custom-joomla-registration-forms-with-the-new-rsformpro-plugin.html

だったら全部RSForm!Proでやれよということにもなるけど、日本語されてないだろうね。ちなみにBreezingformsは日本語化自分でやってます。

これはアーカイブサイトにあります。

http://tegoro.biz/download/2018-07-16-16-51-00.html

参照数: 1702
Click to listen highlighted text! Powered By GSpeech