Archive for category website stuff

Removing the ‘Powered By’ in footer of WordPress sites

To remove the Powered by WordPress and theme line form the footer of your theme, find the functions.php file in the root of the theme folder and comment out or remove the lines:

function footer_output($footer_content) {
//global $bfa_ata;
//$footer_content .= 'Powered by <a href="http://wordpress.org/">WordPress</a> &amp; <a href="http://forum.bytesforall.com/">Atahualpa</a>';
return $footer_content;
}

NOTE: leave in the global $bfa_ata; line if you want to keep the Copyright notice.
**** STOP PRESS:

A VERY rude correspondent submitted a comment to the effect that this code is bogus and might crash your website. It didn’t for me.  Perhaps a politer individual may take time to explain my schoolboy error. Of course you use the code amendment at your own risk.

Getting a Thesis-like look in Atahualpa

In the bfa forum, “everyman” from wordpressacademy.biz describes how to get Atahualpa to look like Thesis out of the box. He supplies a download of an Atahualpa settings file which does the job and describes how to create the additional widget areas so that you end up with one RHS widget area spanning two sub-columns, just like Thesis.  The top spanning widget area can be used for an image rotator or a video etc.

This is based on an the idea of using the Advanced Text Widget to insert code that replaces the Right Sidebar with 3 new areas.

I’ve tried out the settings file and it confused me somewhat. After importing the settings I found I now had 3 additional widget areas in my Widgets panel. Turns out the settings file had code to create these in it.

BUT!!!

The widget areas would not show up in the front end when I put content in them. They seemed to be there, but had not been applied in any of the Atahualpa configurable areas as per the instructions under Add New Widget Areashttp://royhair.com/wp-admin/post.php?post=2342&action=edit. But they did show up as existing in the Add New Widget Areas panel.I got really confused for a while because I followed the instructions to create the widget areas using the Advanced Text Widget plugin and eventually (after changing widget area names) ended up with 6 new widget areas, only 3 of which would work!

So I reset Atahualpa settings to default, disbaled the plugin, imported the settings file, DELETED the 3 new widget areas from the Add New Widget Areas panel, and went back to the original instructions that advocated using the Advanced Text Widget. After enabling this plugin, I went to the Widgets panel and put the following code into the Right Sidebar:

 

 

 

<?php bfa_widget_area('name=My new widget area'); ?>

<?php bfa_widget_area('name=sidebar_widget_area&cells=2&align=9&cellpadding=5&before_widget=<div id="%1$s" class="sidebar-widget %2$s">&after_widget=</div>'); ?>

This essentially seems to do the same job that the Atahualpa settings file did, but for some reason it works whereas the settings file didn’t. I suspect the settings file had been exported AFTER the Advanced Text Widget (ATW) plugin had put the widget areas in place and without the original inclusion of the ATW plugin it didn’t “take”.

You end up with My New Widget Area, Sidbebar Widget area 1 and Sidebar Widget area 2. You can rename these within the ATW widget that you added to the original Right Sidebar widget area.

So it’s working now. If this helps anyone, here is the Atahualpa settings file I used to style the site without the additional widget area stuff. Import this BEFORE enabling the ATW plugin and creating the widget areas with the code.

ata-thesis-like-20110323

The original post on wordpressacademy.biz implied that this Atahualpa method would work with the Thesis Open Hook plugin, but I haven’t tried that yet. It seems unlikely, but you never know.

Tags: ,

Solved: “Cannot modify header information – headers already sent” message in WP with Atahualpa

