Forum Replies Created

Viewing 8 replies - 136 through 143 (of 143 total)
  • Thread Starter Piskatje

    (@piska)

    YES!!!!!!!!!!! IT’S WORKING!!!!!!!! THANKS A LOT !!!!

    PS: Here is the code for other people for author.php

    <!-- STARBOX-->
    
    <?php 
    
    function starBoxShow() {
            if (!class_exists('ABH_Controllers_Frontend'))
                return;
    
            ABH_Classes_ObjController::getController('ABH_Classes_Tools');
    
            $theme = ABH_Classes_Tools::getOption('abh_theme');
    
            $str = '';
            $str .= '<script type="text/javascript" src="' . _ABH_ALL_THEMES_URL_ . $theme . '/js/frontend.js?ver=' . ABH_VERSION . '"></script>';
            $str .= '<link rel="stylesheet"  href="' . _ABH_ALL_THEMES_URL_ . $theme . '/css/frontend.css?ver=' . ABH_VERSION . '" type="text/css" media="all" />';
            $str .= ABH_Classes_ObjController::getController('ABH_Controllers_Frontend')->showBox();
    
            return $str;
        }
    
    echo starBoxShow();
    
    ?>
    
    <!-- STARBOX end-->
    Thread Starter Piskatje

    (@piska)

    The box is gone:(

    Did I do something wrong?.

    <?php get_header(); ?>
    
    <?php
    	if(isset($_GET['author_name'])) :
    		$curauth = get_userdatabylogin($author_name);
    	else :
    		$curauth = get_userdata(intval($author));
    	endif;
    ?>
    
    <h2 class="pagetitle">Auteur <?php echo $curauth->display_name; ?> </h2>
    
    <!-- AddThis Button BEGIN -->
    <div class="addthis_toolbox addthis_default_style addthis_16x16_style">
    <a class="addthis_button_facebook"></a>
    <a class="addthis_button_twitter"></a>
    <a class="addthis_button_google_plusone_share"></a>
    <a class="addthis_button_favorites"></a>
    <a class="addthis_button_email"></a>
    <a class="addthis_button_compact"></a><a class="addthis_counter addthis_bubble_style"></a>
    </div>
    <script type="text/javascript">var addthis_config = {"data_track_addressbar":true};</script>
    <script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=ra-50a7c516225cb712"></script>
    <!-- AddThis Button END -->
    
    <!-- temp hide the site en name van auter's page
    
    <p><strong>Auteur:</strong> <?php echo $curauth->nickname; ?><br />
    
    <?php if(!empty($curauth->first_name)) { ?><strong>Naam:</strong> <?php echo $curauth->first_name; ?> <?php echo $curauth->last_name; ?><br /><?php } ?>
    
    <?php if($curauth->user_url != 'https://') { ?><strong>Site:</strong> <a href="<?php echo $curauth->user_url; ?>" target="_blank"><?php echo $curauth->user_url; ?></a><br /><?php } ?> 
    
    -->
    
    <?php if(!empty($curauth->description)) { ?><strong>Over auteur:</strong> <?php echo $curauth->description; ?><?php } ?></p>
    
    <br />
    
    <!-- STARBOX-->
    
    <?php 
    
    function starBoxShow() {
            if (!class_exists('ABH_Controllers_Frontend'))
                return;
    
            ABH_Classes_ObjController::getController('ABH_Classes_Tools');
    
            $theme = ABH_Classes_Tools::getOption('abh_theme');
    
            $str = '';
            $str .= '<script type="text/javascript" src="' . _ABH_ALL_THEMES_URL_ . $theme . '/js/frontend.js?ver=' . ABH_VERSION . '"></script>';
            $str .= '<link rel="stylesheet"  href="' . _ABH_ALL_THEMES_URL_ . $theme . '/css/frontend.css?ver=' . ABH_VERSION . '" type="text/css" media="all" />';
            $str .= ABH_Classes_ObjController::getController('ABH_Controllers_Frontend')->showBox();
    
            return $str;
        }
    
    ?>
    
    <!-- STARBOX end-->
    
    <br />
    
    <h3>Bespaartips en blogs van deze auteur:</h3>
    
    <?php
      $order = "&orderby=cost&order=DESC";
      $s2 = ' selected="selected"';
      if ($_POST['select'] == 'title') { $order = "&orderby=title&order=ASC"; $s1 = ' selected="selected"'; $s2 = ''; }
      if ($_POST['select'] == 'newest') { $order = "&orderby=cost&order=DESC"; $s2 = ' selected="selected"'; }
      if ($_POST['select'] == 'oldest') { $order = "&orderby=cost&order=ASC"; $s3 = ' selected="selected"'; $s2 = ''; }
    ?>
    
    <form method="post" id="order">
    	Sorteer op:
    	<select name="select" onchange='this.form.submit()'>
    		<option value="title"<?=$s1?>>Titel</option>
    		<option value="newest"<?=$s2?>>Nieuwste</option>
    		<option value="oldest"<?=$s3?>>Oudste</option>
    	</select>
    </form>
    
    <div class="line"></div>
    
    <div class="navigation">
    			<div class="alignleft"><?php next_posts_link('Volgende pagina &raquo;') ?></div>
    			<div class="alignright"><?php previous_posts_link('&laquo; Vorige pagina') ?></div>
    		</div>
    
    <?php get_sidebar(); ?>
    <?php get_footer(); ?>
    Thread Starter Piskatje

    (@piska)

    Hey Calin,

    Unfortunately it did not help. The starbox is not displayed correctly . Please see this page.

    Another suggestions?

    Thanks in advance
    Piska

    Thread Starter Piskatje

    (@piska)

    just updated the plugin. no difference.

    Thread Starter Piskatje

    (@piska)

    Hi Calin,

    The author page:

    This is the code of author.php

    <?php get_header(); ?>
    
    <?php
    	if(isset($_GET['author_name'])) :
    		$curauth = get_userdatabylogin($author_name);
    	else :
    		$curauth = get_userdata(intval($author));
    	endif;
    ?>
    
    <h2 class="pagetitle">Auteur <?php echo $curauth->display_name; ?> </h2>
    
    <!-- AddThis Button BEGIN -->
    <div class="addthis_toolbox addthis_default_style addthis_16x16_style">
    <a class="addthis_button_facebook"></a>
    <a class="addthis_button_twitter"></a>
    <a class="addthis_button_google_plusone_share"></a>
    <a class="addthis_button_favorites"></a>
    <a class="addthis_button_email"></a>
    <a class="addthis_button_compact"></a><a class="addthis_counter addthis_bubble_style"></a>
    </div>
    <script type="text/javascript">var addthis_config = {"data_track_addressbar":true};</script>
    <script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=ra-50a7c516225cb712"></script>
    <!-- AddThis Button END -->
    
    <!-- temp hide the site en name van auter's page
    
    <p><strong>Auteur:</strong> <?php echo $curauth->nickname; ?><br />
    
    <?php if(!empty($curauth->first_name)) { ?><strong>Naam:</strong> <?php echo $curauth->first_name; ?> <?php echo $curauth->last_name; ?><br /><?php } ?>
    
    <?php if($curauth->user_url != 'https://') { ?><strong>Site:</strong> <a href="<?php echo $curauth->user_url; ?>" target="_blank"><?php echo $curauth->user_url; ?></a><br /><?php } ?> 
    
    -->
    
    <?php if(!empty($curauth->description)) { ?><strong>Over auteur:</strong> <?php echo $curauth->description; ?><?php } ?></p>
    
    <br />
    
    <!-- STARBOX-->
    
    <?php if (class_exists('ABH_Classes_ObjController')) {
    echo ABH_Classes_ObjController::getController('ABH_Controllers_Frontend')->showBox();
    } ?>
    
    <!-- STARBOX end-->
    
    <br />
    
    <h3>Bespaartips en blogs van deze auteur:</h3>
    
    <?php
      $order = "&orderby=cost&order=DESC";
      $s2 = ' selected="selected"';
      if ($_POST['select'] == 'title') { $order = "&orderby=title&order=ASC"; $s1 = ' selected="selected"'; $s2 = ''; }
      if ($_POST['select'] == 'newest') { $order = "&orderby=cost&order=DESC"; $s2 = ' selected="selected"'; }
      if ($_POST['select'] == 'oldest') { $order = "&orderby=cost&order=ASC"; $s3 = ' selected="selected"'; $s2 = ''; }
    ?>
    
    <form method="post" id="order">
    	Sorteer op:
    	<select name="select" onchange='this.form.submit()'>
    		<option value="title"<?=$s1?>>Titel</option>
    		<option value="newest"<?=$s2?>>Nieuwste</option>
    		<option value="oldest"<?=$s3?>>Oudste</option>
    	</select>
    </form>
    
    <div class="line"></div>
    
    <?php if (is_author()) { ?>
      <?php $posts = query_posts($query_string . $order); ?>
    	<?php while (have_posts()) : the_post(); ?>
    		<div class="post">
    			<h3><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h3>
    			<div class="postmetadata"><?php the_time('m.d.y') ?> | <?php comments_popup_link('Geen reacties »', '1 Reactie »', '% Reacties »'); ?></div>
    			<div class="entry">
    				<?php the_excerpt(); ?>
    			</div>
    		</div>
      <?php endwhile; ?>
    <?php } ?>
    
    <div class="navigation">
    			<div class="alignleft"><?php next_posts_link('Volgende pagina &raquo;') ?></div>
    			<div class="alignright"><?php previous_posts_link('&laquo; Vorige pagina') ?></div>
    		</div>
    
    <?php get_sidebar(); ?>
    <?php get_footer(); ?>

    Thanks in advance!
    Piska

    Thread Starter Piskatje

    (@piska)

    Hey Calin,

    A correction. I apologize, I would like to display your starbox with all futures (also latest post and so on), just as it is displayed on the post pages, but something goes wrong https://imgur.com/omnE8S5

    This code works for 50% (see screenshot)

    <?php if (class_exists('ABH_Classes_ObjController')) {
    echo ABH_Classes_ObjController::getController('ABH_Controllers_Frontend')->showBox();
    } ?>

    Please help.

    Thanks in advance
    Piska

    Thread Starter Piskatje

    (@piska)

    Hey Calin,

    Unfortionaly this code does not work on my theme:(

    How can I use your code (picture and discription only, like on my screenshot)?

    <?php if (class_exists('ABH_Classes_ObjController')) {
    echo ABH_Classes_ObjController::getController('ABH_Controllers_Frontend')->showBox();
    } ?>

    Thanks in advance for your help!
    Piska

    Thread Starter Piskatje

    (@piska)

    Hey Calin,

    Thanks for your help! I have tried all codes from the URL. Nothing did work for me except this one:

    <?php if (class_exists('ABH_Classes_ObjController')) {
    echo ABH_Classes_ObjController::getController('ABH_Controllers_Frontend')->showBox();
    } ?>

    Bur this one works only 50% for me. Please see this screenshot https://imgur.com/omnE8S5

    I have put the code in author.php
    I want only an author’s picture and description (about the author) to be shown. How can I remove the rest (latest post etc) Please see my screenshot

    Thanks in advance for your help!

    Piska

Viewing 8 replies - 136 through 143 (of 143 total)