Hi.

I'm working on a module for a social media site I'm running that allows members to create pages like with Facebook.

However, for the admin settings, I want the admin to be able to use a checkbox that allows user pages to open in a new window.

When checked, in the settings tab, the user page in the will open in a new window allowing my members to stay on their main login page and still maintaining their other pages. Thanks.

I just need a basic BOL code and database function and I will incorporate it into the current files for the settings.

    Not entirely sure what BOL code is, but basically what you want to do is check for the existence of the checkbox name in the $_POST array on save - if it exists, save an indicator into the database row that the resulting link should be output with a target="_blank" attribute.

    (Added some back-ticks to preserve underscores ~ NogDog)

    Write a Reply...