indexu.com

developer blog

SMTP mail doesn’t work

Indexu use phpmailer class to send email. By default it use mail() function. Inside admin panel, there is an option to switch to use SMTP instead if mail().
Phpmailer use socket connection to connect to SMTP mail server. So before you use it, make sure your webhost allow fsockopen() function. It this function is disabled, then [...]

Custom category listing in browse.html

In earlier post, I show you how to create custom category listing in front page. Now will show you how to create custom category listing in category pages (browse.html). The real challenge here is to construct the category path as we are deep inside category level.
First, you need to remove this tag from browse.html

<%$category%>

Then replace [...]

Language code, add .utf8 if it doesn’t work

Usually language code is constructed like es_ES or fr_FR. However in some servers, usually on linux box, the server locale code need explicitly add .utf8. So if you have problem with strange characters where utf8 doesn’t work. Do the following steps:
1) rename the language folder, add .utf8.

/lang/es_ES.utf8
/lang/fr_FR.utf8

2) language switching also need to be modified to:

http://www.nicecoder.com/testrial/upload/set_language.php?lang_id=es_ES.utf8&back=/testrial/upload/

Notice [...]

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;">
[...]