Forum Replies Created

Viewing 15 replies - 1 through 15 (of 84 total)
  • Thread Starter churchthemer

    (@churchthemer)

    Thanks demetris. Hadn’t heard of DocBlock before. From the wiki:

    @package
    –name of a package
    –Documents a group of related classes and functions.

    @subpackage
    — none
    — none

    Interesting stuff. I wonder where/why WordPress will be displaying DocBlock descriptions for each file in a theme group. I guess for now while developing 2.7 themes the safest thing to do would be:

    * @package WordPress
    * @subpackage Theme_Name

    or should we not be including DocBlocks in new wp2.7 themes?

    Thread Starter churchthemer

    (@churchthemer)

    @samboll
    –WordPress page templates rely on commented code in order for them to appear as a page template option in the back end.

    –Themes rely on commented code in the style.css file in order to appear as themes in the backend.

    So, my question was, does this commented code affect anything with the way WordPress sees the theme, will it in the future when (and if) themes are able to be downloaded directly through the backend?

    @f J Kaiser
    This was downloaded from www.ads-software.com and is in the default Kubrick theme.

    1. Modify your stylesheet (style.css) for the theme you are using. Look for an entry for #sidebar-1 and add the code between the { } below to it. If you do not find an entry or you don’t feel like looking for it add all of the below to the very bottom of your stylesheet:

    #sidebar-1{
      margin-top:60px;
      }

    2. Add this to the bottom of your style sheet:

    a:hover img {border:0;}

    3. Same directions as for 1. look for the .post style in your style sheet and add whats between the { } to it, if you can’t find it, add the whole thing to the end of your style sheet.

    .post{
      margin-bottom:30px;
      }

    4.Your going to need to modify each template file where this appears. The main ones are index.php and single.php but it probably also appears in archive.php and search.php.

    Look in index.php for a line of code that looks like this (it should come right after the title is generated for each the post)

    <span class="meta-start">

    Right after that tag you will see a bunch of other <span>s <div>s and other tags. You can find the class of each of these tags and adjust their css definition as shown above by adding padding:0 5px; or you can cheat and just throw a bunch of &nbsp; where you want more spaces. Each &nbsp; is one space.

    Hope that helps.

    churchthemer

    (@churchthemer)

    If you are talking about the HTML tags, you would need to changed them in whatever theme you are using. You may change something that causes the content not to be displayed but the chances of loosing the content are small if you’re not hitting delete buttons or messing around with your DB.

    churchthemer

    (@churchthemer)

    You can add a link or form button that contains the current posts id as the value.

    When the button is submitted or linked clicked you can write a little function in the functions.php file of your theme folder to check for it via GET or POST. You can then grab the id of the post and update the wp_postmeta table of your wordpress db.

    For example.

    A link might look like this:

    <?php bloginfo(‘template_url’); ?>?action=highlite&id=<?php the_ID(); ?>

    Then your function would look like:
    (note: the below function is just an example to get you started. It has not been tested for functionality or security)

    function highlite_post(){
      global $wpdb;
      if($GET['action'] == "highlite" && is_int($GET['id']){
      $id = $wpdb->escape($GET['id']);
      $update = "UPDATE wp_postmeta SET meta_value = 1 WHERE meta_key = 'highlite' AND post_id = $id";
      $results = $wpdb->query($update);
     }

    then you just need to call the function below your new function

    highlite_post();

    Hope that helps.

    churchthemer

    (@churchthemer)

    Themes can be found under the Design menu option.

    Yes, you can use maxlength and any other html you’d like.

    churchthemer

    (@churchthemer)

    The textarea field for the comments form can be found in the folder of the theme you are using in a file called comments.php

    So, if you are using the default theme you would find this file in:

    root wordpress folder /wp-content/themes/default

    Scroll way down close to the bottom of your theme’s comments.php file and find a line that looks something like:

    <p><textarea name="comment" id="comment" cols="100%" rows="10" tabindex="4"></textarea></p>

    Change the cols and rows to whatever you want.

    Hope that helps.

    churchthemer

    (@churchthemer)

    Login to wordpress and select: Settings >> Discussion

    Put a check in: “An administrator must always approve the comment”

    Hope that helps.

    churchthemer

    (@churchthemer)

    Do you want the post to be highlighted for all visitors or just the visitor that clicked the front end highlight button?

    churchthemer

    (@churchthemer)

    I think wp_page_menu() is a function slated for release with WP 2.7.

    Anyway, this is incredibly hacky but . . .

    <?php
      $frontpage_id = get_option('page_on_front');
      $dropdown = wp_dropdown_pages('echo=0&name=page_id');
      $dropdown = str_replace("<select name='page_id'>","<select name='page_id'><option value=\"$frontpage_id\">Home</option>",$dropdown);
      echo $dropdown;
    ?>

    The above grabs the id of the frontpage and inserts it as the value for the “hacked in” home option. In most cases this value will be “0”. When you submit this form you’ll have to decide what to do with that value.

    Hope that gets you headed in the right direction.

    churchthemer

    (@churchthemer)

    I’ve never used a wordpress.com blog but, I’d assume you can just inlcude the subscribe to rss link in your actual post. Just like linking to another page or post but instead link to the feed for the comments of that post. This is probably done by adding /feed/ to the end of the permalink for the post.

    Example:
    https://myblogname.wordpress.com/2008/11/06/my-example-post-title/feed/

    You’d create a link to it like this:

    <a href="https://myblogname.wordpress.com/2008/11/06/my-example-post-title/feed/">Subscribe to This Post's Comments</a>

    Just stick that link in your actual post’s content at the end . . or wherever you want it to appear.

    Hope that helps.

    churchthemer

    (@churchthemer)

    Is sonicworld.net your site or the site whose sidebar you’re trying to mimic?

    If it’s not your site can we have link to your style.css or site in order to give you specific code?

    To answer you height question you would add the property like this:

    #sidebarleft h2 {
    font-family: Arial, sans-serif;
    color: #E8CFA9;
    padding: 2px 8px 2px 8px;
    margin-top:8px;
    background:#480000 url(img/h2l.png) top right no-repeat;
    border-bottom:1px solid #E8CFA9;
    height:30px;
    width:150px;
    }

    This assumes your sidebar is in a element with the id of “sidebarleft”

    I got that id from the sonicworld css, so, if thats not your site your sidebar id maybe different.

    churchthemer

    (@churchthemer)

    If you paste a link to your site Ill have a look at the css for ya.

    churchthemer

    (@churchthemer)

    Assuming your WordPress blog is installed at your domain’s root and not in a sub-folder you may want try adding this to your .htaccess file:

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    
    # END WordPress
    churchthemer

    (@churchthemer)

    Place this Javascript somewhere in the <head> </head> section of your header.php file:

    <script language="JavaScript" type="text/javascript">
    function changeFontSize(inc)
    {
      var p = document.getElementsByTagName('p');
      for(n=0; n<p.length; n++) {
        if(p[n].style.fontSize) {
           var size = parseInt(p[n].style.fontSize.replace("px", ""));
        } else {
           var size = 12;
        }
        p[n].style.fontSize = size+inc + 'px';
       }
    }
    </script>

    Then, where ever you want to place the controls add:

    <a href="javascript:changeFontSize(1)">Increase Font Size</a>
    <a href="javascript:changeFontSize(-1)">Decrease Font Size</a>

    You can link these too images as well.

    Hope that helps.

Viewing 15 replies - 1 through 15 (of 84 total)