vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Post Icons Dimension v1.0 (https://vborg.vbsupport.ru/showthread.php?t=48992)

Xyphen 02-15-2003 10:00 PM

Post Icons Dimension v1.0
 
//####################################
// 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!!

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!

Quote:

Don't run the installicon.php file!

Open up forumdisplay.php and find:
PHP Code:

$thread[icon]="<img src=\"$thread[iconpath]\" alt=\"$thread[icontitle]\" width=\"15\" height=\"15\" border=\"0\">"

Replace With:
PHP Code:

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

Open search.php and find:
PHP Code:

$searchresult[posticon]="<img src=\"$searchresult[posticonpath]\" alt=\"$searchresult[posticontitle]\" width=\"15\" height=\"15\" border=\"0\">"

Replace With:
PHP Code:

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

Open up posticonbit template, replace everything in it with:
PHP Code:

<input type="radio" name="iconid" value="$iconid$iconchecked>&nbsp;<img src="$iconpathalign="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.


All times are GMT. The time now is 12:35 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.01178 seconds
  • Memory Usage 1,738KB
  • 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
  • (5)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete