miniBB ®

miniBB

®
Support Forums
  
 · Start · Sign in · Register · Search · Statistics · File Bank · Manual ·
Custom Tutorials and Modifications miniBB Support Forums / Custom Tutorials and Modifications /  
 

allowing [s][/s] tags and aligned [img]

 
Author kelen
Guest
#1 · Posted: 13 May 2007 05:07Reply Quote
Hi please how i can allows bb-code [s][/s]???

and my tag for picture [imgsleft] or [imgsright] not function? where should be a problem?


(sorry for my english)

Thnx a lot!

Author tom322
Active Member
#2 · Posted: 13 May 2007 21:35Reply Quote
[s] - meaning small text?

Author kelen
Guest
#3 · Posted: 14 May 2007 02:27Reply Quote
no [s] is for strict tag... <s>test</s>

Author tom322
Active Member
#4 · Posted: 14 May 2007 10:29Reply Quote
I think you mean the "strike tag." You can try:

Edit bb_codes.php and in enCodeBB() function area paste:

$pattern[]="/\[[sS]\](.+?)\[\/[sS]\]/s";
$replacement[]='<s>\\1</s>';

In deCodeBB() function, paste:

$pattern[]="/<s>(.+?)<\/s>/is";
$replacement[]="[s]\\1[/s]";

----
Then use [s]test[/s] to test it.

Author kelen
Guest
#5 · Posted: 15 May 2007 06:04Reply Quote
ok, i have it now ... thnx

Author Paul
Lead Lead Developer
#6 · Posted: 15 May 2007 06:46Reply Quote
and my tag for picture [imgsleft] or [imgsright] not function? where should be a problem

There is no problem, these tags are not enabled by default. You need to either program them yourself, or use combination of nested tags like

[ alignleft][imgs=...]...[/imgs][/alignleft ]

Author kelen
Guest
#7 · Posted: 16 May 2007 06:32Reply Quote
yes i have it...my friend update a bbcodes.php and now its function...if anybody want this bbcode (img function and tag [s][/s] too) write email and i send it ... kelen@centrum.cz

Author Paul
Lead Lead Developer
#8 · Posted: 16 May 2007 10:31Reply Quote
Just publish them here.

Custom Tutorials and Modifications miniBB Support Forums / Custom Tutorials and Modifications /
 allowing [s][/s] tags and aligned [img]
 Share Topic's Link

Your Reply Click this icon to move up to the quoted message

BB code for the Bold StyleBB code for the Italic StyleBB Code for the PictureBB code for the URLUpload a File

  ?
Post as a Guest, leaving the Password field blank. You could also enter a Guest name, if it's not taken by a member yet. Sign-in and post at once, or just sign-in, bypassing the message's text.


Before posting, make sure your message is compliant with forum rules; otherwise it could be locked or removed with no explanation.

 

 
miniBB Support Forums Powered by Forum Software miniBB ® Home  Features  Requirements  Demo  Download  Showcase  Gallery of Arts
Compiler  Premium Extensions  Premium Support  License  Contact Us
Get the File and Picture Attachments add-on: extend your miniBB-forums, attaching images and files.