Showing posts with label Joomla. Show all posts
Showing posts with label Joomla. Show all posts

Tuesday, 20 November 2012

Đặt Google Custom Search vào diễn đàn

Đặt Google Custom Search vào diễn đàn, giúp cho diễn đàn bạn có bộ máy tìm kiếm ngon hơn.

Ưu điểm: Kiếm gần như không còn sót lại cái gì có liên quan đến từ khóa.

Khuyết điểm: do phải load thêm Script của Google nên quá trình load sẽ chậm đi ít nhiều. Đã cố gắng hạn chế bằng cách lấy file CSS và JS của Google.

Điều trước hết đòi hỏi bạn phải có một Tài khoảng của Google Mail, nếu chưa có thì tạo một cái, nếu có rồi thì thôi!

https://www.google.com/accounts/NewAccount

Sau đó bạn vào trang này: http://www.google.com/coop/manage/cse/, nhập tài khoản Google Mail vào

Nhấn vào: Create a new search engine

Bước 1: Điền thông tin vào

Mấy phần khác bạn thích điền sao cũng được.

Phần quan trọng là Sites to search: bạn điền dạng *.domain.com

Chổ Select an edition chọn Standard edition

Check vào I have read and agree to the Terms of Service.

Xong xuôi nhấn Next

Bước 2: Check chức năng
Bỏ vài từ vào check thử coi ngon không
Xong xuôi nhấn Finish

Bước 3: Tạo Code để gắn vào diễn đàn

Nó sẽ vào trang quản lý chính: Bạn nhấn vào control panel >> CODE

Ở đây có hai tùy chọn cho bạn:

1. Host the result on a Google page: Dạng này khi Search nó sẽ nhảy kết quả sang trang khác.
2. Host results on your website: : Dạng này sẽ mở kết quả hiện thị ngay trang web của bạn!
* Phần iframe: bỏ qua, vì nó cần hai trang, 1 trang đặt code Search, 1 trang hiển thị kết quả
* Phần overlay: Nó sẽ hiển thị kết quả ngay trong trang web, rất đẹp

Phần này chổ Site URL: nhớ cho domain của diễn đàn vào.

Sau khi chọn xong thì bạn chỉ cần copy phần Code mà nó cho, và Paste vào nơi nào mà bạn muốn đặt khung Search.

Công việc như vậy gần như là hoàn tất.

Nếu bạn nào không muốn load file CSS và JS của Google làm diễn đàn load chậm, thì download file đính kèm, upload nó lên host và sửa lại đường dẫn cho đúng với đường dẫn mà bạn mới sửa trong Code.

Ví dụ: Bạn Upload folder cse lên root, ngang với folder admincp

thì trong phần code bạn sửa hai chổ

