Archive for the ‘Development’ Category
US Zip Code Search v2.2 Released
We have found a few bugs in the US zip code search module and have made a new release to fix these.
The new module is now updated to fully work with v4.1 and also adds in a few new features.
1. Now the zip code is stored in the listing table instead of the user table. This gives listings the ability to have a different zip code than the user.
2. It ads a new zip code field when adding and modifying the listings.
These new features are only available if you are running 68 Classifieds v4.1.
v4.1 User Notes
A new feature I have been working on for v4.1 is a new user notes system. The current v4.0 line had user notes but it was not setup in the way I really wanted. So I totally redid it and added a few nice features.
The first step to utilize the notes system is to login to the admin and go to the user details page. At the bottom it will say “User Notes” with a paper clip icon. Click that icon to add a new note. On the screen that loads you can add the note text, flag it as important, and select the type.
The note flag determines where it is displayed in the administration. Important notes are shown at the top of the page so it is the first thing that is seen. This also shows on the listings page and the user page. Notes that are not important are shown at the bottom.
The type option is either public or private. Private means it is only seen from the administration where as public is shown to the user on the user index page. This should allow you to basically show a custom message to certain users.
Here is a video showing how to add user notes:
New Translations
From our last post a few weeks ago “Translators Wanted” we had an outstanding amount of comments, emails, and coupons given out. In the next release of 68 Classifieds we will be including the following language files:
- Bosanski
- Bulgarian
- Dutch
- French
- Spanish
Hopefully with us having all these language files it will help current and future customers from having to do a lot of work to get 68 Classifieds running in your language.
Translaters Wanted
We are looking for some people that would be interested in translating a file from English to your language. For anyone that translates the file we will give you a $100 coupon good for anything on this site. We are mainly needing the following languages:
- French
- Spanish
- Dutch
If you are fluent in a different one then we can probably extend the offer to you as well. Please contact us before translating to make sure someone else hasn’t already started.
Here is a link to the file.
Here is a link to instructions for modifying it.
Administration Refferer Check
Inside the administration of v4 we added a new check to prevent people from making post requests to your administration unless it comes from your domain name. This check was added as a security feature to prevent trying to bypass any forms. Although this was added for safety you can by pass it by adding this to the connections/classifieds.php file:
define('NO_REFERRER_CHECK', TRUE);
Adding include templates with modules
Warning: Geek Coding Speak Ahead
New in v4 is the ability to have template hooks which integrate with the module system. This is great for adding new features without having to modify any of the template files themselves. One thing I came across today was wanting to include a template file in the location of the hook.
Inside your mod_user.php file you add a hook function just like normal except make $class_tpl global and return the fetched template. Here is an example:
function example_admin_tpl_userinfo()
{
global $class_tpl;
$include = $class_tpl->fetch('orders/customer_table.tpl');
return $include;
}
Now when the module is installed and the user visits the page with the hook a new template file will be added.









