Forum Replies Created

Viewing 6 replies - 1 through 6 (of 6 total)
  • you can really easy show wordpress stuff on any other php page!

    You cant include stuff into .html pages, it have to be .php

    You can can make a static wordpress page and show them and/or make your own function to pull the data from the database into your page.php

    Forum: Fixing WordPress
    In reply to: splash page?

    You can add som code that will display a splash page in the beginning of index.php in the root.

    Set a cookie if the visitor enters the site and it will not be displayed anymore.

    Try this just after the beginning < ? php

    if (!isset($_COOKIE[‘disclaimer’]))
    {
    include(“/path/to/my/page.php”);
    exit;
    }

    let me know if you want further help..

    The page is old, from 2002. Bad code..

    Example usage:

    Sidebar

    <form action=”switcher.php” method=”post”>
    <select name=”set”>
    <option value=”1c-b”> ? 1c-b</option>
    <option value=”2c-l” selected=”selected”> ? 2c-l</option>
    <option value=”2c-r”> ? 2c-r</option>
    <option value=”3c-b”> ? 3c-b</option>
    <option value=”3c-l”> ? 3c-l</option>
    <option value=”3c-r”> ? 3c-r</option>
    </select>
    <input type=”submit” value=”Change Style”>
    </form>

    Switcher.php


    if (isset($_POST[‘set’]))
    {
    setcookie (‘style’, $_POST[‘set’], time()+31536000, ‘/’, ‘domain.org’, ‘0’);
    header(“location: ” . $_SERVER[‘HTTP_REFERER’]);
    }

    header.php


    <link rel=”stylesheet” type=”text/css” media=”screen” title=”Sandbox layouts” href=”/wp-content/themes/sandbox/css/<?php echo (!$_COOKIE[‘style’])?’2c-l’:$_COOKIE[‘style’] ?>.css” />
    <link rel=”stylesheet” type=”text/css” media=”screen” title=”Base Style” href=”/wp-content/themes/sandbox/style.css” />

    Where is the file to download ? Your website is a spooktown..

    kentfallman

    (@kentfallman)

    Change all places where wp-login.php is to ex. myfrigginloginpage.php.

    do it in following files..

    wp-login.php
    wp-admin/admin-header.php
    wp-includes/general-template.php
    wp-includes/pluggable.php

    voila! your ready to rock..

Viewing 6 replies - 1 through 6 (of 6 total)