Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thank you for the answer, Gagan. This plugin promises exactly what I need. I’ll wait for the update.

    I’m using the BuddyPress Album plugin (https://allnaturalartists.com) and needed a front-page slider which contained all user images.

    <div id="photos">
    <?php bp_album_query_pictures(); ?>
    <?php if ( bp_album_has_pictures() ) : ?>
    			<ul class="slides">
            <?php while ( bp_album_has_pictures() ) : bp_album_the_picture(); ?>
    					<li>
                        <a href="<?php bp_album_picture_url(); ?>" title="<?php bp_album_picture_title(); ?>">
    						<img src='<?php bp_album_picture_original_url() ?>' alt="<?php bp_album_picture_desc(); ?>" />
    					</a>
    					<!--<div class="slideDescription">
    						<?php //echo bp_album_picture_desc(); ?>
    					</div>-->
    					</li>
            <?php endwhile; ?>
    			</ul>
    				<div class="clearfix"></div>
    				<a id="prev" class="prev" href="#"><</a>
    				<a id="next" class="next" href="#">></a>
    <?php endif; ?>
    </div>

    So grateful for that link Adrea. Thank you.

    mrmcq, I couldn’t get the jQuery plugin you’re describing to work and in the end just wrote my own. It took a couple days, but the user can now create and delete new fieldsets on the fly. I haven’t gotten as far as getting the “Array” issue you describe. I would really appreciate it if you could give me some guidance on how the form fields can be coded in such a way for CF7 to recognize it once the form’s been submitted.

    For example, the CF7 form would look like this:

    1. CF7 shortcodes
    [text first_name]
    [submit]

    2. CF7 generates the html form
    <form action=”#” method=”post” class=”#”>
    <input type=”text” name=”first_name”>
    <input type=”submit”>
    </form>

    3. Then the search_and_replace plugin would change the name of the text field
    <form action=”#” method=”post” class=”#”>
    <input type=”text” name=”first_name[]”>
    <input type=”submit”>
    </form>

    4. The user dynamically adds another text field and submits the form
    <form action=”#” method=”post” class=”#”>
    <input type=”text” name=”first_name[]”>
    <input type=”text” name=”first_name[]”>
    <input type=”submit”>
    </form>

    5. CF7 has no shortcode for a field named first_name[] and can’t process it.

    I would love any kind of insight you could provide.

    Thank you.

    Hello.
    I’m also trying to get CF7 to work with form fields generated on the fly. I’ve worked out a jQuery script to provide that functionality in the browser, but I have a few questions about making it work with the CF7 plugin.

    themonko, how do you get CF7 to process a text field who’s name includes the square brackets? I’ve tried for example, [text user[first_name]], but CF7 can’t render the field.

    mrmcq, I’ve taken your advice and loaded the search and replace plugin which modifies the form CF7 builds replacing {name=”user-first_name”} with {name=”user[first_name]”}. The browser renders the form with the appropriate field names, however when CF7 processes the form, it won’t recognize a field with that name.

    A general question about CF7, is there any way to get it to recognize hand coded html elements? Other plugins support custom html forms but CF7 is pretty deeply integrated into a couple of my sites.

    Thank you for your threads so far. They’ve been helpful in getting me this far.

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