triplex2k7
Forum Replies Created
-
Forum: Plugins
In reply to: WP-Polls not opening/closing polls at set timeHi
I posted this problem originally about 6 months ago and since then I have moved hosts and upgraded to WordPress 2.5.1 but I still have the same problem.Anyone know a solution?
Thanks ??Forum: Plugins
In reply to: WP-Polls not opening/closing polls at set timeI still haven’t solved this problem!
Forum: Fixing WordPress
In reply to: Prevent WordPress from wrapping P tags around imagesHi
I realise you guys have probably either figured this out or given up on it but seeing as this shows up right at the top of google results for this problem then I thought I would say how to solve it.
As it says in the topic at https://www.ads-software.com/support/topic/119014?replies=6 , wordpress knows that an
img
tag loose outside ofp
tags is invalid code (although it is valid if you have a containingdiv
tag, as most themes do). WordPress detects that you haven’t got a block level element around the image, and insertsp
tags around it.To solve this, you can put a
div
tag around the image, for example:
<div><img src='image.jpg' alt='an image' /></div>
.
This will cause WordPress to leave your image alone.Thank you, that has solved it.
The problem was that I was defining variables containing page and category IDs in
functions.php
(Is this bad practise? Is there a better place to put them?) and I did not know that you could not use global variables inheader.php
.To solve this I added the code
<?php global $myvar1, $myvar2, $myvar3; ?>
.This works, but I am worried that I may still be going about this the wrong way.
Ok thanks. I think the problem is with global variables rather than the functions.
Ok, this is to do with my last question about whether get_header is required for the theme to work.
I’ve looked in wp-includes/general-template.php where function get_header is defined and it does the following things:do_action( 'get_header' );
- Checks if there is a header.php template file.
- If there is, it includes it
- If there isn’t, it includes one from the default theme
As far as I know, do_action is used to create hooks for plugins to use. So, should I just add the code
do_action( 'get_header' );
above myinclude(TEMPLATEPATH.'/header.php')
?Forum: Themes and Templates
In reply to: Sidebar and Content (Posts) LengthOk, I’m now using faux columns
Forum: Plugins
In reply to: Server side image captionsThanks – that’s exactly what I wanted.
My problem now in the CSS, is that I don’t have a set width for my images. I want my ‘.pic’ div to only be as wide as the image itself and for the ‘.pic-capt’ div to be 100% of the width of ‘.pic’ so I can center the caption.
But I can’t figure out how to do this (preferably without using any ‘style’ attributes in the XHTML).Forum: Themes and Templates
In reply to: Sidebar and Content (Posts) LengthHi, i’d like to do the same thing. Anyone have a solution?
ThanksForum: Plugins
In reply to: CMS for Flashthat is one good looking site!!
Forum: Plugins
In reply to: WP-Polls not opening/closing polls at set timeThe time zone in my WordPress settings is correct (GMT) but when testing I realised that WP-Polls time was GMT+1. This may have been causing my earlier problem, or it may be another effect of the same problem.
Any idea how to fix it?
Forum: Plugins
In reply to: WP-Polls not opening/closing polls at set timeOoh, just noticed that my WP-Polls time is 1 hour fast, but my WordPress time is correct. Weird – how can I change it?
Forum: Plugins
In reply to: WP-Polls not opening/closing polls at set timeOk, do you know how to unblock the cron request? Also, scheduled posts work fine, I don’t know if that is related or not. Thanks.
Forum: Plugins
In reply to: ‘sack’ is undefined: WP-PollsResolved in the updated version of Ajax Comment Posting.
Forum: Plugins
In reply to: New Plugin – New User Email Set UpThanks – I’ll try it