BBCodebox Light

Modifications for phpBB3. Try the Mods here and share Your own Mods
There is no support here! Only Read Access!
Forum rules
You dont have to use ModX or make your mod AutoMod compatible. A simple textfile is fine
But if you post Mods here You also have to give support
User avatar
Post Bot
BBCoder II
BBCoder II
Posts: 44
Joined: 04 Mar 2010, 20:53

BBCodebox Light

Post by Post Bot »

BBCodebox Light

Moved: viewtopic.php?f=45&t=1381
gsandys
BBCoder II
BBCoder II
Posts: 19
Joined: 19 Mar 2010, 16:56
Location: Latvian

Re: BBCodebox Light

Post by gsandys »

But if they want to Apply to Design subsilver2, there is something to be changed? I do not work ...
User avatar
Stoker
Site Admin
Site Admin
Posts: 3536
Joined: 12 May 2008, 23:26
BBCodes: 239
Favourite BBCode: Anipro
Favourite MOD: PrettyPhoto
Location: Denmark
Contact:

Re: BBCodebox Light

Post by Stoker »

I dont have the subsilver2 code changed because I practically never works with that style.
Maybe someone else have them?
Board rules! No PM support
gsandys
BBCoder II
BBCoder II
Posts: 19
Joined: 19 Mar 2010, 16:56
Location: Latvian

Re: BBCodebox Light

Post by gsandys »

Can someone please highly codes
User avatar
Steve
BBCoder VI
BBCoder VI
Posts: 848
Joined: 05 Mar 2010, 01:10
BBCodes: 2000
Favourite BBCode: p**n tube
Favourite MOD: Non of Stokers

Re: BBCodebox Light

Post by Steve »

i know how todo it for subsilver2

open subsilver2/template/posting_buttons.html

find:

Code: Select all

		<input type="button" class="btnbbcode" accesskey="b" name="addbbcode0" value=" B " style="font-weight:bold; width: 30px;" onclick="bbstyle(0)" onmouseover="helpline('b')" onmouseout="helpline('tip')" />
		<input type="button" class="btnbbcode" accesskey="i" name="addbbcode2" value=" i " style="font-style:italic; width: 30px;" onclick="bbstyle(2)" onmouseover="helpline('i')" onmouseout="helpline('tip')" />
		<input type="button" class="btnbbcode" accesskey="u" name="addbbcode4" value=" u " style="text-decoration: underline; width: 30px;" onclick="bbstyle(4)" onmouseover="helpline('u')" onmouseout="helpline('tip')" />
		<!-- IF S_BBCODE_QUOTE -->
			<input type="button" class="btnbbcode" accesskey="q" name="addbbcode6" value="Quote" style="width: 50px" onclick="bbstyle(6)" onmouseover="helpline('q')" onmouseout="helpline('tip')" />
		<!-- ENDIF -->
		<input type="button" class="btnbbcode" accesskey="c" name="addbbcode8" value="Code" style="width: 40px" onclick="bbstyle(8)" onmouseover="helpline('c')" onmouseout="helpline('tip')" />
		<input type="button" class="btnbbcode" accesskey="l" name="addbbcode10" value="List" style="width: 40px" onclick="bbstyle(10)" onmouseover="helpline('l')" onmouseout="helpline('tip')" />
		<input type="button" class="btnbbcode" accesskey="o" name="addbbcode12" value="List=" style="width: 40px" onclick="bbstyle(12)" onmouseover="helpline('o')" onmouseout="helpline('tip')" />
		<input type="button" class="btnbbcode" accesskey="t" name="addlitsitem" value="[*]" style="width: 40px" onclick="bbstyle(-1)" onmouseover="helpline('e')" onmouseout="helpline('tip')" />				
		<!-- IF S_BBCODE_IMG -->
			<input type="button" class="btnbbcode" accesskey="p" name="addbbcode14" value="Img" style="width: 40px" onclick="bbstyle(14)" onmouseover="helpline('p')" onmouseout="helpline('tip')" />
		<!-- ENDIF -->
		<!-- IF S_LINKS_ALLOWED -->
			<input type="button" class="btnbbcode" accesskey="w" name="addbbcode16" value="URL" style="text-decoration: underline; width: 40px" onclick="bbstyle(16)" onmouseover="helpline('w')" onmouseout="helpline('tip')" />
		<!-- ENDIF -->
		<!-- IF S_BBCODE_FLASH -->
			<input type="button" class="btnbbcode" accesskey="d" name="addbbcode18" value="Flash" onclick="bbstyle(18)" onmouseover="helpline('d')" onmouseout="helpline('tip')" />
		<!-- ENDIF -->
