How to create your own vBulletin-powered page! (uses vB templates)
1 Attachment(s)
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 :D 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! :D 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] 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 |
very cool
Quote:
also, would it be hard to pass the members username/id into this page? (sorry if thats an easy question) |
This is great! I assume the template standard condtionals will work here?
What's the best way to use this on a non-vb page? |
Installed, works marvelously! Thank YOU SO MUCH!
|
SVT. I believe that as long as global is called via the files, the conditionals will work.
|
Quote:
|
Quote:
Try it yourself - install this hack and you'll see the user/pass login part at the top :) Also if guests are not allowed to view your forums, then they can't view these new pages you create, etc. :) |
Wow Gary, great thing considering this is my tutorial :P
|
Quote:
|
Quote:
|
Quote:
Anyways, what do you mean Zachery? That I copied your tutorial..? I never even knew you released one (to add to that, I never even seen you around here before ;)) For 'tutorials' such as generic as this one, I don't think that there is really any proprietorship for anyone since it can be displayed in many forms; I haven't seen yours but I bet that mine is at least noticeably different from yours. |
Quote:
|
Quote:
|
Ok, 89%, then. Maybe you ought to put Helping with vBWar then, It is his hack.
|
oooh he got you on that one Boofo. ;)
|
Quote:
|
Not even close. He still couldn't do an original hack if he had to. He has to partner with someone who has a hack that IS original. You figure out the math.
|
Come on guys, regardless that this is original or not, he still took the time to come up with this, and you gotta give him credit for that. this guy put in everything in a test page including headers and such, I found that very helpful.
|
So is this a hack or just a debate over who is stealing what from who? Either way, it's a vb.org staff issue, so if there is a problem click here.
I was looking for something like this and if there was already a tutorial, then I haven't seen it. |
Quote:
Gary W: thx for answering my question =) |
Quote:
|
Not very promissing, waiting for somehting more fundamental ...
|
Quote:
Code:
require_once('./global.php'); Code:
chdir('/home/site/public_html/testvb/'); |
Sorry newbie here, can some kind sole please explain what this is suppose to do.
I have created the test.php and called it and yes looks nice:) What is the template part for and how would you best make use of this please. Thanks lol well hush my mouth, I see now (-0-0-) ;) Yes nice concept and thanks |
i have done some thing like this a while ago and i loe it as i use it for my affialites and rules page
|
Quote:
|
alright, hopefully someone can help me with this:
i have some large files i want to make available to certain usergroups, but not other. the files are way too large to upload as "attachments" with vb so i would have to upload them via ftp and then just post a link in a thread...of course this means the only way to prevent people from downloading it is to prevent them from seeing the thread at all, which is not my intention. with this new way of making a vb page, is there any way to do what i am trying to do? any help would be great. |
Quote:
PHP Code:
Also, save this code in a file such as download.php and then you can use the file by linking to it like http://www.example.com/forum/downloa...=something.php which will download www.examlpe.com/forum/files/something.php if the user is an administrator. |
Nice job although I think personally this would be a template mod rather than a hack, since no vBulletin files were modified.
Still good job though. ;) |
This looks promising gary -> a few questions !!!
1) How can I use this outside my forums directory? Do i just use this? PHP Code:
3) I have a php links script which I would like integrated into my forums in terms of the way it looks and the way only certain usergroups can access it. Can i use your hack to do this? If so, how I would I make a php page appear in the content area instead of the TEST template ??? Thanks again :) |
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. |
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:
|
Quote:
|
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?
|
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. |
Quote:
|
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 |
Quote:
|
so if i create it in notepad and save it as test that will work?
|
Quote:
|
All times are GMT. The time now is 02:03 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|