Inline code mod

Looking for a MOD? Have a MOD request? Post here for help. (Note: This forum is community supported; phpBB does not have official MOD authors)
Suggested Hosts
User avatar
Shturmfogell
Registered User
Posts: 157
Joined: Fri Oct 12, 2007 10:12 am
Location: Abkhazia
Contact:

Inline code mod

Post by Shturmfogell » Thu Dec 09, 2010 9:03 am

Can anyone tell me are there any stand alone mods for Inline Cod like here in the bbcode section?

User avatar
Brf
Support Team Member
Support Team Member
Posts: 51720
Joined: Tue May 10, 2005 7:47 pm
Location: {postrow.POSTER_FROM}
Contact:

Re: Inline code mod

Post by Brf » Thu Dec 09, 2010 12:41 pm

The bbcode is not a mod. It is a simple Custom bbcode.

User avatar
Shturmfogell
Registered User
Posts: 157
Joined: Fri Oct 12, 2007 10:12 am
Location: Abkhazia
Contact:

Re: Inline code mod

Post by Shturmfogell » Thu Dec 09, 2010 12:56 pm

Can you pls tell me how to insert it in custom bbcodes

User avatar
hah
Registered User
Posts: 85
Joined: Sat Feb 13, 2010 11:49 am
Location: Pernik, Bulgaria
Name: Alex Georgiev
Contact:

Re: Inline code mod

Post by hah » Thu Dec 09, 2010 2:16 pm

Bbcode:

Code: Select all

[c]{INTTEXT}[/c]
html:

Code: Select all

<code class="inline">{INTTEXT}</code>
test

User avatar
4_seven
I've Been Banned!
Posts: 5155
Joined: Wed Apr 30, 2008 1:41 am

Re: Inline code mod

Post by 4_seven » Thu Dec 09, 2010 2:37 pm

also make shure, the class 'inline' is present in board-css

Code: Select all

code.inline {
    background: none repeat scroll 0 0 #FFFFFF;
    border: 1px solid #C9D2D8;
    color: #2E8B57;
    display: inline;
    font-family: Monaco,'Andale Mono','Courier New',Courier,monospace;
    font-size: 0.9em;
    font-style: normal;
    line-height: 1.3em;
    padding: 0 3px;
}
Current Mods | Mod Base | php(BB) programming | No help via PM

User avatar
Shturmfogell
Registered User
Posts: 157
Joined: Fri Oct 12, 2007 10:12 am
Location: Abkhazia
Contact:

Re: Inline code mod

Post by Shturmfogell » Thu Dec 09, 2010 3:06 pm

tnx very much!

User avatar
austin881
Registered User
Posts: 283
Joined: Wed Jan 30, 2008 9:58 pm
Location: Boise, Idaho, USA
Name: Austin Maddox
Contact:

Re: Inline code mod

Post by austin881 » Thu Jan 27, 2011 5:12 pm

Shturmfogell, did you get this to work? I tried it on my sites and it doesn't work if there is actual code within the [ c ] [ / c ] tags.

In fact, the inline code bbcode doesn't even work very well here at phpbb.com You can't put actual bbcode with the tags and have it displayed as-typed.

Try to put something other than plain text test inside the tags. The inline code should work like the code bbcode. It surely does not.
Available for paid phpBB help! PM me.

My Extensions/MODS: 475 Narius Categorized Smilies for phpBB3, Simplified & Compacted All-Members page, Flash Animated Cumulus Tag Cloud, "Hello" Name Tag of Newest User, AWS S3
phpBB portfolio: chevy truck forum, chevy astro van forum

User avatar
Brf
Support Team Member
Support Team Member
Posts: 51720
Joined: Tue May 10, 2005 7:47 pm
Location: {postrow.POSTER_FROM}
Contact:

Re: Inline code mod

Post by Brf » Thu Jan 27, 2011 5:24 pm

It works as intended.

User avatar
Shturmfogell
Registered User
Posts: 157
Joined: Fri Oct 12, 2007 10:12 am
Location: Abkhazia
Contact:

Re: Inline code mod

Post by Shturmfogell » Thu Jan 27, 2011 5:26 pm

No, i didn't but I got the idea and it is now in my ToDo list :)

User avatar
austin881
Registered User
Posts: 283
Joined: Wed Jan 30, 2008 9:58 pm
Location: Boise, Idaho, USA
Name: Austin Maddox
Contact:

Re: Inline code mod

Post by austin881 » Thu Jan 27, 2011 9:06 pm

I guess all I'm saying is that the inline code does not work like the regular code. Inline code is more of a styling tool rather than an actual 'code' box. Which in my opinion makes it worthless. :roll:

[b]bold[/b] [i]italics[/i] [u]underline[/u] should all be written as plain text like this...

Code: Select all

[b]bold[/b] [i]italics[/i] [u]underline[/u]
Sort of defeats the purpose of a code box if you can't display bbcode in plain text, doesn't it?
Available for paid phpBB help! PM me.

My Extensions/MODS: 475 Narius Categorized Smilies for phpBB3, Simplified & Compacted All-Members page, Flash Animated Cumulus Tag Cloud, "Hello" Name Tag of Newest User, AWS S3
phpBB portfolio: chevy truck forum, chevy astro van forum

User avatar
Erik Frèrejean
Former Team Member
Posts: 9899
Joined: Tue Oct 09, 2007 9:09 am
Location: The Netherlands, 3.0.x Support Forum
Name: Erik Frèrejean
Contact:

Re: Inline code mod

Post by Erik Frèrejean » Thu Jan 27, 2011 10:17 pm

austin881 wrote:Sort of defeats the purpose of a code box if you can't display bbcode in plain text, doesn't it?
The main purpose of the code box isn't to post BBCode that isn't rendered, its designed to display source code ;). The inline code is mostly used to display code snippets inline. Example:
$foo = 'something'; looks a lot better than: $foo = 'something';, and everyone can see at first sight that its mend to be red as code not as text. Yes it might not be the best solution but until the new BBCode engine is implemented this is the only way without editing the core.
Support Toolkit | Support Request Template | Knowledge Base | phpBB 3.0.x documentation
I don't give support via PM or IM! (all unsolicited pms will be trashed!)

User avatar
Dragosvr92
Registered User
Posts: 1450
Joined: Sat Sep 12, 2009 7:27 am
Location: Romania
Name: Dragos Valentin Rădulescu
Contact:

Re: Inline code mod

Post by Dragosvr92 » Wed Apr 13, 2011 11:00 pm

I Tried it on my Board and it dosnt work correctly O-O

This Works all righ:
TESTING
But if i add any symbols in the code for example

TEST/ING
TEST*ING
TEST!ING
And any of this !@#$%^&*()_+|{} Symbols the bbcode dosnt get parsed so it looks like :
TEST*ING

Dos anyone have any idea what could be wrong ? O-o
Formerly known as TheKiller
3.0| Avatar on Memberlist 1.0.3

User avatar
Dragosvr92
Registered User
Posts: 1450
Joined: Sat Sep 12, 2009 7:27 am
Location: Romania
Name: Dragos Valentin Rădulescu
Contact:

Re: Inline code mod

Post by Dragosvr92 » Thu Apr 14, 2011 9:27 pm

Can anyone help?
Formerly known as TheKiller
3.0| Avatar on Memberlist 1.0.3

User avatar
AGC
Registered User
Posts: 292
Joined: Sat Sep 15, 2007 10:26 pm
Contact:

Re: Inline code mod

Post by AGC » Fri Apr 15, 2011 11:41 am

TheKiller wrote:I Tried it on my Board and it dosnt work correctly O-O

This Works all righ:
TESTING
But if i add any symbols in the code for example

TEST/ING
TEST*ING
TEST!ING
And any of this !@#$%^&*()_+|{} Symbols the bbcode dosnt get parsed so it looks like :
TEST*ING

Dos anyone have any idea what could be wrong ? O-o
Instand of using with INTTEXT change it to TEXT.
(phpBB 2.0.x): []Admin Topics List[] MOD. << Description & Download. , []Highlight Author[] MOD.

Donate-paypal
(phpBB 3.0.x)[ver] MODs: [RC1] >Import old *.pak files MOD. + . . .[8] > ACP - Modules Quick Access (MQA) MOD. + . . . [7-PL1] > Multi Smile (actions) MOD

User avatar
Dragosvr92
Registered User
Posts: 1450
Joined: Sat Sep 12, 2009 7:27 am
Location: Romania
Name: Dragos Valentin Rădulescu
Contact:

Re: Inline code mod

Post by Dragosvr92 » Fri Apr 15, 2011 6:26 pm

hm.. while i used TEXT a few days ago there was a warning of not using it ..
can some phpbb admin give the exact code they use ? :)

EDIT
That fixed it without the error
thanks AGC :)
Formerly known as TheKiller
3.0| Avatar on Memberlist 1.0.3

Locked

Return to “[3.0.x] MOD Requests”