PDA

View Full Version : Change Post Icon? 10 per row


katie hunter
10-04-2013, 07:16 PM
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 1380931733 at 1380931733 ---------------

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 (https://vborg.vbsupport.ru/showthread.php?t=302969)

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
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-announcement.7/thread/still-more-work-done.342710/page2#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 1380999196 at 1380999196 ---------------

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
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-anime-series.44/thread/%5Bmulti%5D-minami-ke-tadaima-720p-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

<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.

<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:

.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 1381585971 at 1381585971 ---------------

Or a better way to auto fit the page automatically

--------------- Added 1381586295 at 1381586295 ---------------

I did this, i think it works? additional css

.bbcode_code {
width: 650px;
}

.bbcode_html {
width: 650px;
}

.bbcode_php {
width: 650px;
}