vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Forum Display Enhancements - Thread Thumbnails (https://vborg.vbsupport.ru/showthread.php?t=237404)

fxwoody 03-31-2011 10:33 AM

Quote:

Originally Posted by dr.tawy (Post 2178897)
i tried adding the template but didn't work for me :(

i really appreciate any help as i am trying to set thread thumbnails for more than 8.000 threads and all with a small thumbnail (specific image) and cannot be the first image nor attachment so any help would me very much appreciated

sorry for being pushy.

Let me get you here! Are the Thumbnail showing in the threadlist???
If so, you can use megamoose's Script to get the first images of every posts!

here:
Code:

https://vborg.vbsupport.ru/showpost.php?p=2145120&postcount=200

Mikevet1984 03-31-2011 10:51 AM

A lot of bugs really...

The instructions included in the mod's folder do not work....

Follow fxwoody and dirk2103 tutorial which works 100%. It is on page 15 posts 211 and 212.

I think a moderator should ad these html script tutorials in the first post so the user's to get help without needed to read 17 pages of posts.

fxwoody 04-01-2011 02:25 AM

Tks Mikevet1984 ;)

I think it should mandatory for mods that are not supported anymore to be replaced or like you said UPDATED !
We have been working on this to make it work for looooong time without Null P. and ........well we'll see what future is reserved ;)

Cheers Mike!

Mikevet1984 04-01-2011 06:36 AM

Dear fxwoody!

I have seen some mods here in the vbulletin.org which did not got updated by the coders and and as a result some other coder took the responsibility to post a new thread with the same mod updated by themselves.

I think this is the solution to the problem with all these abandoned mods. In terms of this mod sb should change the plug-inscripts with working ones, plus making html script to be added automatically in the templates (in the user defined url) and release this mod as a new one making reference of course as source to this one.

dr.tawy 04-01-2011 09:27 AM

Quote:

Originally Posted by fxwoody (Post 2179368)
Let me get you here! Are the Thumbnail showing in the threadlist???
If so, you can use megamoose's Script to get the first images of every posts!

here:
Code:

https://vborg.vbsupport.ru/showpost.php?p=2145120&postcount=200

Yes the thumbnails are showing in the threadlist, Mod is working and everything is fine

the problem is that i am following the "User Entered URL" option as i am making a thumbnail image for each thread

i now have about 8.000 threads that i am willing to edit to put a thumbnail image in them (threads are already made)

all what i want is a field on the quick edit mode to enter the url of the thumbnail instead of going to advanced edit mode

it would save a lot of time for me

Thanks,
I really appreciate your help

fxwoody 04-01-2011 10:09 AM

Doc! There is no other way for now to import those images with out Megamoose's script :(
I'm not qualified enough to make those changes inside the scripts, tho, i can tell you from experience that his script works with out a flaw when importing first image from post !
I had the same situation and use URL too, if you have a test site you can try it there first in case of, but, i pretty confident that the script will work fine!
Only trouble is the image itself! If the first one of every posts or so, is a banner or other then the cover page, it will be attach to the thumbnail :(
Tho you can after, edit the ones that are no good for the post display.

Hope it helps ;)

dr.tawy 04-01-2011 10:27 PM

Quote:

Originally Posted by fxwoody (Post 2179723)
Doc! There is no other way for now to import those images with out Megamoose's script :(
I'm not qualified enough to make those changes inside the scripts, tho, i can tell you from experience that his script works with out a flaw when importing first image from post !
I had the same situation and use URL too, if you have a test site you can try it there first in case of, but, i pretty confident that the script will work fine!
Only trouble is the image itself! If the first one of every posts or so, is a banner or other then the cover page, it will be attach to the thumbnail :(
Tho you can after, edit the ones that are no good for the post display.

Hope it helps ;)

i see , my only problem is that the first image in post is large in dimension and size so in the end the forumdisplay page loads very slowly as i have it set to show 30 threads per page

i decided to create a thumbnail image with less dimensions and size:(

anyway i really appreciate your time and i hope you keep supporting this mod as it the best.

GONUMBER6 04-03-2011 11:03 PM

Quote:

Originally Posted by megamoose (Post 2152087)
Going to repost this as it works the exact some for this version as the old:


Thanks that worked perfectly :up:

downloadfound 04-19-2011 09:20 PM

Quote:

Originally Posted by megamoose (Post 2145120)
Null, thanks for this mod. It is perfect.

The thumbnail generator I created in the previous version had a bug in it which would cause a great server load. This new version should run a lot quicker and more efficient. Remember if it does hang on your server decrease the STEP_AMOUNT variable.

Create a file on your server called threadthumbupdate.php with the following in the file and open it in your browser.

PHP Code:

<?php $STEP_AMOUNT 20000?>

<input type="button" id="btnNext" value="Process Next Results" onClick="window.location='?start='+(<?php echo $_GET["start"]; ?>+<?php echo $STEP_AMOUNT;?>)" disabled=true><br>
The button above should enable once this batch is complete!<br>
<br>

<?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');

if (!
$_GET["start"]) { $_GET["start"] = 0; }


        
$threads $db->query_read_slave("
        SELECT *
        FROM " 
TABLE_PREFIX "thread
        LIMIT "
.$db->escape_string($_GET["start"]).","$db->escape_string($STEP_AMOUNT));

while (
$thread $db->fetch_array($threads)){


    
$posts $db->query_read_slave("SELECT * FROM `" TABLE_PREFIX "post` WHERE `postid` = '".$thread["firstpostid"]."'");
    
$post $db->fetch_array($posts);

preg_match('/\[img\](.*?)\[\/img\]/i',$post["pagetext"],$matches);
$query "UPDATE `" TABLE_PREFIX "thread` set `thumbnailurl` = '".$db->escape_string($matches[1])."' WHERE threadid = " $thread["threadid"];

$db->query_write($query);

}
?>

<script> document.getElementById("btnNext").disabled = false;

</script>


I want to give a big shout out to everyone who's helped make this script happen. It is GREAT!!!!! I hope it continues to work through-out VBs update.

ahmedipa 04-26-2011 08:24 AM

nice thank you


All times are GMT. The time now is 06:26 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.01551 seconds
  • Memory Usage 1,780KB
  • 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
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)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