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 |
#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:
|
#47
|
||||
|
||||
You're welcome.
|
#48
|
||||
|
||||
Bump
|
#49
|
|||
|
|||
greak hack got it working! only question.. is there a way to make it so when some one searches the forum, the pages i made are searched too?
|
#50
|
||||
|
||||
I was trying to add this to the php file and show up in the "TEST" template.
Can anyone could give me a hand on how to make it VB3 friendly. :cross-eyed: PHP Code:
|
#51
|
||||
|
||||
Quote:
|
#52
|
||||
|
||||
Quote:
|
#53
|
||||
|
||||
Very nice job on this, I finally got around to adding all the miscellaneous forum policies and a few subpages and this was just what the doctor ordered to accomplish it!
Thanks a lot! |
#54
|
||||
|
||||
Gary, looks like a great mod... i have a question though
Would it be possible to call an external html page to be included within instead of using templates? |
#55
|
||||
|
||||
Is there anything like this for vB2.3.X?
|
#56
|
||||
|
||||
Quote:
|
#57
|
||||
|
||||
Quote:
|
#58
|
||||
|
||||
Alright... vB newbie here, and this question is so basic, it almost makes me feel dirty...
Quote:
|
#59
|
||||
|
||||
Quote:
|
#60
|
|||
|
|||
Style Manager > Click the drop down box > Edit templates
|
#61
|
||||
|
||||
Quote:
umm Gary, would you prefer me to PM these questions to you? |
#62
|
||||
|
||||
Quote:
|
#63
|
||||
|
||||
Who is online system new variables should be in ACP MySQL DB, not the PHP files, I think ... for quicker eiditing ...
|
#64
|
||||
|
||||
Quote:
|
#65
|
||||
|
||||
Quote:
|
#66
|
|||
|
|||
How would you get a straight HTML, non-vbulletin related page to show up on "Who's Online" on another forum (on the same server of course).
I'm assuming you must reference it to a PHP snippet of code that records Who's Online, but how would I go about doing it? |
#67
|
||||
|
||||
Quote:
|
#68
|
||||
|
||||
Quote:
I am sorry if it looked like I was bashing the hack. That was the furthest thing from my mind. I just can not get the navbar thing to work. I followed your instructions and paisted the php code into the correct files. But I can not get the navbar to work. You can look at my file buy going to this link. There is no navbar. Could you give me some advice? http://www.whiteblaze.net/forum/test.php I guess there was a misunderstanding about the printable version because in the previous post I asked two questions and your response was "already is there". So I asumed that was the answer to both questions. So I guess that was my bust? https://vborg.vbsupport.ru/showpost....9&postcount=40 |
#69
|
||||
|
||||
Gary W
I found out what happened. It was my fault that the navbar was not showing up. I deleted ths $navbar in the template by mistake. I am sorry about the misunderstanding. But I would still like to see a option for a prinatble version added if it is possible. |
#70
|
||||
|
||||
I just get a blank page;
I have put the test.php file in my forum root e.g. /forum/test.php And I have created the template... All I get is a blank page...??? |
#71
|
||||
|
||||
Quote:
|
#72
|
|||
|
|||
I'm intrigued by this. I keep coming back to it, wondering if this is something that could be combined with Coppermine or with 4images to get the gallery integrated with the forum. I'm currently running 4images; it allows me to login etc. but logs me out as soon as someone else looks at the forum or the gallery. Drives me nuts. I'd like it to have the navbar across the top, but replace the search functionality with the gallery search (which I've done already once before I scrapped and started over -- basically built a search that looks like vbulletins but calls 4images code)
That gallery is installed into a different directory, but I see you've got the code here for the diff directory. There is a hack that unfortunately no one is paying attention to anymore here that linked the user login/cp of vb3 to the 4images... so now what I'm curious about is getting basically this to work the other way around -- make the login/etc. work with the gallery. Hmm... I suppose if I were to copy all the 4images html into these templates it may work. |
#73
|
|||
|
|||
great! I have been looking to get my custom pages to display correctly on who's online!
Thanks! |
#74
|
|||
|
|||
is it possible to make it so test.php?page=xxx works? thanks
|
#75
|
||||
|
||||
Quote:
|
#76
|
||||
|
||||
I try to put the "whats-going-on"-content of the forumhome-template into a custom template. Works fine - besides the "calender events". Is there any way to put the events on an "vBulletin-powered page"?
Greetings Grendel |
#77
|
||||
|
||||
You'd have to copy the code in the file to produce the results for that; easiest thing to do would be to copy all of the contents of the index.php but remove the print_output() line.
|
#78
|
||||
|
||||
That's what I had done.
It shows the statistics, online-users and birthdays. But the events are not shown . |
#79
|
||||
|
||||
Is there any chance to get the "Quick-Links" of the navbar running on "vBulletin-powered pages"? That would be nice.
Sorry, my fault. forgot the $navbar. But the other problem exists nevertheless. |
#80
|
||||
|
||||
Quote:
|
#81
|
|||
|
|||
Quote:
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|