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)

Ghostt 11-02-2009 12:40 PM

Is a fix for the First Image in topic in sight? I realy need it

eak 11-02-2009 01:14 PM

Quote:

Originally Posted by Ghostt (Post 1909394)
Is a fix for the First Image in topic in sight? I realy need it

me too.

1320Nation 11-02-2009 02:07 PM

After updating the mod to the current version, I get the following database error when selecting the "First Attachment" option in the Thumbnail Source part of the mod. The "User Entered URL" and "First Image In Post" options both appear to be working with no problems.

I hope a fix can be found for this error.

PHP Code:

Database error in vBulletin 3.7.3:

Invalid SQL:

        
SELECT 
            
IF(votenum >= 1votenum0) AS votenum,
            IF(
votenum >= AND votenum 0votetotal votenum0) AS voteavg,
         
post.pagetext AS preview,
            
thread.threadidthread.title AS threadtitlethread.forumidpollidopenpostusernamepostuseridthread.iconid AS threadiconid,
            
thread.datelinenotesthread.visiblestickyvotetotalthread.attachthread.lastpostthread.lastposterthread.lastpostidreplycount, IF(views<=replycountreplycount+1views) AS views,
            
thread.prefixidthread.taglisthiddencountdeletedcount
            
            
deletionlog.userid AS del_useriddeletionlog.username AS del_usernamedeletionlog.reason AS del_reason
            
            
threadredirect.expires
            
hasannuser.displaygroupid AS hasanndisplaygidhasannuser.usergroupid AS hasannusergidhuseyinuser.displaygroupid AS huseyindisplaygidhuseyinuser.usergroupid AS huseyinusergidMIN(attachment.attachmentid) AS attachmentid
        FROM board_thread 
AS thread
            LEFT JOIN board_deletionlog 
AS deletionlog ON(thread.threadid deletionlog.primaryid AND deletionlog.type 'thread')
            
            
            
LEFT JOIN board_post AS post ON(post.postid thread.firstpostid)
            
            
LEFT JOIN board_threadredirect AS threadredirect ON(thread.open 10 AND thread.threadid threadredirect.threadid)
                        
LEFT JOIN board_user AS hasannuser ON (thread.lastposter hasannuser.username)
            
LEFT JOIN board_user AS huseyinuser ON (thread.postuserid huseyinuser.userid)LEFT JOIN board_attachment AS attachment ON (attachment.postid thread.firstpostid AND attachment.extension IN('jpg''gif''png''jpeg''bmp'))
        
WHERE thread.threadid IN (0,33703,33677,33670,33669,33646,33625,33624,33612,33611,33609,33597,33594,33590,33578,33570,33569,33565,33552,33540,33530,33529,33516,33499,33498,33487,33484,33471,25660,25688,25725,25655,25945
        
ORDER BY sticky DESClastpost 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  
MondayNovember 2nd 2009 10:56:21 AM
Error Date    
MondayNovember 2nd 2009 10:56:22 AM
Script        
http://www.******.com/forums/forumdisplay.php?f=80
Referrer      http://www.******.com/forums/index.php
IP Address    98.***.***.***
Username      : *** ***
Classname     vB_Database
MySQL Version 
5.0.45 


Ghostt 11-02-2009 02:12 PM

Quote:

Originally Posted by psychobike (Post 1909422)
"First Image In Post" options both appear to be working with no problems.

youre wrong "First Image In Post" isnt working how it should! (image isnt shown after posting)

1320Nation 11-02-2009 02:54 PM

Quote:

Originally Posted by Ghostt (Post 1909426)
youre wrong "First Image In Post" isnt working how it should! (image isnt shown after posting)

If I use the img tags in the first post in the thread, it works on my board.

Once the "First Attachment" is working properly I would like to able to use both the "First Attachment" and "First Image In Post" together as a option. Hopefully Null Parameter will stay on top of this and get it taken care of asap.

Ghostt 11-02-2009 03:08 PM

Quote:

Originally Posted by psychobike (Post 1909435)
If I use the img tags in the first post in the thread, it works on my board.

Once the "First Attachment" is working properly I would like to able to use both the "First Attachment" and "First Image In Post" together as a option. Hopefully Null Parameter will stay on top of this and get it taken care of asap.

realy working without need to edit the post?? maybe youve had an older version of thumbmod befor ... give me please your boardurl with pn or post it here . i want to test it.

1320Nation 11-02-2009 03:19 PM

Quote:

Originally Posted by Ghostt (Post 1909442)
realy working without need to edit the post?? maybe youve had an older version of thumbmod befor ... give me please your boardurl with pn or post it here . i want to test it.

You are right. I have to edit the post in order for it to appear.

BlessedFWI 11-04-2009 07:26 AM

Quote:

Originally Posted by Null Parameter (Post 1907014)
This could be an issue with the Auto-template edits. If you want to PM me your editpost template, I can take a look to see if it should be working

Thanks...I will PM you now!

megamoose 11-07-2009 08:26 AM

You can use this to update all previously posted threads using First IMG in post

Upload it to your server root as something like xupdater.php and run.

Then DELETE it.

Code:

// SEE REVISED SCRIPT BELOW

Ghostt 11-07-2009 11:13 AM

Thanks for your work , but im getting an error while running the file "Database error".
and i think it isnt a permanently solution ,which causes an extream amount of server LOAD.

did you tested it? do i have to modifiy something? (my sqltable prefix is "vb")
Quote:

Originally Posted by megamoose (Post 1911256)
You can use this to update all previously posted threads using First IMG in post

Upload it to your server root as something like xupdater.php and run.

Then DELETE it.

WARNING! For large forums it may take some time to run the script, and if you have a max exec time then you may have to add breaks in it.

Code:

<?php
error_reporting(E_ALL & ~E_NOTICE & ~8192);

// #################### DEFINE IMPORTANT CONSTANTS #######################
define('SKIP_SESSIONCREATE', 1);
define('NOCOOKIES', 1);
define('THIS_SCRIPT', 'xupdate');
define('CSRF_PROTECTION', true);

// #################### PRE-CACHE TEMPLATES AND DATA ######################
// get special phrase groups
$phrasegroups = array();

// get special data templates from the datastore
$specialtemplates = array();

// pre-cache templates used by all actions
$globaltemplates = array();

// pre-cache templates used by specific actions
$actiontemplates = array();

// ######################### REQUIRE BACK-END ############################
require_once('./global.php');

$threads = $db->query_read_slave("SELECT * FROM thread");

while ($thread = $db->fetch_array($threads)){
    echo "<b>Thread:</b> ".$thread["title"]."<br>";

    $posts = $db->query_read_slave("SELECT * FROM `post` WHERE `postid` = '".$thread["firstpostid"]."'");
    $post = $db->fetch_array($posts);
    echo "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
          <b>First Post:</b> ".$post["title"]."<br>";
preg_match('/\[img\](.*?)\[\/img\]/i',$post["pagetext"],$matches);
$query = "UPDATE `thread` set `thumbnailurl` = '".$db->escape_string($matches[1])."' WHERE threadid = " . $thread["threadid"];
echo "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
      <b>SQL:</b>".$query."<br><br>";
$db->query_write($query);

}
?>




All times are GMT. The time now is 07:46 PM.

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.02189 seconds
  • Memory Usage 1,792KB
  • 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
  • (2)bbcode_code_printable
  • (1)bbcode_php_printable
  • (7)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