Back to Modification Graveyard

Nexia's Attached Images in Full Size inside Thread
Mod Version: 1.0.0, by ()

This thread is in the Modification Graveyard.
vB Version: 3.8.0 Rating: (0 vote - 0 average) Installs: 8
Released: 13 May 2009 Last Update: Never Downloads: 13
Not Supported Code Changes  

This is a Tutorial more than a product, because the only thing involved is a file edit. But there is no tutorials section here, and the articles get deleted when they come from me, so here is the hack!

You can see it on this site, all the attached images that we tag in our threads are shown in links, not as Thumbnails like in the default vBulletin 3.6+.

See how it goes in the default vBulletin:


And here we see it with the change made, like on vbEnhancer.com:


The only way we can do that is by editing a file that have no hook attached where it is needed.

Here is the Tutorial: (the file attached contain the exact same How To.txt)

PHP Code:
# FIND: (line 1848 in non-edited file)


    
function handle_bbcode_img($bbcode$do_imgcode$has_img_code false)
    {
        global 
$vbphrase;


# BELOW, ADD:

        
$oldregistry $this->registry->options['attachthumbs'];
        
$this->registry->options['attachthumbs'] = FALSE;



# FIND: (line 1964 in non-edited file)

        
if ($has_img_code BBCODE_HAS_SIGPIC)
        {
            
$bbcode preg_replace('#\[sigpic\](.*)\[/sigpic\]#siUe'"\$this->handle_bbcode_sigpic('\\1')"$bbcode);
        }


# BELOW, ADD:

        
$this->registry->options['attachthumbs'] = $oldregistry;


################################# THAT'S ALL FOR THE FILE EDIT! 
>> You now have to setup your Usergroups for "Can See Thumbnails" to YES!

Download

This modification cannot be downloaded.

Screenshots

   


vblts.ru supports vBulletin®, 2022-2024