vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Post Icon Row Count (https://vborg.vbsupport.ru/showthread.php?t=116911)

Replicators 05-28-2006 08:43 AM

Post Icon Row Count
 
http://img138.imageshack.us/img138/9...sticons7gq.jpg

The post icons i have up are a bit wide, so 7 icons wide is too much, can anyone make a mod to be able to set how many wide we can have? I asked at vb.org at http://www.vbulletin.com/forum/showthread.php?t=186514 and they told me to request it here, so here i am. Thanks in advance if anyone does this.

Replicators 05-30-2006 06:09 AM

*Bump* It should only be a simple small little modification!

Replicators 06-02-2006 12:33 PM

*bump again* Any of you have any wide post icons? I wouldn't know how to do this, and it seems very simple to do, if anyone can take the small time needed to do this then it would be most appreciated.

peterska2 06-02-2006 05:35 PM

I think I have it sussed, but to be sure I'll test it first so I'll get back to you later about it.

peterska2 06-02-2006 07:07 PM

Ok, it requires a code modification to your includes/functions_newpost.php file

find

Code:

while ($icon = $vbulletin->db->fetch_array($icons))
        {
                $show['posticons'] = true;
                if ($numicons % 7 == 0 AND $numicons != 0)
                {
                        $posticonbits .= "</tr><tr><td>&nbsp;</td>";
                }

                $numicons++;

                $iconid = $icon['iconid'];
                $iconpath = $icon['iconpath'];
                $alttext = $icon['title'];
                if ($seliconid == $iconid)
                {
                        $iconchecked = 'checked="checked"';
                        $selectedicon = array('src' => $iconpath, 'alt' => $alttext);
                }
                else
                {
                        $iconchecked = '';
                }

                ($hook = vBulletinHook::fetch_hook('posticons_bit')) ? eval($hook) : false;

                eval('$posticonbits .= "' . fetch_template('posticonbit') . '";');

        }

        $remainder = $numicons % 7;

        if ($remainder)
        {
                $remainingspan = 2 * (7 - $remainder);
                $show['addedspan'] = true;
        }

replace the three number 7's that appear in this section to the number of post icons per row that you would like to display.

Replicators 06-02-2006 08:04 PM

Thank You peterska2, i was afraid nobody would help me on this, you saved my day >8)

peterska2 06-02-2006 08:05 PM

Glad I could help. Remember that this will need reapplying on every upgrade as it is a code modification.


All times are GMT. The time now is 04:45 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.01728 seconds
  • Memory Usage 1,725KB
  • 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
  • (1)bbcode_code_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