The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
How to create your own vBulletin-powered page! (uses vB templates)
Want to create your very own vBulletin powered page which includes the header, footer, and the user permissions system as well? Well now you can Want to know how it will look? Take a look at the attached screenshot below! Now includes the Who's Online modification! Also, instructions included on how to create your own pages that are integrated with current vBulletin files! I'm going to give you a generic page but you can easily modify the contents of the page by changing the template So here we go Instructions: Create a new file, whatever you want to call it (let's say test.php). Open up test.php and add the following (replace TEST with whatever template you want to show): PHP Code:
Now create the template, called TEST with the following content: 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">Title</td> </tr> <tr> <td class="alt1">Text</td> </tr> </table> $footer </body> </html> Now check it out by going to test.php Who's Online Modification Now if you want to show who is browsing this new page of yours, just open up includes/functions_online.php and find: PHP Code:
PHP Code:
Then find: PHP Code:
PHP Code:
---------------------------------- Also if you want to create your own pages 'within' current vBulletin files, do the following: Open the file you want, and then right before the final ?> in the source code, add the following: PHP Code:
edit by Lynne: If running 3.8.4 or above, see this post to take care of the PHP 5.3.0-related problems - https://vborg.vbsupport.ru/showpost....postcount=1171 |
#652
|
||||
|
||||
Quote:
define('THIS_SCRIPT',+'writeups');+//+change+this+depending+on+your+filename You've got a + after the ; and before the // You can't do that. And I don't know about the + before 'writeups' either. |
#653
|
||||
|
||||
Actually, I have no idea where the + came from. I did a straight copy/paste and the + is not in there.
|
#654
|
||||
|
||||
What are you using to edit the page? You need to use something like bbedit/notepad not word. If you don't use a plain text editor, then it could be adding extra characters which would then cause the problems you are seeing.
|
#655
|
||||
|
||||
Actually, it's funny that you say that since it is BBEdit that I used. I even tried copying and pasting the php from this thread into a text document in TextEdit and still, the same errors came up.
|
#656
|
||||
|
||||
Quote:
(Is this thread the best place to discuss this or would it be better off in it's own thread where more people can come and help?) |
#657
|
||||
|
||||
Nevermind... I don't know what I have set different but it's the version of BBEdit that is screwing this up somehow. (Although I'm not sure why I got the same results with TextEdit)
What I was doing last night was on my MacBook. I just tried to create the custom page again on my G4 tower and it worked fine. The G4 has BBEdit version 7 on it while the MacBook as the updated ver. 8. Well, it's either that or my FTP software is doing something funky... Both of the computers have the same version of that but maybe one is sending the file in a different manner... Either way, this is my issue to fix... Sorry for wasting everyone's time. --------------- Added [DATE]1206723528[/DATE] at [TIME]1206723528[/TIME] --------------- Quote:
Code:
require_once('./global.php'); |
#658
|
|||
|
|||
How do you adapt this article to add queries and pull data from the database? Is there an additional article out there? I've searched but came up empty.
|
#659
|
|||
|
|||
You just add the PHP you need to the PHP page...
|
#660
|
|||
|
|||
Yeah, I end up figuring it out with trial and error. My problem was I didn't realize you needed a separate template for looping but I got it squared away.
|
#661
|
|||
|
|||
So, I'm thinking of implementing this into my forum but I have a question, do you have to edit any vbulletin files to make this work? Or is it just templates and then creating my own php files?
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|