miniBB Support Forums
|
Forums
|
Register
|
Reply
|
Search
|
Statistics
|
Manual
|
miniBB Support Forums
/
Specific
/
CodeBB wrap text around images.
astass
Registered
#1
|
Posted: 8 Dec 2009 03:43
|
Edited by: astass
Must be made.
At another forum like this is done:
[float=left] "here the image set" [/float]
is only a snippet of code: <div style="float: {option};">{content}</div>
Perhaps the forum has been such a theme? If not. How can I do? I need help.
astass
Registered
#2
|
Posted: 8 Dec 2009 03:58
|
Edited by: astass
This is very convenient! How such simplicity, the tag will be? What price?
Paul
CEO
#3
|
Posted: 8 Dec 2009 12:15
Just take a look at bb_codes.php of miniBB forums package, some codes like [quote] have similar syntax, you may copy/paste/modify them combining with [img] tag... it's really easy.
astass
Registered
#4
|
Posted: 8 Dec 2009 12:59
Paul:
Just take a look at bb_codes.php of miniBB forums package, some codes like [quote] have similar syntax, you may copy/paste/modify them combining with [img] tag... it's really easy.
I have my head on this broke. :) All my attempts to lead a syntax error. Although I tried very hard. And then, the code forum beautiful and correct. I still write code so I can not. : (Thanks for the advice. I will continue.
Paul
CEO
#5
|
Posted: 9 Dec 2009 05:36
If you will spend more than a week for this, for $6 I'm ready to spend 15 minutes ;-)
astass
Registered
#6
|
Posted: 9 Dec 2009 06:11
|
Edited by: astass
Paul:
If you will spend more than a week for this, for $6 I'm ready to spend 15 minutes ;-)
I have already ordered this work: (. But another specialist for five dollars. Maybe you even after the module'll order another. Uzhno me a lot:)
Paul
CEO
#7
|
Posted: 9 Dec 2009 06:13
Good luck :-)
(Still I doubt there are specialists which know miniBB better than it's author ;-)
astass
Registered
#8
|
Posted: 13 Dec 2009 08:35
|
Edited by: astass
find: bb_codes.php
/* local images - allowed for everybody */
Here we insert these lines:
/* tag flow <img src="img/logo1.gif" align="left"> */
$pattern[]='#\[float=(left|right)\](.*?)\[/float\]#is';
$replacement[]='<div style="float: \\1;">\\2</div>';
find: function deCodeBB($msg) {
Where you insert the following code:
$pattern[]="/<div class=\"float:left\"><img src=\"([^<> \n\r\[\]&]+?)\" alt=\"\" (title=\"\" )?style=\"float:left\" \/>/i";
$replacement[]="[float=left]\\1[/float]";
find:
$pattern[]="/<div style=\"text-align:(left|right|center)\">(.+?)<\/div>/is";
$replacement[]='[align\\1]\\2[/align]';
Paste the following code:
$pattern[] = '`<div style="float: (right|left);">(.*?)</div>`is';
$replacement[] = "[float=\\1]\\2[/float]\r\n";
The buttons are not difficult to put think
tom322
Registered
#9
|
Posted: 13 Dec 2009 10:54
|
Edited by: tom322
If it works good, but it looks a little too complicated, probably a simpler solution is possible.
miniBB Support Forums
/
Specific
/ CodeBB wrap text around images.
↑
Top
Your Reply
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.
News & Announcements
FAQ
How To
Bugs
The Other
Official Addons and Solutions
Custom Tutorials and Modifications
Master Class
Specific
Re-cycled
Suggestions
Testimonials
qwerty
Features
Requirements
Demo
Download
Showcase
Gallery of Arts
Compiler
Premium Extensions
Premium Support
License
Contacts
Did you know that you may be allowed to hide miniBB credits
and
remove miniBB's copyright notice
?