The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
[Release] [Beta 2] Simple vB powered web page version 2.0 Details »» | |||||||||||||||||||||||||||
[Release] [Beta 2] Simple vB powered web page version 2.0
Developer Last Online: Nov 2023
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. Show Your Support
|
Comments |
#12
|
||||
|
||||
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 |
#13
|
||||
|
||||
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. |
#14
|
||||
|
||||
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:
eval('$navbar = "' . fetch_template('navbar') . '";'); Code:
eval('$XXXXXX = "' . fetch_template('XXXXXX') . '";'); Then find Code:
$globaltemplates = array( 'simplepage', Code:
'XXXXXX', 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? |
#15
|
||||
|
||||
for some reason my pages.php is blank :\ i have checked all the variables and have added the template
|
#16
|
||||
|
||||
You need to add ?getpage=XXX that correlates with your template variables.
|
#17
|
|||
|
|||
Quote:
|
#18
|
||||
|
||||
Nice
This is something. Can you make a subcategory add-on, so I can categorize all the web pages and navigate them? |
#19
|
||||
|
||||
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.
|
#20
|
|||
|
|||
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!
|
#21
|
|||
|
|||
Thank you, worked like a gem. Here's a example here fellas:
http://www.clangrounds.com/pages.php?getpage=files |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|