View Full Version : [Release] [Beta 2] Simple vB powered web page version 2.0
Modification: Simple vB powered web page (svBpwp).
By: Brad.loo
This is a external script that will allow you to add extra pages to your vBulletin that intergrate with your style settings. It allows you to use all of vBulletin's built in style vars in your html code so you never have to worry about updating flat html files to match you new board's style every again.
The script supports multiple pages via one file and one template using <if> condition tags unlike its vB 2 counter part. Also you may use all global variables and templates in your code.
Updates:
2.0 beta 2 released - beta 2 solves all reported bugs in beta 1 but adds no new funconality. If you are running beta 1 it is recomended that you upgrade. To do so download the zip file attached in this thread and upload the new pages.php
How to use this script:
Heres a quick list of variables allowed to be used with this script, they are off the top of my head so I might have missed a few.
$bbuserinfo[] - Show's current users info if any
$stylevar[] - vBulletin's build in style var's
$vboptions[] - vBulletins options
$showdate - Current date
$showwelcome - Could be useful for welcome panels or the like, use this variable in conditions when you want to show certain info to a guest or regged member. Reports false if user is guest and ture is user is member.
$navbar - Shows navbar
$header - Shows contents of the HEADER template
$footer - Shows contents of the FOOTER template
$headinclude - Shows contents of the headerinclude template
$gobutton - Displays go button (go button template)
$timezone - Shows content of timezone template.
$_REQUEST['getpage'] and $page - Use to determain code to display per page.
Zachery
19 Aug 2003, 13:47
nice and simple like you said, i have somthing alot simpler than this that is working with vb3(it just calls the template lol) :) but nice none the less, i may use this to help a friend with some pages for his vb3
nice and simple like you said, i have somthing alot simpler than this that is working with vb3(it just calls the template lol) :) but nice none the less, i may use this to help a friend with some pages for his vb3
Thanks for the comments, let me know if you find anything this script is lacking.
I added a new variable to the file amd have uploaded a new zip file. If you have downloaded the script before I made this post make sure to grab it again, no version name change.
Basicly now you can use $page instead of $_REQUEST['getpage'] in your conditions. The old way still works tho ;).
The next steap for this script is admin cp intergration but I wont fool with that until RC. :)
Zachery
19 Aug 2003, 13:57
i saw Steve Machol talking about external.php i know this is abit offtopic but any idea what it does?
I imagine it has something to do with RSS feeds for the forums into other programs and cleints, not really related to this script.
imported_GMTalk
21 Aug 2003, 08:29
It is for the content feeds. I have been playing around with them as far as pushing data to other sites that I run.
MischiefThought
25 Aug 2003, 16:43
Isnt this the same as c-prompts? but just for vb 3.
Isnt this the same as c-prompts? but just for vb 3.
I made one and released it here for vB 2 aswell. I asure you that I coded this myself, dident know anything like it was out there :)
WichitaRacing
10 Sep 2003, 03:14
demo for this? :)
well all i can say is i will use this a lot so thanks a lot brad !!
cheers
rob
Bad Bunny
18 Sep 2003, 04:26
I can't seem to get it to work if in a folder above the vb folder.
Specifically....
Warning: chdir(): No such file or directory (errno 2) in /home/neeto/public_html/pages.php on line 56
Warning: main(./global.php): failed to open stream: No such file or directory in /home/neeto/public_html/pages.php on line 58
Fatal error: main(): Failed opening required './global.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/neeto/public_html/pages.php on line 58
Bad Bunny
18 Sep 2003, 04:48
Hmm, I got it to work fine by replacing the variable in chdir('$directorypath'); with the actual path.
Then I found I had all broken images...so I went and made the images folder an absolute path. Now it seems to work groovy! Gonna experiment with this. :)
Ok, I'm digging this...but I do have a question. How can I include my own custom templates? Will make the job of making pages far less tedious, as I want parts of the header slightly different than the forum header.
Bad Bunny
18 Sep 2003, 05:17
Sorry to be posting so much...but I am not very good at php, but this seems to be what you would need to do to use your own custom templates.
find
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
Right after it include
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
Change the XXXXXX to the name of template you are going to be adding.
Then find
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
Right after that add
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
where XXXXXX is yet again the name of the template you will be including.
So...this works for me, but what I wanna know is...is there a better way to do this? or is this pretty much it?
Breaker
18 Sep 2003, 22:08
for some reason my pages.php is blank :\ i have checked all the variables and have added the template
Bad Bunny
18 Sep 2003, 22:42
You need to add ?getpage=XXX that correlates with your template variables.
Sorry to be posting so much...but I am not very good at php, but this seems to be what you would need to do to use your own custom templates.
find
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
Right after it include
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
Change the XXXXXX to the name of template you are going to be adding.
Then find
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
Right after that add
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
where XXXXXX is yet again the name of the template you will be including.
So...this works for me, but what I wanna know is...is there a better way to do this? or is this pretty much it?
Ill add somthing to make it easyer in the next build.
Nice
This is something. Can you make a subcategory add-on, so I can categorize all the web pages and navigate them?
Bad Bunny
19 Sep 2003, 18:30
Also, I toyed with code I found elsewhere and got it to display a navbit title for the page name...but having something like that by default would rule.
Buczilla
19 Sep 2003, 20:43
Is there a way to add php (that I have on my main site, but I'd like to add here) onto this page? Thanks!
Rebel2k2
21 Sep 2003, 02:49
Thank you, worked like a gem. Here's a example here fellas:
http://www.clangrounds.com/pages.php?getpage=files
Bad Bunny
21 Sep 2003, 06:09
um...it attempts to log me in.
Rebel2k2
21 Sep 2003, 07:22
Well I just followed the standard install procedure, but that's okay. I always figured if someone wanted to use our bandwidth to download files they could at least register for the board. :)
Here's a screenshot though:
I am currently working on version 2.1 beta of this script.
The script is begin totally re-done in 2.1, pages will be stored in the db in a new table instead of begin controled via one template. Also each page will have its own options for perrmissions, page title (for the nav bar), and html. There will also be a default page that will list all current pages in your db. The default page is only called when a page is called that dosent exist in the db, or it can be called directly via pages.php?page=list.
All pages will be controled from a new admin cp script, to allow easy management of all pages.
2.1 will also pack alot of new fetures, these include:
Choose which style they page uses
Which template to use as the header/footer/headerinclude
Page by page perrmissions (based on usergroups)
Page hit counters
2.1 beta is expected to be out shortly.
Buczilla
24 Sep 2003, 20:53
Sounds awesome Brad :)
Drowned
26 Sep 2003, 04:56
BEST MOD EVER!!!!!! wow... I love this!
ONly problem is that my guests can't see the pages even thought I set my options for it to be available for everyone :(
Bad Bunny
29 Sep 2003, 08:31
I am currently working on version 2.1 beta of this script.
The script is begin totally re-done in 2.1, pages will be stored in the db in a new table instead of begin controled via one template. Also each page will have its own options for perrmissions, page title (for the nav bar), and html. There will also be a default page that will list all current pages in your db. The default page is only called when a page is called that dosent exist in the db, or it can be called directly via pages.php?page=list.
All pages will be controled from a new admin cp script, to allow easy management of all pages.
2.1 will also pack alot of new fetures, these include:
Choose which style they page uses
Which template to use as the header/footer/headerinclude
Page by page perrmissions (based on usergroups)
Page hit counters
2.1 beta is expected to be out shortly.
That sounds exciting! I am REALLY looking forward to that!
indeed.. I'm loving what im seeing here. :)
monstergamer
29 Sep 2003, 16:50
thanx for this
i really needed it :D
BEST MOD EVER!!!!!! wow... I love this!
ONly problem is that my guests can't see the pages even thought I set my options for it to be available for everyone :(
Will be fixed in 2.1
monstergamer
30 Sep 2003, 19:33
Will be fixed in 2.1
any idea when this well be?? not rushing you tho
I really wanted to use this but I'll wait for the next version. Still a few bugs (including guest permissions and login form) But you probably already know that brad. Thanks for developing this, can't wait to see the rest :)
Regards,
Patrick
for some reason my pages.php is blank :\ i have checked all the variables and have added the template
It appears that the pages.php would only be blank if you have template issues. Are you sure that you added the template to the right style? If so are there any typos? Is the
eval('print_output("' . fetch_template('simplepage') . '");');
Still intact at the bottom of pages.php?
stevekli
23 Oct 2003, 20:00
2.1 beta is expected to be out shortly.
Brad, any ETA on this?
Thanks,
SteveK
Brad, any ETA on this?
Thanks,
SteveK
Hi, 2.1 is begin pushed back to late november so I dont have to re-do it for RC 1. I will release a fixed version of 2.0 beta (beta 2) shortly tho :)
Beta 2 released, fixed all reported problems in the script:
Guest perrmissions - perrmissions are now the same as forumhome perrmissions.
Directory bug - $directorypath no longer throws errors when used
Nav bar - $navbar now works on pages, but always reports back as 'Show page $page'. Better system will be used in 2.1
monstergamer
01 Nov 2003, 03:51
i'm really glad guest can now see it
thanx alot and i dont plame you for waiting for the RC to come outbefore you make the final Simple vB powered web page
i'm really glad guest can now see it
thanx alot and i dont plame you for waiting for the RC to come outbefore you make the final Simple vB powered web page
It is going to be a nice little project, I see no reason why anyone will not be able to create there own custom CMS with it. Hopefully you will be able to plug-in modules of some sort. :)
Ive done most of the frame work for 2.1 with beta 7, it is coming along and is expected for released a few days after jelsoft releases RC 1.
2.1 aims to eleminate the need for a vBportal type hack, this small package will be able to do it all with plug-in's. 2.1 might also warrent a name change of this script because it will become that more powerful.
At this state 2.1 will include the fallowing when released:
Page options:
All of the fallowing are controled from a new page added to the admin cp.
Perrmissions: They are controled on a page by page bases, allowing you to to show content to only certain usergroups
Nav Bar: Custom message for the nav bar
Style settings: You can specify what style is used on a page by page bases
Password: You can restrict pages with a password stored in the database as md5, users must enter a pass before viewing the page (requires cookie users)
Visable option: You can only allow admins to view a page with this option
View counter: Each page supports a view counter if turned on
Plug-in's: If a page is stored in the database (by id) then it can have a set of plug-in's stored in the database. These plug-in's allow you to add your own php to pages without hacking the files. You are restricted to 20 plug-ins per page for resource reasons.
Page Database:
2.1 will also include a new page database, basicly a listing of all your pages, more details on this later
Other Options
It may not make it into the frist version but users on apache will eventally get a search engine friendly version that will print clean links.
Final note: This is the same system I am developing for this site, and it will be released here for free :)
I'm having the same problems as breaker. My pages.php is blank. I only have one style (the default one) so I know I added simplepage to the right style.
So what am I doing wrong?
Edit:
Figured it out ^___^
Cool hack, but I have one problem.
The links on my web powered page doesn't link to the right directory, all the links are without '/forums/'.
.
My settings look like the following:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
So I don't see what I did wrong, my path is ok, the first switch must be ok, because if I say false I get a script error.
Please help.
Cool hack, but I have one problem.
The links on my web powered page doesn't link to the right directory, all the links are without '/forums/'.
.
My settings look like the following:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
So I don't see what I did wrong, my path is ok, the first switch must be ok, because if I say false I get a script error.
Please help.
This is a design issue, for now hard-code /forums into the template. I will resolve this in 2.1
sonic3d
30 Nov 2003, 03:00
is there a way that it will use phpinclude?
l8er
sonic
is there a way that it will use phpinclude?
l8er
sonic
You may use the phpinclude templates with this modification, if you want to run code only when pages.php is called do this:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
97cobrapce
07 Jan 2004, 01:41
bumping...
Is this script compatible with vb3 rc1 or 2 yet?
bumping...
Is this script compatible with vb3 rc1 or 2 yet?
http://kousetsu.net/bbs/showthread.php?t=4
It will be avaible very soon.
Asterik
07 Jan 2004, 02:58
awsomeness :D I can't wait!!!
97cobrapce
07 Jan 2004, 03:15
Just for the hell of it (before I saw your post Brad), I installed this mod.
Seems to work just fine and I'm running RC2. :)
Is it ok if a change a few variable names? I didn't change anything else. For my needs it would look nicer if I changed a few variable names around a little. I changed pages.php to games.php and getpage to game so that it matches better with what I'm doing.
Here is a sample page I made up. (I'm gonna have flash games and such available on my site, so this type of system would work perfect for what I'm trying to do).
http://www.chicagotalk.net/forums/games.php?game=FowlWords
The only thing I noticed is that there's no who's online stuff for this mod. All I get is the 'unknown location' error.
Looking forward to the new version you are working on!
Not to sound eager, but I'm curious about how this is coming along? :)
This is what I am looking for, for my site.
Cyricx
Okay, I have a question. :)
This is starting to bug me and make me want to hurt myself. So, here's the problem I am having. :)
I created a copy of pages.php and named it a filename (we'll call it custom.php) that I want to use. And then I created a template and tested it. The custom.php did everything correctly. Loaded all the stuff I wanted.
Now, I have a file that I want to show in the middle of the custom.php in the body area between the header and footer.
This would be using the code include("/path/to/filename");
But nope, the page wont load what I want to show there. I want custom.php to show the contents of what is inside the file that I specifiy in the path of the include code.
Cyricx
EDIT:
I should explain more in detail. :) lol
I added the include statement inside the custom.php at the bottom of the page just before ?> ... Tested it, didn't load.
So, I took it out, then tried putting the include statement in the template that it is using. It just prints out the include statement on the screen, so can't be that.
It has to be something inside the custom.php but obviously, I am missing that.
*looks around* Where's brad?? lol, I want to get this all fixed and over with. It's driving me nuts trying to figure this out...
Cyricx
Ive been busy prepairing a few things for vBt's RC 3 upgrade as of late.
To do this for all custom pages call by that file edit pages.php
Find:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
Replace with
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
Do not call global.php in that file, it will pick global.php up via my script.
*sigh*...
It's half-way, lol ...
It shows the contents of the file that gets the information from xml file above the header / footer / navbar.
LINK (http://test.guardiansoffire.com/forums/ac2allegtree.php?getpage=_ac2_alleg_tree)
Cyricx
Brad -
Any headway on that problem we discussed? :)
I'm anxious to get the rest of the site all completed...
Cyricx / Shaz
ok i got one major issue it all works great except if your not logged in it shows a blank page. I am running it on vb3 gold :) but permissions are not working for guest or user not logged in? any help will be appreciated
thanks
EDIT still need some help :(
RetroDreams
20 Jun 2004, 20:52
I was wondering if the new version was coming out anytime soon? This is something i've really been needing!
Does this work with vB 3.0.1? I need this also.
imported_infernonet
07 Jul 2004, 00:01
Ill try this out with vb 3.0.3 tommrow, btw Great Hack :)
imported_infernonet
07 Jul 2004, 00:42
It works perfect with vb 3.0.3 :)
imported_infernonet
08 Jul 2004, 18:59
Never Mind fixed it :)
Wapture
02 Oct 2004, 13:53
Is there anyway I can add php into the page?
Also, how can I make other pages?
I tried putting the template call like the "simple page" one, but it just messed up.
GetGamer.com
29 Dec 2004, 22:27
nice and simple like you said, i have somthing alot simpler than this that is working with vb3(it just calls the template lol) :) but nice none the less, i may use this to help a friend with some pages for his vb3Where is this "something simpler" that you refer to?
:D
tomshawk
12 Feb 2005, 17:55
I realize thie is an old thread, but.
I've used this addon sense it was released and its been working great.
But...
After upgrading to vbulletin 3.0.6 I've started having a problem.
On the pages I have created, the vbulletin DHTML menu's mainly the navbar dropdown menu's dont work anymore.
they may not haved worked in vb 3.0.4 and 3.0.5 as well, but I skipped those versions. It worked on 3.0.3 and below though.
I hope you can help with this Brad, or anybody.
Thanks in advance for any help
Here are some examples of what I mean
http://www.tech-unity.com/requirements.php?getpage=Cert_Req
http://www.tech-unity.com/vouchers.php?getpage=vouchers
http://www.tech-unity.com/pages.php?getpage=IP_Calculator
MajorFm.com
28 Jun 2005, 08:24
Ive done most of the frame work for 2.1 with beta 7, it is coming along and is expected for released a few days after jelsoft releases RC 1.
2.1 aims to eleminate the need for a vBportal type hack, this small package will be able to do it all with plug-in's. 2.1 might also warrent a name change of this script because it will become that more powerful.
At this state 2.1 will include the fallowing when released:
Page options:
All of the fallowing are controled from a new page added to the admin cp.
Perrmissions: They are controled on a page by page bases, allowing you to to show content to only certain usergroups
Nav Bar: Custom message for the nav bar
Style settings: You can specify what style is used on a page by page bases
Password: You can restrict pages with a password stored in the database as md5, users must enter a pass before viewing the page (requires cookie users)
Visable option: You can only allow admins to view a page with this option
View counter: Each page supports a view counter if turned on
Plug-in's: If a page is stored in the database (by id) then it can have a set of plug-in's stored in the database. These plug-in's allow you to add your own php to pages without hacking the files. You are restricted to 20 plug-ins per page for resource reasons.
Page Database:
2.1 will also include a new page database, basicly a listing of all your pages, more details on this later
Other Options
It may not make it into the frist version but users on apache will eventally get a search engine friendly version that will print clean links.
Final note: This is the same system I am developing for this site, and it will be released here for free :)
2 years on... any idea when 2.1 will be released... this is exactly what i want however i want without my vb style, header etc... basically i want a blank page that i can edit but only have members or certain usergroups view it...
vBulletin® v3.6.12, Copyright ©2000-2012, Jelsoft Enterprises Ltd.