I have a site that is running PHPBB forum software. When a moderator selects a post for approval, there is an HTML page that launches with the message "Are you sure you want to approve this post?". The page then requires the moderator to confirm the action by clicking a Yes button.

This is the HTML code that prompts the moderator to click the Yes button:

<fieldset class="submit-buttons">
  {S_HIDDEN_FIELDS}
  <input type="submit" name="confirm" value="{YES_VALUE}" class="button1" />  
  <input type="submit" name="cancel" value="{L_NO}" class="button2" />
</fieldset>

I'd like to bypass this requirement, where automatically the {YES_VALUE} is passed, as if the moderator clicked the YES button, thereby eliminating the need for the moderator to actually click anything.

Is there a way I can modify the HTML code above to accomplish this?

the button code is useless
either the form target, or phpbb configuration itself, needs to be altered

Do you still want the popup to show?

I don't want the popup to show. I'd love to modify the php, the issue is that I'm struggling to find the line of code that calls the HTML template file with this button prompt

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.