Icy Phoenix

     
 


Post new topic  Reply to topic 
Page 1 of 1
 
 
Reply with quote Download Post 
Post Space Between Left Img And Posting Text. 
 
Hi,

I would you to edit my viewtopic just like this site that looks very good with a space when posting a left side [img] with text.
http://mivenezueladigital.com/viewtopic.php?f=2&t=30106

this is mine, text sticks with the img
http://vietni.com/viewtopic.php?f=25&t=51

Thank you so much,

xmenfile.
 



 
xmenfileSend private message  
Back to topPage bottom
Icy Phoenix is an open source project, you can show your appreciation and support future development by donating to the project.

Support us
 
Reply with quote Download Post 
Post Re: Space Between Left Img And Posting Text. 
 
131574913047f395783c9efBlah... Blah... Blah... Blah... Blah... Blah... Blah... Blah... Blah... Blah... Blah... Blah... Blah... Blah... Blah... Blah... Blah... Blah... Blah... Blah... Blah... Blah... Blah... Blah... Blah... Blah... Blah... Blah... Blah... Blah... Blah... Blah... Blah... Blah... Blah... Blah... Blah... Blah... Blah... Blah... Blah... Blah... Blah... Blah... Blah... Blah... Blah... Blah... Blah... Blah... Blah... Blah... Blah... Blah... Blah... Blah... Blah... Blah... Blah... Blah... Blah... Blah... Blah... Blah... Blah... Blah... Blah... Blah... Blah... Blah... Blah... Blah... Blah... Blah... Blah... Blah... Blah... Blah... Blah... Blah... Blah... Blah... Blah... Blah... Blah... Blah... Blah... Blah... Blah... Blah... Blah... Blah... Blah... Blah... Blah... Blah... Blah... Blah... Blah... Blah... Blah... Blah... Blah... Blah... Blah... Blah... Blah... Blah... Blah... Blah... Blah... Blah... Blah... Blah... Blah... Blah... Blah... Blah... Blah... Blah... Blah... Blah... Blah... Blah... Blah... Blah... Blah... Blah... Blah... Blah... Blah... Blah... Blah... Blah... Blah... Blah... Blah... Blah... Blah... Blah... Blah... Blah... Blah... Blah... Blah... Blah... Blah... Blah... Blah... Blah... Blah... Blah... Blah... Blah... Blah... Blah... Blah... Blah... Blah... Blah... Blah... Blah... Blah... Blah... Blah... Blah... Blah... Blah... Blah... Blah... Blah... Blah...  Just add a "touch of style" by adding a "style" tag to specify some margin like this:


Code: [Download] [Hide]
  1. [img align="left" style="margin-right:5px;margin-bottom:10px;"]http://www.icyphoenix.com/images/avatars/131574913047f395783c9ef.jpg[/img] Just add a "touch of style" by adding a "style" tag to specify some margin like this: 


By the way, I get an empty page when I visit the link to your site.
 



 
hal9000Send private message  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Space Between Left Img And Posting Text. 
 
Thank you hal9000.  Please look at my above link again, text does not wrap around img.  i did what you told me.

wait...wait...wait.   maybe i am editting it when you visited.


it works and looks better.  but can we add this to bbcode so i don't have to do this each time???


Thankyou hal9000
 



 
xmenfileSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Space Between Left Img And Posting Text. 
 
Of course it can be added to BBCode, but I think it's better to have the choice to add or not to add it for each image. Maybe some time you need to put the images without margin or simply leave more or less margin for each image, instead have it fixed.
 



 
hal9000Send private message  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Space Between Left Img And Posting Text. 
 
hal9000 wrote: [View Post]
Of course it can be added to BBCode, but I think it's better to have the choice to add or not to add it for each image. Maybe some time you need to put the images without margin or simply leave more or less margin for each image, instead have it fixed.
  

That's right for someone as good as you, not for someone like me.     Can you tell me which file I need to edit and how????

Thank you
 



 
xmenfileSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Space Between Left Img And Posting Text. 
 
You need to edit the file "includes/bbcode.php". Search for "if($tag === 'img')"

Then you can add the style tag for all the images like this:
Code: [Download] [Hide]
  1. $html = '<img';  
  2.  
  3. changes to:  
  4.  
  5. $html = '<img style="margin-right:10px;"'; 


Or whatever margin or margins you want. If you want the margin only when you use the "align" tag, then you should add some code to detect it.
 



 
hal9000Send private message  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Space Between Left Img And Posting Text. 
 
I love it

Again thank you hal9000.
 



 
xmenfileSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Space Between Left Img And Posting Text. 
 
ops    missed forum
 




____________
We are the phpBBorg. Lower your Crackers. Your phpological and forumological distinctivness will be added to our own. Resistance if futile!
 
LimunSend private messageVisit poster's website  
Back to topPage bottom
Post new topic  Reply to topic  Page 1 of 1
 


Display posts from previous:    

HideWas this topic useful?

Link this topic
URL
BBCode
HTML




 
Permissions List
You cannot post new topics
You cannot reply to topics
You cannot edit your posts
You cannot delete your posts
You cannot vote in polls
You cannot attach files
You can download files
You cannot post calendar events


  

 

  cron