The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
[ASK] vBulletin PHP Code
hi all,
i have a few questions about vbulletin php code,, what is the php code for :
thank --------------- Added [DATE]1343768558[/DATE] at [TIME]1343768558[/TIME] --------------- somebody please help me |
#2
|
||||
|
||||
In vbulletin options (settings for vb4) set the SHOW HTML COMMENTS to yes (this will show you which templates are called and closed, then put your forum in to debug mode https://www.vbulletin.com/docs/html/config.php and check what templates are called and look at the code in them!
|
#3
|
|||
|
|||
I also wanted to know the answers to the original question since vbulletin doesn't provide any support for coding ...
|
#4
|
||||
|
||||
The answer remains the same, this is how we all learnt, look at where you want to change something and check the templates called for that area, then investigate the code that looks like it does what you want in that area, when you get stuck post your particular question in these forums and someone who has experience with that will answer
|
#5
|
|||
|
|||
ok, well said.
The problem is that we have no idea what variables to start with. for example, what variable is use for latest threads, hottest threads, latest replies... It is easy to modify a custom page, but not really when it comes to variables ... is there a list of variables that we can play with to get to the start ...? Thanks |
#6
|
||||
|
||||
Unfortunately theres nio list of variables although this will help http://www.vbulletin.com/docs/html?m...rsion=30807603 and maybe more so this one https://members.vbulletin.com/api/index.html it contains all the api's...etc thats in the vbulletin product.
As i said though, turn on debugging and look at the templates and hooks called, thjat will give you a much better idea. |
#7
|
|||
|
|||
Make a plugin with this code:
PHP Code:
This will show a lot of settings. Look through the various php files and find other arrays too and print_r them |
#8
|
||||
|
||||
Quote:
Sorry it seems so hard but that really is the only way |
Благодарность от: | ||
fxdigi-cash |
#9
|
|||
|
|||
ok, sounds like things are clear. I believe the shortest way is to go through some plugin such as vsa advanced state to break it into pieces and see how to use such codes in a custom page though trial and error tests...
Thanks, I guess that will do. |
#10
|
||||
|
||||
Yep, study their plugins, it will call a php file, look at that file for the particular section that contains the variable you're looking at. Unfortunately trial and error is the only way to go unless you're a php guru
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|