Title: iceberk's Replies | WordPress.org

---

# iceberk

  [  ](https://wordpress.org/support/users/iceberk/)

 *   [Profile](https://wordpress.org/support/users/iceberk/)
 *   [Topics Started](https://wordpress.org/support/users/iceberk/topics/)
 *   [Replies Created](https://wordpress.org/support/users/iceberk/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/iceberk/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/iceberk/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/iceberk/engagements/)
 *   [Favorites](https://wordpress.org/support/users/iceberk/favorites/)

 Search replies:

## Forum Replies Created

Viewing 15 replies - 1 through 15 (of 30 total)

1 [2](https://wordpress.org/support/users/iceberk/replies/page/2/?output_format=md)
[→](https://wordpress.org/support/users/iceberk/replies/page/2/?output_format=md)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Form Maker by 10Web - Mobile-Friendly Drag & Drop Contact Form Builder] For submission from user, I would like their email to populate when I hit reply](https://wordpress.org/support/topic/for-submission-from-user-i-would-like-their-email-to-populate-when-i-hit-reply/)
 *  [iceberk](https://wordpress.org/support/users/iceberk/)
 * (@iceberk)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/for-submission-from-user-i-would-like-their-email-to-populate-when-i-hit-reply/#post-10635333)
 * But there should be an option to change “reply-to” address in the plugin. Some
   other plugins have that ability, when hit to reply button it sends to submitter
   directly. I need that option either. Don’t want to change plugin, please help.
    -  This reply was modified 7 years, 8 months ago by [iceberk](https://wordpress.org/support/users/iceberk/).
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Contact Form DB] Upload to directory not getting url](https://wordpress.org/support/topic/upload-to-directory-not-getting-url/)
 *  Thread Starter [iceberk](https://wordpress.org/support/users/iceberk/)
 * (@iceberk)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/upload-to-directory-not-getting-url/#post-10081171)
 * I have found a solution like that:
 * First installed a plugin called “Add Shortcodes Actions And Filters” and then
   created action containing below code:
 * function cfdbFilterSaveFiles($formData) {
    // CHANGE THIS: CF7 form name you 
   want to manipulate $formName = ‘krediiii’; $current_user = wp_get_current_user();
   $klasoradi = $current_user->user_login; if (!file_exists(‘fal_resimleri/’.$klasoradi)){
   mkdir(‘fal_resimleri/’.$klasoradi, 0777, true); }
 *  if ($formData && $formName == $formData->title) {
 *  // CHANGE THIS: directory where the file will be saved permanently
    $uploadDir
   = ‘../public_html/fal_resimleri/’. $current_user->user_login.’/’;
 *  // CHANGE THIS: URL to the above directory
    $urlDir = ‘www.astroenerji.com/fal_resimleri/’.
   $current_user->user_login.’/’;
 *  // CHANGE THIS: upload field names on your form
    $fieldNames = array(‘Resim-
   1’, ‘Resim-2’, ‘Resim-3’, ‘Resim-4’, ‘Resim-5’);
 *  return saveFilesInForm($formData, $uploadDir, $urlDir, $fieldNames);
    }
 *  return $formData;
    }
 * add_filter(‘cfdb_form_data’, ‘cfdbFilterSaveFiles’);
 * function saveFilesInForm($formData, $uploadDir, $urlDir, $fieldNames) {
 *  // make a copy of data from cf7
    $formCopy = clone $formData;
 *  foreach ($fieldNames as $fieldName) {
 *  if (isset($formData->uploaded_files[$fieldName])) {
 *  // breakdown parts of uploaded file, to get basename
    $path = pathinfo($formCopy-
   >uploaded_files[$fieldName]); // directory of the new file $newfile = $uploadDir.
   time().$path[‘basename’];
 *  // check if a file with the same name exists in the directory
    if (file_exists(
   $newfile)) { $dupname = true; $i = 2; while ($dupname) { $newpath = pathinfo(
   $newfile); $newfile = $uploadDir . $newpath[‘filename’] . ‘-‘ . $i . ‘.’ . $newpath[‘
   extension’];
 *  if (file_exists($newfile)) {
    $i++; } else { $dupname = false; } } }
 *  // make a copy of file to new directory
    copy($formCopy->uploaded_files[$fieldName],
   $newfile);
 *  // save the path to the copied file to the cfdb database
    $formCopy->posted_data[
   $fieldName] = time().$path[‘basename’];
 *  // delete the original file from $formCopy
    unset($formCopy->uploaded_files[
   $fieldName]); }
 *  }
    return $formCopy; }
 * add_filter(‘cfdb_form_data’, ‘cfdbFilterSaveFiles’);
 * then I wrote the below code under the cfdb shortcode where I want to show the
   output:
 * <?php
    $current_user = wp_get_current_user(); ?>
 * <script type=”text/javascript”>
    (function ($) { $(‘td[title=”Resim-1″] div’).
   each( function () { $(this).html(‘user_login; ?>/’ + $(this).html() + ‘”>Fotoğraf-
   1‘); }) })(jQuery); </script>
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [[Savile Row] One column on mobile](https://wordpress.org/support/topic/one-column-on-mobile/)
 *  Thread Starter [iceberk](https://wordpress.org/support/users/iceberk/)
 * (@iceberk)
 * [10 years ago](https://wordpress.org/support/topic/one-column-on-mobile/#post-7327804)
 * Thank you for yor answers CrouchingBruin.
 * I have added a new code like that;
 *     ```
       @media all and (max-width:768px){
       	.woocommerce ul.products li.col-3.product,
       	.woocommerce-page ul.products li.col-3.product{
       		width: 98%;
       		margin:1%;
       	}
   
       }
       ```
   
 * and it is now working.
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [[Savile Row] One column on mobile](https://wordpress.org/support/topic/one-column-on-mobile/)
 *  Thread Starter [iceberk](https://wordpress.org/support/users/iceberk/)
 * (@iceberk)
 * [10 years ago](https://wordpress.org/support/topic/one-column-on-mobile/#post-7327767)
 * I tried this code but still same.
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [[Savile Row] One column on mobile](https://wordpress.org/support/topic/one-column-on-mobile/)
 *  Thread Starter [iceberk](https://wordpress.org/support/users/iceberk/)
 * (@iceberk)
 * [10 years ago](https://wordpress.org/support/topic/one-column-on-mobile/#post-7327740)
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [[Savile Row] One column on mobile](https://wordpress.org/support/topic/one-column-on-mobile/)
 *  Thread Starter [iceberk](https://wordpress.org/support/users/iceberk/)
 * (@iceberk)
 * [10 years ago](https://wordpress.org/support/topic/one-column-on-mobile/#post-7327738)
 * The site is;
 * [http://www.e-tamirci.com](http://www.e-tamirci.com)
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Points Management System For Gamification, Ranks, Badges, and Loyalty Rewards Program - myCred] Can't subtract number from [mycred_my_balance]](https://wordpress.org/support/topic/cant-subtract-number-from-mycred_my_balance/)
 *  Thread Starter [iceberk](https://wordpress.org/support/users/iceberk/)
 * (@iceberk)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/cant-subtract-number-from-mycred_my_balance/#post-5651444)
 * Hello,
 * Thank you for your answer.
 * I searched deeper after I asked this question and found the code “mycred_get_users_cred”
   which is working fine. I added this code to my template file not in content field.
 * This code is what I need.
 * Thank you.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[User Meta - User Profile Builder and User management plugin] Avatar turns after upload](https://wordpress.org/support/topic/avatar-turns-after-upload/)
 *  Thread Starter [iceberk](https://wordpress.org/support/users/iceberk/)
 * (@iceberk)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/avatar-turns-after-upload/#post-5658030)
 * Is there a solution for that?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Points Management System For Gamification, Ranks, Badges, and Loyalty Rewards Program - myCred] Can't subtract number from [mycred_my_balance]](https://wordpress.org/support/topic/cant-subtract-number-from-mycred_my_balance/)
 *  Thread Starter [iceberk](https://wordpress.org/support/users/iceberk/)
 * (@iceberk)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/cant-subtract-number-from-mycred_my_balance/#post-5651197)
 * Hello again,
 * Let me explain what I want to do;
 * I want to sell products by users preiad credits. So I have to check if there 
   is enough credit in user’s balance to buy the product. If there not enough credit,
   than I want to show “please add more credit to buy this product” text instead
   of submit form or payment button.
 * Yhank you.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Users Ultra Membership, Users Community and Member Profiles With PayPal Integration Plugin] Translation is not working](https://wordpress.org/support/topic/translation-is-not-working-3/)
 *  Thread Starter [iceberk](https://wordpress.org/support/users/iceberk/)
 * (@iceberk)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/translation-is-not-working-3/#post-5588381)
 * Hello,
 * I have done what is written in the link before and then I opened this ticket.
   I tried copying German files yesteeday and some of the translations worked. But
   there were phrases not translated. For example “My Orders” in the fronted user
   profile sidebar.
 * Thanks
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Contact Form DB] Display result from all forms](https://wordpress.org/support/topic/display-result-from-all-forms/)
 *  Thread Starter [iceberk](https://wordpress.org/support/users/iceberk/)
 * (@iceberk)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/display-result-from-all-forms/#post-5554988)
 * Hello again,
 * I realize that it show only numerical values, so I will try to do that with PHP
   Transform Class as you said.
 * Thank you.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Contact Form DB] Display result from all forms](https://wordpress.org/support/topic/display-result-from-all-forms/)
 *  Thread Starter [iceberk](https://wordpress.org/support/users/iceberk/)
 * (@iceberk)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/display-result-from-all-forms/#post-5554985)
 * Hello again,
 * I really appreciate your answer.
 * I have found some examples from your plugin site. I think the code below is for
   what I want;
 * `[cfdb-value function="max" form="Deneme" show="Submitted Login"]`
 * but it returns nothing while th code below shows-up the result;
 * `[cfdb-value form="Deneme" show="Submitted Login" limit="1"]`
 * Am I using it in wrong way?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Contact Form DB] Display result from all forms](https://wordpress.org/support/topic/display-result-from-all-forms/)
 *  Thread Starter [iceberk](https://wordpress.org/support/users/iceberk/)
 * (@iceberk)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/display-result-from-all-forms/#post-5554973)
 * Thank you for your answer, I have one more question, i would be appreciated for
   the answer;
 * I want to show the data, that has been entered mostly to a column in wordpress.
   I have this columns in my custom wp database;
 *     ```
       field_name  field_value
       id          1
       entry       489
       Submitted   indirimdeki
       IP          212.156.66.142
       id          1
       entry       689
       Submitted   indirimdeki
       IP          212.156.66.142
       id          1
       entry       750
       Submitted   indirimdeki
       IP          212.156.66.142
       id          1
       entry       790
       Submitted   zamli
       IP          212.156.66.142
       id          1
       entry       790
       Submitted   zamli
       IP          212.156.66.142
       ```
   
 * I need the most popular Word in column “field_value” according to “Submitted”
   within the same form_name
 * In this example the result should be “indirimdeki”
 * How can I manage it?
 * Thank you very much.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Contact Form DB] Display result from all forms](https://wordpress.org/support/topic/display-result-from-all-forms/)
 *  Thread Starter [iceberk](https://wordpress.org/support/users/iceberk/)
 * (@iceberk)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/display-result-from-all-forms/#post-5554918)
 * Hello again,
 * I want to display only one of multiple same entries from field_name. For example;
   
   field_name 1 1 5 3 2 5 1 2 3 3
 * is my table and i want to retrieve and display it as;
    field_name = 1, 2, 3, 
   5
 * all the same values displayed once and the other same values are not displayed.
 * I have tried below code to display as I want;
    $results = $wpdb->get_results(‘
   SELECT DISTINCT field_name FROM wp_cf7dbplugin_submits’, OBJECT );
 * but it outputs “Array”
 * Then I tried this one;
    $results = $wpdb->query( ‘SELECT DISTINCT field_name 
   FROM wp_cf7dbplugin_submits’, OBJECT );
 * and it showed-up the number of entries (output = 4)
 * How can I get this work?
 * Thank you for your answer
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Contact Form DB] Display result from all forms](https://wordpress.org/support/topic/display-result-from-all-forms/)
 *  Thread Starter [iceberk](https://wordpress.org/support/users/iceberk/)
 * (@iceberk)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/display-result-from-all-forms/#post-5554812)
 * Ok thank you

Viewing 15 replies - 1 through 15 (of 30 total)

1 [2](https://wordpress.org/support/users/iceberk/replies/page/2/?output_format=md)
[→](https://wordpress.org/support/users/iceberk/replies/page/2/?output_format=md)