replace with:

Code: Select all

<input type="button" class="buttonz" accesskey="b" name="addbbcode0" value="" onclick="bbstyle(0)" title="{L_BBCODE_B_HELP}" style="background: url('./images/editor/text_bold.png');" />
   <input type="button" class="buttonz" accesskey="i" name="addbbcode2" value="" style="background: url('./images/editor/text_italic.png');" onclick="bbstyle(2)" title="{L_BBCODE_I_HELP}" />
   <input type="button" class="buttonz" accesskey="u" name="addbbcode4" value="" style="background: url('./images/editor/text_underline.png');" onclick="bbstyle(4)" title="{L_BBCODE_U_HELP}" />
   <!-- IF S_BBCODE_QUOTE -->
      <input type="button" class="buttonz" accesskey="q" name="addbbcode6" value="" style="background: url('./images/editor/comment.png');" onclick="bbstyle(6)" title="{L_BBCODE_Q_HELP}" />
   <!-- ENDIF -->
   <input type="button" class="buttonz" accesskey="c" name="addbbcode8" value="" style="background: url('./images/editor/page_white_code.png');" onclick="bbstyle(8)" title="{L_BBCODE_C_HELP}" />
   <input type="button" class="buttonz" accesskey="l" name="addbbcode10" value="" style="background: url('./images/editor/text_list_bullets.png');" onclick="bbstyle(10)" title="{L_BBCODE_L_HELP}" />
   <input type="button" class="buttonz" accesskey="o" name="addbbcode12" value="" style="background: url('./images/editor/text_list_numbers.png');" onclick="bbstyle(12)" title="{L_BBCODE_O_HELP}" />
   <input type="button" class="buttonz" accesskey="t" name="addlitsitem" value="" style="background: url('./images/editor/bullet_black.png');" onclick="bbstyle(-1)" title="{L_BBCODE_LISTITEM_HELP}" />
   
   <!-- IF S_BBCODE_IMG -->
      <input type="button" class="buttonz" accesskey="p" name="addbbcode14" value="" style="background: url('./images/editor/image.png');" onclick="bbstyle(14)" title="{L_BBCODE_P_HELP}" />
   <!-- ENDIF -->
   <!-- IF S_LINKS_ALLOWED -->
      <input type="button" class="buttonz" accesskey="w" name="addbbcode16" value="" style="background: url('./images/editor/world_link.png');" onclick="bbstyle(16)" title="{L_BBCODE_W_HELP}" />
   <!-- ENDIF -->
   <!-- IF S_BBCODE_FLASH -->
      <input type="button" class="buttonz" accesskey="d" name="addbbcode18" value="" style="background: url('./images/editor/page_white_flash.png');" onclick="bbstyle(18)" title="{L_BBCODE_D_HELP}" />
   <!-- ENDIF -->
<input type="button" class="buttonz" value="" style="background: url('./images/editor/color_wheel.png');" onclick="javascript:;" onmousedown="toggleDiv('colour_palette');"/>        
find:

Code: Select all

		<!-- IF S_BBCODE_FLASH -->
			<input type="button" class="btnbbcode" accesskey="d" name="addbbcode18" value="Flash" onclick="bbstyle(18)" onmouseover="helpline('d')" onmouseout="helpline('tip')" />
		<!-- ENDIF -->
add after:

Code: Select all

<input type="button" class="buttonz" value="" style="background: url('./images/color_wheel.png');" onclick="javascript:;" onmousedown="toggleDiv('colour_palette');"/>
find:

Code: Select all

<tr>
	<td<!-- IF $S_SIGNATURE or S_EDIT_DRAFT --> colspan="2"<!-- ENDIF -->><input type="text" readonly="readonly" name="helpbox" style="width:100%" class="helpline" value="{L_STYLES_TIP}" /></td>
	<!-- IF not $S_SIGNATURE and not S_EDIT_DRAFT -->
		<td class="genmed" align="center">{L_FONT_COLOR}</td>
	<!-- ENDIF -->
</tr>
replace with:

Code: Select all

<tr>
	<td<!-- IF $S_SIGNATURE or S_EDIT_DRAFT --> colspan="2"<!-- ENDIF -->><input type="text" readonly="readonly" name="helpbox" style="width:100%" class="helpline" value="{L_STYLES_TIP}" /></td>
	<!-- IF not $S_SIGNATURE and not S_EDIT_DRAFT -->
