The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Some basics of vB3(mini howto)
![]() Some basics of vB3(mini howto) also some basic php junk the most important thing if you want to make pages based on templates or anything of the such would be to first know how to " connect" to vbulletin, and then learn how to call and eval templates. so lets take a look at the most BASIC page we can do PHP Code:
somthing abit more advanced. suchas calling more than one template, or doing an action it becomes abit more complicated PHP Code:
PHP Code:
if your going to write a script that is ALL actions you should add somthing like this right after the call to gobal.php PHP Code:
![]() Mini Tut by Faranth (with some help from Brad.loo fixing my silly newbie mistakes ![]() |
#47
|
|||
|
|||
![]() Quote:
![]() |
#48
|
||||
|
||||
![]() Quote:
Its driving me mad...here is my thread I also tried editing another gallery script, but I ended up with the same problems, images would only load above header, but nothing would load under it. |
#49
|
||||
|
||||
![]()
it looks like your hard coding the file, this howto deals more with using the template system directly
|
#50
|
||||
|
||||
![]() Quote:
|
#51
|
||||
|
||||
![]()
Im sure there is, but i dont know how to do it really
|
#52
|
||||
|
||||
![]()
Cool, waiting for further instructions.
|
#53
|
|||
|
|||
![]()
im confused - how do i make the navbar i have included in my page change to show your status as logged in?
|
#54
|
||||
|
||||
![]() Quote:
I do have a question, how do I have "Who is online" show the location. IE: Gio "Unknown" main.php To Gio Test Page test.php |
#55
|
||||
|
||||
![]()
I THINK i know how to do that, but i need to double check somthing ^_^
|
#56
|
|||
|
|||
![]() Quote:
![]() |
#57
|
|||
|
|||
![]()
What is the recommended way to install/upgrade the series of templates used with a hack? (I know htl deals with this but...) Installing the templates manually is a pain and error prone, as is asking the user to go to the admin cp and upload the xml file.
How does one create a new template group? I imagine one has to install/overwrite the templates in the base style(s). As a hack is being developed (and templates changed), one also has to be sure that any modified templates in the main and other styles are flagged. I'm sure that tips on these points would be most welcome. |
#58
|
|||
|
|||
![]()
Edit: Sorry I got told off for posting in the wrong forum.
I fixed the problem and to simply make a new page which utilises existing stylesheets and headers, technically all you need to do is: 1. Create Custom Template with everything you Require - Ensure you include your header, footer etc references, shown below. PHP Code:
PHP Code:
|
#59
|
||||
|
||||
![]() Quote:
|
#60
|
|||
|
|||
![]()
Hi, I am making a mod and im new to VB but Im a fast learner.
I want to load a template called (test) inside test i want to put rows from a db table (test) with value1|value2|value3 i want to print the 3values for each row in the table and display them in the html defined in the (test2) template... and then load the rest of the (test) template. Is this possible? Another question is: Would cases be suitable rather than all the ifs? or are ifs better? thanks for help. |
#61
|
|||
|
|||
![]()
Sorry for the stupid question -
How does one pass a variable from a php script TO the template? I've got a file, page.php, that includes the basic instructions in the first post in this thread, ending with (eval('print_output("' . fetch_template('my_template') . '");'); It works great - 'my_template' contains $header, some html, $footer, and it renders the page as expected. However, in page.php I also define a variable $output = "some output"; I put $output in 'my_template' but it does not print out "some output" as expected. Again sorry I'm probalby out of my legue here but if there's an easy way to do this please let me know! TIA! |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|