Hi,
How can I get the following to align left:
I tried adding align=left and align=\"left\" but neither of them work.PHP Code:[img]$cfg_full_url_to_news_folder/uploads/".$file."[/img]
Printable View
Hi,
How can I get the following to align left:
I tried adding align=left and align=\"left\" but neither of them work.PHP Code:[img]$cfg_full_url_to_news_folder/uploads/".$file."[/img]
What is your code to parse the [img] into a real image tag? I'm guessing a regular expression?
If so, you'd have to modify the expression to handle the align="" portions.
If you're not sure how to do this, I can supply some code.
Got it sorted. Had to useCode:\\x22 align=\\x22left\\x22
Is that a Regular Expression? I've never seen syntax like that before.
It's works like the buttons on this site when you're typing a message. You click on IMG and get the image tags.Code:[img]$cfg_full_url_to_news_folder/uploads/".$file." \\x22 align=\\x22left\\x22[/img]
When I aligned it manually after placing the image in the editor I had to add
before the closing tag.Code:" align="left"
So, I had tried using " and \" and even \\" but just couldn't get it working, so I used \\x22 instead of the " and it worked perfectly.