The Arcive of vBulletin Modifications Site. |
|
Adding new pages Details »»
|
|||||||||||||||||||||||||
----------------
This was moved to articles, in my opinion INCORRECT this is original and by me! ---------------- ---------------- Installed! I don't work for nothing; please press installed if you used my addon; I won't support you either if you have a problem then! ---------------- Hello all, In this tutorial i'm going to show you how to make extra pages Note: Go into your Admincp, klick Styles & Templates, klick Style Manager, klick your template that your'e working with, hover your mouse to the dropdown menu and klick, klick Add Template Give your template a name: (like gallerytemplate) and add this code to it: HTML Code:
$stylevar[htmldoctype] <html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]"> <head> <title>$vboptions[bbtitle]</title> $headinclude </head> <body> $header $navbar <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center"> <tr> <td class="tcat">Tutorials</td> </tr> <tr> <td class="alt1"> <!-- html code here --> PUT THE HTML CODE YOU WANT HERE <!-- end of html code --> </td> </tr> </table> $footer </body> </html> Code:
<!-- html code here --> HTML Code:
<p>Hello, this is my gallery</p><br> <img src="yourimages" border="0"></img><br> <p>^^My favorite picture^^ ![]() Now save it, were nothing with that Now we are going to make the PHP file Open notepad add this code in it PHP Code:
Find: PHP Code:
Find: PHP Code:
Find: PHP Code:
Save it to whatever you want (Make sure its the same name as in edit 1 (scriptname) and with .php after it) Upload it to your webserver and your'e done! If you want it to appear it into your navbar i suggest to: Use my Navbar Edit mod (for all vB versions) (Manual code changes) Or to download the double navigation bar mod Show Your Support
|
|||||||||||||||||||||||||
| Comments |
|
#2
|
|||
|
|||
|
V1.0.1 BETA - Pre-release, being tested
V1.5.0 BETA - Bugfixes; PHP should work now! V1.5.1 BETA - Added functionality for lower versions (3.6.x and higher!) V2.0.0 BETA - Minor BugFixes; almost out of beta now! Current release |
|
#3
|
|||
|
|||
|
Pm me for any support; I will TRY to help you!
Make sure you READ CORRECTLY, I will not help you if you didn't follow the guide correctly.. If you're getting xhtml errors or PHP errors; check your code.. Please! I will not fix a broken html/php tag for you.. |
|
#4
|
|||
|
|||
|
!!Latest update!!
Yeah! Now our script supports PHP, for flexibility, and so on! Please report bugs.. |
|
#5
|
|||
|
|||
|
Works like a charm
|
|
#6
|
|||
|
|||
|
Sweet, thank you for this!
|
|
#7
|
|||
|
|||
|
thanks man .
|
|
#8
|
|||
|
|||
|
No problem guys.. New release
|
|
#9
|
|||
|
|||
|
Warning: fetch_template() calls should be replaced by the vB_Template class. Template name: navbar in [path]/includes/functions.php on line 3957
|
|
#10
|
||||
|
||||
|
Thanks a lot, I would consider this very useful, but i remember some members say that including php in a template could be a little unsecure. Is that correct?
|
![]() |
|
|