I was getting the old “Cannot modify header information – headers already sent by (output started at…  pluggable.php ” message from Atahulapa theme when I’d added some code into the main index.php file.  The code was to redirect on view of a single post for users that are not logged in (don’t ask, but there were good reasons)!

I checked pluggable.php in the includes folder and it had the ?> at the end and did not have any trailing spaces, so that wasn’t a solution.

From this thread I found the solution.  I had to add

ob_start();

in index.php file at line no 1, as directed by letsnurture. It seems to have worked.

Hope this helps someone.

Docicons test post showing examples

Document types:

test1 document

test2 spreadsheet

test3 presentation

A flv vid:

mario again ( Download )

An mp3:

The Weasel short ( Download )

Docicons – a wordpress plugin – V2 Released!! Get it now.

Version 2 of my Docicons plugin is released today with a comprehensive Admin panel and lots of features including automatically embedding Media attachments via integration with Hana FLV Player. That’s right folks, it can embed audio and video files automatically right in your posts and pages WITHOUT the special codes. And the Admin options allow you to set how the embedded media is displayed.

See the Docicons Plugin page for more details and to DOWNLOAD the plugin.

I decided to integrate with Hana rather than other flv players because of the GPL distributable licences. In a future release of Docicons I will be able to directly distribute Flowplayer with my plugin. At present you must download and activate Hana as well if you want to use the embeddable media features. If you don’t, and all you want is nice document icons in your posts, then it will work without it.

Have fun. And let me know if it is any use to you.

Tags:

Alice Ainsworth details how to migrate content in a council website upgrade

Alice Ainsworth, on her blog, discusses migrating web content of a council site, in her case Southwark Council.

They worked to an incredibly tight timescale. Here’s a taste…

Having recently gone through the migration process at Southwark Council I thought I’d share how we went about it and what we learnt along the way – what worked well and what we would do differently.

To give you an idea of timeframes, we first started planning for content migration in August 2009, carried out the migration in January 2010, did quality checks and rewrites throughout February and then launched the new site at the end of March 2010.

Here is the rest of it.

Tags: , ,

Docicons – a wordpress plugin

I wrote a WP plugin that adds inline image icons to wordpress posts and pages. See the Docicons Plugin page for details.

Tags:

Sample ‘good’ council websites at talkaboutlocal

The talkaboutlocal website lists a few good examples of council website design from “down south”. See more at: http://talkaboutlocal.org.uk/council-websites-the-good-the-bad-and-the-need-to-improve/

The Future of the Internet

Great article from Smashing Magazine on how the internet will change and change the world. From the need to ensure net neutrality to the hive mind, the article covers it all.

http://www.smashingmagazine.com/2010/08/11/the-future-of-the-internet/

Tags: ,

London Borough of Camden’s new website design

The excellent Liz Azyan unveils the LBC’s new website design on her blog at LGEO Research

It’s worth a look!

A trainspotter’s dream

camden website review


how wikis work – video

Tags: , ,

Content must rule your world – apparently

An interesting article on writing web content. Makes some good points about content for intranets and searching.

http://www.tmiles.co.uk/tm/2009/12/content-must-rule-your-world/

I’m gonna nick this line for the guidelines and put it in bold lime green comic sans with some flaming skulls either side:

“Every time we put content on a website we must ask ourselves, who is this for, who is going to use it?”

Curiously, the original guidelines by Dorset – that I have butchered for our purposes – quoted Gerry McGovern as saying at 100 words you’ve lost 20% of your customers. All the other citations I’ve come across and including this article, have it as 25%?

Regards,

Andrew Gail

Business Support Analyst

AWPCP web link bug fix

Another WP Classifieds Plugin v 1.06 contains a bug such that the web links do not get displayed. The fix is descibed in the Comments to this post, the one dated May 16, 2010:

http://www.awpcp.com/announcements/another-wordpress-classifieds-plugin-version-1-0-6-released/

holywebmaker says:

After updating to 1.0.6.7 it appears the “visit website” link has disappeared.

Looks like $awpcpvisitwebsite is missing in a couple spots.

I seemed to fix it, but I am sure it is not perfect….

in awpcp.php I added the following after line 11121
$awpcpshowtheadlayout=str_replace(“\$awpcpvisitwebsite”,”$awpcpvisitwebsite”,$awpcpshowtheadlayout);

and after 11157 (probably a better spot than this)

$awpcpvisitwebsite

Note how the comments in line 11122 are PHP comments / / and on line 11158 are html comments < !–

Then I added the same $awpcpvisitwebsite to my Listing Settings Page to control layout of single ad view page

i.e. You add the variable $awpcpvisitwebsite into the Classified Settings / General Settings / Ad Listing Settings page as per this image. The variable gets converted into the link.

This shows how to add it into the single ad view, but you could also add it into the Listing view which is just above this text box.

Thanks,
Brad

NOTE: To make the links open in a new window, change the target within the <a > tag on line 11040 as per:

Tags: , ,