Forum Replies Created

Viewing 10 replies - 61 through 70 (of 70 total)
  • Thread Starter mrarrow

    (@mrarrow)

    tdjcbe: no, as I say I tried
    svn sw --relocate http://svn.automattic.com/wordpress-mu/tags/2.9.2/ http://core.svn.wordpress.org/tags/3.0/

    and it comes back with the same UUID error.

    Ron R: thanks, so I need to move all the user specific directories e.g. blogs.dir, themes, plugins etc to a safe place (wp-config.php is already one level up) and then:
    svn co http://core.svn.wordpress.org/tags/3.0 .

    Then move those directories back, right?

    Lumpysimon: Yes, it will work fine as long as you stick with the version of Geo Mashup that you state.

    Unfortunately, that’s not very sustainable!

    I spent about 3 days trying to figure out how to get the latest version of Geo Mashup (1.3) to work with the TDO/Geo mashup widget (0.13.7).

    Eventually fixed it so the map appeared correctly in the form and
    a user could place a marker. But it simply wouldn’t post to WordPress. So it seems that the Geo Mashup widget in tdo only works with geo mashup 1.2 at the moment.

    Really frustrating but i got around it by insisting that all posts had to be moderated and part of the moderation was to assign a map marker in the Wp backend.

    It seems that the guy that did the Geo Mashup Tdo widget is different
    to either of the plugin authors…

    I’m happy to pass on the code that I amended to get as far as I did, if that helps…

    Yes, I’ve noticed futsy things like this. So I’ve ended up having to remove ‘required’ from all fields in my edit forms, otherwise it does similar things to what you’re reporting. Not ideal as users can then post fields that originally contained data, as blank.

    And then there’s the fun with setting a custom field as ‘URL’ and it still returns an error even when ‘required’ or ‘validation’ isn’t selected. The only workaround is to turn that back to a text field.

    Kubrick worked for me as a starter.

    I noticed that in order for the edit_post link to work, you must have the_content(); shortcode on the template as well. If not, then I didn’t get the edit_post link at all.

    Of course, when I have more than one edit form, you have to build your own edit_form link like you’ve done, otherwise links appear to all edit forms. Nice!?!?

    Have you made sure that the ‘Enable moderation’ tick box (under the Moderation tab for that form) is unticked as well?

    Yes, I normally have to monkey about with the Roles tab in order to get Original Submitter clickable

    Thread Starter mrarrow

    (@mrarrow)

    Something like this worked for me.

    You can edit the line tdomf_get_user_published_posts($current_user->ID,0,200); to show however many user-submitted posts you want (by default its only set to 5 for some reason!)

    Works fine in 0.13.7 at least.

    <!-- Displays published submissions -->
    <h3><?php printf(__('Published','tdomf'),($app_total < 5) ? $app_total : 5 ); ?></h3>
             <ul>
             <?php $app_posts = tdomf_get_user_published_posts($current_user->ID,0,200);
                    foreach($app_posts as $p) { ?>
              <li>
              <?php $t_time = get_the_time(__('Y/m/d g:i:s A'));
                    $m_time = $p->post_date;
                    $time = tdomf_get_post_time('G', true, $p);
                    if ( ( abs(time() - $time) ) < 86400 ) {
                        $h_time = sprintf( __('%s ago'), human_time_diff( $time ) );
                    } else {
                        $h_time = mysql2date(__('Y/m/d'), $m_time);
                    } ?>
                    <?php printf(__("<a href='%s'>%s</a> approved %s","tdomf"),get_permalink($p->ID),$p->post_title,"<abbr
    title='$t_time'>$h_time</abbr>"); ?>
              </li>
             <?php } ?>
              </ul>
    
    <h3><?php $mod_posts = tdomf_get_user_draft_posts($current_user->ID);
      $mod_total = count($mod_posts);
            _e('Awaiting moderation','tdomf'); ?></h3>
             <ul>
             <?php foreach($mod_posts as $p) { ?>
              <li>"<?php echo $p->post_title; ?>"</li>
             <?php } ?>
              </ul>
    
             <?php } ?>
              </ul>

    Using 0.13.7 you then need to duplicate that form and in the Form Options, set it to be ‘Edit Existing’. Then set up the Editing tab which becomes selectable and hopefully, your users will then be able to edit their posts.

    However, its all a bit futsy and prone to inexplicably breaking for anything other than one noddy form and the default Kubrick theme.

    Thread Starter mrarrow

    (@mrarrow)

    Sorted! I built my own submissions file based on a lot of the functions used in ‘tdomf-your-submissions.php’. Then I simply included that file in a sidebar.

Viewing 10 replies - 61 through 70 (of 70 total)