vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Change Post Icon? 10 per row (https://vborg.vbsupport.ru/showthread.php?t=302962)

katie hunter 10-04-2013 07:16 PM

Change Post Icon? 10 per row
 
Hi, how can i change the post icon so it displays let say 10 per row when you try to create a new thread?

It currently only show 7 i think.

Lynne 10-04-2013 08:40 PM

If I recall, it isn't as easy as you may like. It includes doing file edits and template edits instead of just some simple CSS. You'll need to edit template posticonbit and file /includes/functions_newpost.php around like 86 (and throughout that function).

ozzy47 10-04-2013 08:52 PM

It's not that bad, just the file edit, in includes/functions_newpost.php

On lines 92,96,124,128 change the instances of 7 to 10

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

Actually don't do that, I just released this mod, where you can set the amount per row as you like, [ozzy47] Post Icons Per Row

katie hunter 10-05-2013 07:26 AM

Thank you guys :0)

ozzy47 10-05-2013 09:07 AM

Not a problem, don't forget to mark that mod as installed if you are using it. :)

katie hunter 10-05-2013 03:55 PM

Done :0) Thanks again Ozzy

ozzy47 10-05-2013 03:56 PM

Cool, thanks. :)

katie hunter 10-05-2013 03:58 PM

Is there a way to resize the width of the bbcode code, i think that is what pushing the design out?

ex http://forum.nihonomaru.com/site-ann...e2#post5571658

I remember i had that same issue on vb 3.7.x and i changed the width of the bbcode code i think, or is there a better solution? How can i fix this?

Lynne 10-05-2013 03:59 PM

Quote:

Originally Posted by katie hunter (Post 2450206)
Done :0) Thanks again Ozzy

Is there a way to resize the width of the bbcode code, i think that is what pushing the design out?

ex http://forum.nihonomaru.com/site-ann...e2#post5571658

I remember i had that same issue on vb 3.7.x and i changed the width of the bbcode code i think, or is there a better solution? How can i fix this?

That is due to the signature placement. Somewhere here, or over on vb.com in the tips & tricks area, is a thread about how to not have your signature all the way at the bottom.

katie hunter 10-05-2013 04:16 PM

Hi Lynne, it is not the signature because all the other posts looks good, only this happened when i quoted someone with a bbcode code in that quote

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

Lynne, it was the image (: too big, i've re-sized it and now it is fixed.

Lynne 10-05-2013 10:56 PM

Sorry, I didn't see is was a quote, it just looked like a bunch of blank space to me between the text and the signature.

katie hunter 10-07-2013 12:27 PM

Quote:

Originally Posted by Lynne (Post 2450280)
Sorry, I didn't see is was a quote, it just looked like a bunch of blank space to me between the text and the signature.


Hi Lynne, actually this issue is still there, i need to set the a fix width for bbcode of php, html, code.

I remember on vb 3.7.x it was simple but i cant remember which to edit.

http://s2.ipicture.ru/uploads/20131007/7T25811z.jpg

Lynne 10-07-2013 05:20 PM

In order to fix CSS, we need a link to the actual post. An image doesn't allow us to view the CSS.

katie hunter 10-11-2013 06:37 AM

Hi Lynne, here is a link http://forum.nihonomaru.com/finished...bluray.343960/

See the long a url in the bbcode code the longer it will stretch out, i need to set the width for bbcode code for example to fix this issue. making the width may be 750 px

I did it with vb 3.7.6 but that was long time ago, i can't remember what did i change.
-------------

This was based on vb 3.7.x template of bbcode_code

PHP Code:

<div style="margin:20px; margin-top:5px">

    <
div class="smallfont" style="margin-bottom:2px"><b>$vbphrase[code]:</b> <a href="#" onclick="selectCode(this); return false;"><input type="button" value="Select All" style="border: 1px solid #B8B8B8; background: #E8E8E8; color: #999999; -moz-border-radius: 6px;     font-family: Tahoma;     font-size: 9px;" /></a></div



    <
pre class="alt2" dir="ltr" style="
        margin: 0px;
        padding: 
$stylevar[cellpadding]px;
        border: 1px inset;
        width: 
$stylevar[codeblockwidth];
        height: 
{$blockheight}px;
        text-align: left;
        overflow: auto"
>$code</pre>
</
div

Now this is the template for vb 4.2.1 and it is the same for the default vb skin, all bbcode and css of bbcode are the same.

PHP Code:

<div class="bbcode_container">
    <
div class="bbcode_description">{vb:rawphrase code}:</div>
    <
pre class="bbcode_code"<vb:if condition="$vboptions['codemaxlines']">style="height:<vb:if condition="$blockheight<$vboptions['codemaxlines']">{vb:math {vb:raw blockheight}*{vb:stylevar mid_fontSize}+{vb:stylevar mid_fontSize}*2}<vb:else />{vb:math {vb:raw blockheight}*{vb:stylevar mid_fontSize}+{vb:stylevar mid_fontSize}}</vb:if>;"</vb:if>>{vb:raw code}</pre>
</
div


It is actually done and fixed here too on vbulletin.org since the txt does not stretch the border, you can scroll left and right.

Lynne 10-11-2013 08:49 PM

Add to additional.css something like:

HTML Code:

.bbcode_container {width: 500px;}
change actual width to what you want.

katie hunter 10-12-2013 12:50 PM

Thank you! (: this works!

P.s.

Hi Lynne,

If i only want to apply this change to bbcode_code, bbcode_html and bbcode_php only, how can i do that?

I don't want to apply it in general because it does mess up the style for the bbcode_quote, which makes it i have to scroll left and right.

So i only want to apply the change to code, php, html. How can i do that?

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

Or a better way to auto fit the page automatically

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

I did this, i think it works? additional css

.bbcode_code {
width: 650px;
}

.bbcode_html {
width: 650px;
}

.bbcode_php {
width: 650px;
}


All times are GMT. The time now is 12:05 PM.

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.01128 seconds
  • Memory Usage 1,763KB
  • 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_html_printable
  • (2)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (16)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