PDA

View Full Version : Auto Insert Code


ozzy47
05-22-2011, 01:09 AM
If I am creating a mod, and I want to have a code auto inserted into the Editor Templates/editor_toolbar_on, in a specific place inside that template how would I do it?

ozzy47
05-24-2011, 02:05 AM
Any Ideas anyone?

ozzy47
06-05-2011, 09:24 PM
Still nothing, I would really like to know if someone knows how to do that.

nitra1000
06-05-2011, 11:47 PM
Your dbtechstaff? And your asking the most basic questions :s (style var one too)

Is there a hook where you want the code to go?

ozzy47
06-06-2011, 12:11 AM
Your dbtechstaff? And your asking the most basic questions :s (style var one too)

Is there a hook where you want the code to go?

Yes I am staff, not a coder, I am trying my hand into codding a small mod which I need it to insert a code in that template.

<img src="images/buttons/hide.jpg" class="imagebutton" id="{vb:raw editorid}_cmd_wrap0_hide" width="20" height="20" alt="Insert Hide Tags" />

ozzy47
06-06-2011, 10:24 AM
Well thank you Boofo, you reply is at least helpfull, not a reply asking me why I am asking questions. it should be obvious why I am asking the question, Cause I don't know the answer.

Now I will have to see about implementing this into the mod.

nitra1000
06-06-2011, 12:10 PM
Well thank you Boofo, you reply is at least helpfull, not a reply asking me why I am asking questions. it should be obvious why I am asking the question, Cause I don't know the answer.

Now I will have to see about implementing this into the mod.

Could you not add this using Custom BB Code?

P.S DBTECH is as far as I can make out a dedicate and skilled developing team, a presumably paid member of staff asking basic questions is odd in the least.

ozzy47
06-06-2011, 08:44 PM
Content Removed!!!

DragonByte Tech
06-06-2011, 10:18 PM
Easy there.

It looks like Nitra is just pointing out that the question seemed odd (likely in case you were pretending to be a staffer or something similar).

Sorry about that. Ozzy is (as he has mentioned) an unpaid member of our support staff - Thanks for looking out for things that are out of place though Nitra, and the team appreciates the compliment.

Iain

Boofo
06-07-2011, 04:35 AM
Could you not add this using Custom BB Code?

I'm curious. How would you do a search and replace via bbcode?

nitra1000
06-07-2011, 11:07 AM
By the looks of his code he is trying to add a button to the editor, that adds the BB code [*hide*], I assume for use with the dragonbyte Advanced thanks/likes mod.

I would imagine this is because currently the users of that mod have to do it manually.