WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Blackout for my local wordpress installation... (2 posts)

  1. AndrzejL
    Member
    Posted 2 years ago #

    Hi folks.

    I would need a bit of help with a tiny project.

    I have a WordPress based website running under the address:

    http://andrzejl.no-ip.org:10101/wordpress

    Everything works great thanks to WordPress hard working team.

    My page normally looks more less like this:

    http://s6.postimage.org/fyadfigen/Snapshot_021.png

    I have prepared semi transparent graphic which looks like this:

    http://s6.postimage.org/nqvzadg27/Black_Out.png

    Now my goal would be this:

    User clicks on a link to my site (or types it in - makes no diff)

    and His / Her browser is presented with something like this:

    http://s6.postimage.org/jj68yqky7/Snapshot_021b.png

    User must click on the graphics to be allowed to view my site and in the same time in the second tab another page opens (not malicious of course - just a simple link to a youtube video or article about sopa / pipa / acta)

    How would one achieve such a goal? I bet it's possible...

    I am not afraid of editing the WordPress files and a adding something that will cause it but I have NO idea where to add what.

    Thank You in advance for Your help.

    Regards.

    Andy

    [No bumping, thank you.]

  2. AndrzejL
    Member
    Posted 2 years ago #

    Hi all.

    I did it. It works.

    There are 2 files You need to edit.

    I am using this theme:

    http://wordpress.org/extend/themes/red-evo-aphelion

    I went to my theme folder - in my case it was

    /var/www/html/wordpress/wp-content/themes/red-evo-aphelion

    and thanks to JackBauer24 I was able to edit 2 files (as root)

    header.php

    original file: http://pastebin.com/qAqiM1Lv

    modified file: http://pastebin.com/4Q9LaBY2

    style.css

    original file: http://pastebin.com/VrX8x4LW

    modified file: http://pastebin.com/E2k2PkHt

    and I had to throw a image file into the same folder:

    Black_Out.png

    Image file: http://s6.postimage.org/xwa9anyj3/Black_Out.png

    So editing 2 files in Your theme folder and adding graphics should do it.

    I did not wrote the code I have just implemented it. If You know what You are doing feel free to extract / use the code on Your site but I am not taking any responsibilities if You mess something up.

    Do not copy the entire content of modified css and php file and paste them into Your files coz You will mess up Your theme. Only parts of the code are necessary to make this thing work.

    Marking thread as solved.

    Regards.

    Andrzej

    P.S. Sorry about the bump ;).

Topic Closed

This topic has been closed to new replies.

About this Topic