Luyenkim.Net!

...where your idea grows!

 
  • Decrease font size
  • Default font size
  • Increase font size
Trang chủ arrow DIỄN ĐÀN
Luyện kim
Banner
Re: Thêm button mới cho Fireboard để thể hiện video Youtube, Google và Slideshare (1 viewing) (1) Guest
Go to bottom Post Reply Favoured: 0
TOPIC: Re: Thêm button mới cho Fireboard để thể hiện video Youtube, Google và Slideshare
#665
support
(Moderator)
Nhóm hỗ trợ
Moderator
Posts: 697
graph
User Offline Click here to see the profile of this user
Gender: Male Luyenkim.NET luyenkimnet Location: Hà Nội Birthdate: 1977-04-07
Thêm button mới cho Fireboard để thể hiện video Youtube, Google và Slideshare 1 Year, 2 Months ago Karma: 4  
Bài của clanspot.

Nào chúng ta bắt đầu:

Chú ý:
1. Bạn hãy chắc chắn là đã mở chức mambot cho Joomla. Và bạn đã cài đặt AllVideos, nếu chưa kích vào link sau để download và cài đặt cho AllVideos Plugin.

2. Cần nhớ là, khi bổ sung các nút lệnh video sử dụng mambot, nhớ sử dụng "{" thay cho "[". Tại sao? Bởi vì đó là cách Mambot xử lý dữ liệu chứ không phải do ngôn ngữ lõi của Fireboard.

3. Các file sẽ đựoc sử dụng để hack:
administrator/components/com_fireboard/language/vietnamese.php hoặc english.php
components/com_fireboard/template/default/smile.class.php
components/com_fireboard/sources/fb_bb.js.php

[b]A. Thêm đoạn code sau vào file ngôn ngữ:[/b]


B. kiểm tra và soạn file smile.Class.php:
Tìm đoạn mã:
Code:


input type = "button" class = "button" accesskey = "h"
name = "addbbcode24" value = "Hide" style = "text-decoration: underline; "
onclick = "bbstyle(20)" onmouseover = "helpline('h')"


Và thêm ngay sau đoạn code trên:
Code:


Youtube:
input type = "button" class = "button" accesskey = "y"
name = "addbbcode26" value = "Youtube" style = "text-decoration: underline; "
onclick = "bbstyle(22)" onmouseover = "helpline('y')"

Google:
input type = "button" class = "button" accesskey = "g"
name = "addbbcode28" value = "Google" style = "text-decoration: underline; "
onclick = "bbstyle(24)" onmouseover = "helpline('g')"

Slideshare:
input type = "button" class = "button" accesskey = "s"
name = "addbbcode30" value = "Slideshare" style = "text-decoration: underline; "
onclick = "bbstyle(26)" onmouseover = "helpline('sl')"


Nếu bạn muốn thêm nhiều hơn các button, hãy copy các dòng trên và thay thế vào đoạn code của bạn trong Smile.Class.php tăng cho addbbcode thêm "2" và bbstyle thêm "2".


C. Sửa đổi file components/com_fireboard/sources/fb_bb.js.php:
*: Thêm vào ngay dưới:
... echo _BBCODE_HIDE ...
thành


**: tìm bbtags = và bổ sang các cặp tuơng ứng google, youtube và slideshare:


Chọn id của Google, Youtube và Slideshare thế nào

Chọn id từ link của video googe sau dấu bằng =, chú ý lấy cả dấu trừ - (nếu có).


Chọn id từ link của Youtube sau dấu bằng =.


Lấy link từ Slideshare:



Bài này cũ rồi, bây giờ sẽ k0 sử dụng mambot cho Fireboard nữa, các chức năng này đã được bổ sung. Thử gửi bài mới để test các tính năng!

Từ 2008-05-21 - Luyenkim.net đã chuyển toàn nộ ứng dụng mambot trên sang code thuần túy của Fireboard. Hãy thử chức năng gử bài để có thêm thông tin.

Bài hướng dẫn sử dụng sẽ được viết sớm nhất!



**********************CHÚC MỪNG BẠN **********************
Vậy là bạn đã tự tạo cho mình các button phù hợp với nội dung diễn đàn.
 
Report to moderator   Logged Logged  
 
  The administrator has disabled public write access.

Liên kết website

http://www.clevermind.com.vn/Thư viện cộng đồngvinaora.comthietbidien.vnLuyenkim.net
#1193
m0ney
(User)
Junior Boarder
Posts: 20
graphgraph
User Offline Click here to see the profile of this user
Trả lời: Thêm button mới cho Fireboard để thể hiện video Youtube, Google và Slideshare 12 Months ago Karma: 0  
chèn clip.vn vao` thi` thê' nao` bác, bác hướng dẫn nhé, cảm ơn
 
Report to moderator   Logged Logged  
 
  The administrator has disabled public write access.
#1197
support
(Moderator)
Nhóm hỗ trợ
Moderator
Posts: 697
graph
User Offline Click here to see the profile of this user
Gender: Male Luyenkim.NET luyenkimnet Location: Hà Nội Birthdate: 1977-04-07
Trả lời: Thêm button mới cho Fireboard để thể hiện video Youtube, Google và Slideshare 11 Months, 4 Weeks ago Karma: 4  
Rất đơn giản:
+ Sửa code của All Video Plugin để nhúng mã code của clip.vn
+ Thay đổi code như trên để có thể nhúng clip.vn vào Fireboard

Sau đây là 1 ví dụ:
http://clip.vn/watch/93T,vn,Toan-ca...agames-24-Ngay-9-12-2007-


Ví dụ Code sử dụng là {_clip.vn}93T,vn,{/clip.vn} hoặc {_clip.vn}93T,vn,0{/clip.vn}.
 
Report to moderator   Logged Logged  
 
  The administrator has disabled public write access.
#1321
sirpham
(User)
Fresh Boarder
Posts: 12
graphgraph
User Offline Click here to see the profile of this user
Trả lời: Thêm button mới cho Fireboard để thể hiện video Youtube, Google và Slideshare 11 Months, 1 Week ago Karma: 0  
Mọi cái có vẻ như là hoàn hảo ??? thế còn cái vụ chèn Video từ Bloggiaothong thì xử lý thế nào bác Việt ???
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#1322
support
(Moderator)
Nhóm hỗ trợ
Moderator
Posts: 697
graph
User Offline Click here to see the profile of this user
Gender: Male Luyenkim.NET luyenkimnet Location: Hà Nội Birthdate: 1977-04-07
Trả lời: Thêm button mới cho Fireboard để thể hiện video Youtube, Google và Slideshare 11 Months, 1 Week ago Karma: 4  
sirpham viết:
Mọi cái có vẻ như là hoàn hảo ??? thế còn cái vụ chèn Video từ Bloggiaothong thì xử lý thế nào bác Việt ???
Copy toàn bộ đoạn code trong phần link src thẻ EMBED của Flash đó vào TAG mambot:
{_swfremote}link to flash file{/swfremote}

Bạn có thể qoute bài viết đó để xem code.
 
Report to moderator   Logged Logged  
 
  The administrator has disabled public write access.
#1323
sirpham
(User)
Fresh Boarder
Posts: 12
graphgraph
User Offline Click here to see the profile of this user
Trả lời: Thêm button mới cho Fireboard để thể hiện video Youtube, Google và Slideshare 11 Months, 1 Week ago Karma: 0  
{_swfremote}
Code:


{/swfremote}

Những hướng dẫn và sự chỉ bảo tận tình của bác em đã làn theo nhưng kết quả vẫn = 0
* Note: Vì lý do hiển thị trên web Tag được để ->{_swfremote} còn trong site em thì ko có cái _ :D cụ thể và rõ như ban ngày để bác có thể nắm bắt tình hình.
Đưa các kiểu thì FB lài cử nhẫm lẫn cả đành đưa kiểu truyền thống & hiện đại vậy. Pák xem chi tiết file đính kèm về đoạn mã mà eim đã làm theo hướng dẫn của pác và kết quả
File Attachment:
Please login to download the file!
File Size: 943
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#1324
support
(Moderator)
Nhóm hỗ trợ
Moderator
Posts: 697
graph
User Offline Click here to see the profile of this user
Gender: Male Luyenkim.NET luyenkimnet Location: Hà Nội Birthdate: 1977-04-07
Trả lời: Thêm button mới cho Fireboard để thể hiện video Youtube, Google và Slideshare 11 Months, 1 Week ago Karma: 4  
Check out kích vào link này để xem code trên website này và so sánh với code gốc của nó.
 
Report to moderator   Logged Logged  
 
  The administrator has disabled public write access.
#1326
sirpham
(User)
Fresh Boarder
Posts: 12
graphgraph
User Offline Click here to see the profile of this user
Trả lời: Thêm button mới cho Fireboard để thể hiện video Youtube, Google và Slideshare 11 Months, 1 Week ago Karma: 0  
support viết:
Check out kích vào link này để xem code trên website này và so sánh với code gốc của nó.
Nói tóm lại em xem xong cái bác đưa cho rồi chăng biết đằng nào mà lần cả
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#1327
sirpham
(User)
Fresh Boarder
Posts: 12
graphgraph
User Offline Click here to see the profile of this user
Trả lời: Thêm button mới cho Fireboard để thể hiện video Youtube, Google và Slideshare 11 Months, 1 Week ago Karma: 0  
Tiện đây cũng cho em hỏi luôn cái việc đưa Audio từ nhacso.net vào diễn đàn hoặc gdty.info etc...
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#1331
support
(Moderator)
Nhóm hỗ trợ
Moderator
Posts: 697
graph
User Offline Click here to see the profile of this user
Gender: Male Luyenkim.NET luyenkimnet Location: Hà Nội Birthdate: 1977-04-07
Trả lời: Thêm button mới cho Fireboard để thể hiện video Youtube, Google và Slideshare 11 Months, 1 Week ago Karma: 4  
Tất nhiên là được.

Bạn làm cái gì đó cho 4rum này đi, ví dụ tài trợ 100$ chẳng hạn, hoặc POST vài bài viết hay ho, từ đó bạn muốn gì mà luyenkim.net có thể sẽ cố gắng giúp bạn. . Nói vui vậy thôi, ai cũng bận rộn cả, luyenkim.net sẽ cố gắng đáp ứng nhu cầu các bạn nếu các nhu cầu thực sự hữu ích sẽ được đáp ứng sớm nhất.
 
Report to moderator   Logged Logged  
 
  The administrator has disabled public write access.
#1372
phuong
(User)
Fresh Boarder
Posts: 16
graphgraph
User Offline Click here to see the profile of this user
Trả lời: Thêm button mới cho Fireboard để thể hiện video Youtube, Google và Slideshare 11 Months ago Karma: 0  
Cho mình hỏi add nhạc mp3 và wma sử dụng link vào thế nào?
có phải là
Code:


?
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#1374
support
(Moderator)
Nhóm hỗ trợ
Moderator
Posts: 697
graph
User Offline Click here to see the profile of this user
Gender: Male Luyenkim.NET luyenkimnet Location: Hà Nội Birthdate: 1977-04-07
Trả lời: Thêm button mới cho Fireboard để thể hiện video Youtube, Google và Slideshare 11 Months ago Karma: 4  
Như đã phân tích ở bài 1 - Fireboard có thể sử dụng các mambot của Joomla. Cho nên có thể sử dụng bất kì TAG mambot nào cho Fireboard.

Riêng với mambot AllVideos Plugin có thể sử dụng các cú pháp sau:
{_mp3}link file nằm trên host - link đường dẫn tuơng đối{/mp3}
{_mp3remote}link file ở các host khác{/mp3remote}
2 cú pháp trên sẽ sử dụng mp3 player dạng flash, nên 1 số file có thể sẽ k0 play được - như là nghe bị nhanh...

Có thể sử dụng cú pháp của wma để sử dụng file audio WMA và MP3 nhúng bởi Windows media player, sẽ play với mọi bitrate.
{_wma}link file nằm trên host - link đường dẫn tuơng đối{/wma}
{_wmaremote}link file ở các host khác{/wmaremote}

Như vậy, chỉ việc áp dụng cách thêm nút ở bài viết này là xong.
(Khi sử dụng nhớ xóa dấu gạch dưới)

Demo:
mp3 sử dụng wmaremote:


mp3 sử dụng mp3remote:

nếu sử dụng mp3 TAG, file audio phải được đặt trong/sau thư mục: images/stories/audio/

Hãy quote bài này để xem code đã sử dụng.
 
Report to moderator   Logged Logged  
 
  The administrator has disabled public write access.
#1375
phuong
(User)
Fresh Boarder
Posts: 16
graphgraph
User Offline Click here to see the profile of this user
Trả lời: Thêm button mới cho Fireboard để thể hiện video Youtube, Google và Slideshare 11 Months ago Karma: 0  
Cám ơn bạn! tiện thể cho mình hỏi .

Mục bài viết mới của mình nó hiện 5 bài, sang bài thứ 6 thì chuyển sang trang 2.. Mình dùng Ie7 khi click sang trang 2 thì ko quay về được trang 1 nữa ..Dùng firefox thì ko sao cả.

Xin chỉ dùm mình cách khắc phục

http://suphamvannam.com/index.php?o...m_fireboard&Itemid=26


test music: