PDA

View Full Version : Specify a forum for vbCode buttons


Rein Masamuri
11-12-2003, 06:29 AM
Well first of all I created a new vBcode to do a javascript popup using the vbcode [card]

These are the current instructions:

Open vbcode_language.js and find:

quote_text = "Insert a quote into your message";


Under it Add:

magic_text = "Insert a popup link for a magic card into your message";


Open the Template: vbcode_buttons (Templates>edit; vB Code Templates [Expand]; vbcode_buttons [edit])

Find:

><input type="button" class="bginput" value="List" title="Ordered List" accesskey="l" onclick="dolist(this.form)" onmouseover="stat('list')"


Under it put:

><input type="button" class="bginput" value="Card" title="Magic Card" onclick="vbcode(this.form,'card','')" onmouseover="stat('magic')"



How do I specify it so only a certain forum and any subforum below it can see it?

sabret00the
11-14-2003, 03:47 AM
you could try using a conditional in either the showthread or functions.php

something like
if (forumid=XX) {
echo (/*whatever your call to magic_text is (something like $magic_text if you've defined it ofcourse ;))*/)
} //shouldn't do nothing

i am far from a php god so if this don't work :( but it should put you on the right track