Log in

View Full Version : Post Icons Dimension v1.0


Xyphen
02-15-2003, 10:00 PM
//####################################
// Post Icons Dimension
// Written by Ali "AViO" (avio07@hotmail.com)
// Copyright 2003
// vBulletin Version 2.x.x
//####################################

My first hack, please be nice and don't curse at me or anything -_-!

What this hack does it, it allows you to change your Post Icon Dimensions with one click after the hack is installed

Download the .zip file, unzip it, upload installicon.php to the admin directory and run it, afterwards read install.txt and follow the instructions on it to make the changes.
If you have any trouble, please post and I will try the best to give you support, this hack has been tested twice so it shouldn't give you any troubles.

Reason for Creating the Hack: Well I was looking to increase my post icons size, because I use different sets of icons all the time, but I couldn't find any hacks or template changes. So I came up with this with help from Bitsys, Thanks Bitsys!

Please Click Install if You Install It!! (https://vborg.vbsupport.ru/misc.php?s=&action=install&threadid=48992)

I would also Love some feedback from the people who install this hack!

Edit: I am such an idiot, I forgot to attach the .zip file!

Xyphen
02-16-2003, 06:12 PM
Here is the screenshot of it in the admin control panel under vbulletin options!!

geniuscrew
02-16-2003, 10:47 PM
Question: Will this set ALL icons' width and height to 19? [eg]

Xyphen
02-17-2003, 06:09 PM
If you don't want any limits at all on your icons, meaning if you want to have various sizes of icons, do the following!

Don't run the installicon.php file!

Open up forumdisplay.php and find:
$thread[icon]="<img src=\"$thread[iconpath]\" alt=\"$thread[icontitle]\" width=\"15\" height=\"15\" border=\"0\">";

Replace With:
$thread[icon]="<img src=\"$thread[iconpath]\" alt=\"$thread[icontitle]\" border=\"0\">";

Open search.php and find:
$searchresult[posticon]="<img src=\"$searchresult[posticonpath]\" alt=\"$searchresult[posticontitle]\" width=\"15\" height=\"15\" border=\"0\">";

Replace With:
$searchresult[posticon]="<img src=\"$searchresult[posticonpath]\" alt=\"$searchresult[posticontitle]\" border=\"0\">";

Open up posticonbit template, replace everything in it with:
<input type="radio" name="iconid" value="$iconid" $iconchecked>&nbsp;<img src="$iconpath" align="middle" alt="$alttext">&nbsp;&nbsp;&nbsp;&nbsp;

Thats how you can remove any size limit on your Post Icons, since i use similar type of icons, what I mean by similar is same size and color, thats why i made height and width editable in admin cp. But if you don't want to do that, you can do it this way.

geniuscrew
02-19-2003, 12:37 AM
Nice - thanks!

Lacrosse Boy
02-24-2003, 09:47 PM
Thanks for this hack! It's great . . now I can use the larger ones I always wanted!

I have one question though -- to be on the safe side, is installicon.php safe to be removed?

Thanks!

Xyphen
05-11-2003, 03:56 PM
It is perfectly save to remove installicon.php after the installation is done.