[2.0.6] Left and Right IMG tags

The cleanup is complete. This forum is now read only.

Rating:

Excellent!
13
76%
Very Good
2
12%
Good
1
6%
Fair
0
No votes
Poor
1
6%
 
Total votes: 17

User avatar
congoclash
Registered User
Posts: 4
Joined: Sat May 06, 2006 1:03 pm
Contact:

Post by congoclash »

cheers mates, that worked :D although I prefer hspace="6"
kornhead
Registered User
Posts: 72
Joined: Sun Jun 12, 2005 4:36 pm
Location: Russia
Contact:

Post by kornhead »

Is there any chance to combine this mod with this one - http://www.phpbb.com/phpBB/viewtopic.ph ... sc&start=0
:roll:
kulinar
Registered User
Posts: 657
Joined: Thu Feb 17, 2005 7:31 pm
Contact:

Post by kulinar »

I dont think so unless if you remove align of images of second mod.
GilaMonster
Registered User
Posts: 83
Joined: Mon Jan 10, 2005 12:52 am
Location: CSC Scania, Iraq - Silver City, NM
Contact:

Post by GilaMonster »

OK, I installed the mod as outlined on page 3 (MOD Version: 1.6.2) by spear.
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.
I placed two images (one beside the other) as img=left and img=right with no spacing or return between them and they did not line up. The top of the image on the right was approximately one line spacing below the top of the image on the left..
Is that normal or do I have some sort of problem?
Using 2.0.17

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.
kulinar
Registered User
Posts: 657
Joined: Thu Feb 17, 2005 7:31 pm
Contact:

Post by kulinar »

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.
What do you exactly mean by extremly right. An example?

This mod uses the align attribute of img tags like <img src="bla-bla-bla" align="right" and so on. So if you place left and right aligned images they won't line up. If you need to line images up you have to use table tags (table bbcode).
GilaMonster
Registered User
Posts: 83
Joined: Mon Jan 10, 2005 12:52 am
Location: CSC Scania, Iraq - Silver City, NM
Contact:

Post by GilaMonster »

OK, I must admit I was wrong. I somehow did get a return between the img=right and the img=left so of course there was a difference in height. I corrected it and they are perfectly even.
Sorry and thanks!
Seems to work properly now.

Still concerned at this?
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.
sbourdon
Registered User
Posts: 174
Joined: Sat Nov 13, 2004 6:29 pm

Post by sbourdon »

Still concerned at this?
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.


Perfectly normal; that how the MOD's supposed to work! ;)
GilaMonster
Registered User
Posts: 83
Joined: Mon Jan 10, 2005 12:52 am
Location: CSC Scania, Iraq - Silver City, NM
Contact:

Post by GilaMonster »

Cool! I guess I got it then! :-D
fajar
Registered User
Posts: 5
Joined: Sun Jun 11, 2006 10:53 pm

Guests see codes instead of images

Post by fajar »

I have this problem that unregistered users who browse the forum will see only img bbcode missing their closing /img
for examples:

Code: Select all

[img=right:b620dc2719]url-to-the-image-here And then text goes here
While for all registered users, they can see the image just fine.

This error occur for mod version 1.6.0, 1.6.2 and also for 1.6.2 by Antonio B. :cry:

I have easyMod 0.30 and Multiple BBcode 1.4.0c installed.

Can any one help me on this one?
Thank you in advance
artiprinted
Registered User
Posts: 52
Joined: Wed Aug 09, 2006 1:11 pm

Correct mod tags and stuff for easy mod.

Post by artiprinted »

please run this mod in http://www.phpbb.com/mods/validator.php if you do not think it is correct... i fixed it so that easy mod will run it. 080906. Plus i fixed a few find lines that didnt work.
## 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 Image 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:
## Image to left justify image
## 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
// Image code..
$patterns[] = "#\[img=left:$uid\](.*?)\[/img:$uid\]#si";
$replacements[] = $bbcode_tpl['left'];

// Image 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("#\Image</b> <b>Image</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>Image</b> <b>Image</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
SDGR-Chewy
Registered User
Posts: 5
Joined: Wed Sep 13, 2006 8:58 pm

Post by SDGR-Chewy »

If needed, I translated the BBCode guide part into Dutch. Will post it if people are interested.
Booh
Registered User
Posts: 18
Joined: Thu Jul 29, 2004 1:07 am

Need help with wrap text around images

Post by Booh »

This mod works great for me as far as justify text or images Left, center or right.

However, I don't see how it's usage can do...
"Text will also neatly wrap around the images. "

If someone can walk me through this I would appreciate it.
terestres
Registered User
Posts: 16
Joined: Tue Mar 27, 2007 4:20 pm
Contact:

Re: [2.0.6] Left and Right IMG tags

Post by terestres »

Hi, where can I download the Left and Right IMG tags ?
User avatar
Merri
Registered User
Posts: 255
Joined: Mon Nov 25, 2002 1:08 pm
Location: Riihimäki, Finland
Contact:

Re: [2.0.6] Left and Right IMG tags

Post by Merri »

Just read a few posts upwards and you can't miss what you're asking for.
Post Reply

Return to “[2.0.x] MOD Database Cleanup”