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 ) |
#72
|
||||
|
||||
You simply put:
PHP Code:
|
#73
|
||||
|
||||
yea but that is only for one page.
I want samthing that is a code that is so that whene i add a template called test ,game or whatever i can do ?do= whene i made the template. |
#74
|
|||
|
|||
I sure would appreciate some help with this question. I apologize if it has been answered in this thread, I just can't figure out how to do the simple little thing I want.
Basically I have a search bar and a google ad, etc. I want these in my headers but from time to time change the html code of them. I would much prefer to have them saved as templates and simply change those couple templates instead of the header in each style. I created a template for the Google Search bar and tried using $GoogleSearch in my header. Of course that didn't work...silly me. I would really appreciate how to simply call custom templates in the header, footer, etc. Thank you very much! |
#75
|
|||
|
|||
Quote:
it works fine when i am on the message board, but on my index page, there is no fade. anyone know what's goin on, or have this working on a non-vb page? |
#76
|
|||
|
|||
acutally, i just figured it out.
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
#77
|
||||
|
||||
Duse any one now how to use <?php include("$id.htm" ?> in vb.
|
#78
|
||||
|
||||
Quote:
|
#79
|
||||
|
||||
Any idea why my code isn't working? I'm sure (as a novice) I have to be doing something wrong. What I'm trying to do is get a page up thats going to display information put into my database. Its an episode guide. It runs fine alone, but I'm in the process of making my entire site template based.
Here is the template Code:
$stylevar[htmldoctype] <html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]"> <head> <title>$vboptions[bbtitle] - Donate</title> $headinclude </head> <body> $header <table border="0" cellspacing="0" width="100%" cellpadding="0"> <tr> <td width="100%"> <table border="0" cellspacing="0" width="100%" cellpadding="0"> <tr> <td width="24" id="top"> <img border="0" src="images/smallville/left_top.jpg" width="24" height="6" /></td> <td width="100%" background="images/smallville/top.jpg"> <img border="0" src="images/smallville/top.jpg" width="2" height="6" /></td> <td width="19" align="right"> <img border="0" src="images/smallville/right_top.jpg" width="19" height="6" /></td> </tr> <tr> <td width="24"> <p align="left"> <img border="0" src="images/smallville/left_corner.jpg" width="24" height="19" /></p></td> <td width="100%" background="images/smallville/top_mid.jpg"> <b><font face="Verdana" size="1" color="#CC9966">Smallville Episode Guide</font></b></td> <td width="19" align="right"> <p> <img border="0" src="images/smallville/right_corner.jpg" width="19" height="19" /></p></td> </tr> <tr> <td width="24"> <p align="left"> <img border="0" src="images/smallville/left_second.jpg" width="24" height="16" /></p></td> <td id="top" width="100%" background="images/smallville/second_mid.jpg"> <p align="left"> <b><font face="Verdana" size="1" color="#CC9966"> $id - $episode_name</font></b></p></td> <td width="19" align="right"> <p> <img border="0" src="images/smallville/right_second.jpg" width="19" height="16" /></p></td> </tr> <tr> <td width="24" valign="baseline" background="images/smallville/left_mid.jpg"> <p align="left"> <img border="0" src="images/smallville/left_mid.jpg" width="24" height="5" /></p></td> <td width="100%" bgcolor="#000000"> <table border="0" cellspacing="0" width="100%" cellpadding="4"> <tr> <td width="100%" valign="top"> <table border="0" cellspacing="0" width="100%" cellpadding="3"> <tr> <td width="100%"> <p align="left"> <font face="Verdana" size="1" color="#CC9966"> $episode_description </font></p></td> </tr> </table> </td> </tr> </table> </td> <td width="19" valign="baseline" background="images/smallville/right_mid.jpg"> <p align="right"> <img border="0" src="images/smallville/right_mid.jpg" width="19" height="5" /></p></td> </tr> <tr> <td width="24" valign="baseline"> <img border="0" src="images/smallville/left_maroon_bottom.jpg" width="24" height="13" /></td> <td width="100%" id="top" background="images/smallville/maroon_mid.jpg" valign="bottom"> <p align="center"><font size="1" face="Verdana"> </font></p></td> <td width="19" valign="baseline"> <p align="right"> <img border="0" src="images/smallville/right_maroon_bottom.jpg" width="19" height="13" /></p></td> </tr> <tr> <td width="24"> <p align="left"> <img border="0" src="images/smallville/left_bottom.jpg" width="24" height="18" /></p></td> <td width="100%" background="images/smallville/bottom.jpg"> <p align="left"> <img border="0" src="images/smallville/bottom.jpg" width="3" height="18" /></p></td> <td width="19" align="right"> <p> <img border="0" src="images/smallville/right_bottom.jpg" width="19" height="18" /></p></td> </tr> <tr> <td width="24" id="top"> <img border="0" src="images/smallville/left_top.jpg" width="24" height="6" /></td> <td width="100%" background="images/smallville/top.jpg"> <img border="0" src="images/smallville/top.jpg" width="2" height="6" /></td> <td width="19" align="right"> <img border="0" src="images/smallville/right_top.jpg" width="19" height="6" /></td> </tr> <tr> <td width="24"> <p align="left"> <img border="0" src="images/smallville/left_corner.jpg" width="24" height="19" /></p></td> <td width="100%" background="images/smallville/top_mid.jpg"> <b><font face="Verdana" size="1" color="#CC9966">Extras</font></b></td> <td width="19" align="right"> <p> <img border="0" src="images/smallville/right_corner.jpg" width="19" height="19" /></p></td> </tr> <tr> <td width="24"> <p align="left"> <img border="0" src="images/smallville/left_second.jpg" width="24" height="16" /></p></td> <td id="top" width="100%" background="images/smallville/second_mid.jpg"> <p align="left"> <b><font face="Verdana" size="1" color="#CC9966">Original Air Date</font></b></p></td> <td width="19" align="right"> <p> <img border="0" src="images/smallville/right_second.jpg" width="19" height="16" /></p></td> </tr> <tr> <td width="24" valign="baseline" background="images/smallville/left_mid.jpg"> <p align="left"> <img border="0" src="images/smallville/left_mid.jpg" width="24" height="5" /></p></td> <td width="100%" bgcolor="#000000"> <table border="0" cellspacing="0" width="100%" cellpadding="4"> <tr> <td width="100%" valign="top"> <table border="0" cellspacing="0" width="100%" cellpadding="3"> <tr> <td width="100%"> <font face="Verdana" size="1" color="#CC9966"> $air_date</font></td> </tr> </table> </td> </tr> </table> </td> <td width="19" valign="baseline" background="images/smallville/right_mid.jpg"> <p align="right"> <img border="0" src="images/smallville/right_mid.jpg" width="19" height="5" /></p></td> </tr> <tr> <td width="24" valign="baseline"> <img border="0" src="images/smallville/con_left.jpg" width="24" height="17" /></td> <td width="100%" background="images/smallville/con_middle.jpg"> <b><font face="Verdana" size="1" color="#CC9966">Music</font></b></td> <td width="19" valign="baseline"> <img border="0" src="images/smallville/con_right.jpg" width="19" height="17" /></td> </tr> <tr> <td width="24" valign="baseline" background="images/smallville/left_mid.jpg"> <p align="left"> <img border="0" src="images/smallville/left_mid.jpg" width="24" height="5" /></p></td> <td width="100%" bgcolor="#000000"> <table border="0" cellspacing="0" width="100%" cellpadding="4"> <tr> <td width="100%" valign="top"> <table border="0" cellspacing="0" width="100%" cellpadding="3"> <tr> <td width="100%"> <font face="Verdana" size="1" color="#CC9966"> $music</td> </tr> </table> </td> </tr> </table> </td> <td width="19" valign="baseline" background="images/smallville/right_mid.jpg"> <p align="right"> <img border="0" src="images/smallville/right_mid.jpg" width="19" height="5" /></p></td> </tr> <tr> <td width="24" valign="baseline"> <img border="0" src="images/smallville/con_left.jpg" width="24" height="17" /></td> <td width="100%" background="images/smallville/con_middle.jpg"> <b><font face="Verdana" size="1" color="#CC9966">Guest Stars</font></b></td> <td width="19" valign="baseline"> <img border="0" src="images/smallville/con_right.jpg" width="19" height="17" /></td> </tr> <tr> <td width="24" valign="baseline" background="images/smallville/left_mid.jpg"> <img border="0" src="images/smallville/left_mid.jpg" width="24" height="5" /></td> <td width="100%" bgcolor="#000000"> <table border="0" cellspacing="0" width="100%" cellpadding="4"> <tr> <td width="100%"> <table border="0" cellspacing="0" width="100%" cellpadding="3"> <tr> <td width="100%"> <font face="Verdana" size="1" color="#CC9966"> $guest_stars</font></td> </tr> </table> </td> </tr> </table> </td> <td width="19" valign="baseline" background="images/smallville/right_mid.jpg"> <img border="0" src="images/smallville/right_mid.jpg" width="19" height="5" /></td> </tr> <tr> <td width="24" valign="baseline"> <img border="0" src="images/smallville/con_left.jpg" width="24" height="17" /></td> <td width="100%" background="images/smallville/con_middle.jpg"> <b><font color="#CC9966" size="1" face="Verdana">Written By</font></b></td> <td width="19" valign="baseline"> <img border="0" src="images/smallville/con_right.jpg" width="19" height="17" /></td> </tr> <tr> <td width="24" valign="baseline" background="images/smallville/left_mid.jpg"> <img border="0" src="images/smallville/left_mid.jpg" width="24" height="5" /></td> <td width="100%" bgcolor="#000000"> <table border="0" cellspacing="0" width="100%" cellpadding="4"> <tr> <td width="100%"> <table border="0" cellspacing="0" width="100%" cellpadding="3"> <tr> <td width="100%"> <font face="Verdana" size="1" color="#CC9966"> $written_by </font></td> </tr> </table> </td> </tr> </table> </td> <td width="19" valign="baseline" background="images/smallville/right_mid.jpg"> <img border="0" src="images/smallville/right_mid.jpg" width="19" height="5" /></td> </tr> <tr> <td width="24" valign="baseline"> <img border="0" src="images/smallville/con_left.jpg" width="24" height="17" /></td> <td width="100%" background="images/smallville/con_middle.jpg"> <b><font face="Verdana" size="1" color="#CC9966">Directed By</font></b></td> <td width="19" valign="baseline"> <img border="0" src="images/smallville/con_right.jpg" width="19" height="17" /></td> </tr> <tr> <td width="24" valign="baseline" background="images/smallville/left_mid.jpg"> <img border="0" src="images/smallville/left_mid.jpg" width="24" height="5" /></td> <td width="100%" bgcolor="#000000"> <table border="0" cellspacing="0" width="100%" cellpadding="4"> <tr> <td width="100%"> <table border="0" cellspacing="0" width="100%" cellpadding="3"> <tr> <td width="100%"> <font face="Verdana" size="1" color="#CC9966"> $directed_by </font></td> </tr> </table> </td> </tr> </table> </td> <td width="19" valign="baseline" background="images/smallville/right_mid.jpg"> <img border="0" src="images/smallville/right_mid.jpg" width="19" height="5" /></td> </tr> <tr> <td width="24" valign="baseline"> <img border="0" src="images/smallville/left_maroon_bottom.jpg" width="24" height="13" /></td> <td width="100%" id="top" background="images/smallville/maroon_mid.jpg" valign="bottom"> <p align="center"><font size="1" face="Verdana"> </font></p></td> <td width="19" valign="baseline"> <p align="right"> <img border="0" src="images/smallville/right_maroon_bottom.jpg" width="19" height="13" /></p></td> </tr> <tr> <td width="24"> <p align="left"> <img border="0" src="images/smallville/left_bottom.jpg" width="24" height="18" /></p></td> <td width="100%" background="images/smallville/bottom.jpg"> <p align="left"> <img border="0" src="images/smallville/bottom.jpg" width="3" height="18" /></p></td> <td width="19" align="right"> <p> <img border="0" src="images/smallville/right_bottom.jpg" width="19" height="18" /></p></td> </tr> </table> </td> </tr> </table> $footer </body> </html> PHP Code:
|
#80
|
||||
|
||||
Quote:
|
#81
|
||||
|
||||
and how do i do that phpinclude template thing.
|
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|