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 |
#137
|
|||
|
|||
Quote:
|
#138
|
|||
|
|||
i am wondering if i can use $post[musername] or other varibles in the text.
i have tried every combination i can think of with no luck. |
#139
|
|||
|
|||
nevermind i got it.
well most of it. i needed the following : $bbuserinfo[username] |
#140
|
||||
|
||||
Great hack!
|
#141
|
||||
|
||||
Quote:
To display the info about whoever is viewing the page (if they're a member) shouldn't be too hard. |
#142
|
||||
|
||||
How could I stick coppermine into this page??
|
#143
|
|||
|
|||
I must be doing something wrong. I've created test.php, renamed to privacy.php, changed all occurences of "test" to "privacy", uploaded to root folder and created template "privacy" in ACP, but all I get when going to myforums.org/privacy.php is a blank page. I'm befuddled...
|
#144
|
||||
|
||||
Quote:
|
#145
|
|||
|
|||
I have a question, and everybody is forewarned that I'm a bit of a hacking n00b.
Alrighty, taken care of that. I'm interesting in making my site run off of vB templates, etc to make it all look continuous (same footer, etc). However, I know you can't run php code in most of the templates (php_start, and end excluded from that), but a large section of my site uses php and mySQL to retrieve information. Am I correct in saying that if I put the php code in the actual page (test.php for example), that in my template "test", I can call the variables that are in test.php? (Like if I have the array $comicinfo, and I need $comicinfo[date], or even just "$date" that it would display?) Thanks in advance Chris |
#146
|
||||
|
||||
/me clicks install
|
#147
|
||||
|
||||
I was wondering. I don't see where this has been asked before or not. But can you use this hack and put another site withing the template? What I want to do is have my template and have another URL upen within the template so that my header is still on top and the other site can be viewed.
|
#148
|
||||
|
||||
Quote:
|
#149
|
||||
|
||||
This was just what i needed, thanks!
Got a question though, not really a hackproblem but i'm gonna ask it anyway I have a html page that i wanted to display inside the forum, and using this hack could do that perfectly, by just copying that html page inside the template. But, the html page is generated automatically each day so hardcopying it into the template isn't an option. Is there a way to grab the html contents and to display it inside the template? It kinda works by using an iframe in the template, but iframes need height dimensions and the generated page varies in height (and a scrollbar for the iframe looks very ugly). Any idea on how to do this? or how to set the height of the iframe to be variable? Or alternatively, is there a way to do it the other way around, add the header/navbar/footer to the html page (everthough it's generated i can determine what fixed components should be in this html page) and maybe shange the html page in an php page? Oh btw... [high]* BarBeQue clicks install [/high] |
#150
|
|||
|
|||
very nice
installed and thank You! |
#151
|
|||
|
|||
Omega]fantastic. thank you very much, Gary
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|