Category Archives: Uncategorized

WordPress jQuery Carousel

I insisted that I would blog today, or ‘Blog Thursday’ as I now need to remember! It’s been far too long since I last posted!

I’ve just got back from PHP London at the Doggetts pub, where Jakub Zalas (http://twitter.com/@jakub_zalas) gave a talk on Symfony2; it certainly looks like a nice framework but I’m already heading down the Zend route as that’s what we use at work! I would recommend checking it out though, if you haven’t already.

When searching for ideas on what I should blog about; I figured I’d consult ye olde Twitter! Thankfully, a couple of people asked questions; and even better that the questions are on the same topic of WordPress; something I’ve used quite a lot in my personal time as well as work.

Question 1:

The first question comes from @asforasafarina (thank you darling sister :p), “I would like to know how to put a jquery carrousel on my wordpress blog please! :)”.

The reason Asfora has asked this, is because I was showing her the new website we have for work (http://www.webgains.com). As you can see, it has a nice pretty carousel and she was shocked when I told her the website uses WordPress; this resulted in her wanted me to explain how she can put such an item on her own site.

To get you started, it’s probably easier to point you in the direction of fredhq.com; where you can download the ’roundabout’ jQuery plugin:

http://fredhq.com/projects/roundabout/

The download link is here:

https://github.com/fredhq/roundabout/zipball/master

So, how do you put it into your WordPress blog? All you need to do is open up your theme editor, edit the HTML of where you want the carousel to go and put this HTML:

<!– assuming you places the jquery.roundaabout.js in the root of your website. –>
<script type=”text/javascript” src=”/jquery.roundabout.js”></script>
<ul id=”carousel”>
<li><span>Block 1</span></li>
<li><span>Block 2</span></li>
<li><span>Block 3</span></li>
<li><span>Block 4</span></li>
<li><span>Block 5</span></li>
</ul>
In all honesty, that’s it! Simple as! You will of course want some styling and the below should help you out:
<style>
ul {
list-style: none;
padding: 0;
margin: 0 auto;
width: 42em;
height: 24em;
}
li {
height: 20em;
width: 30em;
background-color: #ccc;
text-align: center;
cursor: pointer;
}
li.roundabout-in-focus {
cursor: default;
}
span {
display: block;
padding-top: 6em;
}
</style>
To see it in action you can visit:
http://fredhq.com/projects/roundabout/demos/standard

Obviously, you will need to put in a lot more work to style it to suit your site; but once you have the carousel in you are in a great position to customise it.

Anyway – that will have to be all as it’s quite late already and I can’t be bothered to type any more!
Share

Jenson Button To Set New Record?!

6 out of 7 wins for Button; 4 in a row.

He’s won 85% of the Grand Prix so far this season.

With 10 remaining races remaining. If he manages around the same percentage; he will win another 8 grand prix.

This would give him the most wins in a season (14, over MS’s 13 wins in 2004). It would also give him the highest percentage of wins in a season (~82% over Ascari’s 75% in 1952).

He would also have a good stab at beating the consecutive wins record of 7, set by Ascari & MS.

http://en.wikipedia.org/wiki/List_of_Formula_One_driver_records#Most_wins_in_a_season

I’d say it’s early days to tell, but we’re already a good way through the season to know what cars are strong and what cars are not.

Is he going to do it?!

🙂

Share

Far too quiet, far too busy; Gadgets anyone?!

Sorry for the lack of updates; I’ve been busy recently. Last Monday I took up boxing at my local gym; followed by a football match which was very tiring on Tuesday! Along came Wednesday and I was happy to have the break, but it was short lived as I then went boxing on Thursday, too. Friday follows Thursday, and we all know it was a glorious bank holiday weekend; so yes I’ve been rather quiet.

I FINALLY found a few hours to get some more time in to show you again how quick it is to set up a new domain & shop. @15:17 BST I registered the domain name: The Gadget Directory. This is now a finely tuned wordpress blog, loaded with over 2,400 affiliate products. I shall be posting new gadgets on there every now and again so that you can get a feel for what products are available.

It just goes to show that if you have just 2 hours spare, you can get another site up and running with the potential to pull in a large audience. I don’t expect to see a great deal of traffic immediately but I shall for sure keep you updated. If you want to follow my alter-ego “Gadget Man” on twitter, then feel free.

As always if you want any tips on getting started in the affiliate marketing world, just give me a shout! Easiest way is to follow me on twitter and mention me @bobbyjason and you shall soon get a reply!

Night time folks, see ya!

Share