Updates from January, 2010 Toggle Comment Threads | Keyboard Shortcuts

  • Jay Versluis 6:33 pm on January 26, 2010 Permalink
    Tags:   

    Categories: Themes ( 28 )   

    How to modify the Modularity Lite 1.2 from Graph Paper Press 

    If you don’t know this theme yet, you should check it out at Graph Paper Press.

    Modularity Lite is Thad Allender’s freebie version of a larger framework. I was customising this theme for Jerry Hyde’s site recently, and thought I’d take some notes to share with you.

    (More …)





     
    • YBB 10:00 pm on February 2, 2011 Permalink

      Hi Jay

      I hope you’re doing well.

      My blog is up and running now and seems to be working fine for the basic need I have of it. One question I do have for you if you can help is, how do I create a mailing list or something similar. So that whenever I update my blog etc. everybody who wants to be advised, receives an e-mail?

      If you could let me know that would be great.

      Thanks.

      YBB (now from Toronto, Ontario Canada)

      • Jay Versluis 10:19 pm on February 2, 2011 Permalink

        Hello Toronto – how are you doing tonight?

        The easiest way to get this going is via Feedburner. That’s a Google service which reads your site’s RSS feed and generates a new one. It does a lot of other magic like notify search engines when you post, send tweets automatically and let visitors subscribe via email. You can sign up at feedburner.google.com and have a play. I use Feedburner on all my higher traffic sites (including this one – the box in the sidebar is a piece of Feedburner code for example).

        You can also replace your current feed with the new Feedburner feed – some Themes offer this functinoality, but there’s also the Feedburner Feedsmith plugin which does that for you. The advantage is that it takes some load off your server – but you don’t have to go that far if all you want to use is the mailing list function.

        Have fun 😉

    • Vincent 3:13 am on February 9, 2011 Permalink

      Thank you so much! This is just what I was looking for!

    • jon 6:26 am on February 12, 2011 Permalink

      im running Modularity Lite and had the slide show running fine when i went to resize my photos it stopped running how can i get the slide show back

      • Jay Versluis 9:47 am on February 12, 2011 Permalink

        Are you running Version 1.3? Have a look at this article I’ve written for it.

        Check what size you’re using for your images: Slideshow images MUST BE exactly 950×425 pixels or larger. Smaller images won’t show up.

    • Jason 2:21 am on February 15, 2011 Permalink

      Hi Jay.

      Thanks for your help a while ago.

      Have another quick question for you;

      How can I add a link to a specific page (such as to a post) that can only be displayed when the admin is logged in?

      Eg. when the admin is logged in to the WordPress backend, quite a few themes will display ‘Edit’ under each post etc on the front end of the site, but obviously no other user will see that.

      I would like a link to do the same thing for a link so only the admin can see it and click on it from the front end.

      Look forward to hearing your reply.

      Cheers

      Jason

      • Jason 2:23 am on February 15, 2011 Permalink

        *I would like a link to do the same thing so only the admin can see it and click on it from the front end*

      • Jay Versluis 1:07 pm on February 17, 2011 Permalink

        Hi Jason,

        there’s a built-in WordPress function called edit_post_link() which handles that. It displays the “edit” option only when you’re logged in and nothing if you’re not logged in. Modularity Lite supports this at the bottom of every post. You can add this anywhere you your blog where you can execute PHP.

        Here’s the default usage:

        <?php edit_post_link('Edit this post', '<p>', '</p>'); ?>

        Hope this helps 😉

    • Kergan Edwards-Stout 5:21 am on April 10, 2011 Permalink

      Hey there–ignore my last question–figured it out! 🙂

      • Jay Versluis 8:48 am on April 11, 2011 Permalink

        Excellent, glad you’ve sussed it out.

        For those of you who haven’t, you can add the “fixed” parameter to your body definition like so:

        body
        {
        background: url('yourpicture.gif') fixed no-repeat center;
        }

        Take the “fixed” out and the background will scroll up and down.

    • donna 3:17 am on May 3, 2011 Permalink

      Hi Jay,

      Thanks for the blog. Wondering if you’ve run into this problem with Modularity Lite: The post images on the main page are not linkable…only the title for each post. Any way around this? Each reference image is indeed set to link to the post page. http://donnapallotta.com/luce025
      Thanks in advance,
      Donna

      • Jay Versluis 11:48 am on May 3, 2011 Permalink

        Hi Donna,

        I’ve just had a look at your link and those images do link fine to the relevant posts. Maybe you’ve already fixed the issue (in which case: well done ;-)) or if the problem still persists try to clear your browser cache. Works wonders sometimes.

        All the best from London!

    • Nitin Sharma 6:27 pm on May 3, 2011 Permalink

      Hi Jay

      As your previous helps worked out, I would like to ask if it would be possible to divide the blog posts in to 2 or 3 columns in the home page in modularity lite theme instead of the normal blog look. As index.php pulls blog.php I tried to change the loop into column in blog.php but didn’t work properly. If you have any idea, it would be a great help once again.

      Thnx for all the great resources

      • Jay Versluis 7:19 pm on May 3, 2011 Permalink

        Hi Nitin,

        that’s a great thought indeed. I can see this working really well for Modularity Lite. Unfortunately it also means a major rewrite of the theme – I’m not sure if I can help with that. Let me think it over though 😉

    • Steve 6:59 pm on May 3, 2011 Permalink

      Have you ever tried to get the slideshow to source images from pages instead of blog posts?

      • Jay Versluis 7:18 pm on May 3, 2011 Permalink

        I haven’t… and I wouldn’t know how. Technically a page and a post are the same thing to WordPress, so maybe you just tell Modurality Lite the exact page ID’s you’d like to use for images. But then, that’s just a thought.

        Instead I suggest using the static slideshow option as explained in this article (for Modularity Lite 1.3).

    • Jay Versluis 7:23 pm on May 3, 2011 Permalink

      Thanks for all your comments and input on this post.

      Since this is the thread for the 1.2 version I’m going to close this comments section now. I’ve written an article for a newer version of Modularity Lite 1.3 – check it out here.

  • Jay Versluis 9:29 pm on January 18, 2010 Permalink | Reply  
    Categories: How To ( 36 )   

    How to get advertising banners for your site 

    My experiences with both Amazon Widgets and Google Ads is simple: they don’t work – all they do is ruin my sites. I’ve not made a penny with them, keeping in mind I run about 20 sites which amounts to plenty of traffic. I believe we as surfers know what an “unhelpful” ad looks like and we automatically blank it out – much like billboard ads, TV ads or newspaper ads. Sites like Facebook and eBay don’t use them either, indicating they’re a waste of time.

    Advertising should supports your site, not destroy it. Say you’re writing about technical aspects of web design, then ads for web hosting and domain registration are helpful – and supportive. But ads about rather unrelated material are not, especially if they’re generated by contextual algorithms. Which products and services work best is a matter of trial and error I’m afraid, and there’s no set formula.

    Here’s another example:

    Imagine you’re writing about music and bands, then maybe iTunes is a good ad to have. Say you’re writing a post specifically about Alexandra Burke’s new tour, why not have “Buy her album on iTunes” at the bottom – if someone makes a purchase via that link, you’ll get a cut. This link has to go diretcly to one song or one specific album, not to “iTunes in general” though.

    Getting your hands on specific ads and banners is fairly easy by joining some of the big advertising affiliate partners. Amazon and many others have their own affiflate scheme, but larger brands often outsource this business to companies like

    Let’s look at some vocabulary:

    You as an “advertising displayer” are called an “affiliate”. The other side of the business is called a “merchant”, which is you have a product or site and ads that you want other affiliates to display. For now, you’re an “affilate”.

    You’ll get paid into your bank account once you reach a certain threshold of cash (say £50 or £100). You’ll make money either by people clicking on those links (that’s called “pay-per-click”), or if people actually buy something on the advertiser’s site (that’s called “pay-per-lead”). The money comes from “merchants”, who in turn pay people like you and me for having adverts displayed.

    The list of programmes above – like many others out there – provide text links and banners in all different sizes to suit your posts and sidebars. A banner is usually part of a “campaign”, which can change from time to time. Ads in a campaign will dynamicaly update to the next campaign so you won’t have to get involved – unless you’d like to of course.

    The way to display ads is either as a text link like this or banner (usually used in a plan text widget in your sidebar, or hard coded say into your header). Some theme developers leave comments in their code to indicate where to put an ad, and which dimensions will work well. An example for such a theme is Aerodrome by Joe Fishler.

    Navigating the affiliate programmes can be a tad cumbersome though. They’re fairly complex and provide a LOT of data. Your first step is to join one of those sites above, say Link Share. They approve or decline you as an affiliate.

    But someone like Link Share has thousands of merchants on file. To display a specific advertiser’s links (say iTunes for example), you’ll have to “join” that particular merchant. That merchant will then have a look at your site and either approve or decline your application. There are plenty of spam sites out there, and of course big brands don’t want to be associated with those. Once a merchant has approved your site, you’re ready to display their ads. It can take a day or two until you hear from them, but sometimes the decision is made in minutes.

    In a nutshell:

    Someone like Link Share is only the “delivery platform” for adverts and deals with tracking those ads and giving you payouts. But the actual adverts and campaings come from merchants (like iTunes or Sky) who have also joined.

    There are MANY other affiliate schemes you can join, and it’s about finding the one(s) that are right for you, or have the products/brands you’d like to promote. If you like a particular site, have a look at the bottom and look for something like “webmasters” or “make money promoting us”.

    The key is to use these affiliate links casually – you can use them in a post, or even tweet them when it’s relevant. Don’t overload your visitors though. Nothing is worse than a site cluttered with more adverts than content!

    One last thought to consider:

    if you’re running an e-commerce site (i.e. you have products for sale, and the website is primarily there to sell them), why drive customers away to other services? Amazon and eBay do this sometimes, and there’s really no need for it. An e-commerce site makes money by selling products, not by advertising.

    Good luck 😉





     
  • Jay Versluis 7:22 pm on January 5, 2010 Permalink | Reply  
    Categories: Linux ( 101 ), MySQL ( 19 )   

    How to repair MySQL tables from the Command Line 

    Sometimes your tables crash and your website is unresponsive. You don’t have access to phpMyAdmin to do a repair, because you can’t access Plesk. That sucks!

    When you’re out in the field and all that’s at hand is a trusty SSH connection from your mobile, here’s an alternative way to bring your WordPress Sites back to life.

    You need the following ingredients:

    • Database Name (I’m using “databasename” here)
    • User Name (I’m using “username” here)
    • Password for the above

    All three will be in your wp-admin.php file, use Vi to check if you’ve forgotten them.

    Next it’s time to get busy with some MySQL commands I keep forgetting (hence this article):

    mysql -u username -p

    This will ask you for your password, which you can type but won’t see written out onscreen. Upon success, you’ll be deep in MySQL territory, not the Linux prompt anymore. Next, we’ll select our actual database in use for the site:

    use databasename;

    Note the importance of the semicolon at the end of the line. Now let’s see which tables are in that database and what they’re called:

    show tables;

    Excellent! We’re getting there! You’ll see everything that’s in your database, almost like in phpMyAdmin (just less convenient). By default, you should be seeing entries like “wp_options”, “wp_links”, wp_posts” and so forth. The “wp_” is the default prefix for WordPress tables, but depending on your installation this may have changed to something else.

    Depending on what else you’re using your database for, there may well be other entries from projects such as PHPList, Drupal, phpBB and so forth. The principles are applicable for every application that’s using MySQL.

    You’ve got a whole host of commands at your fingertips now, but the most important ones for a rescue mission like this are probably

    check table yourtablename;
    repair table yourtablename;

    The “check table” command seems to repair minor errors, like hosts not having closed connections. It also shows you what’s wrong with a table, or if it’s OK. The “repair” command checks, optimizes and repairs a table – so it’s probably the best one to use.

    Unlike phpMyAdmin, you have to issue one command per table; you can’t select all tables and say “repair all” (and if you can, I don’t know about it – in which case, please leave a comment and enlighten us).

    For WordPress, that’s 11 tables you need to check – so it’s not a major inconvenience.

    Once you’re ready to leave the heady heights of MySQL, type “quit” and you’re back to the command prompt.

    Good Luck!





     
  • Jay Versluis 1:54 pm on January 5, 2010 Permalink | Reply
    Tags:   

    Categories: WordPress ( 145 )   

    How to batch-upgrade plugins in WordPress 2.9+ 

    One of the big features announced with WordPress 2.9 was the ability to upgrade several plugins at once. Trouble is, it’s not an easy to find feature. Fret not, for The Guru has found it!

    You’d expect to go to Plugins, check the ones you want to upgrade and choose “Upgrade All” from the bulk actions drop down. Er… no.

    Instead you need to go to TOOLS – UPGRADE and see a list of upgradable plugins there. You can tick the ones you want to upgrade, or check all, then hit the button as usual and hack in your FTP details. Note that this list won’t be there if all your plugins are up-tp-date.

    The upgrade process will then be started in what’s known as “maintenance mode”. It can take some time with little to no feedback, so please be patient while you watch an empty browser window. Make sure you leave your browser alone until you see a “success” message.

    According to this trac ticket, this functionality may well see an overhaul in future releases.

    Until then, enjoy 😉





     
c
Compose new post
j
Next post/Next comment
k
Previous post/Previous comment
r
Reply
e
Edit
o
Show/Hide comments
t
Go to top
l
Go to login
h
Show/Hide help
shift + esc
Cancel