• Every date generates an error message if there is no video or image attached to the year and then it broke my theme for the actual post.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author DotsquaresLtd

    (@dswpsupport)

    Hello vegastriguy,

    Thanks for showing your interest and downloading our plugin. We are always here to help you for any kind of issue you face.
    Could you please explain what information you are using for the event? Also could you please share the screen capture with the error message so that we can check accordingly.
    We have checked at our end by not attaching image or video with event. But could not replicate the error.
    Due to security reason, could you please email us your website url, website admin details and FTP details at : [email protected]
    You can change these details once we corrected the issue.

    Kindest Regards,
    DS Team.

    https://www.bebraveinfertilityjourney.com/wp-content/uploads/2014/05/Capture.jpg

    This is what he means. It says “no image” or “no video” if there isn’t one there…
    https://www.bebraveinfertilityjourney.com/sample-page/timeline/

    Can we instead put a thumbnail there if there IS a pic? Or some sort of callout so they know there’s one there?

    And then remove the error if there isnt… ??

    Here’s my fix, which worked. Go to “editor” under the plugins tabs on your admin panel. Find the timeline plugin and search for the following code:
    if($imgSrc!= '')

    Underneath there, you’ll see the if/then statements which say if there is a video, display “event video”, else display “No video”.

    Just either delete the “no video” text or put comments around it so it’s not read. E.g. the following:

    if($imgSrc!= '') {
    								$timeline_text .= '<li>
    										<a href="'.$imgSrc.'" rel="prettyPhoto">
    											Event Image
    										</a>
    									</li>';
    							} else {
    								$timeline_text .= '<li><!--No Image--></li>';
    
    							}
    							if($video['0']!= '') {
    								$timeline_text .= '	<li>
    										<a href="'.$video['0'].'" rel="prettyPhoto">
    											Event Video
    										</a>
    									</li>';
    							}else {
    								$timeline_text .= '<li><!--No Video--></li>';

    I’d still very much appreciate some sort of thumbnail though for when there is a vid/pic… Can we do that instead? ??

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Broke theme, error message’ is closed to new replies.