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

how to add this code to the xenforo editor ?

Discussion in 'XenForo Questions and Support' started by A.Chakery, Nov 7, 2010.

  1. A.Chakery

    A.Chakery Active Member

    hi,

    recently I lunched my first Xenfofo powered forum.

    I am using this code in my vb3.x and I dont know how to make it work with Xenforo and where to add ,

    Code:
               <td><div class="imagebutton"><a href="http://www.filebulk.com" onclick="openWindow('http://www.filebulk.com', 650, 280, 'selector'); return false;">
            <img src="http://www.forum.com/images/misc/upload.png" alt="Upload Files to Filebulk.com" border="0" />
            </a>
            </div></td>
    I have to add it to editor template ?

    and how can I put the [code ] [/ code] button in the editor.


    thanks
     
  2. A.Chakery

    A.Chakery Active Member

    no idea ?
     
  3. Shadab

    Shadab Well-Known Member

  4. A.Chakery

    A.Chakery Active Member

    thanks for the reply Shabab,

    But how about adding a new button ? ( the upload it button) as I described ?
     
  5. Shadab

    Shadab Well-Known Member

    Couldn't find a way to add a button/link to all editors in one go.
    I think you'll have to edit 4 templates: thread_create, thread_reply, quick_reply, post_edit.

    Find code:
    Code:
    <xen:include template="attachment_upload_button" />
    Add Below:
    Code:
    <input type="button" value="Upload to Filebulk" class="button JsOnly"
    	onclick="openWindow('http://www.filebulk.com', 650, 280, 'selector'); return false;" />
     
  6. A.Chakery

    A.Chakery Active Member

    thanks for the Help Shabab :)

    I will post the results :)

    Regards.
     
  7. A.Chakery

    A.Chakery Active Member

    I add this code to attachment template, and this button appears in all editors but when I click on it, nothing happens , any idea ?

    thanks for the help
     
  8. A.Chakery

    A.Chakery Active Member

    I used this code and it worked,

    Code:
    <a href="http://www.filebulk.com" onclick="openWindow('http://www.filebulk.com', 650, 280, 'selector'); return false;" class="button" target="_blank">{xen:phrase upload_file}</a>
    but the problem is I wanna popup-like window.

    any idea to how to do it ?
     

Share This Page