carryoncoding
Forum Replies Created
-
Forum: Plugins
In reply to: [The Events Calendar] Venue map widthThat’s intriguing! I’ll have a look at what my theme is doing to change that.
Very many thanks,
Phil.Forum: Plugins
In reply to: [Simple Download Monitor] Display sdm posts in search results templateI’ve taken this forward with some great help from Ben at Kadence themes.
It seems the answer is “quite a leap” as it is necessary to test whether the post is a child and if so you get the thumbnail fro the parent (cries of “it’s gotta be easier than this!”).
So the new code which goes in page-searchwp-supplemental.php and finds the thumbnail for display looks like this:
if( $post->post_parent ) { $parent_ID = wp_get_post_parent_id($post->ID); $item_download_thumbnail = get_post_meta($parent_ID, 'sdm_upload_thumbnail', true); } else { $item_download_thumbnail = get_post_meta($post->ID, 'sdm_upload_thumbnail', true); } if ( $item_download_thumbnail ) { ?> <div class="imghoverclass img-margin-center"> <a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>"> <img src="<?php echo $item_download_thumbnail; ?>" alt="<?php the_title_attribute(); ?>"> </a> </div> <?php } ?>
Next we have to find how to display the title rather than the filename……
Cheers,
Phil.Forum: Plugins
In reply to: [The Events Calendar] Latitude and longditude in venueMany thanks Barry. I’ll sort out an upgrade!
Kind regards,
Phil.Forum: Plugins
In reply to: [Simple Download Monitor] Display sdm posts in search results templateThank you.
I have modified page-searchwp-supplemental.php to include the following:
<?php global $post; // This mod to show whether search plugin is building the loop correctly echo $post->ID ?>
And we do indeed get a grid of past-issues where the image is replaced by the post id.
How much of a leap is it to get the thumbnail to show?
Cheers,
Phil.Forum: Plugins
In reply to: [Simple Download Monitor] Display sdm posts in search results templateThanks for that.
So if we take, for example, an sdm_download post entitled “Summer 2017” which is post=80
I modified the echo line to read:
echo do_shortcode('[sdm_show_download_info id="80" download_info="thumbnail"]');
And it did indeed show the image. So now the question is how do we correctly populate
'.$post->ID.'
into the number?Kind regards,
Phil.Forum: Plugins
In reply to: [Simple Download Monitor] Display sdm posts in search results templateJust tried this modification. I now get a empty box 75x75px where the image should go, but the box is empty.
foreach ( $swp_query->posts as $post ) { setup_postdata( $post ); // output the result ?> <div class="search-result search_results_item grid_item"> <?php global $post; echo do_shortcode('[sdm_show_download_info id="'.$post->ID.'" download_info="thumbnail"]'); ?> <div class="postcontent"> <header> <a href="<?php the_permalink(); ?>"> <h5 class="entry-title"><?php the_title(); ?></h5> </a> </header> <div class="entry-content"> <?php the_excerpt(); ?> </div> </div> </div> <?php }
Forum: Plugins
In reply to: [The Events Calendar] Modifying the plugin outputOK. Thanks Ed.
Phil.Forum: Plugins
In reply to: [The Events Calendar] Modifying the plugin outputOK, I found this setting to address the first point above:
Admin > Events > Settings > Display > Date Format Settings > Date Time Separator = ” | ”
I’m still very keen to see if we can output the venue in the sidebar widget?
Thanks,
Phil.Hey Max,
How did you get on with this one?
Thanks,
Phil.Forum: Plugins
In reply to: [Breadcrumb NavXT] Using page hierarchy rather than category pageHi John, that’s all 500 posts allocated to a parent page and a very happy client! Thanks for all your help.
What should I do about returning the un-needed plugins? Clearly MenuMagic is not needed. What about Paths – is the Post Parent function using that?
Very many thanks,
Phil.Thanks for persevering with this and identifying the problem. It’s taken many hours of testing and changing builds and re-testing to get to this point.
That threshold seems to be reached quite early, as in with only small test forms but thanks for identifying it.
Off to get the premium version!
Kind regards,
Phil.Thanks. I set up a minimum set of multipart forms. But I’m getting some inconsistent behaviour during testing. As I build up the forms with conditions, there comes a point when the codes show up in the html email and the rows that should be hiddden (as in my note above). Its as if suddenly it doesn’t understand the conditional codes.
If I back off by removing the one row that caused the error – no change.
I need to remove multiple rows before the error disappears. It’s making fault-finding very difficult! Is this expected behaviour due to some sort of caching or have I got it set up wrong?
Kind regards,
Phil.Thanks for your suggestion. I have built a set of test forms based upon the original, and incorporated your advice above.
The e-mail now shows:
[multiform "first-marriage"] [/multiform] Name of first (or only) spouse: [multiform one-spouse-name]
so those codes are still coming through to the e-mail and the values are not being output.
The html for that part of the email looks like this:
[multiform "first-marriage"] <tr> <td width="270" valign="top" style="padding: 2px 5px 2px 10px; color: #153643; font-family: Arial, sans-serif; font-size: 14px; line-height: 14px;" align="right"> Name of first (or only) spouse: </td> <td width="270" valign="top" style="padding: 2px 10px 2px 5px; color: #153643; font-family: Arial, sans-serif; font-size: 14px; line-height: 14px;"> [multiform one-spouse-name] </td> </tr> [/multiform]
Any further thoughts welcome.
Kind regards,
Phil.- This reply was modified 6 years, 10 months ago by carryoncoding.
- This reply was modified 6 years, 10 months ago by carryoncoding. Reason: Tidied up html
False alarm – as far as mDocs is concerned anyway! The mDocs folder on the server was missing nearly 800 documents. I have no idea how they got deleted but it led to the fault above. I have copied them from the backup site and all is well – until next time!
So the question is: how could the docs have been removed….? Wierd. I’m not blaming v3.8.3 but I’d be interested if anyone else experienced similar?
Cheers,
Phil.Forum: Plugins
In reply to: [Breadcrumb NavXT] Using page hierarchy rather than category pageThanks, John. I’ll go back to the client for approval to go through the posts setting the parent manually.
The extensions were bought purely to sort out this requirement, but it may be that I have bought them in error.
Looking forward to your next development!
Kind regards,
Phil.