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 |
#32
|
||||
|
||||
Quote:
2) replace $bbuserinfo[usergroupid] == 6 with $bbuserinfo[usergroupid] == 7 or $bbuserinfo[usergroupid] == 8 or $bbuserinfo[usergroupid] == 9 3) Replace eval('print_output("' . fetch_template('TEST') . '");'); with your PHP stuff. |
#33
|
|||
|
|||
Quote:
You use if($bbuserinfo[usergroupid]. On vb3, there is a new is_member_of function, that will search your primary and secondary groups for that user. Here is how the code works with it. PHP Code:
|
#34
|
||||
|
||||
Quote:
|
#35
|
||||
|
||||
I like the idea of this, but looking around the Mod request pages, alot of people are looking for the last posts etc also to be displayed on a non vb page. I remember using something called API over at invision which was great. All you did was put includes in the page where you wanted specific things that were pulled from your board via templates which you could modify. Anyone know if something like this is going to be made? Gary W?
|
#36
|
||||
|
||||
I have been using this mod since VB 2. I see some changes. I don't care who wrote it. But I have two request.
1. I would like the new navbar that Beta 3 uses. Below the header in each page that I create. 2. I would like to see an icon or something on each page for a printable version. |
#37
|
||||
|
||||
Quote:
|
#38
|
|||
|
|||
i hope some one answers my question here..
on the second part you say to make a template.. now what should i save the extention of my template.. for your ur example: test < should it have an exention be? i am really new to php and all of it, so if you could please explain this 2 me, i'd be grateful |
#39
|
||||
|
||||
Quote:
|
#40
|
|||
|
|||
so if i create it in notepad and save it as test that will work?
|
#41
|
||||
|
||||
Quote:
|
#42
|
||||
|
||||
Quote:
If it is already there then why can't I see it? I see no navbar or anywhere where there is an option for a printable version. I did one of your mods and it did not show up. Here is the mod I did: http://www.whiteblaze.net/forum/2004.php? |
#43
|
||||
|
||||
Quote:
|
#44
|
||||
|
||||
Quote:
Take a look at this screenshot, that's how it should look: https://vborg.vbsupport.ru/attachmen...chmentid=17205 Also, I never said I had included a printable version now did I? |
#45
|
||||
|
||||
Quote:
|
#46
|
||||
|
||||
Quote:
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|