Table Plus BBCodes

Started by vbgamer45, March 12, 2009, 12:47:53 PM

Previous topic - Next topic

Frank Hunt

Quote from: 4T3IG0 on May 12, 2011, 06:23:47 AM
Hi.

I also tried installing this on 2.0 RC5 but it doesn't seem to work. Can anyone help me?

I tried doing it all manually but can't find ./Themes/default/style.css

Quote from: Bugo on October 12, 2010, 05:19:28 AM
See css/index.css

C4G-TK

#61
What isn't working?
I installed it about two days ago and even changed some of my colors to match the forum.  Is working on mine.


Update:  I see the problem.  I have a package that used to be attached in the thread here.  It has since been removed.  I keep all the packages on my hard drive for each forum version and don't throw them away.  Unfortunately, I think I'm prohibited from distributing them.


-img removed-

4T3IG0

Quote from: C4G-TK on May 26, 2011, 10:09:55 PM
What isn't working?
I installed it about two days ago and even changed some of my colors to match the forum.  Is working on mine.


Update:  I see the problem.  I have a package that used to be attached in the thread here.  It has since been removed.  I keep all the packages on my hard drive for each forum version and don't throw them away.  Unfortunately, I think I'm prohibited from distributing them.




Hi.

Tnks for your reply.  I fixed and it works now. However I have one more question, how do you aligne so well the raws?


C4G-TK

It has always worked well.  The only thing that I have added to the above bbc in that image is underline, bold and center.

[center][b]summer hours[/b]
[table]
[tr][td][u][b]day[/b][/u][/td][td][u][b]open[/b][/u][/td][td][u][b]close[/b][/u][/td][/tr]
[tr][td][b]monday[/b][/td][td][b]12pm[/b][/td][td][b]6pm[/b][/td][/tr]
[tr][td][b]tuesday[/b][/td][td][b]12pm[/b][/td][td][b]6pm[/b][/td][/tr]
[tr][td][b]wednesday[/b][/td][td][b]12pm[/b][/td][td][b]6pm[/b][/td][/tr]
[tr][td][b]thursday[/b][/td][td][b]12pm[/b][/td][td][b]6pm[/b][/td][/tr]
[tr][td][b]friday[/b][/td][td][b]12pm[/b][/td][td][b]6pm[/b][/td][/tr]
[tr][td][b]saturday[/b][/td][td][b]12pm[/b][/td][td][b]6pm[/b][/td][/tr]
[tr][td][b]sunday[/b][/td][td][b]12pm[/b][/td][td][b]6pm[/b][/td][/tr]
[/table]

[b]release night hours[/b]
[table]
[tr][td][u][b]day[/b][/u][/td][td][u][b]open[/b][/u][/td][td][u][b]close[/b][/u][/td][/tr]
[tr][td][b]tuesday[/b][/td][td][b]7pm[/b][/td][td][b]2am[/b]*[/td][/tr]
[/table][/center]



-img removed-

4T3IG0

Quote from: C4G-TK on June 02, 2011, 04:11:08 PM
It has always worked well.  The only thing that I have added to the above bbc in that image is underline, bold and center.

[center][b]summer hours[/b]
[table]
[tr][td][u][b]day[/b][/u][/td][td][u][b]open[/b][/u][/td][td][u][b]close[/b][/u][/td][/tr]
[tr][td][b]monday[/b][/td][td][b]12pm[/b][/td][td][b]6pm[/b][/td][/tr]
[tr][td][b]tuesday[/b][/td][td][b]12pm[/b][/td][td][b]6pm[/b][/td][/tr]
[tr][td][b]wednesday[/b][/td][td][b]12pm[/b][/td][td][b]6pm[/b][/td][/tr]
[tr][td][b]thursday[/b][/td][td][b]12pm[/b][/td][td][b]6pm[/b][/td][/tr]
[tr][td][b]friday[/b][/td][td][b]12pm[/b][/td][td][b]6pm[/b][/td][/tr]
[tr][td][b]saturday[/b][/td][td][b]12pm[/b][/td][td][b]6pm[/b][/td][/tr]
[tr][td][b]sunday[/b][/td][td][b]12pm[/b][/td][td][b]6pm[/b][/td][/tr]
[/table]

[b]release night hours[/b]
[table]
[tr][td][u][b]day[/b][/u][/td][td][u][b]open[/b][/u][/td][td][u][b]close[/b][/u][/td][/tr]
[tr][td][b]tuesday[/b][/td][td][b]7pm[/b][/td][td][b]2am[/b]*[/td][/tr]
[/table][/center]




Tnks a lot. I used your code and I also get it perfect. Now I just have to study better that code.  ;)

Regards


Frank Hunt

Quote from: Bugo on February 16, 2011, 10:58:47 AM
<file name="$sourcedir/Subs-Editor.php">
<operation>
<search position="replace"><![CDATA[
array(
'image' => 'table',
'code' => 'table',
'before' => '[table]\n[tr]\n[td]',
'after' => '[/td]\n[/tr]\n[/table]',
'description' => $txt['table']
),]]></search>
<add><![CDATA[
array(
'image' => 'tabletrtd',
'code' => 'tabletrtd',
'before' => '[table]\n[tr]\n[td]',
'after' => '[/td][td][/td]\n[/tr]\n[/table]',
'description' => $txt['table']
),
array(
'image' => 'tr',
'code' => 'tr',
'before' => '[tr]\n[td]',
'after' => '[/td][td][/td]\n[/tr]',
'description' => $txt['table_tr']
),
array(
'image' => 'td',
'code' => 'td',
'before' => '[td]',
'after' => '[/td]',
'description' => $txt['table_td']
),]]></add>
</operation>
</file>


