logo
Ask your WordPress questions! Pay money and get answers fast! (more info)

Warning: Please do not give out any FTP or ssh credentials to anyone, unless you trust them completely. Giving out login details is dangerous.

If the asker does not get an answer then they have 10 days to request a refund.

$10
Popup disclaimer with accept or decline link options

I have been requested to implement a popup that will display on particular page(s) that will say something along the lines of the following in a lightbox or similar...

---------------------------------------------------------

Risk Disclaimer

By clicking I agree/proceed, I acknowledge that I understand participation in alternative investment platforms is available only to qualified investors and that the investments involve risk.

(LINK) I agree, proceed to the site (LINK) I disagree and want to leave


----------------------------------------------------------

If the visitor clicks Agree/Proceed, the popup simply closes and allows the visitor to browse the site; if the visitor clicks on Disagree/Leave it will take them somewhere else, like google.com

Please help.

Top Shelf | 11/17/11 at 11:11pm Edit
Tutorial: How to assign prize money


(2) Possible Answers Submitted...

See a chronological view of answers?

Warning: Please do not give out any FTP or ssh credentials to anyone, unless you trust them completely. Giving out login details is dangerous.

  • avatar
    Last edited:
    11/17/11
    11:20pm
    Pixel Coder says:

    Hi Dane, let me get this for you now.

    • 11/17/11 11:21pm

      Top Shelf says:

      Alistair,

      You are a fountain of knowledge.

      Thank you,

      Dane

    • 11/17/11 11:41pm

      Pixel Coder says:

      Thanks, how's that for you?

      It's using a UI theme for the pop up.

      Both the .js and .css file are hosted with Google CDN.

      If you notice a new custom field title "px-popup" in your custom field list, if not that's the one to add.

      Fill in a value on any given post or page for that custom field now and a pop up will display.

      Had some troubles with jQuery being included with your theme, currently it might be getting called twice.

      If you're going through some optimisation later this should be investigated.

      Hope that works out, also if you would like the ability to load your own theme lemme know and will allow for a theme option.

      Cheers :p

    • 11/17/11 11:50pm

      Top Shelf says:

      Alistair,

      Thank you again for your timely assistance. I have been able to make it work without even filling in a value, so long as I have added a custom field. Once the website is finished it must be reviewed by the financial regulators to make certain its compliant, for regulatory purposes. If I need to ammend/edit the text in the disclaimer, where can I accomplish this?

      Dane

    • 11/17/11 11:54pm

      Pixel Coder says:

      No problems lad :)

      Oh, thanks for heads up on that. Leave it off entirely if not required.

      WordPress treats a custom field as active even if no value assigned, interesting. Learn something new every day.

      It's hard coded in the footer, as mentioned though a small options page could be created for the theme url.... and also the text.

      Little more time involved again though.

      So yeah, if you would like to change the text... head into footer.php, look for a div with id of px-disclaimer.

      The rest is up to you.

      Best

    • 11/17/11 11:58pm

      Top Shelf says:

      Alistair,

      I am going to be using this site frequently and I hope to be able to utilize your assistance again sometime soon.

      Warm Regards,

      Dane

    • 11/17/11 11:59pm

      Pixel Coder says:

      Lovely dude,

      Many thanks

  • avatar
    Last edited:
    11/17/11
    11:23pm
    Hai Bui says:

    You can just use this plugin
    http://wordpress.org/extend/plugins/content-warning-v2/

This question has expired.





Current status of this question: Community pot



Please log in to add additional discourse to this page.





Warning: Please do not give out any FTP or ssh credentials to anyone, unless you trust them completely. Giving out login details is dangerous.

If the asker does not get an answer then they have 10 days to request a refund.