Joomla
Web Site Tour Builder - Joomla extension download
Web Site Tour Builder module is very easy to use and allow you to create a very cool tour in simple steps. Web Site Tour Builder gives you the ability to create amazing tour which easily arouse visitor interest, with a User Friendly Backend, highly customizable solution to build your tour into your site.
Features
Usefult to continue tour in multiple pages
Compatible With All recents Popular Browsers
Check this short tutorial video here: https://www.youtube.com/watch?v=mOdl9xbQAEw
Extension Name: Web Site Tour Builder
Price: Paid (€ 19,00)
More info and reviews: Web Site Tour Builder on JED
For Demo - Click Here
Download Paid Version - Click Here
For Documentation - Click Here
Features
- Support Continued Tour in Multiple Pages
- 5 Types of Display ad ( Button, Link, Autostart on Load, LightBox on Load, Manual )
- 3 Types of Popup Box ( Modal, Tooltip, Nohighlight )
- 3 Selectors Type ( id, class, name) You can append tour to all html class
- 4 Positions (Top, Bottom, Left, Right )
- Draggable Box
- Keywords Controls to change step
- Rotation Control
- Steps Title
- Steps Text with Editor WYSIWYG for J3
- Redirect to Control
Usefult to continue tour in multiple pages
- 2 Popup Tour Themes
- 2 LightBox Themes
- Cookies Options - to not show always the tour
Compatible With All recents Popular Browsers
- Google Chrome
- Firefox
- Safari
- Opera
- Internet Explorer(IE7+)
Check this short tutorial video here: https://www.youtube.com/watch?v=mOdl9xbQAEw
Extension Name: Web Site Tour Builder
Price: Paid (€ 19,00)
More info and reviews: Web Site Tour Builder on JED
For Demo - Click Here
Download Paid Version - Click Here
For Documentation - Click Here
PHP CMS Frameworks
May 31, 2015
Read more →
CodeIgniter
Export data as CSV from database in CodeIgniter
In this article, we are going to discuss about How to export the data as CSV from database in CodeIgniter. In CodeIgniter we can export data easily from database as CSV using a library called dbutil. We can pass the query result directly into the dbutil function and we can download the data as CSV.
In your model, write down a function called exportCSV as mentioned below.
function ExportCSV()
{
$this->load->dbutil();
$this->load->helper('file');
$this->load->helper('download');
$delimiter = ",";
$newline = "\r\n";
$filename = "filename_you_wish.csv";
$query = "SELECT * FROM table_name WHERE 1";
$result = $this->db->query($query);
$data = $this->dbutil->csv_from_result($result, $delimiter, $newline);
force_download($filename, $data);
}
You can change the filename and the database query as per your needs. Call this function from your controller.
In your model, write down a function called exportCSV as mentioned below.
function ExportCSV()
{
$this->load->dbutil();
$this->load->helper('file');
$this->load->helper('download');
$delimiter = ",";
$newline = "\r\n";
$filename = "filename_you_wish.csv";
$query = "SELECT * FROM table_name WHERE 1";
$result = $this->db->query($query);
$data = $this->dbutil->csv_from_result($result, $delimiter, $newline);
force_download($filename, $data);
}
You can change the filename and the database query as per your needs. Call this function from your controller.
PHP CMS Frameworks
May 25, 2015
Read more →
CakePHP
Populate dropdown values in Cakephp using AJAX
In this article, we are going to discuss about How to populate the dropdown values in Cakephp using AJAX. CakePHP is an open source web application framework. It follows the Model-View-Controller (MVC) approach and is written in PHP. CakePHP uses well-known software engineering concepts and software design patterns, such as Convention over configuration, Model-View-Controller, Active Record, Association Data Mapping, and Front Controller.
Step 1 :
Add the below code in your View File where you want to apply the Ajax Dropdown
<div id="zoneDiv"></div>
<script>
$(document).ready(function(){
$('#HotelCountryId').change(function(){
var countryID = $(this).val();
$.ajax({
dataType: "html",
type: "POST",
evalScripts: true,
url: '<?php echo Router::url(array('controller'=>'zones','action'=>'ajaxzone'));?>',
data: ({countryid:countryID}),
success: function (data, textStatus){
$("#zoneDiv").html(data);
}
});
});
});
</script>
Step 2 :
Add the below code in your Controller function from where you want to populate data
public function ajaxzone($id = null) {
// debug($this->request->data['countryid']);exit;
$this->layout = 'ajax';
$id = $this->request->data['countryid'];
if (!$this->Zone->exists($id)) {
throw new NotFoundException(__('Invalid zone'));
}
$options = array('conditions' => array('Zone.country_id' => $id));
$this->set('zones', $this->Zone->find('list', $options));
}
Step 3:
The view file of this function ajaxzone.ctp
<?php
echo $this->Form->input('zone_id', array('class'=>'form-control','placeholder'=>'State'));
?>
Step 1 :
Add the below code in your View File where you want to apply the Ajax Dropdown
<div id="zoneDiv"></div>
<script>
$(document).ready(function(){
$('#HotelCountryId').change(function(){
var countryID = $(this).val();
$.ajax({
dataType: "html",
type: "POST",
evalScripts: true,
url: '<?php echo Router::url(array('controller'=>'zones','action'=>'ajaxzone'));?>',
data: ({countryid:countryID}),
success: function (data, textStatus){
$("#zoneDiv").html(data);
}
});
});
});
</script>
Step 2 :
Add the below code in your Controller function from where you want to populate data
public function ajaxzone($id = null) {
// debug($this->request->data['countryid']);exit;
$this->layout = 'ajax';
$id = $this->request->data['countryid'];
if (!$this->Zone->exists($id)) {
throw new NotFoundException(__('Invalid zone'));
}
$options = array('conditions' => array('Zone.country_id' => $id));
$this->set('zones', $this->Zone->find('list', $options));
}
Step 3:
The view file of this function ajaxzone.ctp
<?php
echo $this->Form->input('zone_id', array('class'=>'form-control','placeholder'=>'State'));
?>
PHP CMS Frameworks
May 17, 2015
Read more →
Wordpress
Create a XML and JSON web service using WordPress
In this article, we are going to discuss about How to create a XML and JSON web service using Wordpress. WordPress started in 2003 with a single bit of code to enhance the typography of everyday writing and with fewer users than you can count on your fingers and toes. Since then it has grown to be the largest self-hosted blogging tool in the world, used on millions of sites and seen by tens of millions of people every day.
Create a wordpress page and call it json or whatever you like and then add a json.php file within your wordpress theme then add the code below.
<?php
/*
Template Name: json
*/
/* require the user as the parameter */
if(isset($_GET['user']) && intval($_GET['user'])) {
/* soak in the passed variable or set our own */
$number_of_posts = isset($_GET['num']) ? intval($_GET['num']) : 10; //10 is the default
$format = strtolower($_GET['format']) == 'json' ? 'json' : 'xml'; //xml is the default
$user_id = intval($_GET['user']); //no default
/* connect to the db */
global $wpdb;
/* create one master array of the records */
$posts = array();
$the_query = new WP_Query( "author=$user_id&showposts=$number_of_posts" );
while ( $the_query->have_posts() ) : $the_query->the_post();
// add any extras that you would like to this array
$posts[] = array('title'=> get_the_title(),'content'=>get_the_content(),'link'=>get_permalink(get_the_ID()));
endwhile;
/* output in necessary format */
if($format == 'json') {
header('Content-type: application/json');
echo json_encode(array('posts'=>$posts));
}
else {
header('Content-type: text/xml');
echo '<posts>';
foreach($posts as $index => $post) {
if(is_array($post)) {
foreach($post as $key => $value) {
echo '<',$key,'>';
if(is_array($value)) {
foreach($value as $tag => $val) {
echo '<',$tag,'>',htmlentities($val),'</',$tag,'>';
}
}
echo '</',$key,'>';
}
}
}
echo '</posts>';
}
/* reset query */
wp_reset_postdata();
}
http://example.co.uk/json/?user=1&num=3&format=json
Create a wordpress page and call it json or whatever you like and then add a json.php file within your wordpress theme then add the code below.
<?php
/*
Template Name: json
*/
/* require the user as the parameter */
if(isset($_GET['user']) && intval($_GET['user'])) {
/* soak in the passed variable or set our own */
$number_of_posts = isset($_GET['num']) ? intval($_GET['num']) : 10; //10 is the default
$format = strtolower($_GET['format']) == 'json' ? 'json' : 'xml'; //xml is the default
$user_id = intval($_GET['user']); //no default
/* connect to the db */
global $wpdb;
/* create one master array of the records */
$posts = array();
$the_query = new WP_Query( "author=$user_id&showposts=$number_of_posts" );
while ( $the_query->have_posts() ) : $the_query->the_post();
// add any extras that you would like to this array
$posts[] = array('title'=> get_the_title(),'content'=>get_the_content(),'link'=>get_permalink(get_the_ID()));
endwhile;
/* output in necessary format */
if($format == 'json') {
header('Content-type: application/json');
echo json_encode(array('posts'=>$posts));
}
else {
header('Content-type: text/xml');
echo '<posts>';
foreach($posts as $index => $post) {
if(is_array($post)) {
foreach($post as $key => $value) {
echo '<',$key,'>';
if(is_array($value)) {
foreach($value as $tag => $val) {
echo '<',$tag,'>',htmlentities($val),'</',$tag,'>';
}
}
echo '</',$key,'>';
}
}
}
echo '</posts>';
}
/* reset query */
wp_reset_postdata();
}
http://example.co.uk/json/?user=1&num=3&format=json
PHP CMS Frameworks
May 11, 2015
Read more →
No more posts to load.
About this blog
PHPCMSFramework.com
Tutorials for WordPress, Laravel, Drupal, Joomla, Symfony & more — including AI-powered PHP guides. Publishing since 2012.
Trending posts
- Building a RAG System in Laravel from Scratch
- Steps to create a Contact Form in Symfony With SwiftMailer
- Build an AI Code Review Bot with Laravel — Real-World Use Case
- Build a WhatsApp AI Assistant Using Laravel, Twilio and OpenAI
- CIBB - Basic Forum With Codeigniter and Twitter Bootstrap
- Drupal 7 - Create your custom Hello World module
- Laravel and Prism PHP: The Modern Way to Work with AI Models
- Create Front End Component in Joomla - Step by step procedure
- A step by step procedure to develop wordpress plugin
- Migrating a wordpress website to Joomla website