1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

problems with pictures

Discussion in 'Styling and Customization Questions' started by aiman.h.kallaf, May 24, 2013.

  1. aiman.h.kallaf

    aiman.h.kallaf Active Member

  2. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    There is no configurable option. You need to modify the js:

    js/xenforo/attachment_editor.js

    Add the red code:

    Code:
    f.preventDefault();b.attr("name")=="thumb"?(f="[ATTACH]"+c+"[/ATTACH] \n",
    c='<p> <img src="'+e+'" class="attachThumb bbCodeImage" alt="attachThumb'+c+'" /> </p>'):(f="[ATTACH=full]"+c+"[/ATTACH] \n",c='<p> <img src="'+a+'" class="attachFull bbCodeImage" alt="attachFull'+c+'" /> </p>');
    
     
    aiman.h.kallaf likes this.
  3. aiman.h.kallaf

    aiman.h.kallaf Active Member

    do you recommend doing so
     
  4. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    It's a file edit so it will be overwritten with every upgrade.
     
    aiman.h.kallaf likes this.
  5. aiman.h.kallaf

    aiman.h.kallaf Active Member

    if i want to leave a space , one line , between each picture would adding
    <p> <p>
    do the trick ?


    Thank you again , this was very helpful
     
  6. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    That's the same question isn't it? Use the code I posted.
     
  7. aiman.h.kallaf

    aiman.h.kallaf Active Member

    yes and it has been working great , but my question is if i want to leave two or three lines between each picture should i just add another <p> <p> or <p> <p><p> for getting more space ?
     
  8. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    Yes additional p tags should work, and additional \n
     
    aiman.h.kallaf likes this.
  9. aiman.h.kallaf

    aiman.h.kallaf Active Member

    can this code be modified for 1.2
     

Share This Page