|
Code hữu ích sử dụng trong lập trình Joomla
|
|
30-12-2009, 08:42 PM
(This post was last modified: 30-12-2009 09:35 PM by support.)
Post: #1
|
|||
|
|||
|
Code hữu ích sử dụng trong lập trình Joomla
Đôi khi bạn muốn tracking các biến và k0 thể theo dõi kết quả của nó, hãy sử dụng chức năng ghi để theo dõi giá trị biến bất kỳ.
Code: function write($the_string ) //Write to a log file for checking what has been done |
|||
|
30-12-2009, 11:33 PM
Post: #2
|
|||
|
|||
|
RE: Code hữu ích sử dụng trong lập trình Joomla
Đang xử lý code sized ảnh cho RSS Feed. Dự định là sized ảnh ngay khi xử lý text nhưng k0 ổn.
Giải pháp là sử dụng dạng On the fly như sau: Code: thumb_img.php?image_link |
|||
|
31-12-2009, 06:13 PM
(This post was last modified: 31-12-2009 06:13 PM by viet4777.)
Post: #3
|
|||
|
|||
|
RE: Code hữu ích sử dụng trong lập trình Joomla
Lấy Itemid hiện thời:
Code: $itemid = @JSite::getMenu()->getActive()->id; |
|||
|
01-01-2010, 04:07 PM
(This post was last modified: 01-01-2010 04:51 PM by support.)
Post: #4
|
|||
|
|||
|
Code hữu ích sử dụng trong lập trình Joomla
Tham khảo từ: http://www.php.net/manual/en/function.pr....php#93694
Code này đã fixed 1 số lỗi khai báo biến. Code: <?phpTham khảo thêm: PHP: Parsing HTML to find Links http://www.the-art-of-web.com/php/parse-links/ http://www.the-art-of-web.com/php/ http://www.web-development-blog.com/arch...match_all/ Ultimate Regular Expression for HTML tag parsing with PHP Code: $regex = "/<\/?\w+((\s+(\w|\w[\w-]*\w)(\s*=\s*(?:\".*?\"|'.*?'|[^'\">\s]+))?)+\s*|\s*)\/?>/i";PHP function for cleaning up HTML and JavaSctipt code - year 2006 Code: <?php |
|||
|
03-01-2010, 07:12 PM
(This post was last modified: 03-01-2010 07:13 PM by support.)
Post: #5
|
|||
|
|||
|
RE: Code hữu ích sử dụng trong lập trình Joomla
Khái niệm về LT trong Joomla:
http://www.mightyextensions.com/knowledg...t-mvc-ajax Kiểm tra host của 1and1.com http://links.1and1faqs.com/check_info.php5 |
|||
|
12-02-2010, 11:03 PM
Post: #6
|
|||
|
|||
|
RE: Code hữu ích sử dụng trong lập trình Joomla
Default youtube video thumbnail for video: - _http://www.youtube.com/watch?v=UpDtDsNJnSo&feature=player_embedded
is -_http://img.youtube.com/vi/UpDtDsNJnSo/default.jpgYou can get more at: http://www.bernzilla.com/item.php?id=848 |
|||
|
14-02-2010, 08:20 PM
(This post was last modified: 14-02-2010 09:05 PM by support.)
Post: #7
|
|||
|
|||
|
RE: Code hữu ích sử dụng trong lập trình Joomla
List all of file with filetype in the directory.
Code: function listFiles( $from = '.', $filetype='mp3') |
|||
|
17-02-2010, 11:13 PM
(This post was last modified: 19-02-2010 10:36 AM by gmail2.)
Post: #8
|
|||
|
|||
|
RE: Code hữu ích sử dụng trong lập trình Joomla
Hiển thị cảnh báo trong Joomla: http://docs.joomla.org/Display_error_mes...nd_notices
Có thể ứng dụng để hiển thị các biến (giá trị, kiểu ...). Cách để track 1 biến là sử dụng hàm print_r. Để in sang dạng text, sử dụng câu lệnh: Code: <pre>Ứng dụng JDate: Code: JFactory::getDate()->toFormat('%a %d %b %Y - %H:%M'); |
|||
|
18-02-2010, 11:56 AM
(This post was last modified: 27-02-2010 11:18 AM by support.)
Post: #9
|
|||
|
|||
|
RE: Code hữu ích sử dụng trong lập trình Joomla
Call a plugin/plugins in a module: - only for 'content'
Code: $articledata = JTable::getInstance('content'); //Get the tableĐã ứng dụng code trên để viết thành Joomla 1.5.x module. Download at here or at http://kulkul.xahoihoctap.net/kho-tai-li...info&id=19 |
|||
|
18-02-2010, 10:28 PM
(This post was last modified: 21-02-2010 11:03 AM by admin.)
Post: #10
|
|||
|
|||
|
RE: Code hữu ích sử dụng trong lập trình Joomla
Google Weather API: http://www.googleapihelp.com/2009/08/goo...r-api.html
Yahoo Weather API: http://developer.yahoo.com/weather/ Code xử lý file mp3: http://getid3.org/ và http://www.sourcerally.net/Scripts/20-PHP-MP3-Class Hợp tuyển các scripts: http://www.sourcerally.net/ |
|||
|
« Next Oldest | Next Newest »
|
| Possibly Related Threads... | |||||
| Thread: | Author | Replies: | Views: | Last Post | |
| viet4777.vatlieu.us JA T3 Framework v2 based Joomla website | support | 0 | 122 |
07-08-2010 04:11 PM Last Post: support |
|
| Danh mục các useful Joomla 1.5.x extension hữu ích | support | 1 | 989 |
26-02-2010 10:27 PM Last Post: support |
|
| Ứng dụng phpThumb for imagesized and RSS Plugins | support | 0 | 357 |
28-12-2009 09:29 PM Last Post: support |
|
| Content - Joomla Imagesized Plugin - old version | support | 3 | 2,444 |
23-12-2009 02:38 PM Last Post: support |
|
| Hướng dẫn xây dựng 1 component Joomla 1.5.x | gmail2 | 0 | 990 |
20-09-2009 03:21 PM Last Post: gmail2 |
|
| INI setting plugin (ini_set) for Joomla | support | 0 | 1,356 |
27-04-2009 06:29 PM Last Post: support |
|
| Forum Permissions |
| You cannot post new threads. You cannot post replies. You cannot post attachments. |
| HTML is turned off. MyCode is turned on. Smilies are turned on. [img] is turned on. |

Portal
Webmail
Search
Member List
Calendar
Help
Tagpad

































-_http://img.youtube.com/vi/UpDtDsNJnSo/default.jpg