What do you exactly mean by extremly right. An example?GilaMonster wrote: I think there is a problem with =right as when I use the bbcode img=right, the image comes up to the extreme right, but seems to fall on the next line below the text or whatever is placed prior to the image.
GilaMonster wrote: Also, there is on apparent changes to the bbcode buttons within my new topic or reply within my board. I do get the new codes shown upon mouseover of the img button. Is that normal or is there supposed to be a new set of buttons show up? The area of the bbcode buttons (and everything else) is exactly the same as it was prior to the addition of the mod.
GilaMonster wrote: Also, there is on apparent changes to the bbcode buttons within my new topic or reply within my board. I do get the new codes shown upon mouseover of the img button. Is that normal or is there supposed to be a new set of buttons show up? The area of the bbcode buttons (and everything else) is exactly the same as it was prior to the addition of the mod.
Code: Select all
[img=right:b620dc2719]url-to-the-image-here And then text goes here
## EasyMOD compliant
##############################################################
## MOD Title: Left and Right IMG tags
## MOD Author: Nuttzy < [email protected] > (Nuttzy) http://www.blizzhackers.com
##
## MOD Description: This MOD will allow you to better format
## you posts by aligning images left and right instead of
## just in-line as with the standard tag. Text
## will also neatly wrap around the images.
## MOD Version: 1.6.0
##
## Installation Level: EASY
## Installation Time: 4-5 Minutes
## Files To Edit: 6
## - includes/bbcode.php
## - templates/subSilver/bbcode.tpl
## - language/lang_english/lang_main.php
## - language/lang_english/lang_bbcode.php
## Included Files: n/a
## License: http://opensource.org/licenses/gpl-license.php GNU General Public License v2
##############################################################
## For security purposes, please check: http://www.phpbb.com/mods/
## for the latest version of this MOD. Although MODs are checked
## before being allowed in the MODs Database there is no guarantee
## that there are no security problems within the MOD. No support
## will be given for MODs not found within the MODs Database which
## can be found at http://www.phpbb.com/mods/
##############################################################
##
## Author Notes:
##
## Works with phpBB 2.0.4 thru 2.0.6
## IMPORTANT: you MUST first have already installed the Multi Quick BBCode MOD
##
## Usage:
## to left justify image
## to right justify image
## (used to be [left][/left] and [right][/right] -- this frees up more hotkeys)
##
##
##############################################################
##
## MOD History:
## 2003-11-02 - Version 1.6.0
## + Changed to img=left and img=right
##
## 2003-09-25 - Version 1.5.2
## + improved MOD Template compliance
##
## 02/05/03 - bug fix: changed instance in bbcode.tpl where
## left should have been right - DanielT
##
## 02/04/03 - updated for 2.0.4
## - added BBCode FAQ entry
##
## 08/31/02 - fixed interference with font color/size problem
## - made compliant with EasyMod alpha 2
##
## 06/28/02 - fixed a bbcode problem - thanks to
## desean84 for discovering the problem!
##
## 04/21/02 - updated for phpBB 2.0.0 final
## - quick BBcode added by Christi
## - made EasyMod compliant
##
## 03/18/02 - initial releae for phpBB 2.0 RC3
##
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################
#
# IMPORTANT: you MUST first have already installed the Multi Quick BBCode MOD
#
#
#-----[ OPEN ]------------------------------------------
#
includes/bbcode.php
#
#
# NOTE: the full line to look for is:
# $bbcode_tpl['img'] = str_replace('{URL}', '\\1', $bbcode_tpl['img']);
#
#-----[ FIND ]------------------------------------------
#
$bbcode_tpl['img']
#
#-----[ AFTER, ADD ]------------------------------------------
#
// LEFT-RIGHT-start
$bbcode_tpl['left'] = str_replace('{URL}', '\\1', $bbcode_tpl['left']);
$bbcode_tpl['right'] = str_replace('{URL}', '\\1', $bbcode_tpl['right']);
// LEFT-RIGHT-end
#
#-----[ FIND ]------------------------------------------
#
$replacements[] = $bbcode_tpl['img'];
#
#-----[ AFTER, ADD ]------------------------------------------
#
// LEFT-RIGHT-start
// code..
$patterns[] = "#\[img=left:$uid\](.*?)\[/img:$uid\]#si";
$replacements[] = $bbcode_tpl['left'];
// code..
$patterns[] = "#\[img=right:$uid\](.*?)\[/img:$uid\]#si";
$replacements[] = $bbcode_tpl['right'];
// LEFT-RIGHT-end
#
#-----[ FIND ]------------------------------------------
#
$text = preg_replace("#\[img\]
#
#-----[ AFTER, ADD ]------------------------------------------
#
// LEFT-RIGHT-start
$text = preg_replace("#\</b> <b></b> really really really really really really long sentence. <table width=\"420\" cellpadding=\"5\"><tr><td class=\"quote\"><br />A really really <img src=\"templates/subSilver/images/logo_phpBB_med.gif\" border=\"0\" alt=\"\" /> <img src=\"templates/subSilver/images/logo_phpBB_med.gif\" border=\"0\" alt=\"\" /> really really really really really really long sentence.<br /><br /></td></tr></table><br /> <b>With left and right tags:</b><br />A really really <b></b> <b></b> really really really really really really long sentence. <table width=\"420\" cellpadding=\"5\"><tr><td class=\"quote\"><br /><img src=\"templates/subSilver/images/logo_phpBB_med.gif\" border=\"0\" alt=\"\" align=\"left\" /> <img src=\"templates/subSilver/images/logo_phpBB_med.gif\" border=\"0\" alt=\"\" align=\"right\" /> A really really really really really really really really long sentence.<br /><br /><br /></td></tr></table>") ;
// LEFT-RIGHT-end
##
##
## --- NOTE: You will have to make this change to ALL themes you have ---
## --- installed. I use "subSilver" as an example. ---
##
##
#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/bbcode.tpl
#
#-----[ FIND ]------------------------------------------
#
# NOTE: the full line to look for is:
#<!-- BEGIN img --><img src="{URL}" border="0" /><!-- END img -->
#
<!-- BEGIN img -->
#
#-----[ AFTER, ADD ]------------------------------------------
#
<!-- BEGIN left --><img src="{URL}" border="0" align="left" /><!-- END left -->
<!-- BEGIN right --><img src="{URL}" border="0" align="right" /><!-- END right -->
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM