Beiträge von SY Telefine

    Danke !

    Hallo, DMSGuestbook ist scheinbar nicht PHP5.5 kompatibel. hatte das gleiche Problem.
    Habe in 3 Dateien admin.php, dmsguestbook.php widget.php folgende einträge geändert.
    alle "mysql_real_escape_string" mit "esc_sql"
    und alle "mysql_query" mit "$wpdb->query" ersetzt.
    jetzt läufts wieder. die oben genannten werden in php5.5 wohl nicht mehr unterstützt.
    ob das alles so korrekt ist kann ich nicht sagen aber es geht :wink:


    Es geht wieder !!!!
    Juhuuu

    Hi !
    Ich benutzte dieses tolle Plugin, nur habe ich folgendes Problem ....
    Ich habe eine Seite, die den Besuchern den Blog anzeigt, mit der Info das es sich um Inhalte für "nur Member" handelt.
    Wenn sich der Besucher nun einloggt, wird er automatisch von meinem s2member-Plugin für die Dauer "X" mit der Rolle "Level1" eingetragen.

    Sobald diese Zeit abläuft, ändert s2member die Rolle auf "Abonnent"
    (Automatisch löschen möchte ich Ihn von s2member aber auch nicht.)
    Mit dieser Rolle hat er aber immer noch Zugriff auf meine Berichte.
    Das soll aber nicht sein.
    Wie kann ich den PHP-Code ändern, damit die Rolle "Abonnent" ebenfalls keinen Zugriff hat ?


    Hier der Code:
    <?php
    /*
    Plugin Name: Access Control by Category
    Plugin URI: http://dekisugi.net/wpplugins/access-control-by-category
    Description: Visitors must logged on to see the content of any posts under "Subscribed" category. This can be used as a simple membership system. Please [rate] this plugin.
    Author: Narin Olankijanan
    Version: 1.1
    Author URI: http://dekisugi.net/wpplugins
    License: GPLv2
    */

    /* Copyright 2012 Narin Olankijanan (email: narin@dekisugi.net)
    This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or any later version.
    This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
    You should have received a copy of the GNU General Public License along with this progam; if not, write to the Free Software Foundation, Inc. 51 Franklin St, Fifth floor, Boston MA 02110-1301 USA
    */
    add_filter('the_content', 'dk_res_post');
    function dk_res_post($content){
    global $post;
    $post_id = $post->ID;
    $cats = wp_get_post_categories( $post_id );
    $is_restricted = false;
    $post_categories = wp_get_post_categories( $post_id );

    foreach($post_categories as $c){
    $cat = get_category( $c );
    if ($cat->name == "Subscribed") {
    $is_restricted = true;
    break;
    }
    }
    if ($is_restricted AND !is_user_logged_in()) {
    return "[ MEMBER ZONE, please Login or register...... ]";
    } else {
    return $content;
    }
    }

    /* EOF */

    Hi !
    Irgendwie schaffe ich es nicht, diese Texte zu ändern....

    Hier habe ich den bereich aus einer single.php, bei der die Überschriften anstatt "nächster Beitrag" angezeigt wird -->

    ##################################################


    <?php wp_link_pages(array('before' => '<div class="wp-pagenavi">Pages: ', 'after' => '</div>')); ?>
    <?php edit_post_link('Edit Post'); ?>

    <div class="post_nav">
    <div class="nav-previous left"><?php previous_post_link('%link', '<span class="meta-nav">&laquo;</span> %title') ?></div>
    <div class="nav-next right"><?php next_post_link('%link', '%title <span class="meta-nav">&raquo;</span>') ?></div>
    </div>


    ##################################################


    Und hier ist der Inhalt meiner single.php -->

    #############################################

    <?php
    /**
    * @package WordPress
    * @subpackage Adventure_Journal
    */
    $themeOpts = get_option('ctx-adventurejournal-options');
    get_header();
    ?>
    <div class="content" <?php ctx_aj_getlayout(); ?>>
    <div id="col-main" style="<?php echo ctx_aj_customwidth('content'); ?>">
    <div id="main-content" <?php //ctx_aj_crinkled_paper(); ?>>
    <!-- BEGIN Main Content-->
    <?php
    //Start the Loop

    if (have_posts()) : while (have_posts()) : the_post(); ?>

    <div <?php post_class() ?> id="post-<?php the_ID(); ?>">
    <?php echo sprintf('<h1 class="storytitle">%s</h1>',get_the_title());?>
    <?php if($themeOpts['featured-header']!='true') { the_post_thumbnail(); } ?>
    <div class="meta">Posted by <?php the_author_posts_link(); ?> on <?php the_date();?></div>

    <?php
    if(!function_exists('is_admin_bar_showing')){
    edit_post_link(__('Edit Post', 'adventurejournal'));
    } else if ( !is_admin_bar_showing() ){
    edit_post_link(__('Edit Post', 'adventurejournal'));
    }
    ?>

    <div class="storycontent">
    <?php the_content(__('(more...)')); ?>
    <div class="clear"></div>
    </div>

    <div class="feedback">
    <?php wp_link_pages( array( 'before' => '<div class="page-link">' . __( 'Pages:', 'adventurejournal' ), 'after' => '</div>' ) ); ?>
    <?php _e('Posted under ','adventurejournal'); ?> <?php the_category(',') ?> <?php the_tags(__('and tagged with '), ', ', ' '); ?><br />
    <?php comments_popup_link(__('Comments (0)'), __('Comments (1)'), __('Comments (%)')); ?>
    </div>

    </div>
    <?php comments_template(); // Get wp-comments.php template ?>
    <?php endwhile; else: ?>
    <p><?php _e('Sorry, no posts matched your criteria.','adventurejournal'); ?></p>
    <?php endif; ?>

    <!-- END Main Content-->

    </div>
    </div>
    <?php get_sidebar(); ?>
    <div class="clear"></div>
    <?php next_post_link('<strong>%link</strong>'); ?>

    </div>
    <?php get_footer(); ?>


    ############################################################################

    Keine Ahnung was ich hier ergänzen sollte...

    Danke,
    Telefine

    Hi !

    Ich habe heute den Code-Schnipsel in der "loop.php" gefunden, der für die Anzeige von "ältere,neuere Artikel" zuständig ist -->


    <div id="nav-below" class="navigation">

    <div class="nav-previous"><?php next_posts_link( __( '<span class="meta-nav">&laquo;</span> Older posts', 'adventurejournal' ) ); ?></div>
    <div class="nav-next"><?php previous_posts_link( __( 'Newer posts <span class="meta-nav">&raquo;</span>', 'adventurejournal' ) ); ?></div>

    </div><!-- #nav-below -->


    Was muss ich nun darin ändern, das statt"ältere Artikel" der NAME vom älteren Artikel angezeigt wird ?


    Danke,
    SY Telefine