Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Programming Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 10-24-2008, 02:39 PM
natecoupons natecoupons is offline
 
Join Date: Jul 2008
Posts: 179
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Icon Position Problem...

I have lots of icons...and I have a problem with their position...is there any way i can fix this....pic attached?
Attached Images
File Type: jpg icon problem.jpg (79.0 KB, 0 views)
Reply With Quote
  #2  
Old 10-24-2008, 04:03 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

you would have to edit the templates posticons and posticonbit to change it. I think your would edit the following stuff in red...
posticons:
Code:
<table cellpadding="0" cellspacing="$stylevar[cellspacing]" border="0" width="95%">
            <tr>
                <td colspan="15"><div style="margin-bottom:$stylevar[formspacer]px">$vbphrase[may_choose_icon_for_message]:</div></td>
            </tr>
            <tr>
                <td width="12%" nowrap="nowrap"><label for="rb_iconid_0"><input type="radio" name="iconid" value="0" id="rb_iconid_0" tabindex="1" onclick="swap_posticon(null)" $iconchecked />$vbphrase[no_icon] &nbsp; &nbsp;</label></td>
                $posticonbits
                <if condition="$show['addedspan']"><td colspan="$remainingspan">&nbsp;</td></if>
            </tr>
            </table>
And in posticonbit:
Code:
<td width="12%">
Reply With Quote
  #3  
Old 10-24-2008, 05:34 PM
natecoupons natecoupons is offline
 
Join Date: Jul 2008
Posts: 179
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thank you ... i'll try!!
Reply With Quote
  #4  
Old 12-03-2008, 02:29 AM
natecoupons natecoupons is offline
 
Join Date: Jul 2008
Posts: 179
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This problem is still occuring. I've been a little busy and just getting to this.....thanks for all your help.....i tried the recommendation above and it didn't seem to affect the position of the icons. Here is what I have:

<if condition="$show['posticons']">
<script type="text/javascript">
<!--
function swap_posticon(imgid)
{
var out = fetch_object("display_posticon");
var img = fetch_object(imgid);
if (img)
{
out.src = img.src;
out.alt = img.alt;
}
else
{
out.src = "$vboptions[cleargifurl]";
out.alt = "";
}
}
// -->
</script>
<fieldset class="fieldset">
<legend>$vbphrase[post_icons]</legend>
<div style="padding:$stylevar[formspacer]px">
<table cellpadding="0" cellspacing="$stylevar[cellspacing]" border="0" width="95%">
<tr>
<td colspan="5"><div style="margin-bottom:$stylevar[formspacer]px">$vbphrase[may_choose_icon_for_message]:</div></td>
</tr>
<tr>
<td width="5%" nowrap="nowrap"><label for="rb_iconid_0"><input type="radio" name="iconid" value="0" id="rb_iconid_0" tabindex="1" onclick="swap_posticon(null)" $iconchecked />$vbphrase[no_icon] &nbsp; &nbsp;</label></td>
$posticonbits
<if condition="$show['addedspan']"><td colspan="$remainingspan">&nbsp;</td></if>
</tr>
</table>
</div>
</fieldset>
<else />
<input type="hidden" name="iconid" value="0" />
</if>
Reply With Quote
  #5  
Old 12-03-2008, 03:31 AM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This was brought up on vb.com and there was a file edit that needed to occur also. Do a search over there for the post - I think I replied in it so that should help narrow it down with your search terms also.
Reply With Quote
  #6  
Old 12-03-2008, 01:04 PM
natecoupons natecoupons is offline
 
Join Date: Jul 2008
Posts: 179
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks..i'll look over there

--------------- Added [DATE]1228317856[/DATE] at [TIME]1228317856[/TIME] ---------------

I found it.....but I'm not sure what to do with this. What numbers should I change? Thanks so much for your help!!!


includes/functions_newpost.php



Code:
    $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);

        }


If you need help with this code then you should post on www.vbulletin.org.
Reply With Quote
  #7  
Old 12-03-2008, 01:59 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by natecoupons View Post
I found it.....but I'm not sure what to do with this. What numbers should I change? Thanks so much for your help!!!
Default was 7 per row. So, change the number 7 in that code to the new number per row you want (5?).
Reply With Quote
  #8  
Old 12-03-2008, 04:43 PM
natecoupons natecoupons is offline
 
Join Date: Jul 2008
Posts: 179
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

great....it worked!!! Thank much lynne....you've been a great help!!!
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 04:39 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04004 seconds
  • Memory Usage 2,250KB
  • Queries Executed 12 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (3)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (8)post_thanks_box
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (8)post_thanks_postbit_info
  • (8)postbit
  • (1)postbit_attachment
  • (8)postbit_onlinestatus
  • (8)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete