Viewing 3 replies - 1 through 3 (of 3 total)
  • Sure,

    a. Modify your file wordpress-form-manager/templates/fm-summary-default.php

    <?php
    $file = fm_summary_get_item_value(‘logo’);
    $file = unserialize($file);
    ?>
    <img src=”<?php echo $file[‘upload_url’].’/’.$file[‘filename’];?>”/>

    <?php while(fm_summary_have_items()): fm_summary_the_item(); ?>

    <?php switch(fm_summary_the_type()){
    case ‘separator’: ?><hr /><?php break;
    default:
    if(fm_summary_has_data()): ?>
    <li<?php if(fm_summary_the_nickname() != “”) echo ” id=\”fm-item-“.fm_summary_the_nickname().”\””;?>><?php echo fm_summary_the_label();?>: <?php echo fm_summary_the_value();?>

    b. Add the Item Nicknames for your upload as logo

    Hope it helps!!

    I’m not understanding what I’m to place in for ‘logo’ to make this all work. There is no place in the Form Manager plugin area, that I’m finding, where I type in any sort of nickname. If it’s a name inside the database which one and how do I access it to add it in place of ‘logo’?

    I used this (‘sample’ is the nickname of my file upload). This was placed in a custom form summary in the following plugin directory: wordpress-form-manager/templates

    <?php
    if(fm_summary_the_nickname() == "sample")
    {
    $file = fm_summary_get_item_value('sample');
    $file = unserialize($file);
    ?>
    <img src="<?php echo $file['upload_url'].'/'.$file['filename'];?>"/>
    <?php
    
    } //else { echo '';}
    
    ?>

    Here’s the complete code. This creates the div entry. Most of it is from the default Form Manager template. You can see where I include the above code snippet.

    <div id="fm-summary">
    <?php while(fm_summary_have_items()): fm_summary_the_item(); ?>
    	<?php switch(fm_summary_the_type()){
    		case 'separator': ?><hr /><?php break;
    		default:
    		if(fm_summary_has_data()): ?><p><strong class="scaps"><?php echo fm_summary_the_nickname(); ?>:</strong> <?php echo fm_summary_the_value();
    		?><br />
    <?php
    if(fm_summary_the_nickname() == "sample")
    {
    $file = fm_summary_get_item_value('sample');
    $file = unserialize($file);
    ?>
    <img src="<?php echo $file['upload_url'].'/'.$file['filename'];?>"/>
    <?php
    
    } //else { echo '';}
    
    ?>
    
    </p>
    	<?php endif;
    		} // end switch ?>
    <?php endwhile; ?>
    </div>
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: WordPress Form Manager] Show images submitted by upload field’ is closed to new replies.