vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Design and Graphics Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=168)
-   -   Post Icon Width for tables (https://vborg.vbsupport.ru/showthread.php?t=201738)

beatthecasino 01-14-2009 12:39 PM

Post Icon Width for tables
 
How can I change the number of smiles columns in the post icon section? Some of my animated ones go outside the post icon border? Thanks for any assistance !

markbolyard 01-14-2009 01:11 PM

<a href="https://vborg.vbsupport.ru/showthread.php?t=129306&highlight=smile+below" target="_blank">https://vborg.vbsupport.ru/showt...ht=smile+below</a>

You can use that mod to move the smiles below the box, you can change your settings in the admincp on the number to show, and / or you can change the display order so that only the small ones show by default.

vBulletin Options - Message Posting Interface Options

Hope that helps.

beatthecasino 01-14-2009 01:37 PM

Thanks for your reply that works well with the smiles at the right side of the edit box but I have the post icons enabled which display under the tag, trackback and then post icons is where the issue is.

markbolyard 01-14-2009 02:16 PM

Oops, sorry.

This is hard coded into the includes/functions_newpost.php file.

Edit your includes/functions_newpost.php, locate the following section of code:

Code:

        if (!$vbulletin->db->num_rows($icons))
        {
                return false;
        }

        $numicons = 0;
        $show['posticons'] = false;

        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;

Change all the instances of 7 to your desired number of rows. Note the above code was taken from vBulletn 3.8 so yours may be slightly different. Jus tlook for the specified lines that have 7 in them.


EDIT: please make a backup of this file before you modify it in case there is a mistake made. Also note when you do future upgrades, that you have made this edit as this file will be overwritten with future updated files.


All times are GMT. The time now is 02:10 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.01059 seconds
  • Memory Usage 1,720KB
  • 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
  • (4)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