The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
![]()
I am Running Logician's WebTemplates, and I can't figure out how to edit this Query so that it only grabs the first 200 characters from p.pagetext
Does anyone know how this can be done? [sql] SELECT t.threadid, t.title, t.firstpostid, t.lastpost, t.replycount, t.postusername, t.postuserid, t.lastposter, t.dateline, t.views, p.pagetext FROM " . TABLE_PREFIX . "thread t LEFT JOIN " . TABLE_PREFIX . "post p ON p.postid = t.firstpostid WHERE t.forumid = '146' AND t.open = '1' AND t.visible = '1' ORDER BY t.dateline DESC LIMIT 0 , 15 [/sql] |
#2
|
||||
|
||||
![]()
[sql]
SELECT t.threadid, t.title, t.firstpostid, t.lastpost, t.replycount, t.postusername, t.postuserid, t.lastposter, t.dateline, t.views, LEFT(p.pagetext,200) as pagetext FROM " . TABLE_PREFIX . "thread t LEFT JOIN " . TABLE_PREFIX . "post p ON p.postid = t.firstpostid WHERE t.forumid = '146' AND t.open = '1' AND t.visible = '1' ORDER BY t.dateline DESC LIMIT 0 , 15 [/sql] |
#3
|
||||
|
||||
![]()
Thanks
![]() |
#4
|
|||
|
|||
![]()
And for future reference, a decent reference (PHP's is better but not applicable): http://www.mysql.com/doc
|
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|