The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Thread Thumbnails Details »» | |||||||||||||||||||||||||||
Thread Thumbnails
-------------------------------------- Created By: Null Parameter This mod is officially tested with 3.8.1, but has been reported to work with many other versions. Please leave any comments, suggestions or bugs. Description This mod allows a user, when creating or editing a thread, to specify a Thumbnail image to be used for display next to the thread in the Thread Listing. With this mod you can define a set of forums that have thumbnails enabled, then in those forums whenever a user creates or edits their thread they can change their thumbnail, based on the method that you choose to allow. This image is then shown in the Forum Display, in place of the Thread Icon. The image also appears in Search & Tag Search, and I can add it to the regular Search if somebody requests it. And possibly have options for displaying in each area. Forum Display: Forum.jpg Search: Search.jpg ACP Options: ACP Options.jpg Installation Install the Product XML File. That's it! All Template Edits Are Now Automatic. If you are Upgrading from the older version, see directions in the README file on how to undo the template edits. Demo Possible Future Features (With Request)
Download Now
Show Your Support
|
2 благодарности(ей) от: | ||
chikkoo, vijayninel |
Comments |
#172
|
|||
|
|||
woaaaaaaaaaa
|
#173
|
|||
|
|||
work fineeeee. if took me a day to edited my template back and forth. woa fixed
|
#174
|
|||
|
|||
Nice MOD, Thanks for this
|
#175
|
||||
|
||||
Anyone help here ?
|
#176
|
|||
|
|||
Could be some other conflict with some other mods, I have it running on 3.8.4 PL1 flawlessy since installation..
|
#177
|
||||
|
||||
Well, how should I know if its a conflict with one of my other Mods, since they all work together fine. So disabling other Mods that all work perfectly together, just for one other Mod that doesn't work with some or one of them, is out of the question.
Seems I won't be using this one here then, too bad. |
#178
|
||||
|
||||
Quote:
|
#179
|
|||
|
|||
Can you choose to have 0 as the placeholder, so there is no image if there isn't one?
|
#180
|
|||
|
|||
I work in VB4?
|
#181
|
||||
|
||||
Quote:
Code:
<?php $STEP_AMOUNT = 600; ?> <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($_GET["start"]+$STEP_AMOUNT)); while ($thread = $db->fetch_array($threads)){ echo "<b>Thread:</b> ".$thread["title"]."<br>"; $posts = $db->query_read_slave("SELECT * FROM `" . TABLE_PREFIX . "post` WHERE `postid` = '".$thread["firstpostid"]."'"); $post = $db->fetch_array($posts); echo " <b>First Post:</b> ".$post["title"]."<br>"; preg_match('/\[img\](.*?)\[\/img\]/i',$post["pagetext"],$matches); $query = "UPDATE `" . TABLE_PREFIX . "thread` set `thumbnailurl` = '".$db->escape_string($matches[1])."' WHERE threadid = " . $thread["threadid"]; echo " <b>SQL:</b>".$query."<br><br>"; $db->query_write($query); } ?> <script> document.getElementById("btnNext").disabled = false; </script> |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|