indexu.com

developer blog

Category: Tutorial

Setting up new mysql database with cpanel

Today I will show you a basic instruction how to setup a new mysql database for your indexu directory by using cpanel.
1) Open cpanel page, usually something like www.domain.com:2082, then enter your username and password that are provided by your hosting account.
2) Click on manage mysql database

3) Create a new mysql database

4) Create a [...]

Show listing in two columns or more

Bored to have listing in single column? I will show you how to make listing in multiple columns.
Edit rows.html, clean the codes and replace with:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<%if $number % 2 eq 1%>
<div class="row_nl">
<%/if%>
 
<div class="row_item myrow">
<img src="http://open.thumbshots.org/image.aspx?url=<%$url%>" alt="<%$title%>" style="border:1px solid #777;">
[...]

Show category listing as list of images

In this tutorial I will show you how to create an alternative category listing in front page where the categories will be listed as a series of images.
1) Prepare the image files. Create a folder called ‘cat‘ in template folder. Then put the images files here.
2) Edit category image file for each categories with [...]

Adding dynamic gmap with navigation and zooming

As many of you request how to replace the static gmap image with dynamic gmap which allow navigation and zooming, I made some test how to do this for the easiest way.
Ok. This is the easiest way. We only need to change the template files. Actually only 2 files.
Edit header.html, usually we use

<body>

but now [...]