![]() |
[HACK] Remove Image Thumbnail Code
This is a "fixed" version of dnoyeb2002's hack that removes the article image thumnail resize code.
The original hack hard coded the image paths and did not include category icons. This hack fixes that. There are two reasons for removing this code: 1. It does not support GIF files. 2. Since the code uses the articles.php file to display the images it messes with the Who's online reporting whenever an article image is displayed in another script (eg CMPS). In forums/articles.php: Find: PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
Find: PHP Code:
PHP Code:
|
is this to the original file or to the file of dnoyeb2002's?
the entire system is working fine except that i don't want it to resize the category images. i tried just your part of the hack related to : Find: PHP Code: $subcaticon = ereg_replace($vbart_options['vbartcatimgpathab'],"",$subcaticon); $subcaticonimg = "<img title=\"".$subcatname."\" src=\"articles.php?action=thumbcat&id=".$subcatico n."\" border=\"0\" width=".$vbart_options['vbartssthumbwidth'].">"; Replace with: PHP Code: $subcaticonimg = '<img title="' . $subcatname . '" src="' . $subcaticon . '" border=0>'; and i still get a 'resized' category image at the top of the list... check out x5world.com/articles.php and click on NAVIGATION category. thanks |
Quote:
Find: PHP Code:
PHP Code:
|
Just used this on 2.0, solved many headaches. Thank you very much!
|
All times are GMT. The time now is 03:29 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|