Ben Sutcliffe
Forum Replies Created
-
Forum: Themes and Templates
In reply to: upload an image…help?Forum: Themes and Templates
In reply to: Error message suddenly appeared on siteIf you click the link to the theme from Dashboard – Appearance you might find a link to the theme homepage where you can download another copy (possibly fixed) and so overwrite the error.
Forum: Themes and Templates
In reply to: Problems with columns using Magazine BasicSo, you haven’t edited it at all???
Forum: Fixing WordPress
In reply to: How do You Insert a splash page?!!?!Create a page from Dashboard – Page – Add New.
For this example, create a new page and call it “Home” as the title.
Then create another new page and call it “Blog” as the title.Now go Settings – Reading – and select the “A static page (select below)” radio button. Then, for Front page choose “Home” and Posts page choose “Blog”. Click “Save Changes”.
Forum: Fixing WordPress
In reply to: Image Rotator ScriptMaking the height of Block fixed will break the rest of your sidebar.
In style.css add,
#image_flicker { min-height: XXXpx; }
where XXX is the size of your average or largest picture.
Forum: Fixing WordPress
In reply to: How to reset my blogYou say that you get code at the top on every theme you use (including “default”)?
If so, first set your theme to “default”. Then overwrite all of the files on your server (except wp-config.php) with a new copy of WordPress. Your data will stay but your theme will revert.
In PHPMyAdmin or whatever your host provides to see your database read your site URL. By the sounds of it you changed this (from the local wp dashboard) to point at the remote wp.com blog. You can only change this back from the database as you’ve effectively locked your self out.
Forum: Themes and Templates
In reply to: Error message suddenly appeared on siteYour host might have changed it’s PHP version and/or php.ini settings. If you know what you’re doing consult the php.net manual to find a work-around and check your function is correctly opened and closed. Also, if it’s a function that came in the theme then you might want to check the WPDesigner web site for an upgrade.
If the error isn’t upsetting the look, feel and functionality of your blog then you can hide the message by putting
<?php error_reporting(0); ?>
at the very top of header.php, but that isn’t solving the problem – just running away from it.Forum: Themes and Templates
In reply to: Problems with columns using Magazine BasicIt also spills over a bit in Safari (Win/3.2.2).
How have you set the column width – have you used
width
,min-width
,max-width
ormargin
to space them out. It would appear that the columns aren’t wide enough for the text to fit in or the border is too far to the left so is overlapping with text.Forum: Everything else WordPress
In reply to: Ideas Forum/Communication Channels@janeforshort Then the UserVoice system (customized to suit) would be a good idea.
Any chance you could forum sticky this so it’s easier to find ??
Forum: Fixing WordPress
In reply to: [Plugin: Contact Form 7] Doesn’t work on home page but rest is okOkay, I see.
It worked when I just tested it – in that it says it sent. Not sure what else is supposed to happen?
Forum: Fixing WordPress
In reply to: Custom Field Image Displayed Only in its CategoryI understood your first post to mean that for, say, a post you add to three categories you add three custom fields
‘cat name 1’ -> ‘img1234.jpg’
‘cat name 2’ -> ‘img5678.jpg’
‘cat name 3’ -> ‘img910.jpg’Then, when I see your post when looking at the ‘cat name 1’ archive I see img1234.jpg as the thumb, and when I look at your post in the ‘cat name 2’ archive I see img5678.jpg.
Am I right in my thinking? I don’t know what you’re trying with “Thumb” and “Thumbnail Class”?
Forum: Themes and Templates
In reply to: Sidebar show posts of this week onlyHmmm, try
<?php mysql_connect(DB_HOST, DB_USER, DB_PASSWORD); mysql_select_db(DB_NAME); $query = mysql_query("SELECT * FROM [prefix_]posts WHERE post_status = 'publish' AND post_type = 'post' ORDER BY post_date DESC LIMIT 0,7"); while($r = mysql_fetch_array($query)) { $postdate = $r["post_date"]; $unixPostdate = strtotime($postdate); $mondaydate = strtotime('Last Monday'); if(date('D')=="Mon") $mondaydate = strtotime('Today'); if($unixPostdate>$mondaydate) { echo "<a href=\"".$r["guid"]."\">".$r["post_title"]."</a>"; }; }; ?>
The change is in the first creation of
$mondaydate
where we call ‘Last Monday’ instead of ‘Monday’.Forum: Themes and Templates
In reply to: Sidebar show posts of this week onlyOk, code has been reworked to get rid of some bugs you might come across over time. You must go to this version!
<?php mysql_connect(DB_HOST, DB_USER, DB_PASSWORD); mysql_select_db(DB_NAME); $query = mysql_query("SELECT * FROM [prefix_]posts WHERE post_status = 'publish' AND post_type = 'post' ORDER BY post_date DESC LIMIT 0,7"); while($r = mysql_fetch_array($query)) { $postdate = $r["post_date"]; $unixPostdate = strtotime($postdate); $mondaydate = strtotime('Monday'); if(date('D')=="Mon") $mondaydate = strtotime('Today'); if($unixPostdate>$mondaydate) { echo "<a href=\"".$r["guid"]."\">".$r["post_title"]."</a>"; }; }; ?>
Replace
[prefix_]
with your database prefix (wp_
by default) and enter your database details in to the first two lines (egmysql_select_db("mydbname");
).To get the permalink use
echo "<a href=\"". get_permalink($r["ID"]) ."\">".$r["post_title"]."</a>";
in place of the old echo.When I get round to it I shall turn this in to a plugin, and post here with its url. I’m thinking it would be nice to be able to set this to only one filter one category (or two, or even more) and allow the user to start it from any day.
PS. What’s your URL?
Forum: Themes and Templates
In reply to: Sidebar show posts of this week onlyRemove the [ and the ] so is wp_posts. Also drop the 01:00:00 bit.
Mine works in that I get nothing (having written nothing today).