Log in

View Full Version : where ca I find the templates?


carloslopez
10-10-2007, 01:21 PM
Hi there.

I want to add an extra button to the editor, this button would be a link to my own php code, so that, user can create a customized image, then, this image would be inserted in the post. I've got some idea 'bout how to do it, but I need to change some templates (showthread_quickreply, postbit_quickedit,...) and I don't know where to find this templates to change the code. (sorry, I'm so new at this:confused:)

Where can I find them?

Analogpoint
10-10-2007, 01:35 PM
All templates are in the Admin Control Panel -> Styles & Templates -> Style Manager Then expand your style and pick a template.

carloslopez
10-10-2007, 02:56 PM
Done, I've been able to add, my own button to the editor, now I need to know where to add my code. In this template, there is no called functions. I need to link this button to my own action, how can i do it?

Thanks

Analogpoint
10-10-2007, 04:50 PM
vB dynamically adds the onclick, onmouseover etc handlers for the buttons. If you want to do things like add text to the editor, you're going to have to dive into the js files (found in the clientscripts dir) and familiarize yourself with the objects there.