Get started with PHP-Fusion

Start a New Thread

Users Participated

  • lelebart
    Post made: 1
  • Ugleh
    Post made: 2
  • ChildHold
    Post made: 3

  1. PHP-Fusion Support Forums
  2. PHP-Fusion 7 Support
  3. Content Administration

BBcode For [code].

This forum is for questions regarding the addition of content to your site

5 Replies 2,210 Views Last Updated on 3 years ago

ChildHold


Member

#1

Posted 3 years ago

The Original bbcode is this..
Code Gist: Download source  
Test


but i can't center this box...it happen like this:
Code Gist: Download source  
Test


I like to have bbcode that just only box that shows and not the disket icon

It just text that align at the center but not the box...

Is there any bbcode for code wrap??...

I like to have bbcode (code wrap) that will align at the center with the box....

please help me and sorry for my bad english.
Edited by ChildHold on 26-04-2012 22:49

Posts: 67

Joined: 13/03/2012

Ugleh


Member

#2

Posted 3 years ago

Open & Edit /includes/bbcode/code_bbcode_include.php

Find
Code Gist: Download source  
<div class=\'code_bbcode\'>

Replace
Code Gist: Download source  
<div class=\'code_bbcode\' align=\'center\' >


Save > Done

The text will be centered too though, so yea thats an issue with Code. Code should never be centered.
Tried adding: style=\'text-align:left;\'
But that didn't help either.

Posts: 159

Joined: 23/03/2007

ChildHold


Member

#3

Posted 3 years ago

Thanks...but why the font changed?

it turns like this..
i.imgur.com/Za6Fk.png

*One more thing,the code just align at the center,cannot go left or right?..
How can i make the box can align left,center or right?...

and hope that dont not changed...

Sorry for my bad english..Thanks..

Posts: 67

Joined: 13/03/2012

lelebart


Admin

#4

Posted 3 years ago

via CSS!
Code Gist: Download source  
div.code_bbcode { margin-left: auto; margin-right: auto; }

I don't know! I don't know why I did it, I don't know why I enjoyed it, and I don't know why I'll do it again! Bart Simpson

Posts: 131

Joined: 17/09/2006

Ugleh


Member

#5

Posted 3 years ago

he wants us to code a new bbcode or alter the same one to allow something along the lines of [code align=center]

Posts: 159

Joined: 23/03/2007

ChildHold


Member

#6

Posted 3 years ago

Thanks lelebart..but what should i change if i want the font not change to small and bold..

i want normal font and normal size.

Please..Thanks.

Posts: 67

Joined: 13/03/2012

Jump to Forum:
9 users are online
0 member and 9 guests