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 |
#1292
|
|||
|
|||
Hi everyone.
The page title is set on the template, Code:
<title>$vboptions[bbtitle]</title> Thanks in advance. |
#1293
|
||||
|
||||
If you make a variable on the .php file like $customtitle, then put <title>$customtitle</title> in the template that *should* work. I'd try it at least.
|
#1294
|
|||
|
|||
Quote:
Thanks BirdOPrey5, I'll give it a try! Edit: Worked like a charm, thanks! |
#1295
|
|||
|
|||
Thanks for the tutorial, works perfect!
|
#1296
|
|||
|
|||
I need some help guys, I've got my page working for the most part. I just need to know how to make it parse BBCode that's being pulled from vBulletins threads.
|
#1297
|
||||
|
||||
Quote:
In the php file near the top add the lines: PHP Code:
PHP Code:
|
#1298
|
|||
|
|||
Quote:
PHP Code:
PHP Code:
Quote:
PHP Code:
Quote:
Then you can use this line (change the $rawthread and $parsedthread variables to your needs) to get the parsed output (BB Code converted to HTML) |
#1299
|
||||
|
||||
It looks like the errors are because you need the require_once ('./global.php') file above everything else basically... in your script directly under the "error reporting" line near the top. Also if this php file is in the same directory as your forum root (where global.php is located) you don't need the ./ just use require_once ('global.php');
Quote:
--------------- Added [DATE]1292812596[/DATE] at [TIME]1292812596[/TIME] --------------- Looking over your code you seem to be missing any data to parse... You don't parse a template usually, a template should have real HTML not BB Code. Usually text like posts and signatures would be the only things requiring parsing. |
#1300
|
|||
|
|||
Well I'm making some progress at least,.. you've got it working- which I owe you millions of thanks for, but I'm having an issue of it parsing a little to much onto the page.
I'll break down what I'm trying to accomplish. The test.php page calls a new template called test,. The test template calls a plugin named $homepage_recent_post,.. $homepage_recent_post displays: 7 recent threads from specific subforums, Display the thread title, Display the date posted, Display who posted it, Display the pagetext, (the post itself), Display a link to that thread. If I setup my test.php page like: PHP Code:
With this plugin: PHP Code:
I'll get the 7 last post, but they're unparsed. Now if I setup my test.php like: PHP Code:
and with the same $homepage_recent_post plugin, it'll parse the plugin- pagetext and all, but then it's parsing too much onto my page. Here's an example of the same post from above, but parsed. Is there any way to parse just post.pagetext onto this page instead of parsing the entire plugin? If so, how do I go about doing it? |
#1301
|
||||
|
||||
The BB Code parsing needs to be done in your plugin not the .php file...
Using the 1st version you posted in the above post make the plugin into: PHP Code:
PHP Code:
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|