The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
Hi there,
This is my first forum project and I'm busily updating my stale HTML skills while starting to learn about CSS, PHP, MySQL, and vBulletin. Rather than ask a bunch of "How do I..." type questions, I'd like to learn enough about the way vBulletin works to work out a few of my own answers. That's the "Teach a man to fish" part. ![]() My first step beyond simple Admin config things is to change the behavior of the template for Category strips on the forum index page depending on which one it is. I was told there is a variable for the forum id that I ought to be able to use as the argument to a template conditional. I bet there are dozens of useful variables besides the forum ID, that I could use for stuff like this if I knew what they were. Is there documentation for what variables there are? Where in all these vBulletin files are variables like that declared? (Where's the source code??!) How do I find out what values they can have, their scope, and so on? Are there some development tools I need to learn? Yep, pretty basic questions. I thank you if you can help me answer some of them! Mike D. |
#2
|
|||
|
|||
![]() Quote:
Best of luck ![]() |
#3
|
|||
|
|||
![]()
Thanks Borgs!
I've got the vBulletin manual printed out and sitting right next to me. It's 400 pages. I've been through nearly all of it at least once. It doesn't seem to answer my questions. I need a bit more of an answer than RTFM. At least I need to know which manual I need to read. Or maybe which chapter. ![]() Mike D. |
#4
|
||||
|
||||
![]()
in my opinion you should look at the default templates and files in which they use the varibles in there. and almost all varibles in php files can be used in templates, of course if they are used properly.
for the forum id condition, if you are in forum showing, then $forum[forumid] would be it. |
#5
|
|||
|
|||
![]()
Greetings deathemperor. Thanks for the reply.
Boy, I haven't delved into program code this deep in 20 years, at least. If I'm reading this right... The forumhome template uses the variable $forumbits to pull in the complete block of html that constitutes the list of displayed categories and forums.Okay, stepping back from the details, I'm tracing the operation of the default index page, through its template, into various php functions that generate bits to fill the template... whose locations I can only know by looking up function names in the API documentation in the vBulletin Member Area... But there still doesn't seem to be an easy to find listing of where variables are used or declared... For instance, I lose track above because the $forum array comes in from somewhere, but I don't know what it contains or where that comes in from. If I'm lucky, wherever $forumid is used it always corresponds to the same forum in my list of forums, regardless of permissions, etc... Needless to say, I get a bit boggled! :nervous: Okay, deathemperor, is that the kind of process I need to be doing here? Or are there some ways to streamline this?!! :cross-eyed: Thanks for your input, Lucius. I appreciate any help that'll keep me from running down a bunch of blind alleys! Mike D. |
#6
|
||||
|
||||
![]()
I can hardly understand what you want to do. are you working on the forumhome ?
|
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|