<br /> @import url(http://www.google.com/cse/api/overlay.css);<br />

Xóa bỏ:

http://www.google.com/

Download file

http://170288.com/files/cse.rar

http://files.myopera.com/kuheo/files/cse.rar

Saturday, 7 April 2012

Sửa lỗi "JFolder::create: Path not in open_basedir paths"

* JFolder::create: Path not in open_basedir paths
* Warning! Failed to move file.

Mở file configuration.php, thay đổi đường dẫn theo định dạng dưới đây
var $log_path = '/home/xuxuvn/public_html/logs';
var $tmp_path = '/home/xuxuvn/public_html/tmp';

Phần đường dẫn mỗi host đều khác nhau, bạn login vào host tìm Home Directory

Chúc các bạn thành công

Thursday, 1 December 2011

Code để trỏ sang trang mới

"<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

<!-- <meta http-equiv="Refresh" Content="0; url=/chiakhoavang.net/index.php"> -->
<meta http-equiv="Refresh" Content="0; url=http://chiakhoavang.net/index.php">"

Thursday, 24 November 2011

Bỏ header trong com_jdownload

Mở file component/com_jdownload/jdownload.php

Tìm đến dòng 76
Xóa " $page_title = $document->getTitle( 'title'); "
Chúc bạn thành công

CHÚ Ý:
CHỨC NĂNG FRONTEND CONFIGURATION -> Title to be used as header SẼ KHÔNG CÒN TÁC DỤNG

Tuesday, 1 November 2011

Remove Listbingo footer

administrator/components/com_listbingo/addons/system/sendmail.php
Delete dòng 145 - 151


?>

How to Remove Jcomments Footer Link

How to Remove Jcomments Footer Link

We know at the bottom of the jcomments box is the text Jcomments and it takes to http://www.joomlatune.com/, how to remove it?
Look in file tpl_index.php
\com_jcomments_v2.0.0.16\tpl\default\tpl_index.php

in the Line 56 displays the support variable (which is set elsewhere)


Either delete that line or comment-out that line.
That should remove the link display completely.

How to remove SOBI2 footer link

Find

mysite.com\components\com_sobi2\frontend.class.php

Find 454 line and 455 line

Replace 'P' . 'o' . 'w' . 'e' . 'r' . 'e' . 'd' . ' ' . 'b' . 'y' . ' ' . '<' . 'a ' . 'title' . '="' . 'S' . 'O' . 'B' . 'I' . '2' . ' - ' . 'J' . 'o' . 'o' . 'm' . 'l' . 'a' . ' ' . 'D' . 'i' . 'r' . 'e' . 'c' . 't' . 'o' . 'r' . 'y' . ' ' . 'C' . 'o' . 'm' . 'p' . 'o' . 'n' . 'e' . 'n' . 't' . '" h' . 'r' . 'e' . 'f="h' . 't' . 't' . 'p' . ':' . '/' . '/' . 'w' . 'w' . 'w' . '.' . 's' . 'i' . 'g' . 's' . 'i' . 'u' . '.n' . 'e' . 't/' . 's' . 'ob' . 'i2.ht' . 'ml' . '" ' . 't' . 'a' . 'rg' . 'et' . '="_' . 'b' . 'l' . 'a' . 'nk' . '">S' . 'i' . 'g' . 's' . 'i' . 'u.N' . 'E' . 'T'; = null;

You will see:
$h [0] = null;
$h [1] = null;

Tạo tài khoản đăng nhập bằng Google cho Joomla

vào trang https://rpxnow.com, đăng ký 1 tài khoản miễn phí, dùng code add vào web.

Thêm nút Google +1 vào Joomla

Could one the knowledgable people on here let me know where to put the google code for google +1 on Joomla...







Thank You...

Code nut scroll to top

Code tạo nút logout trong joomla

Logou t

index.php?option=com_user&task=logout&return=Lw

Remove joomsef footer 4.1.0

Mở file joomsef.php, tìm đến dòng 2320, thay thế từ dóng 2320 đến 2327 bằng code sau:
$cacheBuf2 = ' ';
Chúc bạn thành công

Thay hình key.jpg trong login joomla

1./ Tạo 1 file hình mới với tên key.png và lưu vào thư mục images/stories

2./ Mở file: component/com_user/views/view.html.php
Tìm đến dòng 67,68, đổi tên key.jpg thành key.png

Sửa giao diện admin trong joomla

1./ Sửa đồ họa
Vào administrator/templates/khepri/images
Thay logo, hình ảnh, theo ý của bạn. Chú ý đúng kích thước file png
2./ Sửa code
MỞ file administrator/templates/khepri/images/login.php. Tìm sửa và thay text mà mình mong muốn
Sửa footer: tìm đến dòng 90, sửa, thay thế text bạn muốn vào các dòng 91, 92, 93. Chú ý phải đúng chính xác code.

CHÚC CÁC BẠN THÀNH CÔNG

Sửa copyright footer giao dien admin joomla

1./ Mở file administrator/templates/khepri/images/login.php
Tìm đến dòng 92, thay code mình mong muốn tại 2 dòng 92 và 93. CHÚ Ý phải tuyệt đối đúng code nhé

2./ Mở file administrator/templates/khepri/images/index.php
Tìm đến dòng 117, thay code mình mong muốn tại 2 dòng 117 và 118. CHÚ Ý phải tuyệt đối đúng code nhé

2./ Mở file administrator/templates/khepri/images/cpanel.php
Tìm đến dòng 103, thay code mình mong muốn tại 2 dòng 103 và 104. CHÚ Ý phải tuyệt đối đúng code nhé

CHÚC CÁC BẠN THÀNH CÔNG

Remove ace sef footer

VỚI ACESEF 1.3.5
Go to and open file /administrator/components/com_acesef/classes/routertools.php
Tìm đến dòng 640
Xóa "5rIj5BY2VTRUY8L2E+PC9".


VỚI ACESEF 1.5.4
Go to and open file /administrator/components/com_acesef/library/uri.php
Tìm đến dòng 919, 913, 918, 919
Xóa "key"

VỚI ACESEF 1.5.5
Go to and open file /administrator/components/com_acesef/library/uri.php
Tìm đến dòng 1837
Xóa "key"

CHÚ Ý: CHỈ XÓA PHẦN TRONG NGOẶC ĐƠN

Cách khác, tìm đến key $BB, thêm code /*đầu dòng và code */ cuối dòng


Chúc bạn thành công

Bỏ header trong com_jdownload

Mở file component/com_jdownload/jdownload.php

Tìm đến dòng 76
Xóa " $page_title = $document->getTitle( 'title'); "
Chúc bạn thành công

CHÚ Ý:
CHỨC NĂNG FRONTEND CONFIGURATION -> Title to be used as header SẼ KHÔNG CÒN TÁC DỤNG

Remove footer jdownloads

Option 1 - Modify the component file
We need to open file with current path /site_root/components/com_jdownloads/jdownloads.php and comment out the code that generates the Powered By HTML.
Because of the old architecture, file has over 4,000 lines of code. You need to find line 2912 or so, I am using jDownloads 1.7.5 Stable Build 775. The line might be different depending on the version that you are using, but it will be around there...
You need to find the following code
1.
$b_link = JText::_('JLIST_PRODUCT_FOOTER');
2.
if ($b_link) {
3.
$footer .= '';
4.
}

and comment it out so it looks like this
1.
/*
2.
$b_link = JText::_('JLIST_PRODUCT_FOOTER');
3.
if ($b_link) {
4.
$footer .= '';
5.
}
6.
*/

Option 2 - Modify the language file for the Front-End

In option 1 you might noticed that there is a codition that checks is $b_link variable is set before adding Powered By text to the footer. To remove the Powered By text we need to set the JLIST_PRODUCT_FOOTER to empty string in the language file. In PHP empty string is evaluated to false and therefore will not fall into the condition to add Powered By text.
Open file located at /site_root/languages/en-GB/en-GB.com_jdownloads.ini
Find JLIST_PRODUCT_FOOTER around line 15
1.
JLIST_PRODUCT_FOOTER=Powered by jDownloa ds
and change it to
1.
JLIST_PRODUCT_FOOTER=

Do not comment JLIST_PRODUCT_FOOTER out because it will be translated to "JLIST_PRODUCT_FOOTER" which will evaluate to true and will display Powered By text. You have to set the value to empty.

Loại bỏ footer của Jfqa

Mở file jfaq. tìm đến dòng 524, xóa 3 dòng 524 - 525 - 526. là 3 dòng này

$secure1 = 'Develope&# 100; by';
$secure2 = 'tutorial&# 101;.scridap& #114;est.ro';
$secure3 = 'Scrida Pr ;est';

lưu lại.