Archive for the ‘ HTML ’ Category

Create Custom Widget

class ktree_rsssocial_Widget extends WP_Widget
{
function ktree_rsssocial_Widget()
{
global $themename;
parent::WP_Widget(false, ‘ktree – Rss Social Media Widget’);
}

function widget($args, $instance) {
extract($args);
$faccount = $instance[‘faccount’];
// $msaccount = $instance[‘msaccount’];
$twaccount = $instance[‘twaccount’];
$ytaccount = $instance[‘ytaccount’];
$title = $instance[‘title’];

echo $args[‘before_widget’];
echo $args[‘before_title’] . $title . $args[‘after_title’];

?>

  • <a target="_blank" href="”>
  • <a target="_blank" href="”>

<label for="get_field_id(‘title’); ?>”>
<input style="width: 200px;" id="get_field_id(‘title’); ?>” name=”get_field_name(‘title’); ?>” type=”text” value=”” />

<label for="get_field_id(‘faccount’); ?>”>
<input style="width: 200px;" id="get_field_id(‘faccount’); ?>” name=”get_field_name(‘faccount’); ?>” type=”text” value=”” />

<label for="get_field_id(‘twaccount’); ?>”>
<input style="width: 200px;" id="get_field_id(‘twaccount’); ?>” name=”get_field_name(‘twaccount’); ?>” type=”text” value=”” />

<label for="get_field_id(‘ytaccount’); ?>”>
<input style="width: 200px;" id="get_field_id(‘ytaccount’); ?>” name=”get_field_name(‘ytaccount’); ?>” type=”text” value=”” />

<?php

}

}

add_action('widgets_init', create_function('', 'return register_widget("ktree_rsssocial_Widget");'));

Advertisements

Joomla instalation time issues

When installing Joomla it checks for configurations and PHP settings .
1. PHP Version >= 5.2.4(as per joomla version it looks for PHP Version)
Joomla is expecting php version of 5.2.4. click here to download requires php version.
just download and install the required Joomla version and restart Apache server