miniBB ® miniBB®
miniBB Support Forums
 | Forums | Register | Reply | Search | Statistics | 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:07 
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
Registered
#2 | Posted: 13 May 2007 21:35 
[s] - meaning small text?

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

Author tom322
Registered
#4 | Posted: 14 May 2007 10:29 
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:04 
ok, i have it now ... thnx

Author Paul
Lead Developer
#6 | Posted: 15 May 2007 06:46 
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:32 
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 Developer
#8 | Posted: 16 May 2007 10:31 
Just publish them here.

Custom Tutorials and Modifications miniBB Support Forums / Custom Tutorials and Modifications / allowing [s][/s] tags and aligned [img] Top

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

 Short link for this topic:

 ?
You are welcome to post anonymously, by entering a nickname with no password (if the similar Username has not been taken yet), or by leaving both fields empty. If you have a forums account, you can also sign in from this page without posting a message, or sign in and post at once.


Before posting, make sure your message is compliant with our forum posting rules. If not, it may be locked or deleted with no explanation.
 
miniBB Support Forums Powered by Forum Software miniBB ® Features  Requirements  Demo  Download  Showcase  Gallery of Arts
Compiler  Premium Extensions  Premium Support  License  Contacts
Check out the Captcha add-on: protect your miniBB-forums from the automated spam and flood.
Captcha Addon for miniBB