Register Members List Search Today's Posts Mark Forums Read

Reply
 
Article Options
How to create your own vBulletin-powered page! (uses vB templates)
Gary King
Join Date: Jan 2002
Posts: 2,046

by Gary King Gary King is offline 04 Mar 2004
Rating: (4 votes - 5.00 average)

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):
Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Be sure to change 'TEST' to the actual template name, and change 'test' to the filename. Also, change 'Test Page' to whatever you want to show in the navbar, such as 'Viewing Member Profile' (just an example).

Now create the template, called TEST with the following content:
Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

All done
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:
Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Below, add:
Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

(Be sure to change the values to your own!)

Then find:
Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Below add:
Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

All done!

----------------------------------

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:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Replace 'xxx' with whatever you want ?do= in the query string to be (for example, replace 'xxx' with 'showprofile' so then someone would type in example.php?do=showprofile to view this template.) Then of course, change TEMPLATE_XXX to your template name, it's that simple!


edit by Lynne: If running 3.8.4 or above, see this post to take care of the PHP 5.3.0-related problems - http://www.vbulletin.org/forum/showp...postcount=1171
Attached Images
File Type: jpg template_test.jpg (62.5 KB, 26545 views)

Last edited by Lynne; 21 Aug 2009 at 02:01.. Reason: added note at bottom regarding 3.8.4 and php 5.3.0 related probs
Views: 899278
Reply With Quote
Comments
  #2  
Old 04 Mar 2004, 23:20
alkatraz alkatraz is offline
 
Join Date: Oct 2002
Location: Vancouver, Canada
Real name: Colin
very cool

user permissions system as well
how would you go about using that?

also, would it be hard to pass the members username/id into this page? (sorry if thats an easy question)
__________________
-alkatraz
Northwest Nissans Classifeds
Reply With Quote
  #3  
Old 04 Mar 2004, 23:23
SVTBlackLight01's Avatar
SVTBlackLight01 SVTBlackLight01 is offline
 
Join Date: Jan 2003
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?
__________________
MODern ENGINEuity
Modular Ford Powered Community

Automotive Books, Movies, Games and More!

Last edited by SVTBlackLight01; 04 Mar 2004 at 23:58.
Reply With Quote
  #4  
Old 04 Mar 2004, 23:27
dirtymerc dirtymerc is offline
 
Join Date: Sep 2002
Installed, works marvelously! Thank YOU SO MUCH!
Reply With Quote
  #5  
Old 05 Mar 2004, 00:14
TheAnt TheAnt is offline
 
Join Date: Sep 2003
SVT. I believe that as long as global is called via the files, the conditionals will work.
Reply With Quote
  #6  
Old 05 Mar 2004, 00:14
Gary King's Avatar
Gary King Gary King is offline
 
Join Date: Jan 2002
Originally Posted by SVTBlackLight01
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?
I'd suggest to copy the non-vB page content and copy into a template
Reply With Quote
  #7  
Old 05 Mar 2004, 00:15
Gary King's Avatar
Gary King Gary King is offline
 
Join Date: Jan 2002
Originally Posted by alkatraz
very cool



how would you go about using that?

also, would it be hard to pass the members username/id into this page? (sorry if thats an easy question)
You don't really have to worry about those, they are already in action
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.
Reply With Quote
  #8  
Old 05 Mar 2004, 01:38
Zachery's Avatar
Zachery Zachery is offline
 
Join Date: Jul 2002
Real name: Zachery Woods
Wow Gary, great thing considering this is my tutorial :P
__________________
Looking for ImpEx?
Reply With Quote
  #9  
Old 05 Mar 2004, 02:00
SVTBlackLight01's Avatar
SVTBlackLight01 SVTBlackLight01 is offline
 
Join Date: Jan 2003
Originally Posted by Gary W
I'd suggest to copy the non-vB page content and copy into a template
What I'm saying is how can you make test.php (in this case) work outside the vBulletin directory?
__________________
MODern ENGINEuity
Modular Ford Powered Community

Automotive Books, Movies, Games and More!
Reply With Quote
  #10  
Old 05 Mar 2004, 02:02
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Real name: Rob
Originally Posted by Zachery
Wow Gary, great thing considering this is my tutorial :P
Now why doesn't that surprise me? That seems to be the norm around here.
Reply With Quote
  #11  
Old 05 Mar 2004, 02:05
Gary King's Avatar
Gary King Gary King is offline
 
Join Date: Jan 2002
Originally Posted by Boofo
Now why doesn't that surprise me? That seems to be the norm around here.
Wow thanks for following me around and saying these types of things as you please

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.
Reply With Quote
  #12  
Old 05 Mar 2004, 02:20
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Real name: Rob
Originally Posted by Gary W
Wow thanks for following me around and saying these types of things as you please
Then be original. 90% of the hacks you have released for vB3 have been someone else's. I mean, look at your sig. You're working on vBWar for vB3? Have you even checked with Dark_Wizard to see if he minds?
Reply With Quote
  #13  
Old 05 Mar 2004, 02:22
Gary King's Avatar
Gary King Gary King is offline
 
Join Date: Jan 2002
Originally Posted by Boofo
Then be original. 90% of the hacks you have released for vB3 have been someone else's. I mean, look at your sig. You're working on vBWar for vB3? Have you even checked with Dark_Wizard to see if he minds?
Actually, for your information, I am working with Dark_Wizard on vBWar v3. We are in a partnership for this. Have you even taken a look at the vBWar site yet? ( http://vbwar.dpclan.us/forums/showgroups.php? )
Reply With Quote
  #14  
Old 05 Mar 2004, 02:42
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Real name: Rob
Ok, 89%, then. Maybe you ought to put Helping with vBWar then, It is his hack.
Reply With Quote
  #15  
Old 05 Mar 2004, 02:47
Jagang Jagang is offline
 
Join Date: Mar 2003
oooh he got you on that one Boofo.
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Article Options

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


New To Site? Need Help?

All times are GMT. The time now is 22:05.

Layout Options | Width: Wide Color: