PDA

View Full Version : Thread Thumb From [img] vB



admin
30-04-2010, 12:07 PM
Features

Automatically get photos in the topic , should not be taken from file attach or insert a thumb filed a post again when
If you do not have the card in all [img] tag it will get the [youtube] youtube to acquire images of the thumb as
You can customize the small size of the thumb with each option box

Installation

Import XML file (as product): AdminCP > Plugin System > Manage Products > [Add/Import Product]
product-thumbs_forumdisplay.xml

Edit template

Open template threadbit

Find:

"></a>

Replace:

{vb:raw thread.chip_thumb}</a>

Save ... Done http://www.vbulletin.org/forum/images/smilies/up.gif

Screenshots
http://img.photo.zing.vn/file_uploads/gallery/1024x768/2010/04/30/12/14921272604017.jpg

gialac
31-05-2011, 06:40 PM
Khi cài xong thì email khi install Vbb liên tục nhận thông báo này


Database error in vBulletin 4.1.2:

Invalid SQL:

SELECT
IF(votenum >= 1, votenum, 0) AS votenum,
IF(votenum >= 1 AND votenum > 0, votetotal / votenum, 0) AS voteavg,
post.pagetext AS thumb,
thread.threadid, thread.title AS threadtitle, thread.forumid, pollid, open, postusername, postuserid, thread.iconid AS threadiconid,
thread.dateline, notes, thread.visible, sticky, votetotal, thread.attach, thread.lastpost, thread.lastposter, thread.lastposterid, thread.lastpostid, thread.replycount, IF(thread.views<=thread.replycount, thread.replycount+1, thread.views) AS views,
thread.prefixid, thread.taglist, hiddencount, deletedcount,
user.usergroupid, user.homepage, user.options AS useroptions, IF(userlist.friend = 'yes', 1, 0) AS isfriend





FROM thread AS thread
LEFT JOIN user AS user ON (user.userid = thread.lastposterid)
LEFT JOIN userlist AS userlist ON (userlist.relationid = user.userid AND userlist.type = 'buddy' AND userlist.userid = 0)







WHERE thread.threadid IN (0)
ORDER BY sticky DESC, lastpost DESC;

MySQL Error : Unknown column 'post.pagetext' in 'field list'
Error Number : 1054
Request Date : Tuesday, May 31st 2011 @ 05:58:12 PM
Error Date : Tuesday, May 31st 2011 @ 05:58:12 PM
Script : http://muaban.0511.vn/146/do-thu-cong-qua-tang.html
Referrer :
IP Address : 66.249.68.21
Username : Khách viếng thăm
Classname : vB_Database
MySQL Version :

Admin giúp mình Fix lỗi này với

t8mclub
04-06-2011, 11:47 AM
Bạn từng backup username từ phiên bản cũ và cài mới phải không...?

Tiểu Bá Vương 1404
04-06-2011, 12:10 PM
Bạn từng backup username từ phiên bản cũ và cài mới phải không...?
Chuyện này không liên quan gì đến username hết anh ah !
Anh chỉ cần chú ý :

MySQL Error : Unknown column 'post.pagetext' in 'field list'
Error Number : 1054
Tức là không có column pagetext trong table post, những ai từng code mods vBulletin và sử dụng database đều có thể hiểu rõ vấn đề này.

Với trường hợp của bạn gialac là không có column này hoặc thiếu, lỗi này hay xảy ra trong quá trình import product, giải pháp là gỡ ra và import lại lần nữa !