|
-
Jun 27th, 2004, 09:34 AM
#1
Thread Starter
Hyperactive Member
Need to align an image
Hi,
How can I get the following to align left:
PHP Code:
[img]$cfg_full_url_to_news_folder/uploads/".$file."[/img]
I tried adding align=left and align=\"left\" but neither of them work.
-
Jun 27th, 2004, 02:31 PM
#2
Stuck in the 80s
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.
-
Jun 27th, 2004, 05:28 PM
#3
Thread Starter
Hyperactive Member
Got it sorted. Had to use
Code:
\\x22 align=\\x22left\\x22
-
Jun 29th, 2004, 08:26 PM
#4
Stuck in the 80s
Is that a Regular Expression? I've never seen syntax like that before.
-
Jun 30th, 2004, 05:58 AM
#5
Thread Starter
Hyperactive Member
Code:
[img]$cfg_full_url_to_news_folder/uploads/".$file." \\x22 align=\\x22left\\x22[/img]
It's works like the buttons on this site when you're typing a message. You click on IMG and get the image tags.
When I aligned it manually after placing the image in the editor I had to add
before the closing tag.
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|