• 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 ?

A.Chakery

Active member
#1
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
 

Shadab

Well-known member
#5
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;" />
 

A.Chakery

Active member
#7
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
 

A.Chakery

Active member
#8
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 ?