The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
I'm really a newbie, and this was the first time I've ever tried to mod anything, and as expected, I couldn't get it to work.
I opened the thread.php in wordpad, searced up the "$poll", and found it right under the "show poll" embedded in xxx'es Then wrote it like this... Quote:
I then copied the whole modified file into the showthread.php file on my forum server, saved it, and tried to open a post on my forum... I'm using the 3-6-8_Patch_Level_2 version As expected, I got an error message... Quote:
I then put the original file back in without the mods, and my threads showed up as before... What did I do wrong? Did I put the mod in at the wrong place? Can anyone please help me??? The original mod is to be found here... https://vborg.vbsupport.ru/showthread.php?t=99504 Really hope someone could help me out here... . |
#2
|
||||
|
||||
![]()
vbulletin uses a templating system, which means the actual html lives in a template (in the db), and vb uses a substitution system whereby variables in the template are replaced by values. You can see where these templates are used by finding lines like fetch_template(foo) or eval(fetch_template(foo))
in the db there might be a template called whee which contains <h1>$bar</h1> an example script.php might contain $bar = 7 eval(fetch_template('whee')) In short you need to find the poll template and mod that, not the code. |
#3
|
||||
|
||||
![]()
A useful little feature for working out what text is in which template is to enable the "Add Template Name in HTML Comments" option under vB's General Settings. You can then view the page source in your browser, and see exactly where every template starts and ends.
-- hugh |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|