Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter GiorgioC

    (@giorgioc)

    sorry michael i have just downloaded “Add actions and filters” plugin but, if I want use the first solution “From the point of view of a form submission, you could check to see if the form submission has an file upload field set, and if not set it to some default image. But I do no t recommend this because you will be adding multiplies copies of the file to the database. This would be changing data before it is saved in the database.” in what mode i can change the default avatar?
    I try with:

    function myFilter($formData) {
        if ($formData->uploaded_files['file-avatar'] != ""){
        	?
        }else{
        	?
        return $formData; // be sure to return it
    };
    
    add_filter('cfdb_form_data', 'myFilter');

    what’s the correct syntax to change default avatar?

    thanks

    Thread Starter GiorgioC

    (@giorgioc)

    IT WORKS!
    Thank you so much Michael!
    great plugin!

    Thread Starter GiorgioC

    (@giorgioc)

    <?php echo do_shortcode(‘[cfdb-html form=”Inviaci il tuo racconto” show=”file-avatar” orderby=”Submitted DESC” filelinks=”img” stripbr=”false”]<div class=”thumbCF7″ style=”height: 50px; width:50px;”>${file-avatar}</div></br>[/cfdb-html]’); ?>

    Now I use it for generate a link:
    when I click on thumb I see the submit data in new wordpress page.

    anyone know?

    Thread Starter GiorgioC

    (@giorgioc)

    <?php echo do_shortcode[cfdb-html form=”Inviaci il tuo racconto” show=”file-avatar” orderby=”Submitted DESC” filelinks=”img”]${file-avatar}[/cfdb-html];?>

    Works, but for add a custom style?

    Thread Starter GiorgioC

    (@giorgioc)

    version: WordPress 3.3.1
    plugin name: Facebook OpenGraph + Facebook Connect
    now the forum is offline.

Viewing 5 replies - 1 through 5 (of 5 total)