Forum Replies Created

Viewing 15 replies - 391 through 405 (of 1,041 total)
  • Very strange indeed. I see that you are using tim-thumb for your thumbnails and that the php script that creates and displays the thumbnails is throwing a php error:

    <br />
    <b>Warning</b>:  touch() [<a href='function.touch'>function.touch</a>]: Unable to create file ./cache/0c45e49604d7b57da275782c45eb9776.png because Permission denied in <b>/wp-content/themes/church_40/tools/timthumb.php</b> on line <b>236</b><br />
    <br />
    <b>Warning</b>:  Cannot modify header information - headers already sent by (output started at /wp-content/themes/church_40/tools/timthumb.php:236) in <b>/wp-content/themes/church_40/tools/timthumb.php</b> on line <b>246</b><br />

    I would check the permissions on the timthumb cache folder and make sure that the script can write to it.

    Also, if you view the source of your homepage you will see that tim-thumb is looking for the thumbnail in /wp-content/images/ – which is correct.

    I think that your main problem stems from incorrect file permissions. I would guess that originally you /uploads/ directory was not writable by WordPress but when you created a new folder “images”, it possessed the proper permissions. I think that tim thumb’s cache folder is suffering from the same dilemma.

    Hope this helps,
    -Mike

    You say you removed it and then re-uploaded it…

    1. Does the directory that you re-uploaded contain exactly the same files and structure as the directory that you removed?
    2. Does the directory that you re-uploaded exists at this address: /wp-content/uploads/ ?
    3. What was you reasoning for doing this in the first place?
    4. Do you have a link to your site and you uploads directory?

    @dalton

    The software looks very flexible and quite promising, although some features don’t seem to be fully implemented yet.

    Totally agree. The main feature that I was let down with is some sort of built in date picker. These can be a pain to code from scratch and was really hoping the Pods would implement something of this variety. Unfortunately, there was nothing…

    – There would be significant content that would go in each of the sub characteristics. A page-full in most cases.

    This should be no issue as each taxonomy term has both a title and content box with which you can add content. it is rather easy to enable TinyMCE with a little tweaking of the Category Description Editor Plugin. I think that it would be rather easy to drop in the media interface links as well.

    Navigation at the user-level can get a little complex in absense of subpage/category/drop down navigation etc.

    I do not see why you couldn’t code the navigation to work how you need it to. I know that WordPress doesn’t support this out of the box, but it shouldn’t be too complicated.

    For beginners we have 2 products, and slowly they would get to say 50 products. Each of the sub characteristics for every product might be different because of the product or needs.

    I do not understand how the characteristic could change depending on the product it is associated to. I mean if the characteristic is “Location” and “Location” = “123 Test Street, City, State, Zip” and there are 2 products with this characteristic, that means that both products are associated to this “Location” and there should be absolutely no reason to change it. If a different Location is needed. add a new taxonomy term, if the address has changed, change the taxonomy term and all of it’s associated posts will be updated.

    Would it make sense to go with just pages? But that would mean the edit page view in admin would be cluttered with say 50×5=250 pages when the site gets mature.

    In my opinion the answer would be “no” and you highlight one of the reasons already. Using posts with categories allow the user to filter by category association in the Administration panels – which I use quite frequently and is a blessing.

    Also, there is no built in mechanism for “Previous Page” & “Next Page” on the front-end…

    Pages can be pretty easy to work with in all other cases, but they are just as easy as posts in my experience. I Used to do all of my custom work with pages until I noticed how cumbersome they can be on larger projects. These days, most of the sites I create have hundreds of posts but usually less than 10 pages…

    PS – do you undertake freelance projects?

    Only with clients that I can meet in person. Online, I do only consulting, but me thinks that it is against forum rules to discuss these things here 🙂

    Although I have never used the Hybrid News theme, I just tested out your scenario with my own custom parent & child themes with success. Just for clarity’s sake, my parent theme has no home.php file. My child theme consists of only index.php and style.css. I copied all of the code from my child theme’s index.php into a new file and saved as home.php in my child theme’s directory (I also added a paragraph that said “This is home.php”). When I checked my site in a web browser, the new “This is home.php” text appeared on my homepage.

    In conclusion, this seems to work rather well with parent/child theme setups.

    One quick note. You wrote:

    I have never played with changing the index.php name for a child/parent theme combo. I want to rename the front page from “index.php” to “home.php”.

    If you simply rename the file, your child theme will have no index.php file and will (most likely) revert to using the index.php from the Parent theme. This may or may not be acceptable to you. For best results, and seamless integration, please create a new file named home.php to be used alongside index.php.

    Hey Devin,
    You might want to give my get_page_root() function a try.

    function get_page_root( $post ) {
    	if( is_object( $post ) ) {
    		if( is_array( $post->ancestors ) ) {
    			$ancestors = array_reverse( $post->ancestors );
    			if( !empty( $ancestors ) )
    				return intval( $ancestors[0] );
    			else
    				return intval( $post->ID );
    		}
    	}
    	return 0;
    }

    It accepts a WordPress post object as it’s only parameter and will always return an integer:

    1. If the page has no parent, it will return the ID property of the $post object that was passed.
    2. If the page is a descendant of any other page, it will return the ID property of it’s oldest ancestor.
    3. In every other case, it should return zero.

    With this function, the following code should do what you need:

    function deregister_postTabs_addJS() {
    	global $post;
    	$id = intval( $post->ID );
    	if( get_page_root( $post ) !== $id )
    		wp_deregister_script( 'postTabs' );
    }
    add_action( 'wp_print_scripts', 'deregister_postTabs_addJS', 200 );

    Without more information, it will be hard to diagnose your problems.

    Which theme are you using?

    Have you set up a “Static Page” to be used as your homepage?

    It is quite possible that you have set up a static page as your homepage and that the theme you are using has widgetized areas defined in either home.php or index.php using the is_front_page() conditional tag.

    Just a few thoughts…

    Complete support for Custom Post Types would make me smile sooooo much that my head would explode thus spreading joy through out the world 🙂

    i’ve found a workaround by requesting the status within the function that gets called by the action

    I think that this is the best way to address this. IMO the actions just allow us to hook into WordPress at specific points in time. If the action(s) you are using allow you to execute the code that you need to at the specific point in time that you need to, then that is great. I don’t believe that there is any reason to search out a different hook. IMHO if you are checking the value of $post->post_status to create logical structures, this should not be viewed as a workaround, but rather a solution.

    mohak.gambhir,

    I would refrain from making the characteristics subcategories due to the fact that.

    1. Your category interface in the admin section will become cluttered really fast making editing of categories somewhat confusing.

    2. If you were to use hierarchical categories, navigation within sub categories can become confusing. I have found that it is best to put only one post in one category, although WordPress supports a many to many relationship between posts and categories, I have experienced small, annoying issues with this in the past therefore I just don’t do it anymore.

    IMO, Making the characteristics different pages is a really bad idea. Pages do not fit into the category hierarchy at all and pages are not naturally associated with posts in any way. For best results, please try the solution that I outlined above, I believe that it will solve most if not all of you problems and make it easier for your client to both add new products and develop and understanding for how his website works.

    Now each product will have characteristics like location, pricing details, options available, why product A, contents, etc

    Saving the Characteristics as Taxonomies allows for easy editing and updating by the client as the taxonomy interfaces display on the page where the client will create or edit a product post.

    The characterstics can be visited on different pages by clicking on a sub-menu created individually for each of the products.

    This submenu is created automatically for each post that has a characteristic taxonomy applied to it. When a user clicks one of the links that it produces, they will be brought to a page (not a WordPress “page”, but a dynamic page) where you can add a description for the term (location, option, etc). Also, below this description, there will be a list of products that have this term associated.

    The client would like to add products on his own later on [is willing to go thru the learning curve]

    I believe that my solution outlines the best way for you to execute your scenario with the tolls that WordPress offers by default. In my experience, it is best to try to setup your site by Working with WordPress as much as possible.

    Hope this helps to clarify,
    -Mike

    Here’s what I would do in your situation:

    About Us: Page
    Contact: Page
    Products: Category

    Once this is set up you can create each product page by adding a new post and associating with the Products category. Each post would contain the following information: “pricing details”, “why product A” and “contents”. For “Location” and “Options Available” I would employ the use of Custom Taxonomies. These can be created by placing the following code into your theme’s functions.php file:

    add_action( 'init', 'mf_register_taxonomies' );
    add_filter( 'the_content', 'mf_list_locations' );
    add_filter( 'the_content', 'mf_list_options' );
    function mf_register_taxonomies() {
    	register_taxonomy( 'location', 'post', array(
    		'hierarchical' => false,
    		'label' => 'Location',
    		'update_count_callback' => $tax['update_count_callback'],
    		'query_var' => 'location',
    		'rewrite' => 'location'
    		) );
    	register_taxonomy( 'options-available', 'post', array(
    		'hierarchical' => false,
    		'label' => 'Options Available',
    		'update_count_callback' => $tax['update_count_callback'],
    		'query_var' => 'options-available',
    		'rewrite' => 'options-available'
    		) );
    }
    function mf_list_locations( $c ) {
    	global $post;
    	return $c . get_the_term_list( $post->ID, 'location', 'Locations: ', ', ', '' );
    }
    function mf_list_options( $c ) {
    	global $post;
    	return $c . get_the_term_list( $post->ID, 'options-available', 'Available Options: ', ', ', '' );
    }

    This code will automatically create new inteface panels on you add/edit posts screen as well as automatically display the custom taxonomy terms at the bottom of each post’s “content”.

    Hope this helps,
    -Mike

    @t33dub – Totally agree with you. I downloaded this plugin about a month ago and started playing around with it. Everything that I had heard about pods sounded awesome and I was stoked to take a look. Unfortunately, it did not live up to my perceived expectations. I’m not trying to bash Pods at all, the authors have succeeded in creating a pretty nice interface for the dynamic creation of database tables, but if I really wanted to create another table for my WordPress installation, I would just do it from scratch.

    t33dub, if you are looking for similar functionality, I would suggest looking into Flutter. While it does not offer the flexibility of pods, I believe that it is much easier to use and I have heard great reviews about it from colleagues. If Flutter is not up to the job, the only other solution that I have for you is to wait it out until WordPress 3.0 is released. 3.0 should enable us to use custom post types with ease.

    You should really ask someone at Google.

    Have you tried the save_post action?

    Forum: Plugins
    In reply to: LOOKING FOR A PLUGIN

    You can do this with the text widget. Depending on the size of the container of the sidebar, the following code should work well:

    <img class="alignleft" src="#" width="100" height="100" alt="" />
    <img class="alignleft" src="#" width="100" height="100" alt="" />
    <img class="alignleft" src="#" width="100" height="100" alt="" />
    <img class="alignleft" src="#" width="100" height="100" alt="" />
    <img class="alignleft" src="#" width="100" height="100" alt="" />
    <img class="alignleft" src="#" width="100" height="100" alt="" />
    <img class="alignleft" src="#" width="100" height="100" alt="" />
    <img class="alignleft" src="#" width="100" height="100" alt="" />
    <img class="alignleft" src="#" width="100" height="100" alt="" />
    <div class="clear"></div>

    Note: This solution assumes that you have the following css classes defined in your stylesheet:

    img.alignleft {
    	margin: 0 7px 2px 0;
    	display: inline;
    	}
    .clear{ clear:both; }

    Whenever I need to put images in the sidebar, I use a similar solution.

Viewing 15 replies - 391 through 405 (of 1,041 total)