WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Warning: Nudes ahead... (6 posts)

  1. Jayjerome
    Member
    Posted 7 years ago #

    I want to devote one page on my blog to post graphics and lithographs of famous "nudes" on it, and feel obligated to provide one of those "click before entering" warnings that it may not be suitable for minors, or prudes, etc...

    If going to use a specific page template titled "nudes.php" for the graphics. Anybody have any suggestions on the code I need to make a 'click before entering' the page box?

  2. spencerp
    Member
    Posted 7 years ago #

    I'm not really sure there is any "plugin" for this specifically.. at least I don't think so.. ? =/ Even if there was.. how would anyone "stop", or, slow down the young bucks from gaining access to porn anyway? (My as well not even worry about it tell ya the truth)..

    You *could* probably just customize the:
    <!--more-->
    or, <!--nextpage-->

    functions?

    Hopefully someone else with a little more CODE experience swings by here.. Good luck either way though.. ;):)

    spencerp

  3. satitchula
    Member
    Posted 7 years ago #

    Try this:


    <?php

    $confirm = $_GET['confirm'];

    if ($confirm=='yes') {
    # content goes here
    } else {
    # confirm action required
    Click here to confirm...
    }

    ?>

  4. satitchula
    Member
    Posted 7 years ago #

    Try this with your nudes.php template page:

    $confirm = $_GET['confirm'];
    if ($confirm=='yes') {
    # content goes here
    } else {
    # confirm action required
    [a href='?confirm=yes'] Click here to confirm...[/a]
    }

    Sorry, don't know how to use code tag

  5. moshu
    Member
    Posted 7 years ago #

    [blank lines kill the code posting...]

  6. spencerp
    Member
    Posted 7 years ago #

    satitchula, add the code to a TXT file, upload it to your sever or something maybe, and then provide the "download link" here for the O.P. That's what I usually do.. ;):)

    domain.net/code-file.txt

    spencerp

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags