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

shrimpca 05-05-2011 03:12 AM

hello

Thumbnail me not show Before Thread.But Show in After Thread in Site

http://www.shrimp-cafe.com/forum/for...B9%89%E0%B8%87

fxwoody 05-05-2011 11:04 PM

Quote:

Originally Posted by shrimpca (Post 2192022)
hello

Thumbnail me not show Before Thread.But Show in After Thread in Site

http://www.shrimp-cafe.com/forum/for...B9%89%E0%B8%87

WOW!!! I'm going to have a lot of problem trying to read your site! hahahaha
Did you make all the adjustments in the options???

vigape 05-23-2011 01:33 PM

nice thank you :up:

Mikevet1984 05-23-2011 02:04 PM

fxwoody one smαll request please if possible....

As it was you here in thread that you released the alterations needed to make this mod work with the last version, and also you are a coder, could you please release an updated version of the xml file which will contain all the updated codes?

Or could you release a txt file with all the instructions on how to manually do the alteration to the original mod in a single document to have is as a tutorial and not need to reed some many pages of comments form the date of thread releasing.

Sorry for my bad english!

Tize. 05-23-2011 06:42 PM

Hello.
My problem is that I have activated all right but the image never appears in the forums.
The permissions are correct and do not understand.
If I can help please would be great.
Thanks.

togotutor 05-24-2011 07:48 PM

Later..

fxwoody 05-25-2011 12:23 AM

Quote:

Originally Posted by Mikevet1984 (Post 2199091)
fxwoody one smαll request please if possible....

As it was you here in thread that you released the alterations needed to make this mod work with the last version, and also you are a coder, could you please release an updated version of the xml file which will contain all the updated codes?

Or could you release a txt file with all the instructions on how to manually do the alteration to the original mod in a single document to have is as a tutorial and not need to reed some many pages of comments form the date of thread releasing.

Sorry for my bad english!

Ok Mikevet, i'll work this out like you said. Should be easier for everyone else also! ;)

Tks for the support

Quote:

Originally Posted by Tize. (Post 2199205)
Hello.
My problem is that I have activated all right but the image never appears in the forums.
The permissions are correct and do not understand.
If I can help please would be great.
Thanks.

If images are not showing , it means you are probably missing this:
Code:

# threadbit

        * Find
                <!--  status icon block -->
               
        * Place this BEFORE it:
                {vb:raw thread.thumbnail}

I will repost this Plugin with every new information under one simple page soon ;)
Hope NullP won't be to ....at me lolll

mwink 05-25-2011 10:07 AM

1 Attachment(s)
Quote:

Originally Posted by Tize. (Post 2199205)
Hello.
My problem is that I have activated all right but the image never appears in the forums.
The permissions are correct and do not understand.
If I can help please would be great.
Thanks.

Same problem here. The add-on seems to be installed properly. Settings ok, but nevertheless no thumbnails show up. Even if I turn on "Are Thumbnails Required?" , creating a thread does not show anything and can be done without specifying.

Any ideas what can be wrong??

GrabMyWrist 05-26-2011 12:20 AM

Any chance you could add an option to let the thumbnail be the users avatar?

fxwoody 05-26-2011 11:23 AM

Quote:

Originally Posted by mwink (Post 2199733)
Same problem here. The add-on seems to be installed properly. Settings ok, but nevertheless no thumbnails show up. Even if I turn on "Are Thumbnails Required?" , creating a thread does not show anything and can be done without specifying.

Any ideas what can be wrong??

I will see what i can do about this. I use to run this function before but ended up with problems too!

Quote:

Originally Posted by GrabMyWrist (Post 2200034)
Any chance you could add an option to let the thumbnail be the users avatar?

Not sure if it would work but i will check this out ;)

GrabMyWrist 05-26-2011 05:36 PM

Thanks!

acabator 05-26-2011 06:29 PM

You could try the option to have both First Attachment and First Image In Post, and at the same time.

That is, the ability to add the option to put in bold, please:
  • Choose to retrieve thumbnails from one of the following
    • User Entered URL
    • First Attachment
    • First Image in Post
    • First Attachment and First Image in Post


Sorry for my bad english!

Derapata 05-26-2011 06:34 PM

Thank you ;)

macroforum 05-27-2011 07:07 AM

Quote:

Originally Posted by mwink (Post 2199733)
Same problem here. The add-on seems to be installed properly. Settings ok, but nevertheless no thumbnails show up. Even if I turn on "Are Thumbnails Required?" , creating a thread does not show anything and can be done without specifying.

Any ideas what can be wrong??

Same problem here.
This MOD works, for me, ( vb 4.1.3) only with attachments.
Antonio