<tr><td>

<!-- start colour palette script -->
<div id="colour_palette" align="center" style="display: none;">
<script type="text/javascript">
function change_palette()
{
dE('colour_palette');
e = document.getElementById('colour_palette');

}
colorPalette('h', 10, 6);
</script>
</div>

<script language="javascript">
function toggleDiv(colour_palette){
if(document.getElementById(colour_palette).style.display == 'none'){
document.getElementById(colour_palette).style.display = 'block';
}else{
document.getElementById(colour_palette).style.display = 'none';
}
}
</script>
<!-- end colour palette script -->

</td></tr>
	<!-- ENDIF -->
</tr>
find and delete from posting_body.html

Code: Select all

			<!-- IF S_BBCODE_ALLOWED -->
			<td width="80" align="center" valign="top">
				<script type="text/javascript">
				// <![CDATA[
					colorPalette('v', 7, 6)
				// ]]>
				</script>
			</td>
			<!-- ENDIF -->
also add the css edits in the 1st post to your stylesheet.css refresh template and browser :ugeek:

[hsimg]http://www.djsimg.com/images/85229969_0310_sub.png[/hsimg]
Last edited by Steve on 19 Mar 2010, 22:20, edited 1 time in total.
Steve wrote: 14 Nov 2024, 16:45 It's happy bastard day!
gsandys
BBCoder II
BBCoder II
Posts: 19
Joined: 19 Mar 2010, 16:56
Location: Latvian

Re: BBCodebox Light

Post by gsandys »

Immediately examine but already looks like that is ok! thank you.

you confident that open subsilver2/template/posting_body.html I have phpBB3.0.7PZ when I press Ctrl+F

At the file, nothing found...

maybe you can to make all files?
User avatar
Steve
BBCoder VI
BBCoder VI
Posts: 848
Joined: 05 Mar 2010, 01:10
BBCodes: 2000
Favourite BBCode: p**n tube
Favourite MOD: Non of Stokers

Re: BBCodebox Light

Post by Steve »

gsandys » 19 Mar 2010, 20:57 wrote:Immediately examine but already looks like that is ok! thank you.

you confident that open subsilver2/template/posting_body.html I have phpBB3.0.7PZ when I press Ctrl+F

At the file, nothing found...

maybe you can to make all files?
yep sorry edited post i got some finds the wrong way try now :|
Steve wrote: 14 Nov 2024, 16:45 It's happy bastard day!
gsandys
BBCoder II
BBCoder II
Posts: 19
Joined: 19 Mar 2010, 16:56
Location: Latvian

Re: BBCodebox Light

Post by gsandys »

one small mistake, there are two tags with colors, but it lifted the receiver, but how do I add a new icon to me because there are other bb codes (center, right, left, hr, s, sub & others)
User avatar
Steve
BBCoder VI
BBCoder VI
Posts: 848
Joined: 05 Mar 2010, 01:10
BBCodes: 2000
Favourite BBCode: p**n tube
Favourite MOD: Non of Stokers

Re: BBCodebox Light

Post by Steve »

gsandys » 19 Mar 2010, 22:02 wrote:one small mistake, there are two tags with colors, but it lifted the receiver, but how do I add a new icon to me because there are other bb codes
did you do this ?

find and delete from posting_body.html

Code: Select all

         <!-- IF S_BBCODE_ALLOWED -->
         <td width="80" align="center" valign="top">
            <script type="text/javascript">
            // <![CDATA[
               colorPalette('v', 7, 6)
            // ]]>
            </script>
         </td>
         <!-- ENDIF -->
you can try and learn how to add an image for every custom bbcode on your posting page if you like, but thats a lot of writing :!:
Steve wrote: 14 Nov 2024, 16:45 It's happy bastard day!
gsandys
BBCoder II
BBCoder II
Posts: 19
Joined: 19 Mar 2010, 16:56
Location: Latvian

Re: BBCodebox Light

Post by gsandys »

find and delete from posting_body.html

Code: Select all

         <!-- IF S_BBCODE_ALLOWED -->
         <td width="80" align="center" valign="top">
            <script type="text/javascript">
            // <![CDATA[
               colorPalette('v', 7, 6)
            // ]]>
            </script>
         </td>
         <!-- ENDIF -->
Yes but now it is OK Tnx! ;)

but talking about icons them I mean "I have the tag" but the panel need icon, not text

Image

Sorry about the English language - I'm from the Latvian
Locked