I can't figure out what file to place this in. Would someone be kind enough to tell me?

C4G-TK

/Sources/Subs-Editor.php

According to the code you listed, look at the first line of the code there.  It is telling you to look in that file.

Then, search for

array(
'image' => 'table',
'code' => 'table',
'before' => '[table]\n[tr]\n[td]',
'after' => '[/td]\n[/tr]\n[/table]',
'description' => $txt['table']
),


and replace it with

array(
'image' => 'tabletrtd',
'code' => 'tabletrtd',
'before' => '[table]\n[tr]\n[td]',
'after' => '[/td][td][/td]\n[/tr]\n[/table]',
'description' => $txt['table']
),
array(
'image' => 'tr',
'code' => 'tr',
'before' => '[tr]\n[td]',
'after' => '[/td][td][/td]\n[/tr]',
'description' => $txt['table_tr']
),
array(
'image' => 'td',
'code' => 'td',
'before' => '[td]',
'after' => '[/td]',
'description' => $txt['table_td']
),




-img removed-

DnZkYcN

Hi,

i have Smf 2.0 and i installed this mod but i cant solving it
here is my subs-editor changes:
array(
'image' => 'tabletrtd',
'code' => 'tabletrtd',
'before' => '[table]\n[tr]\n[td]',
'after' => '[/td][td][/td]\n[/tr]\n[/table]',
'description' => $txt['table']
),
array(
'image' => 'tr',
'code' => 'tr',
'before' => '[tr]\n[td]',
'after' => '[/td][td][/td]\n[/tr]',
'description' => $txt['table_tr']
),
array(
'image' => 'td',
'code' => 'td',
'before' => '[td]',
'after' => '[/td]',
'description' => $txt['table_td']
),


and style css:
/* Table Plus BBCodes */
.bbc_table { border-spacing: 2px; background: #88A6C0 url(images/catbg.jpg) repeat-x }
.bbc_table td { padding: 5px; background: #E9F0F6 url(images/titlebg.jpg) repeat-x 0 -17px }
{
color: #000000;
font-size: 10pt;
font-weight: bold;
}


I'm using default theme and last 2.0, i cant get borders. What should i do?

namikaze

I cannot get this mod to work on my forum.  I'm using SMF 1.1.15, and mod version 1.2.  I've deleted my cache, done hard refreshes, etc. to no avail.  My tables still look borderless and no different from the default BBCode tables.  Any advice?

Nimras

Well it works if we forget that it is missing 2 pictures td.gif and tr.gif beside that then it seems this at least work for me to do some work lol even tho i would like to have a mod that could take this table:

[table1][tr][th=2]Attack Forces[/th][th=2]Military Stats[/th][/tr][tr][td=1]Soldier​s[/td][td=1]350,000(0)[/td][td=1]​Strike Action:[/td][td=1]11,723,250,000​[/td][/tr][tr][td=1]Mercenaries[/​td][td=1]0[/td][td=1]Defensive Action:[/td][td=1]26,460,000,000​[/td][/tr][tr][th=2]Defense Forces[/th][td=1]Covert Action:[/td][td=1]11,836,800,000​[/td][/tr][tr][td=1]Soldiers[/td]​[td=1]700,000(0)[/td][td=1]Assass​in Action:[/td][td=1]10,584,000,000​[/td][/tr][tr][td=1]Mercenaries[/​td][td=1]0[/td][td=2][/td][/tr][t​r][th=2]Spies/Assassins[/th][td=1​]Spy Power:[/td][td=1]7.200[/td][/tr]​[tr][td=1]Spies[/td][td=1]600,000​(0)[/td][td=1]Assassin Power:[/td][td=1]7.200[/td][/tr]​[tr][td=1]Assassins[/td][td=1]700​,000(0)[/td][td=1]Weapon Level[/td][td=1]1800[/td][/tr][t​r][th=2]Wounded/Healed[/th][td=1]​Unit Production[/td][td=1]45,000/87,9​25[/td][/tr][tr][td=1]Wounded(Hea​led)[/td][td=1]10,296(51,656)[/td​][td=2][/td][/tr][tr][th=2]Econom​ic Units[/th][th=2]Technological Development[/th][/tr][tr][td=1]U​ntrained[/td][td=1]0[/td][td=1]At​tack Technology[/td][td=1]210%[/td][/​tr][tr][td=1]Idles[/td][td=1]0[/t​d][td=1]Defense Technology[/td][td=1]210%[/td][/​tr][tr][td=1]Farmers[/td][td=1]25​,325,334(29,308)[/td][td=1]Covert Technology[/td][td=1]210%[/td][/​tr][tr][td=1]Workers[/td][td=1]1,​000,000(0)[/td][td=1]Assassin Technology[/td][td=1]210%[/td][/​tr][tr][td=1]Miners[/td][td=1]500​,000(0)[/td][td=1]Training Facilities[/td][td=1]20.000[/td]​[/tr][tr][th=1]Total Pop.[/th][td=1]29,205,500[/td][t​d=1]Weapons Factory[/td][td=1]20.000[/td][/t​r][/table1]

here is the result:



Since in many ways it makes it so much easier a friend of mine uses it on his PHPbb board

4Kstore


¡¡NEW MOD: Sparkles User Names!!!

IngeJones

Which version do I need for 2.0.2, or is it manual install only?

Advertisement: