vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   New Posting Features - Thread Thumbnails (https://vborg.vbsupport.ru/showthread.php?t=214755)

SoloX 12-04-2009 05:51 PM

Quote:

Originally Posted by SoloX (Post 1925243)
Hi,
I have a large forum as well. How can I modify the following to process threads from one particular forum only?

I changed
PHP Code:

FROM " . TABLE_PREFIX . "thread 

to

PHP Code:

FROM " . TABLE_PREFIX . "thread where forumid='14' 

where 14 was my target forum. This way I will only do the forums I need. Maybe useful for larger boards.

SoloX 12-04-2009 06:02 PM

Strange.
My test board worked fine but in production version I am getting the error reported by others:
Quote:

MySQL Error : Mixing of GROUP columns (MIN(),MAX(),COUNT(),...) with no GROUP columns is illegal if there is no GROUP BY clause

SoloX 12-04-2009 06:04 PM

Ohh! I had set it to attachments and possibly I have attachments disabled. :D .. I set it to first image and all is gud in my land. loving it.

SoloX 12-04-2009 07:37 PM

Q folks:
If I have another image tag, say MEDIA, can I do the following?

PHP Code:

preg_match('/\[(img|MEDIA|IMG)\]\s*(https?:\/\/([^*\r\n]+|[a-z0-9\/\\\._\- !]+))\[\/(img|MEDIA|IMG)\]/'$edit['message'], $matches); 

Is there anything else I have to do to read those images?

SoloX 12-05-2009 03:00 AM

If you have RSS posts going to a forum like I do, you will have to do this:
in includes/cron/rssposter.php find
PHP Code:

$threadactiontime = (($feed['threadactiondelay'] > 0) ? (TIMENOW $feed['threadactiondelay']  * 3600) : 0); 

right under it, put
PHP Code:

$pat '/\[IMG\](.*?)\[\/IMG\]/i';
preg_match($pat,$pagetext,$matches);
$thumburl escape_string($matches[1]);
$itemdata->set('thumbnailurl'$thumburl); 


vBB-vietnam 12-05-2009 06:03 PM

Can you update so it can auto show Thread Thumbnail on VBADVANCED

gantonr 12-05-2009 11:14 PM

ok i installed and get this when set to first attachment
Code:

Database error in vBulletin 3.8.4:

Invalid SQL:

                SELECT
                        IF(votenum >= 1, votenum, 0) AS votenum,
                        IF(votenum >= 1 AND votenum > 0, votetotal / votenum, 0) AS voteavg,
                post.pagetext AS preview,
                        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.lastpostid, thread.replycount, IF(thread.views<=thread.replycount, thread.replycount+1, thread.views) AS views,
                        thread.prefixid, thread.taglist, hiddencount, deletedcount
                        , NOT ISNULL(subscribethread.subscribethreadid) AS issubscribed
                        , deletionlog.userid AS del_userid, deletionlog.username AS del_username, deletionlog.reason AS del_reason
                       
                        , threadredirect.expires
                        , MIN(attachment.attachmentid) AS attachmentid
                FROM vbf_thread AS thread
                        LEFT JOIN vbf_deletionlog AS deletionlog ON(thread.threadid = deletionlog.primaryid AND deletionlog.type = 'thread')
                        LEFT JOIN vbf_subscribethread AS subscribethread ON(subscribethread.threadid = thread.threadid AND subscribethread.userid = 1 AND canview = 1)
                       
                        LEFT JOIN vbf_post AS post ON(post.postid = thread.firstpostid)
                       
                        LEFT JOIN vbf_threadredirect AS threadredirect ON(thread.open = 10 AND thread.threadid = threadredirect.threadid)
                        LEFT JOIN vbf_attachment AS attachment ON (attachment.postid = thread.firstpostid AND attachment.extension IN('jpg', 'gif', 'png', 'jpeg', 'bmp'))
                WHERE thread.threadid IN (0,17)
                ORDER BY sticky DESC, lastpost DESC;

MySQL Error  : Mixing of GROUP columns (MIN(),MAX(),COUNT(),...) with no GROUP columns is illegal if there is no GROUP BY clause
Error Number  : 1140
Request Date  : Sunday, December 6th 2009 @ 12:39:28 AM
Error Date    : Sunday, December 6th 2009 @ 12:39:28 AM
IP Address    : 95.132.62.79
Username      : admin
Classname    : vB_Database
MySQL Version : 5.0.51a-24+lenny2+spu1-log

it seems common problem? ;-) how i get rid of it? if you can please simple and step by step ;-)

cheers, Tong.

VBUsers 12-07-2009 06:56 AM

Quote:

Originally Posted by VBUsers (Post 1925281)
when i add this mod i only get 1 thread per page with the image from the first attachment. i did the manual and auto edits to test it out and its doing the same thing.

let me know the steps to fix this and its a great mod for my forum. hopefully we can get it fixed.


anyone on this issue?

SoloX 12-07-2009 02:02 PM

^ check your HTML edits. You are missing either a TD or TR tag.

mykkal 12-08-2009 06:47 AM

This is cool... Question for the creator of the mod. is it possible to be able to define the images for the members?

Just curious...I want to use the mod. I just don't want them to be able to choose any type of image.

Gotta keep control, ya know. This is a really nice mod that could be abused badly.


All times are GMT. The time now is 04:56 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01211 seconds
  • Memory Usage 1,755KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (5)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete