Închis

small php custom code

Hello

I am using wordpress and [login to view URL]

I need to change the upload folder.

The new upload folder must be in form/name of the company - date - time

The first text box that the user has in formular is name of the company - field id 1

This code below upload the folder location but it gets the penultimate content value of this text box.

Users are not registerd or logged in the platform, it is used by guest users.

add_filter( 'frm_upload_folder', 'frm_custom_upload', 10, 2 );

function frm_custom_upload( $folder, $atts ) {

if ( $atts['form_id'] == 1 ) {

$date = date_i18n( 'd-m-Y' );

$time = date_i18n( 'H-i' );

$val2 = FrmProEntriesController::get_field_value_shortcode(array('field_id' => 1));

$folder = 'form/' . $val2 . '+' .$date .'+'. $time; }

return $folder;

}

Aptitudini: PHP, WordPress

Vezi mai multe: php code for posts wordpress plugin, custom php framework, how to create custom shortcode in wordpress, create your own lightweight php mvc framework, add custom code to wordpress page, wordpress custom shortcode plugin, how to add code to functions.php wordpress, custom mvc php, php custom text field preview, php text box editor, net rich text box source code, add text box php, html pdf php javascript rich text box, php code send emails text file, wordpress php create custom code, php custom text variables, rich text box javascript code projects, php code converter pdf text, php custom text editor, php mysql ajax editable text box save button

Despre angajator:
( 3 recenzii ) Ploiesti, Romania

ID Proiect: #21765939

7 freelanceri licitează în medie 21$ pentru acest proiect

Avinavkr

Hello sir, I have reviewed your project details and understood your requirements as mentioned above. We have team of experienced developers who can get your project done. we believe in quality work with ontime deliver Mai multe

%bids___i_sum_sub_35%%project_currencyDetails_sign_sub_36% USD în 7 zile
(152 recenzii)
7.2
%bids___i_sum_sub_35%%project_currencyDetails_sign_sub_36% USD în 0 zile
(220 recenzii)
6.4
TomaITomov

Greetings! Contact me and will show you how to change the folder in no time. Will be pleasure for me. Regards! Toma :)

%bids___i_sum_sub_35%%project_currencyDetails_sign_sub_36% USD în 7 zile
(30 recenzii)
5.8
eliaa

Hello, I have gone through your requirements and understand what you need. I am a Web developer with 7 years experience I have used a lot of technology to implement my clients solutions. List of Services that i can hel Mai multe

%bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% USD în 1 zi
(29 recenzii)
5.0
GlobalSolution3

Nice to meet you. i read your description carefully and am very interesting in your project. I m very familiar with it and can change your code right now. i can start right now and will finish it within a few mins. if Mai multe

%bids___i_sum_sub_35%%project_currencyDetails_sign_sub_36% USD în 7 zile
(12 recenzii)
4.0
developerrishi

I am a developer, web designer and computer programmer offering over 5 years of experience on both client and server sides. I have advanced skills in PHP, MySQL, Javascript, HTML, Jquery, Opencart, Codeigniter, Wordpr Mai multe

%bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% USD în 1 zi
(19 recenzii)
3.5
nomankhan007

I have three years of experience in web development I have worked as senior php developer in software development company.i have made many wordpress and codiegniter website.I have develop many websites, online store, s Mai multe

%bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% USD în 1 zi
(9 recenzii)
3.5