Posts filed under 'WordPress'

Updating wordpress

Now running version 2.6.1

All went well really, couple of plugins also needed updating, but surprisingly smooth.
My only significant problem was when uploading pictures through the new style interface.
I post pics to a daily photo page and they are scaled to 710px, but when i posted and clicked use original the post would publish with a 500px version.
Not good, I found a solution here

Go to /wp-includes/media.php on line 84 and comment that line (//)

// any other type: use the real image and constrain it // list( $width, $height ) = image_constrain_size_for_editor ( $meta['width'], $meta['height'], $size );

Easy fix, it’s all good.

Add comment September 8th, 2008

DIY

Meaning so many things

The house, my camera, web design:changing, Wires and wood.##

A usually pliable metallic strand or rod made in many lengths and diameters, sometimes clad and often electrically insulated, used chiefly for structural support or to conduct electricity.

http://www.answers.com/wires

Not always, when tendrils attack. A sole wireless mouse against a legion of pliable metal strands. They have us out flanked and facing battle, the loyalties of wireless mouse reciever, protecting wireless mouse, yet in league with direct electrical input leave many to suspect duplicity.

more to follow

Add comment August 28th, 2008

Reported Attack Site!

At a loss,

Last night when i noticed this warning on one of my hosted domains I started to try and figure out what had happened.
Assumed the site had been hacked, and was reluctant to follow the links on the warning page. Nice one google for not identifying yourself.
Anyhow after a little (not happy about) googling I came across the same situation all over the web and realized I only saw the warning when browsing with the latest version of firefox.
So anyway ended up here at google webmaster tools, and read the information below:

Advisory provided by
Safe Browsing
Diagnostic page for www.mydomain/
What is the current listing status for www.mydomain/?

Site is listed as suspicious - visiting this web site may harm your computer.

What happened when Google visited this site?

Of the 7 pages we tested on the site over the past 90 days, 0 page(s) resulted in malicious software being downloaded and installed without user consent. The last time Google visited this site was on 08/03/2008, and suspicious content was never found on this site within the past 90 days.

Malicious software is hosted on 1 domain(s), including ***********.

1 domain(s) appear to be functioning as intermediaries for distributing malware to visitors of this site, including **********.

Has this site acted as an intermediary resulting in further distribution of malware?

Over the past 90 days, www.my_domain/ did not appear to function as an intermediary for the infection of any sites.
Has this site hosted malware?

No, this site has not hosted malicious software over the past 90 days.

How did this happen?

In some cases, third parties can add malicious code to legitimate sites, which would cause us to show the warning message.


Nowt doing, whats the problem, I tried to find the above links in my code, sidebar etc, in the comments, I turned css styles off to see if any horror would become obvious, no luck, so today after 16hrs later, same situation I sent the site for review.

Things are getting worse, and I don’t know how to resolve this.

Update

So I have been messing round with blog for a while, found malicious code, not soon after i had dicked around for ages.
It was quite obvious in the end, sat there sneaky javascript, I can’t teally decode it, but it’s gone. It illuded me by the simple fact I was unwilling to believe I had been hacked. The concern is how did they get in there.

My security protocols definately need looking at, it is bugging me a bit, like being burgled.
Soo watch out nasty virus speading beasties about..

Add comment August 24th, 2008

Using blix theme with wordpress 2.5.1

Is it worth the hassle

1.. Firtly, because blix add pages doesn’t appear to work with newer versions of wordpress,
I have used Page Link Manager by Garrett Murphey.
Not much of one for branching out, I am using his older version on this site, had to modify site code a little, can’t remember why now, Check this but it is a handy plugin. The plugin basically allows you to decide which pages show up in the site’s main navigation.

The site I am currently building will allow multiple users to log in and personally update a specific page.
I have for example a site showcasing the work of others.

To achieve the desired functionality I have created separate templates for each user, (see bottom of post A new page template) and they will be able to upload to that page by posting in a category specific to that page.

So I have set the site to show a static front page, and set posts to be rendered on a news page, excluding categories as necessary, using a snippet of php i found on an earlier search. Category template customization
This page will display posts only by the site admin, news and updates etc.
Now for the users who will upload profile I have created pages and will insert the php to call for specific category relevant to their work.
I Have been dabbling, making changes, and loosing site of overall objectivity; consequently things are a little diffuse cloud like in their structure.Tis the old one, need content and ideas..

Freshfreelance

Coming soon

Add comment July 15th, 2008

Which wordpress theme do you prefer?

To use as base for your customized design, and why?

This site is using the blix theme by Sebastian Schmieg.
I chose this theme a couple of years ago for my blog, primarily because it had a contact form built right into the structure.
I still have some issues understanding all the php, but can splice my css and html in there reasonably fluently now, and have got good functionality with the aid of various plugins. I am fairly sure Sebastian would have kittens if he could see how I have butchered his original code, but hey, it’s all part of the process.
So what about you bloggers out there novice and pro alike.
Code from scratch, ahh or use on of the many available themes.
You only have to take a look at the zen garden to appreciate what can be done just by manipulating the css.
So if you feel inclined just drop a comment in the box below, I’d love to hear your views.

Add comment June 29th, 2008

Search engine optimization

Search engine optimization


Do search engine algorithms send out popular current media based query’s to see where and in what proportion general searches are made, and thus rendering the analytics service you have full of error?

I am quite lazy in this aspect, although improving my methodology, I have on this very blog ‘plugins‘ installed that allow me to add unique headers and meta information to individual pages whilst keeping the ‘on the fly style publishing’.

I rarely do this due to some weird obsessive behavior i have about bloating code, but back to my original thought, this site is getting regular hits from all around the world.
I have had better maps, but you get the general impression. There are areas to investigate.
To travel to the Kamchatka peninsula (hay guys out there.)

Website recent visitors

It’s about learning to understand your own thought processes, and the processes of others. For example, I had a hit a while ago, from Roswell New Mexico. I was understandably made up, (If you havn’t figured, you might if you stick around.), anyway i have a pic of said event, for reasons of verification in this conspiratorial world.
And to prove to myself that my own processes enabled me to find the pic below with only a small amount of effort.

Roswell New Mexico
Any where, everywhere the human spirit can find you, it’s quest for knowledge, or trivia, or something in-between.
Out there with ‘meta madness’

3 comments April 30th, 2008

Who is slightly Insane.

Could I be referring to myself?
and I have some pretty freaky neural connections.
‘She will make me , may she bake or me.’
It came from the chair

Who is slightly insane now, sat on a chair.

Considering the structure of chair in relation to it’s occupant seems to be the considered thing to do.
And drinking tea with sugar, refined of course.

My computer is noisy

Hello voice, what where you saying about the need for more fans,. and he said thats where seoppop comes into it.

Add comment April 25th, 2008

Different sidebar content on different pages

Wordpress: Unique sidebar content on different pages.

Grab the code and dash, or stick around and read the ramble.

Copy your current sidebar, make modifications, add stuff, rename and save as sidebar2.php

The code

In the page you wish to call sidebar2.php simply replace

<?php get_sidebar(); ?>

with

<?php include ('sidebar2.php'); ?>


The long winded ramble

You have your blog up and running, out of the box or a manipulated theme, most likely you will have a sidebar.
Usually here you have links to recent posts, categories, friends and post/comment feeds as standard.
You can add advertising, google ads/ affiliate ads whatever and a variety of other plugins.
The thing is because of the wordpress template system these items will be the same on each page.
The simple solution above allows you to call a different sidebar to a different page.

Go to your dashboard - Presentation - Theme editor and select sidebar.php, copy, modify save as sidebar2.php and FTP the file to the correct place on your allocated server. Eg.
/oikofugic.com/blog/wp-content/themes/evolution, and drop it in there. You should see sidebar.php in the file list, so you will know if you are in the correct location.
Then if it’s your ‘about me’ page, or ‘contact page’ as described above just replace the call for sidebar with a call for sidebar2.
Now that is out of the way the possibilities are endless, you can obviously create as many templates as you wish. Have fun.. Enjoy.

Related posts

    Category template customization
    Template plan: design your own theme

    Add comment January 26th, 2008

Category template customization

Daily Photo

Daily photo is one of my categories from my previous design, and had been set up to not display on the main page when a post in this category was made. The idea behind excluding this was to keep frequent photo posts from clogging up the front page. I tried a couple of plugins, but they conflicted with other previously established functions. See plugin Conflicts

So instead I found a nice little snippet of php which you paste directly underneath.

<?php if (have_posts()) : while (have_posts()) : the_post(); ?>

and it is here if you need it.

<?php if ( !(in_category('15') && is_home()) ) { ?>

A little further down the page if still intact you will find.

<?php endwhile; else: ?>

just above add this.

<?php }; ?>

Surprisingly simple it just says if its category 15, (which is my daily picture category) and if it is home exclude it. Job done.

That is all well and good, but my previous design had my photo posts fitted into the old design were they where restricted in size by the page dimensions, sidebar etc.

I needed a new template for photo specific posts, that would allow me to show the pictures in a larger format.

I had learned that I could create a duplicate template from category php, or if you don’t have that in your theme archive php. Just copy said file and rename it with the id of the category you would like to customize.

ie. Rename the template you want to customize to.

category-15.php

The - and the number representing the id of the category you wish to manipulate.
This works well enough when categories are viewed from category link, and you will see your customization.
However, when viewed directly from post link the post will go to it’s default setting.
What I needed was ‘a display post on specific page’ plugin and after looking far and wide found this nice little number.

Force Category Template

I read the description, looking good, read the comments, some users seem confused, I was inspired by the general look of the site design and decided to use the plugin. Installed etc, went through normal plugin CHEKIN protocol, and found no reference, or how to configure it to do it’s job. A little bemused I clicked the direct link to my photo and apprehension was resolved, as I realized the solution was complete as it was.
Very nice job, What can I say.. Excellent. Cheers.

Update

I haven’t yet altered the styles of photo pages, but rest assured bigger pics are on the way. Goodnight.

1 comment January 11th, 2008

Wordpress themes: Your own design.

The Layout

Assuming you have already created a design of your own.
Wordpress makes use of templates that gather aspects of a design then puts them together to complete the finished page..
It can be a little daunting/confusing when beginning to try and integrate your own nicely designed single page across a number of templates.

In its most basic configuration wordpress uses four templates to complete a page. These are:
The header…………….Box1
The main index………..Box2
The sidebar……………Box3
The footer…………….Box4

With help from the graphic below I will try and explain how I have achieved this for my new layout coming soon for this site.

Presentation

From your control panel: edit theme.

You can see that when customizing for this design I have put all meta information, such a doc type, links to style sheet, title, header graphic and navigation into the header php.
You will notice that the wrapper and main div tags are left open at this point, to be closed in the footer php. and sidebar php templates respectively.

In the index php. I have my main content area, and div left within which will house the posts themselves.

Template layout for theme wordpress

Take a look at the graphic below of a slightly shortened version of the finished page, and you will see how the template sections fit together.

Template structure

Uploading markup structure in this way may seem a little counter intuitive in the beginning, leaving divs open in one area and closing them in another.
I found it very helpful when in the building stage to use comments
to keep track of the closing div for a particular section.
It took me a while initially to get my head around the concept of template driven pages. But with time you will understand how the php pulls the essential components of your design from the various templates in your chosen theme.

1 comment January 9th, 2008

Previous Posts