Log in

View Full Version : Looking for full vBulletin documentation


ApplePro
10-26-2007, 11:08 AM
Hello,

I'm looking for full vBulletin documentation. I'm interested in learning everything - conditions like "$show['newthreadlink']", phrases etc. For example, I'd like to know what condition does work when I set "Act As Forum" to "No"?

I wonder, where can I get one?

maddy1
10-26-2007, 12:21 PM
here is for vbulletin documentation .

http://www.vbulletin.com/docs/html/

but i dont think u can learn here about "$show['newthreadlink']"

Opserty
10-26-2007, 12:26 PM
Just run a var_dump($show); in a plugin to see whats been stored.

ApplePro
10-26-2007, 02:58 PM
Just run a var_dump($show); in a plugin to see whats been stored.
Thanks. But I'd like to have list of conditions also.

ragtek
10-26-2007, 03:08 PM
what?
there is no list of conditions
you can put everything (all the variables from the scope ) in a condition

ApplePro
10-26-2007, 04:12 PM
what?
there is no list of conditions
you can put everything (all the variables from the scope ) in a condition
Ok. How can I know which conition to use if I want to show some HTML when "Act As Forum" set to "No" without list of conditions?

ApplePro
10-29-2007, 07:55 AM
Anyone?

calorie
10-29-2007, 10:47 AM
It really isn't reasonable to try and list all possible combinations of available conditionals. They vary by page, mods, etcetera, so what you need to do is var_dump (http://www.php.net/var_dump) like already suggested, but even then those variables might not be recognized in templates. So what do you do? You are interested in 'Act as Forum' so look at the HTML source of that ACP page to see that 'cancontainthreads' is part of the input variable, and then search the code for something that might be appropriate. Here are a couple of goodies you can find:

// example_1

$forum = $vbulletin->forumcache[$forumid];

if ($forum['options'] & $vbulletin->bf_misc_forumoptions['cancontainthreads'])
{
// can contain threads
}
else
{
// cannot contain threads
}

// example_2

if ($foruminfo['cancontainthreads'])
{
// can contain threads
$show['threadslist'] = true;
}
else
{
// cannot contain threads
$show['threadslist'] = false;
}

Now of that, go and search the templates for all or part of a variable. For example, if you search the templates for $foruminfo then you get a list of templates where $foruminfo['cancontainthreads'] might be available. Same goes for $show['threadslist'] and other variables. Scope, order, etcetera matter so what might be available in one place may not be available in another place. Find something that looks like it might work and try it, and if there is nothing, then you can instead create it.