RumWall aber ein gaanz anders prob

  • hi leute... ich hab hier mal ein ganz anders problem ;)
    urL:
    http://www.freaks-of-fun.com/wp-content/the…olence/wall.php

    quelltext der wall.php:

    <?php

    require('./wp-blog-header.php');

    $offset = (int) $_GET['offset'];

    $wall = new RumWall($offset);

    if (isset($_POST['sub']))
    {
    $author = trim(strip_tags($_POST['author']));
    $email = trim(strip_tags($_POST['email']));
    $url = trim(strip_tags($_POST['url']));
    $content = trim(strip_tags($_POST['content']));
    if (strlen($author) > 0 && strlen($content) > 0)
    {
    if ($wall->SaveTag($author, $email, $url, $content))
    {
    if (!isset($_POST['returnurl']))
    {
    header("location: wall.php");
    }
    else
    {
    header("location: ".$_POST['returnurl']);
    }
    }
    }
    }

    ?>
    <style type="text/css" media="screen">

    #rumwallbtn input.styled {
    /* you can add your style for the button here */
    }

    #rumwallform {

    }

    #rumwallform table {
    width: 100%;
    }

    #rumwallform textarea {
    width: 98%;
    height: 100px;
    }

    </style>
    <div id="content" class="widecolumn">
    <div class="post">
    <script type="text/javascript" language="javascript">
    function showForm(obj)
    {
    obj.style.display = 'none';
    var ele = document.getElementById('rumwallform');
    if (ele)
    {
    ele.style.display = 'block';
    }
    }
    </script>
    <div id="rumwallbtn">
    <input type="button" onclick="showForm(this);" value="<?php _e('Drop tag!'); ?>" class="styled"/>
    </div>
    <div id="rumwallform" style="display: none;">
    <form method="post">
    <table cellpadding="0">
    <tr>
    <td><?php _e('Name'); ?></td>
    <td align="right"><input name="author" type="text" value="" class="styled"/></td>
    </tr>
    <tr>
    <td><?php _e('Email (Not published)'); ?></td>
    <td align="right"><input name="email" type="text" value="" class="styled"/></td>
    </tr>
    <tr>
    <td><?php _e('Website'); ?></td>
    <td align="right"><input name="url" type="text" value="" class="styled"/></td>
    </tr>
    <tr>
    <td colspan="2">
    <textarea name="content" class="styled"></textarea>

    <input type="submit" name="sub" value="<?php _e('Tag it!'); ?>"/> </form>
    </td>
    </tr>
    </table>
    </form>
    </div>

    <?php if ($wall->hasMultiPages()) : ?>
    <div id="rumpages">
    <?php _e('Pages:'); ?>
    <?php for ($page=1; $page<=$wall->getPageAmount(); $page++): ?>
    <?php if ($page == $wall->getCurrentPage()): ?>
    [<?php print $page; ?>]
    <?php else: ?>
    <?php print $page; ?>
    <?php endif; ?>
    <?php endfor; ?>
    </div>
    <?php endif; ?>
    <div id="rumwall">


      <?php while ($tag = $wall->getTag()): ?>
      <li class="<?php if ($wall->isTagAlternative()) print 'alt'; ?>">
      <div class="wallheader">
      <?php print date('Y-m-d H:i', strtotime($tag->posted)); ?>
      <?php _e('by'); ?>
      <?php if (strlen($tag->url) > 0) : ?>
      <?php print $tag->author; ?>
      <?php else: ?>
      <?php print $tag->author; ?>
      <?php endif; ?>
      </div>
      <div class="wallcontent">

      <?php print $tag->content; ?></p></div>

      <?php endwhile; ?>


    </div>
    </div>
    </div>

    • Anzeige

    Hallo!

    Wenn du gerade an deiner Website arbeitest oder dein aktuelles Hosting überdenkst: Wir betreiben mit NetzLiving eine Hosting-Plattform, die speziell auf Performance, Sicherheit und einfache Verwaltung ausgelegt ist.

    • ✔️ Schnelle Ladezeiten (optimiert für WordPress & Co.)
    • ✔️ Deutsche Server & DSGVO-konform
    • ✔️ Persönlicher Support (kein 0815-Ticket-System)

    Mehr erfahren

  • Lies mal die Fehlermeldung: "Unable to access" und "failed to open stream". Dein Theme versucht gerade, die wp-blog-header.php einzubinden, was aber nicht klappen kann (die eine liegt im Theme-Verzeichnis, die andere im www-root). Bist du sicher, dass die wall.php nicht auch in den www-root (Hauptverzeichnis) gehört?

    Sid

  • ok liegt jetzt im wordpress hauptverzeichniss aber da kommt immer noch

    Fatal error: Class 'RumWall' not found in /var/www/html/web155/html/wall.php on line 7

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!