Forum Replies Created

Viewing 15 replies - 46 through 60 (of 68 total)
  • Forum: Plugins
    In reply to: Twitter Tools?
    geekgirl

    (@geekgirl)

    around line 850 on twitter-tools.php find this line of coding and and make changes accordingly …This portion is what’s causing the error.

    function aktt_options_form() {
    	global $wpdb, $aktt;
    	$categories = $wpdb->get_results("
    		SELECT *
    		FROM $wpdb->terms
    		ORDER BY name
    	");
    	$cat_options = '';
    	foreach ($categories as $category) {
    		if ($category->cat_ID == $aktt->blog_post_category) {
    			$selected = 'selected="selected"';
    		}
    		else {
    			$selected = '';
    		}
    		$cat_options .= "\n\t<option value='$category->term_ID<' $selected>$category->cat_name</option>";

    }

    geekgirl

    (@geekgirl)

    Thread Starter geekgirl

    (@geekgirl)

    I don’t see where that is in my code unless you meant <li class="page_item">… I tried removing that and it still didn’t work. Thank you for responding though, anymore suggestions?

    geekgirl

    (@geekgirl)

    In your wordpress admin, click on options>reading…I think that’s what you are referring to.

    Thread Starter geekgirl

    (@geekgirl)

    Was just making sure I did it correctly.

    Thread Starter geekgirl

    (@geekgirl)

    Yes it is set to UTC time and I live in Central time zone. It doesn’t give me an option to change this on this menu. So i read below and it said “Times in the weblog should differ by: __ hours (Your timezone offset, for example -6 for Central Time.)”…So I put -6 in that spot and it fixed my date. Is there another way of changing it?
    And thank you (again) you’ve been very helpful and patient with me. =)

    Thread Starter geekgirl

    (@geekgirl)

    Thank you for posting that link. (the only reason I posted my entire code was because the person who was trying to help last night asked me to). I removed my calender code which was this….

    <li>
          <h2 class="sidebartitle"><?php get_calendar(); ?></h2>
           <ul class="list-calender">
          </ul>

    and now my site validates again. Could you please tell me the correct calender code? Also should I start a new post since all those codes are in the way?

    Thread Starter geekgirl

    (@geekgirl)

    Sorry about the previous post, I didn’t realize it recognized my code above as html, so I will try again to repost my sidebar code…But since last night I’ve managed to get rid of most of the errors I was getting when I tried to validate my code, but I still have 2 errors that I don’t know how to fix. Here is my sidebar code, any help is appeciated.

    <div id="sidebar">
    <ul>
    
      <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar() ) : ?>
    
        <li>
          <?php include (TEMPLATEPATH . '/searchform.php'); ?>
        </li>
    
        <?php /* Menu for subpages of current page (copied from K2 theme) */
        global $notfound;
        if (is_page() and ($notfound != '1')) {
            $current_page = $post->ID;
            while($current_page) {
                $page_query = $wpdb->get_row("SELECT ID, post_title, post_status, post_parent FROM $wpdb->posts WHERE ID = '$current_page'");
                $current_page = $page_query->post_parent;
            }
            $parent_id = $page_query->ID;
            $parent_title = $page_query->post_title;
    
            // if ($wpdb->get_results("SELECT * FROM $wpdb->posts WHERE post_parent = '$parent_id' AND post_status != 'attachment'")) {
            if ($wpdb->get_results("SELECT * FROM $wpdb->posts WHERE post_parent = '$parent_id' AND post_type != 'attachment'")) {
        ?>
    
        <li>
          <h2 class="sidebartitle"><?php echo $parent_title; ?> <?php _e('Subpages'); ?></h2>
          <ul class="list-page">
            <?php wp_list_pages('sort_column=menu_order&title_li=&child_of='. $parent_id); ?>
          </ul>
        </li>
    
        <?php } } ?>
    
        <li>
          <h2 class="sidebartitle"><img src="images/cat.gif" alt="categories"/></h2>
          <ul class="list-cat">
            <?php wp_list_cats('sort_column=name&optioncount=1&hierarchical=0'); ?>
          </ul>
        </li>
        <li>
          <h2 class="sidebartitle"><?php get_calendar(); ?></h2>
           <ul class="list-calender">
          </ul>
        </li>
        <li>
          <h2 class="sidebartitle"><img src="images/archive.gif" alt="archive"/></h2>
          <ul class="list-archives">
            <?php wp_get_archives('type=monthly'); ?>
          </ul>
        </li>
        <li>
          <h2 class="sidebartitle"><?php _e('Links'); ?></h2>
          <ul class="list-blogroll">
            <?php get_links('-1', '<li>', '</li>', '<br />', FALSE, 'id', FALSE, FALSE, -1, FALSE); ?>
          </ul>
        </li>
    
      <?php endif; ?>
    
     </ul>
    </div>

    <!–/sidebar –>

    Thread Starter geekgirl

    (@geekgirl)

    Oh yea, the part of the above code that is in the bold print is the part that I edited.

    Thread Starter geekgirl

    (@geekgirl)

    Ok, thanks for alarming me about the widgets.php file, I won’t touch that. Ok so I went back to the widgets tab in my wordpress and dragged and dropped all the widgets I included before…So now I am back to my default sidebar. I chose to take away the <?php _e(‘Archives’); ?> (as you suggested) and added my image code and that worked perfectly. So my question now is how do I add the stuff back to my sidebar i.e. “calender”, “text1”, etc…without using the widgets? I’m guessing I have to manually put it in sidebar.php somewhere, but I’m not sure exactly where and I don’t know which codes to use. Any suggestions?

    Thread Starter geekgirl

    (@geekgirl)

    Thank you for responding. Here is the code for my sidebar.php

    <div id=”sidebar”>

      <?php if ( !function_exists(‘dynamic_sidebar’) || !dynamic_sidebar() ) : ?>

    • <?php include (TEMPLATEPATH . ‘/searchform.php’); ?>
    • <?php /* Menu for subpages of current page (copied from K2 theme) */
      global $notfound;
      if (is_page() and ($notfound != ‘1’)) {
      $current_page = $post->ID;
      while($current_page) {
      $page_query = $wpdb->get_row(“SELECT ID, post_title, post_status, post_parent FROM $wpdb->posts WHERE ID = ‘$current_page'”);
      $current_page = $page_query->post_parent;
      }
      $parent_id = $page_query->ID;
      $parent_title = $page_query->post_title;

      // if ($wpdb->get_results(“SELECT * FROM $wpdb->posts WHERE post_parent = ‘$parent_id’ AND post_status != ‘attachment'”)) {
      if ($wpdb->get_results(“SELECT * FROM $wpdb->posts WHERE post_parent = ‘$parent_id’ AND post_type != ‘attachment'”)) {
      ?>

    • <h2 class=”sidebartitle”><?php echo $parent_title; ?> <?php _e(‘Subpages’); ?></h2>
      <ul class=”list-page”>
      <?php wp_list_pages(‘sort_column=menu_order&title_li=&child_of=’. $parent_id); ?>

    <?php } } ?>

    • <h2 class=”sidebartitle”><?php _e(‘Categories’); ?></h2>
      <ul class=”list-cat”>
      <?php wp_list_cats(‘sort_column=name&optioncount=1&hierarchical=0’); ?>
    • <h2 class=”sidebartitle”><img src=”images/archive.gif” alt=”archive”/><?php _e(‘Archives’); ?></h2>
      <ul class=”list-archives”>
      <?php wp_get_archives(‘type=monthly’); ?>
    • <h2 class=”sidebartitle”><?php _e(‘Links’); ?></h2>
      <ul class=”list-blogroll”>
      <?php get_links(‘-1’, ‘
    • ‘, ‘
    • ‘, ‘
      ‘, FALSE, ‘id’, FALSE, FALSE, -1, FALSE); ?>

      <?php endif; ?>

      </div>
      <!–/sidebar –>

      As you can see, I added an image code for the title archives but it didn’t cover up the word “archives”..it pushed it to the side. How can I fix that?

      Also I noticed that the sidebar.php is only editable when I use the default sidebar that comes with the theme. So when I use widgets to add to my sidebar, my “archive.gif” disappears. So I’m assuming that I should edit the widgets.php? and if so, where exactly should I put in the image code? Thanks for reading this.

    Forum: Fixing WordPress
    In reply to: Newbie Questions

    Go to sidebar.php in your current theme, either open it in wordpress or use an outside editor such as notepad (or whatever you use to edit)

    Thread Starter geekgirl

    (@geekgirl)

    I reinstalled my wordpress in the public_html folder and it works fine now, I still couldn’t get wordpress2.3 fully functional, but I have the one right before that. Thanks for all your help.

Viewing 15 replies - 46 through 60 (of 68 total)