Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6767301
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T14:56:05+00:00 2026-05-26T14:56:05+00:00

How do you remove the image in OpenTBS if the one you are replacing

  • 0

How do you remove the image in OpenTBS if the one you are replacing it with does not exist?

I have a bit of code that loops through and replaces pics in a table, but sometimes the client will not have the pictures. I tried leaving out the default=current tag but it shows a missing image box(“This image cannot currently be displayed”).

UPDATE:

I thought Skrols answer would work but I couldnt get it to work. I have an image followed by the following tag.

[field.p5;ope=changepic;from=’[val]’;adjust]

Whats tags following this would i have to use to say if the field variable p5 is not set or empty ect then remove the image.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T14:56:05+00:00Added an answer on May 26, 2026 at 2:56 pm

    If your first need is to not change the picture in the Docx if the target picture is a not found file, then they are two solutions:

    1. First try with the latest OpenTBS version (1.7.4) because it claims to fix a bug about “default=current”
    2. If it does not work, then you have to check at the PHP side if the target picture does exist using file_exists(). If it doesn’t exist then change the target picture path with a new file that you are sure it does exist.

    If you prefer to delete the picture box in the document if the file is missing, then you can add a TBS field that will delete the picture box depending to a global variable.

    PHP:

    $picok = (file_exists($the_picture)) ? 1 : 0;
    

    HTML:

    [onshow;block=w:drawing;when [var.picok]=1]
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have 2 cucumber scenarios that simulate paperclip image upload. I want to remove
I'm trying to remove the background image on a page that's being loaded via
Does anybody knows about post-processing algorithms to remove ghost objects from binarized image? The
Hey guys quick question, I have an add remove script that will add a
I have this code : if (pansel.val() == 1) $(#myDiv).css('background-image', 'url(/private_images/guida_check_category.jpg)'); else $(#myDiv).css({ 'background-color':
I faced a problem as to remove image with JS code like a... <img
I have a dynamic webpage that includes an iFrame where external html code is
Whats a better way to remove an old image or an image that is
Is it possible to remove the whitespace surrounding an image in PHP? NOTE: to
I would like to fadeOut() an image on the page and remove it from

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.