Main Menu arrow Forum
Diễn đàn
Welcome, Guest
No account yet?. Please Register.    Lost Password?
Re:Thử viết Extensions cho "native joomla 1.5" (1 viewing) (1) Guest
Go to bottom Post Reply Favoured: 0
TOPIC: Re:Thử viết Extensions cho "native joomla 1.5"
#210
support (Moderator)
Mạng xã hội học tập
Moderator
Posts: 155
graphgraph
User Offline Click here to see the profile of this user
Gender: Male Location: Hà thành Birthdate: 1977-07-04
Thử viết Extensions cho "native joomla 1.5" 4 Months, 3 Weeks ago Karma: 0  
Trước tiên là mosiframe
Xem hướng dẫn chi tiết:
http://dev.joomla.org/component/opt...id,plugins:create_plugin/

Tham khảo từ:
File Attachment:
Please login to download the file!
File Size: 37567


Demo: http://kulkul.xahoihoctap.net/index...emo&catid=3:newsflash

Download: http://luyenkim.net/home9/index.php...id=61&Itemid=88889168

Các sự kiện khi thao tác plugin cho Content gồm có: onPrepareContent, onAfterDisplayTitle, onBeforeDisplayContent, onAfterDisplayContent.

Tham khảo thêm: http://vivociti.com/content/view/52/1/
 
Report to moderator   Logged Logged  
 
Nhóm hỗ trợ - Supporting Group
  The administrator has disabled public write access.
#225
support (Moderator)
Mạng xã hội học tập
Moderator
Posts: 155
graphgraph
User Offline Click here to see the profile of this user
Gender: Male Location: Hà thành Birthdate: 1977-07-04
Trả lời: Thử viết Extensions cho "native joomla 1.5" 4 Months, 2 Weeks ago Karma: 0  
Có 1 vấn đề nhỏ là phân tích tham số trong {_iframe ...}
Ví dụ:
{_iframe width="100" height="100"}url{/iframe}

Thuật toán xử lý như sau:
  1. Xóa các dấu cách kép ** chỉ còn *, và xóa tất cả các dấu cách ở đầu và cuối các tham số.
  2. Thay thế =*" bằng =", và thay thế ="* bằng =", và *"* bằng "*. Trong đó * là dấu cách
  3. match tất cả các tham số word1="word2".
    Nếu sử dụng hàm parse_str, thì thay thế "* bằng &, thay thế =" bằng =, và cuối cùng thay thế * bằng +

Nghĩa là sao cho nhập thế này nó vẫn OK:


Chỉ cần hàm này là xong: JUtility :: parseAttributes()

{iframe width= "300 " height=" 200 "]http://xahoihoctap.net{/iframe}

Xem thêm:
http://kr2.php.net/manual/en/function.parse-str.php
Ví dụ sử dụng hàm parse_str:


Bản mới nhất đã có thể sử dụng tham số trong thẻ {_iframe ...}
File Attachment:
Please login to download the file!
File Size: 3297
 
Report to moderator   Logged Logged  
 
Nhóm hỗ trợ - Supporting Group
  The administrator has disabled public write access.
#236
support (Moderator)
Mạng xã hội học tập
Moderator
Posts: 155
graphgraph
User Offline Click here to see the profile of this user
Gender: Male Location: Hà thành Birthdate: 1977-07-04
Trả lời: Thử viết Extensions cho "native joomla 1.5" 4 Months, 2 Weeks ago Karma: 0  
Chuyển mod này sang Joomla 1.5: http://www.magictoolbox.com/magiczoom_joomla/

Xem cách nhúng: http://www.magictoolbox.com/magiczoom_integration/

Đã chuyển xong về mambot, chỉ cần chỉnh sửa 1 chút là chạy đúng ý:
Please login to view this content!

Demo: http://xahoihoctap.net/home/index.p...latest-news&Itemid=50
 
Report to moderator   Logged Logged  
 
Nhóm hỗ trợ - Supporting Group
  The administrator has disabled public write access.
#238
support (Moderator)
Mạng xã hội học tập
Moderator
Posts: 155
graphgraph
User Offline Click here to see the profile of this user
Gender: Male Location: Hà thành Birthdate: 1977-07-04
Trả lời: Thử viết Extensions cho "native joomla 1.5" 4 Months, 2 Weeks ago Karma: 0  
Plugin này có hướng dẫn thêm TAG cho Joomla 1.5
Please login to view this content!
Custom Head Tag for 1.5

version : 1.0.0
Copyright (C) 2008 Joomler!.net All rights reserved.
access: This e-mail address is being protected from spam bots, you need JavaScript enabled to view it
link: http://www.joomler.net/
license: http://www.gnu.org/copyleft/gpl.html GNU/GPL

About Custom Head Tag

The work that this extension does.

* Output your scripts to head tag.
* Output your style to head tag.

Setting

* Menu ID
Please input the menu ID that output custom tag.
Example:1,3,7
* Content ID
Please input the content ID that output custom tag.
Example:1,3,7
* Output
When you set it in ALL, custom tag is output by all pages.
* Path : Javascript
Please input path after the site URL. In the case of the plural number, please divide it at a new line.
Eexample:modules/mod_example/javascript/example.js
* Script : Javascript
Please input the custom javascript.
Example:alert('Example' ) ;
* Path : Style
Please input path after the site URL. In the case of the plural number, please divide it at a new line.
Eexample:modules/mod_example/style/example.css
* Style : Style
Please input the custom style.
Example:div#example{display:hidden}

Download at: http://www.joomler.net/component/op.../task,doc_details/gid,53/

Đặt Title trong Jooma l1.5 - lời gọi từ plugin, chắc gọi từ com cũng OK:
Code:

$document= & JFactory::getDocument();
$document->setTitle($row->alias);


Ngoài ra:
Code:

global $mainframe;
// if it's administrator section, then do nothing
if ( $mainframe->isAdmin() ) {
return;
}
$mainframe->getCfg('sitename')

Hoặc
$document = JFactory::getDocument();
$oldtitle = $document->getTitle();
$newtitle ="Do something here!";
$document->setTitle( $newtitle );
 
Report to moderator   Logged Logged  
 
Nhóm hỗ trợ - Supporting Group
  The administrator has disabled public write access.
#264
support (Moderator)
Mạng xã hội học tập
Moderator
Posts: 155
graphgraph
User Offline Click here to see the profile of this user
Gender: Male Location: Hà thành Birthdate: 1977-07-04
Thử viết Extensions cho "native joomla 1.5" - Hướng dẫn chi tiết XD component 4 Months ago Karma: 0  
File Attachment:
Please login to download the file!
File Size: 310389


Hướng dẫn bằng tiếng Việt - bản dịch!
 
Report to moderator   Logged Logged  
 
Nhóm hỗ trợ - Supporting Group
  The administrator has disabled public write access.
#295
support (Moderator)
Mạng xã hội học tập
Moderator
Posts: 155
graphgraph
User Offline Click here to see the profile of this user
Gender: Male Location: Hà thành Birthdate: 1977-07-04
Re:Thử viết Extensions cho "native joomla 1.5" - Hướng dẫn chi tiết XD component 4 Months ago Karma: 0  
Gồm 1 mod và 1 plugin - sử dụng để modify MosExtranews cho joomla 1.5
File Attachment:
Please login to download the file!
File Size: 8765
 
Report to moderator   Logged Logged  
 
Nhóm hỗ trợ - Supporting Group
  The administrator has disabled public write access.
#218
support (Moderator)
Mạng xã hội học tập
Moderator
Posts: 155
graphgraph
User Offline Click here to see the profile of this user
Gender: Male Location: Hà thành Birthdate: 1977-07-04
Trả lời: Thử viết Extensions cho "native joomla 1.5" 4 Months ago Karma: 0  
 
Report to moderator   Logged Logged  
 
Nhóm hỗ trợ - Supporting Group
  The administrator has disabled public write access.
#384
support (Moderator)
Mạng xã hội học tập
Moderator
Posts: 155
graphgraph
User Offline Click here to see the profile of this user
Gender: Male Location: Hà thành Birthdate: 1977-07-04
Re:Thử viết Extensions cho "native joomla 1.5" 2 Months, 3 Weeks ago Karma: 0  
Tham khảo API cho Simplepie: http://simplepie.org/wiki/reference/start

Ứng dụng chủ yếu cho việc lấy tin RSS và bóc tách thông tin RSS.


 
Report to moderator   Logged Logged  
 
Nhóm hỗ trợ - Supporting Group
  The administrator has disabled public write access.
#439
abc2z2 (User)
Gold Boarder
Posts: 258
graph
User Offline Click here to see the profile of this user
Gender: Female Birthdate: 1987-01-01
Re:Thử viết Extensions cho "native joomla 1.5" 2 Months ago Karma: 1  
Joomla! 1.0.x Fading Content from Category Modul

Demo: http://www.mediahof.de/cms/open-sou...ntent-from-category-modul

File Attachment:
Please login to download the file!
File Size: 2598


Mod này hay nên chuyển sang J 1.5.x
 
Report to moderator   Logged Logged  
 
'Hello' & "Good day!"
Xin chào các bạn
  The administrator has disabled public write access.
#442
support (Moderator)
Mạng xã hội học tập
Moderator
Posts: 155
graphgraph
User Offline Click here to see the profile of this user
Gender: Male Location: Hà thành Birthdate: 1977-07-04
Re:Thử viết Extensions cho "native joomla 1.5" 1 Month, 4 Weeks ago Karma: 0  
 
Report to moderator   Logged Logged  
 
Nhóm hỗ trợ - Supporting Group
  The administrator has disabled public write access.
Go to top Post Reply
Powered by FireBoardget the latest posts directly to your desktop
Generated in 1.67647 Seconds