Joomla
Cách sửa lỗi không hiển thị hình ảnh khác của virtuemart (IE7)
by saosangmo on Dec.07, 2009, under Joomla
Khi xem trang thông tin sản phẩm: sẽ chỉ nhìn thấy 1 ảnh khác của sản phẩm đó. Nguyên nhân là phần tag image của mọi ảnh khác đều được đặt trên 1 dòng. –> fix lỗi này đơn giản là tìm tới file theme.php trong thư mục theme/default và sửa đoạn: (continue reading…)
Thay thế lightbox của Virtuemart thành shadowbox
by saosangmo on Oct.14, 2009, under Joomla
Nếu bạn thích Shadowbox hơn là lightbox, trước tiên bạn cài đặt nó lên Joomla đang sử dụng và hack theo hướng dẫn dưới đây để lightbox (slimbox) mặc định của Virtuemart không làm thừa dung lượng trang tải về máy của người dùng.
Trước tiên cần mở file htmlTool.class.php trong /administrator/components/com_virtuemart/classes/
(continue reading…)
Hiển thị loại tiền tệ gốc trong Virtuemart
by saosangmo on Oct.12, 2009, under Joomla
Việc hack này sẽ giúp bạn hiển thị loại tiền do bạn nhập vào trong phần backend. Đô, Euro hay VNĐ. Chỉ hiển thị 1 loại tiền cho 1 sản phẩm chứ không phải hiển thị song song các loại tiền cho một sản phẩm
(continue reading…)
Thêm 1 trường vào form liên hệ sản phẩm
by saosangmo on Oct.09, 2009, under Joomla
Đa số các shop của Việt Nam là không có thanh toán trực tuyến, vì thế, form hỏi thông tin sản phẩm lại hữu dụng. Form này được xuất hiện khi bạn đặt chế độ của shop là catalog mode hoặc là không có giá cho sản phẩm. File template cần thao tác chính là components/com_virtuemart/themes/default/templates/pages/shop.ask.tpl.php (continue reading…)
Sử dụng GZIP trong template để tăng tốc cho Joomla
by saosangmo on Apr.24, 2009, under Joomla
Compression is a quick and efficient way to save your server bandwidth and speed up your website load time. By adding a piece of PHP code to the top of your Joomla generated Web pages, you can instruct the Web server to compress files for transit to your visitors’ Web browser. This is especially useful for text-heavy Web pages that are over 100K in size.
(continue reading…)
Hack TinCaptcha for Adsmanager Component
by saosangmo on Mar.04, 2009, under Joomla
I’m writting the tut which helps you enable the captch verification whenever guest users post their new ads.
1) Download TinCaptcha plugin and component here: http://joomlacode.org/gf/project/tincaptcha/frs/
2) Install them
3) Enable System – TinCaptcha Plugin
4) Open your adsmanager.php and search the line:
// store it in the db
5) add before:
// tincaptcha - saosangmo hacked
$user =& JFactory::getUser();
if (JPluginHelper::isEnabled('system', 'tincaptcha') && $user->get('guest'))
{
$captchk = plgSystemTincaptcha::check(JRequest::getVar('captcha', '', 'post'));
if (($captchk !== true)&&($my->id == "0"))
{
JError::raiseWarning(0, $captchk);
return false;
}
}
// tincaptcha - saosangmo hacked
6) open your adsmanager.html.php file, search the line
<input type="submit" value="<?php echo ADSMANAGER_FORM_SUBMIT_TEXT; ?>" />
add before
<?php //tincaptcha hacked by saosangmo ?> <?php if ((JPluginHelper::isEnabled('system', 'tincaptcha'))&&($my->id == "0") ) { echo " <label for=\"captcha\"> " . JText::_( 'TIN_CAPTCHA' ) . "</label> <input type=\"text\" name=\"captcha\" id=\"captcha\" size=\"10\" class=\"inputbox required\" value=\"\" />" . "<img src=\"index.php?option=com_tincaptcha&task=captcha_display\" />"; } ?> <?php //tincaptcha hacked by saosangmo ?>
done!
Notice: this captcha only is enabled when guest post a new ads. When they have logged in, the captcha is not effective!
10 Easy Ways to Professionalise Your Joomla Site
by saosangmo on Feb.20, 2009, under Giao diện - đồ họa web, Joomla
- Create a new favicon.ico. Yes, the default black Joomla logo is pretty, but people bookmarking your site they need to see a icon that identifies your site rather than Joomla or others using Joomla default icon. If you don’t want to design on a 16×16 pixels scale, there are sites that will generate a favicon for you. Then upload it to /template/<your_template_name>/favicon.ico (continue reading…)
Hacking the Virtuemart Search Engine
by saosangmo on Feb.03, 2009, under Joomla
As mentioned in an earlier post, I’m currently developing an e-commerce site for the company I work for. I toyed with the idea of writing it from scratch but thought I’d investigate some open source solutions first. I finally settled on a combination of Joomla! for the CMS (content management system) and Virtuemart for the shopping cart solution. The upshot of all this is that the majority of the work has been done for you. You then just have to bend it to your will! That’s not always an easy task though! Anyway, one downside to the Virtuemart shopping cart software is it’s search engine. It has what I consider to be three, rather large flaws: (continue reading…)
Top 3 SEO plugins for any joomla 1.5 Website
by saosangmo on Jan.24, 2009, under Joomla, SEO
When it comes to SEO (Search Engine Optimisation) many people have no idea why they should implement it and how it can effect there site. Properly implemented SEO can increase your websites search engine rankins on multiple keywords and will increase your traffic.
I will go through a list of 3 plugins and or modules you should install on your joomla 1.5 website to increase it’s visibility on themajor search engines. (continue reading…)
Fix lỗi trùng đường dẫn trong virtuemart 1.1.2-breadcrumbs duplicate
by saosangmo on Jan.16, 2009, under Joomla
updatee, để khắc phục lỗi pathway khi bạn tạo menu liên kết trực tiếp tới 1 category thì như sau:
mở
administrator/components/com_virtuemart/html/shop.product_details.php
Comment dòng 157 thành như sau:
// Set the CMS pathway (continue reading…)
//$vm_mainframe->vmAppendPathway( $pathway );
