Hello All,
ATTENTION:
If you are not sure that you can do it yourself don't do it and create a ticket and this implementation will do it our tech department for some money of course.
Because it's difficult for implementation and if you have no knowledge of php you are likely to make mistakes. It is at your own risk!!!
If you think that you are a guru in php you can try to implement it good luck (and remember make a backup of the files that you are changing)
I show how to create new field type 'List'.
1-st: open phpMyAdmin>>listing_fields table click Structure and find 'Type' column and edit it, and add new item in end: 'list' and save.
2-nd: go to ftp://libs>>system.lib.php find $l_types array and add new item in end: 'list' => $GLOBALS['lang']['type_list'] save and close.
3-rd: go to Admin panel >> Languages and add new phrase with key: type_list Value: List
4-th: go to ftp://includes>>classes>>admin>>rlFields.class.php find method: 'createField' and code at line ~ 260
PHP Code:
Only registered members can view the code.
and add new line below:
PHP Code:
Only registered members can view the code.
then in this file find method: editField
and find same code in this method and add same new line:
PHP Code:
Only registered members can view the code.
and add new line below:
PHP Code:
Only registered members can view the code.
5-th: got o ftp://admin>>tpl>>blocks>>fields>>add_edit_form.tpl
find comment: <html>'<!-- radio set field end -->'</html>
and after that add new code:
Code:
Only registered members can view the code.
6-th: ftp://includes>>classes>>admin>>rlFields.class.php
find method: simulatePost
and find code:
PHP Code:
Only registered members can view the code.
and after that add new line:
PHP Code:
Only registered members can view the code.
__________________________________________________ ________
that's all for admin panel. Now we can add edit and remove our new listing field.
now we should create it for ftront-end
7-th: go to ftp://templates>>your_template>>tpl>>blocks>>field.tpl
find code:
Code:
Only registered members can view the code.
above it add new code:
Code:
Only registered members can view the code.
8-th: go to ftp:includes>>classes>>rlCommon.class.php find method: 'fieldValuesAdaptation'
find code:
PHP Code:
Only registered members can view the code.
and replace to:
PHP Code:
Only registered members can view the code.
then in this method find code:
PHP Code:
Only registered members can view the code.
and replace to:
PHP Code:
Only registered members can view the code.
9-th: go to ftp://includes>>classes>>rlCommon.class.php find method: 'checkDynamicForm'
find code:
PHP Code:
Only registered members can view the code.
and add new line after:
PHP Code:
Only registered members can view the code.
10-th: go to ftp://includes>>classes>>rlListings.class.php find method 'create' and find code:
PHP Code:
Only registered members can view the code.
and after that add new code:
PHP Code:
Only registered members can view the code.
then here find method 'edit' and code in:
PHP Code:
Only registered members can view the code.
and after that add new code:
PHP Code:
Only registered members can view the code.
11-th: go to ftp://includes>>controllers>>add_listing.inc.php
find code:
PHP Code:
Only registered members can view the code.
and replace to:
PHP Code:
Only registered members can view the code.
then go to ftp://includes>>controllers>>edit_listing.inc.php
find code:
PHP Code:
Only registered members can view the code.
and replace to:
PHP Code:
Only registered members can view the code.
12-th: go to ftp://includes>>classes>>rlCommon.class.php find method: 'adaptValue' and find code:
PHP Code:
Only registered members can view the code.
and add new line:
PHP Code:
Only registered members can view the code.
13-th go to ftp://templates>>your_template>>tpl>>blocks>>field_out.t pl
find code:
Code:
Only registered members can view the code.
and replace to:
Code:
Only registered members can view the code.