[EDIT] The thumbnail appears after modification of the message....

fxwoody 05-28-2011 03:00 AM

Guys! just shut it off for now till i come up with a clean slate for ya all!

It's working for sure ;)
Give me a day or two and i will come up with something. Not my plugin but i will help out :)

joacocarp 05-28-2011 04:45 AM

First Thanks for the mod!

The mod found but I have now 2 pics on the forum display page 1 before thread icon and 1 after thread icon:


https://vborg.vbsupport.ru/

Uploaded with ImageShack.us


I use Vbulletin 4.1.2



Thanks and greetings

mwink 05-28-2011 12:07 PM

Quote:

Originally Posted by fxwoody (Post 2200768)
Guys! just shut it off for now till i come up with a clean slate for ya all!

It's working for sure ;)
Give me a day or two and i will come up with something. Not my plugin but i will help out :)

Thanks! Will wait for that! :)

joacocarp 05-29-2011 05:23 PM

First Thanks for the mod!

The mod found but I have now 2 pics on the forum display page 1 before thread icon and 1 after thread icon:


https://vborg.vbsupport.ru/

Uploaded with ImageShack.us


I use Vbulletin 4.1.2



Thanks and greetings!

Khriz 05-30-2011 03:10 AM

only works with images attached !!!!

U_U"

S.O.S.

Pionex 05-30-2011 05:44 AM

does not work for me with user url, however first attached image works fine.
nice mod, thanks. installed.

Mikevet1984 05-30-2011 06:04 AM

Τhis mod works prerfectly with fowxoody alterations shared here in the thead!

After making tests to my forum, here are the reults:

1. Thumbnail from first attachment, works perfectly from the beginning just installing the mod of Null Parameter.

2. Thumbnail from first image in post, needs 1 code substitution.
*See post number 212 on page 15. Click here

3. Thumbnail from first user spesified image url, needs 2 code substitutions.
*See post number 211 on page 15. Click here and also
*See post number 228 on page 15. Click here

Tested and working on a vbulletin 4.1.3 forum

Khriz 05-30-2011 04:03 PM

Thanks Mikevet1984
but I decided to use this product:

https://vborg.vbsupport.ru/showthread.php?t=259519

It seems broadly higher

joacocarp 05-30-2011 05:06 PM

Thanks! .. now found 100%

fxwoody 05-31-2011 01:27 PM

Little update here, i'm still working on it in order to make every options to work fine!
Tho, i'm stuck with some necessary scripts that do not return right results :(

Once i will have my answer and fix them, i will open a new thread with the fully updated version.

Pls be patient as i'm not a full coder and learning as it goes ;)
I will also try to modify the plugin to add the quick edit options for the thumb already posted.

Tks guys

fxwoody 06-03-2011 07:06 AM

1 Attachment(s)
Ok, as it goes, i have made a few changes in it!
Every options should work fine except for the "Thumbnails are required" .
  1. User enter URL
  2. 1st image in post
  3. 1st attachment

Set up the options as seen on picture. The "Automatic Template Edits" is not totally well tuned, so i would recommend that you make the necessary modif manually.


I will open a new thread with the info and new file to import.

IT is attached here since lots of you are passing in ;)

Mikevet1984 06-03-2011 09:33 AM

Thank you fxwoody!

lachgas 06-03-2011 10:07 AM

thaaaannnkksss... fxwoody

fxwoody 06-03-2011 11:23 AM

Ok guys, i made a new fresh post with all the infos in it ;)

https://vborg.vbsupport.ru/showthread.php?t=264655

mwink 06-18-2011 10:49 AM

[QUOTE=joacocarp;2201343]First Thanks for the mod!

The mod found but I have now 2 pics on the forum display page 1 before thread icon and 1 after thread icon:


http://img828.imageshack.us/img828/1...oblemid.th.jpg

Uploaded with ImageShack.us


I use Vbulletin 4.1.2

How did you fix this? We have the same problem!



Thanks!

radiofranky 07-21-2011 06:18 AM

Hi,

I was wondering if is possible to use it on vbadvanced. I have list of thread from each of the forum and would like display with a thumbnail in front of the title.

I added "{vb:raw thread.thumbnail}" but is not displaying anything.

your help is appreciated.

thanks

update: I have manually edited those templates and in the forum listing, the thumbnails are showing ok, but not with vbadvanced. It would be very nice if can be displayed in vbadvanced template. I think the variable somehow is not being returned


All times are GMT. The time now is 04:59 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.01578 seconds
  • Memory Usage 1,864KB
  • 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
  • (3)bbcode_code_printable
  • (1)bbcode_php_printable
  • (13)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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