Tuesday 26 March 2013

Facebook Marketing - 2013

Here's a couple of notes I took down while watching their introduction videos.

The Fanpage

> Change the cover photo

> Add opening times and some business information.

Connect to Fans with Ads

> Identify target Audience
> Create multiple ads for each audience
> Roll out winning ads and rotate regularly


The advertising Steps.

> get Fanpage ready

> connect to Fans with Ads

> Engage your fans with quality content

> Influence the friends of your fans


Making seperate Social Media buttons for each Tour in Wordpress Midway Responsive -

Working on Wordpress website with the theme 'Midway Responsive' I was asked the following question by the customer.

Change the Home page FB icon link to our main tours Social Media stream and if possible on each tour page we would like the social media links to be different?

Here's how I solved this problem; I'll show you how to do it for the facebook link, for the rest all you need to do is repeat the process but replacing 'facebook' for the media stream you want.

OPEN wp-content/themes/midway/framework/config.php

around line 360 find
//Tours			array(				'id' => 'tour_metabox',				'title' =>  __('Tour Options', 'midway'),				'page' => 'tour',				'context' => 'normal',				'priority' => 'high',								'options' => array(
ADD UNDERNEATH
array(	'name' => __('Facebook','midway'),							'desc' => __('Does this tour have a seperate Facebook Account','midway'),							'id' => 'facebook',							'type' => 'text'),	
SAVE

OPEN wp-content/themes/(your child theme name)/header.php

FIND
						

REPLACE WITH
					ID,'_tour_facebook',true)) { 					$facebooklink=get_post_meta($post->ID,'_tour_facebook',true);?>					

SAVE AND UPLOAD
It's also worth reading this about Taxonomy , which is the process that your using to add to the array http://codex.wordpress.org/Taxonomies

Monday 25 March 2013

Some changes to Wordpress Midway responsive theme

Here's a few requested changes that I had to make to the Midway Responsive theme.  with how I solved these issues.  Please note I've made a Wordpress child theme called Zeathcamping ; which is why the folders are directed to that and not 'Midway'

Remove the Price and other Bullets points from the Tour Pages. >


OPEN

wp-content/zeathcamping/single-tour.php 
Around Line 44 to 48 commented out. 



Make the pricing tables stand out more especially where there is a special offer etc maybe use colours or bigger text

First off I needed to go into the 'tour' pages in admin and add the text 'class="info" '  to the tables I'm improving.

Then OPEN
wp-content/themes/zeathcamping/style.css

at the bottom add.

table.info{
font-size: 1.2em;
font-weight: bold;
}

Make the "Book Now" buttons bigger

OPEN wp-content/themes/zeathcamping/style.css
.button.small.tour-button span {
font-size: 1.4em !important;
font-weight: bold;
padding: 1% 20%;
}
 
On Home page change order of tour can we change the order of the polaroids / tours. 


This order is taken from when the tour is added. So the simplest way to change the order was to change the date of when this was added.
 

>Go to wp-admin/
>go to tours on the left hand side


> take a note of the dates and click on the tour you want to move.
> on the upper right hand side; under 'Publish' click on 'edit' next to the “Published on:” text.






Change "travel guide" title on homepage to "Blog"
  • in admin > go to Pages > Home page

    find the code [one_fourth][title]Travel Guide[/title][posts number="1"]

    you can edit the number of blogs here also




Photoshop Stroke is coming out blurry everytime

Photoshop Stroke is coming out blurry everytime What you need to do is check that your Feather is set to Opx. And then redraw the circle again.

Tim_thumb issue in Wordpress in Midway Responsive travel theme

http://elementdesignllc.com/2012/01/how-to-fix-timthumb-using-a-virtual-directory-url-contains-tildes/

Sunday 24 March 2013

Joomla 1.5 Getting a list of CCB Forum users names and email

On a Joomla 1.5 setup where they are using the CCB forum I wanted to get a list of Names and email addresses of the forum users. here's the mysql I used for this.
SELECT ju.name,ju.email FROM `jos_ccb_users` AS jcu LEFT JOIN `jos_users` AS ju ON ju.id = jcu.user_id WHERE jcu.id > 1

Thursday 21 March 2013

Wordpress Plugin that shows your latest Ow.ly image in a Widget

This a follow up to the blog How to make a Wordpress Widget Plugin

My aim here is to make Wordpress Plugin that shows your latest Ow.ly image in a Widget .   If you make a folder called 'owdotly-image' in the 'wp-content/plugins/' folder  and then save the following code as file 'owdotly.php'  this will work.  I'll add some CSS to it and then try and get it added to the official Wordpress directory.


 __('This widget will show your latest Ow.ly image',''),));
}
  
  
  function form($instance) {     
    $instance = wp_parse_args((array) $instance, array( 'title' => '', 'twit_username' => ''));
    $title = $instance['title'];
	$twit_username = $instance['twit_username'];
?>
  

', $array); list($newimage, $junk) = explode('"', $imageplus); $info = 'Polzeath nowClick here for the latest image.'; return $info; } function widget($args, $instance) { $Title = $instance['title']; $User = $instance['twit_username']; echo "

$Title

"; echo ''.$this->get_owdotly_page($User).''; } } add_action( 'widgets_init', create_function('', 'return register_widget("Owdotly_Image_Widget");') ); ?>

How to make a Worpress Widget Plugin - Stage 1

Here's what I want to do: Grab the latest picture from my Ow.ly account ( which is what I send to from my mobile Twitter account ) .
The way I'd like to do this in Wordpress is to create a plugin. To create a Wordpress Widget then we need to extend the WP_Widget API. Make sure you follow the example here http://codex.wordpress.org/Widgets_API .

Here's my notes on how I did it; that may help you and will hopefully help myself to simplify the process when I come back to it in future.

 1. Once the Class is set up the key areas to remember are (http://azuliadesigns.com/creating-widgets-wordpress-28/)

 form() - this is whats called up in (Appearance -> Widgets)

 update() - saves the data weve entered above

 widget() - output the widget from the details we have above and what we've created in this class


The following code is to show the first stage of writing my plugin. I think it shows a good example of how the 'Sample Plugin' in the above link is expanded.

Notice how an extra instance is added to the form and how that is dealt with in 'update. The 'widget function' is at its most basic to prove we can save information and retrieve it.
/**
 * Plugin Name: Ow.ly Image Displayer
 * Plugin URI: http://www.littleripples.com/owdotly-image-displayer
 * Description: A widget that shows your latest Ow Dot image 
 * Version: 0.1
 * Author: DJ Millward
 * Author URI: http://www.littleripples.com
 * License: GPLv2 or later
 * Text Domain: owdotly-image
 */
 
 class Owdotly_Image_Widget extends WP_Widget 
{
  public function __construct()
{
parent::__construct('Owdotly_Image_Widget','Ow.ly Image Displayer Widget',
array('description' => __('This widget will show your latest Ow.ly image',''),));
}
  
  
  function form($instance) {     
    $instance = wp_parse_args((array) $instance, array( 'title' => '', 'twit_username' => ''));
    $title = $instance['title'];
	$twit_username = $instance['twit_username'];
?>
  

$Title
"; echo "$User "; } } add_action( 'widgets_init', create_function('', 'return register_widget("Owdotly_Image_Widget");') );

showing Code on Blogger.com

thanks to this blog How to show code on blogger.com I now have this solution
// Comment
public class Testing {
public Testing() {
}
 
public void Method() {
/* Another Comment
on multiple lines */
int x = 9;
}
}

Monday 18 March 2013

Wordpress Theme Milan - How to increase the descripiton box on image rollover on the frontpage.

I've just gone live with www.oceanblueclothing.com  and wanted to increase the description on the Image rollover on the frontpage.

>  if we look in the page milan/index.php on the line 128 we have the code

content(10);

If we then take a look at the content() function we have this function 

    function content($num) {
    $theContent = get_the_content();
    $output = preg_replace('/]+./','', $theContent);
    $output = preg_replace( '/
.*<\/blockquote>/', '', $output );
    $output = preg_replace( '|\[(.+?)\](.+?\[/\\1\])?|s', '', $output );
    $limit = $num+1;
    $content = explode(' ', $output, $limit);
    array_pop($content);
    $content = implode(" ",$content)."";
    return $content;
    }

I've now created this function instead

    function lrip_content($num) {
    $theContent = get_the_content();
    $output = preg_replace('/]+./','', $theContent);
    $output = preg_replace( '/
.*<\/blockquote>/', '', $output );
    $output = preg_replace( '|\[(.+?)\](.+?\[/\\1\])?|s', '', $output );
    $limit = $num+1;
       $content = substr($output, 0, $num);
    return $content;
    }

Then on index.php you can call it up with this code, using the number to limit to the size you want it to !

echo lrip_content(30);







Friday 15 March 2013

Javascript works in IE8 & IE9 but not IE10

I'm currently using the theme Milan with Wordpress to create the webpage Ocean Blue Clothing  . 

The only problem I was having though is that it's working fine in IE8 & IE9 but not in the latest version. 

Here's the fix, I needed to add this code to the header

< meta http-equiv="X-UA-Compatible" content="IE=8" / >

The page now works fine.

Thursday 14 March 2013

How to Make changes to Easy Tool Tip in WP admin


Easy Tool Tip

Here's some instruction for making tooltip and price changes for Bournemouth Car Valet






> go 'administrator' area

> click on 'pages' and 'all pages' on the left hand menu

> find the page 'PRICES' and click on 'edit'

> make sure the 'Visual' tab is Highlighted. 



> in this mode it's very straight forward to make prices changes


> for tooltip text changes - find the tip you want to change

[tooltip content="This will show in a tooltip" type="classic"]?[/tooltip]

and change the text "This will show in a tooltip"  to what you wish.

Tuesday 12 March 2013

Wordpress Midway Theme - Capturing details in admin and retrieving on Tour Pages

I'm using the Wordpress Midway Responsive Theme and I need to change the booking and inquiries buttons so that they can go to various locations and email boxes.

So firstly I need to add a couple of boxes in admin; so we can save the information relevant to each tour.

OPEN

wp-content/themes/midway/framework/config.php

FIND

//Tours
            array(
                'id' => 'tour_metabox',
                'title' =>  __('Tour Options', 'midway'),
                'page' => 'tour',
                'context' => 'normal',
                'priority' => 'high',               
                'options' => array(

UNDERNEATH ADD

array(    'name' => __('BookLink','midway'),
                            'desc' => __('The Link where we want Booking to go to.','midway'),
                            'id' => 'bookinglink',
                            'type' => 'text'),   
                    array(    'name' => __('EmailLink','midway'),
                            'desc' => __('The Email address that enquiries should go to.','midway'),
                            'id' => 'emailaddress',
                            'type' => 'text'),   



SAVE and UPLOAD


after this change you'll then have extra input boxes in Admin.  And miraculously your infromation here get saved with no more changes need.  Out of interest those details are saved in the table  'wp_postmeta'  which uses these fields.
'meta_id, post_id, meta_key, meta_value'



To retrieve this infromation you'll need to make a function like

function themex_emaillink($id=null, $before='', $after='') {
   
    $emaillink=get_post_meta($id,'_tour_emailaddress',true);
   
    $out=$emaillink;
   
    return $out;
}


which you should save in a file like function.php

AND THEN TO PICK THE INFORMATION UP IN YOUR TEMPLATE

at the top of the page use

$emaillink=themex_emaillink($post->ID);


and then use  $emaillink in your page where you want to out put that information.






Tuesday 5 March 2013

wordpress development how to show featured image in template

What I needed to search for to find the answer to this one was to look for development notes on Post Thumbnails.  Here's the codex page that tells you all about it . Wordpress Codex

All that needs to done is to open the template in a editor and add the code



where you wish the Featured image to display, check the codex link for other sizes.

Monday 4 March 2013

Fistral Beach Webcams - Which one is currently best?

I'm doing a quick bit of research on Webcams and have noticed that eventhough there are quite a few pointing at Fistral now, many pages aren't currently worth Checking.  Here's a run down done on the 4th March 2013.


Anns Cottage Surf -  Probably the best free one; however if you haven't got Media Player updated then you can't see the high res version.  And the non high res cameras aren't that great.

Fistral Blue   - doesn't seem to be currently working.

Tiger 24 - Gets my vote for a free version.  You get a couple of angles

MSW -   you'll need to pay to be able to keep in on constantly.  Having adverts is very frustrating otherwise. Having said that this page is always worth a check anyway for the forecast.

Surf Check Live   - low quality and the camera needs cleaning.  It is free though and once the lens does get cleaned will be worth a check.


Headland Hotel -   - Seems to take and age to update and fairly poor quality.  On the plus side it's a pretty decent angle of the beach and its free.



Anyone know of any more ?

In the Wordpress Theme Midway Responsive I want to increase the tour columns on the tour page.

The key to doing this is on the page
wp-content/themes/midway/template-tours.php on line 115 we have the code.

if($counter==$row_limit) {
                        $counter=0;
                         echo '< div class="clear"></ div>';
                    }


If you ADD above

$row_limit = 5;  that will enable you to have a row of five ( with some CSS tweaking )  
The value for $row_limit is not set in the database but on line 11 of this page.

$row_limit=$layout!='left' && $layout!='right' ? 4 : 3;
$row_class=$row_limit==4 ? 'three' : 'four';

changing the code here means you'll have to make a few more CSS adjustments.  For me the Hack works fine, so I'll it as be.

Remember if your making these changes it makes sense to do so in a Child theme

Wordpress : how to cut down on the amount of Spam Emails I'm recieving

Its been mentioned by a client that they are fed up of receiving too many emails regarding posts that turn out to be spam.

There's a couple of things I've done which now seem to have rectified the problem .

Firstly to add Repcaptcha Plugin WP Recaptcha

Secondly to tweak the settings for spam notifications can be found at.

Settings ( on the left menu ) > Discussion >

Then in the main screen in 'Email me whenever'  1. Anyone posts a comment ; 2. A comment is held for moderation

If you untick these then you won't receive any emails.  The thing is then is if there are any genuine posts you won't be notified.

The one section that will help is the 'Comment Blacklist'   - after googling 'Wordpress Comment Blacklist Suggestions' I've come up with this list as a starting point.  It's worth adding recommended IPs and emails to blacklist for spam; but I'll leave that to another post.


ace-decoy-anchors.
acnetreatment
adderall
adipex
advicer
agentmanhoodragged
allauctions4u.
allegra
alprazolam
ambien
amitriptyline
anal
anthurium
apexautoloan
ativan
atkins

available-credit.
baccarat
baccarrat
balder
ballhoneys
bannbaba.
bestweblinks
bitches
blackjack
bllogspot
blow-ebony-job
boat-loans
bondage
bontril
booker
butthole
buy online
buy-levitra-online
buy-phentermine
buy-porn-movie-online
buy-viagra
buy-xanax
buycialis
byob
c**k
caclbca.
car-rental-e-site
car-rentals-e-site
carisoprodol
cash-services.
casino-games
casinos
casualty insurance
cephalexin
cheapcarleasehire
cheapdisneyvacationspackagesandtickets
cialis
cialisonline
citalopram
clitoris
clomid
college-knowledge
company-si.
contentattack.com
coolcoolhu
coolhu
copulationformmeet
credit-card-debt
credit-cards
credit-dreams
credit-report-4u
creditcard
cricketblog
currency-site
cyclobenzaprine
cymbalta
dating-e-site
dawsonanddadrealty.
day-trading
debt-consolidation
debt-consolidation-consultant
diabservis.
didrex
diet-pill
diet-pills
discreetordering
dissimilarly
distanceeducation
doxycycline
duty-free
dutyfree
ephedra
equityloans
finalsearch
fioricet
flamingosandfriends.
flower4us
flowers-leading-site
free-cumshot-gallery
free-online-poker
free-poker
free-ringtones
freenet-shopping
gambling-
generic-viagra
h1.ripway
hair-loss
hawaiiresortblog
headsetplus
health-insurancedeals-4u
hentai
holdem
holdempoker
holdemsoftware
holdemtexasturbowilson
home-loans-inc.
homeequityloans
homefinance
homemade_sedatives
homeowners insurance
hotel-dealse-site
hotele-site
hotelse-site
hydrocodone
hydrocone
hypersearcher
idealpaydayloans
ifinancialzone
illcom.
incrediblesearch.
inforeal07.
insurance-quotesdeals-4u
insurancedeals-4u
investment-loans
ionamin
irs-problems
jbakerstudios.
jrcreations
jrcreations.
kasino
kenwoodexcelon
land.ru
laserhairremovalhints
lawyerhints
levitra
levitra.
lexapro
life insurance
lifeinsurancehints
lipitor
lisinopril
lopressor
lorazepam
lunestra
lung-cancer
luxury-linen
lyndawyllie.
m2mvc.
macinstruct
madesukadana.
manicsearch
meridia
mightyslumlords
mlmleads
mohegan sun
mortgage-4-u
mortgage-certificates
mortgagequotes
mortgagerefinancingtoday.
musicfastfinder
mycolorcontacts
mydivx.
nemasoft.
netfirms.
nysm.
online casino
online casino guide
online poker
online slots
online-casino
online-casinos
online-debt-consolidation
online-gambling
online-pharmacy
onlinegambling-4u
orgasm
ottawavalleyag
ownsthis
oxycodone
oxycontin
p***y
pacific-poker
palm-texas-holdem-game
parmacy
party-poker
paxil
payday loan
payday-loan
payday-loans
percocet
personal-loans
pest-control
pharmacy
phentermine
phentermine.
pills-best.
pills-home.
pimpdog@gmail.com
pizzareviewblog
platinum-celebs
poker-chip
poker-games
poker-hands
poker-online
pornstar
pornstars
prescription
prohosting.
propecia
protonix
prozac
rakeback
realtorlist
realtorx2
refinance-san-diego
rental-car-e-site
romanedirisinghe
roulette
roulette
searchingrobot.
seethishome
shaffelrecords.
shemale
sightstickysubmit
slot-machine
slotmachine
student-loans
swingers-search
t35.
tenuate
term insurance quote
texas hold'em
texas holdem
texas-hold-em-rules
texas-hold-em.
texas-holdem
thorcarlson
tigerspice
top-e-site
top-franchise
top-site
trablinka
tramadol
trancetechno.
transexual
transsexual
tredgf
trim-spa
turbo-tax
ugly.as
ultram
united24.
valeofglamorganconservatives
valium
valtrex
varied-poker.
vcats
viagra
viagra-online
viagrabuy
viagraonline
vicodin
vioxx
vmasterpiece
vneighbor
voyeurism
vpawnshop
vselling
vsymphony
websamba.
whore
wiu.edu
world-series-of-poker
wpdigger.com
xanax
xenical
xrated
ycba
ytmnsfw
z411.
zenegra
zithromax
zolus
zyban
????
[url=


Please check Wordpress Comment Blacklist blog for a more comprehensive list.