Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Template Modifications

Reply
 
Thread Tools
[Release] [Beta 2] Simple vB powered web page version 2.0 Details »»
[Release] [Beta 2] Simple vB powered web page version 2.0
Version: 1.00, by Brad Brad is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Version: 3.0.x Rating:
Released: 08-18-2003 Last Update: Never Installs: 2
Re-useable Code Translations  
No support by the author.

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

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #42  
Old 11-29-2003, 09:40 AM
Brad Brad is offline
 
Join Date: Nov 2001
Posts: 4,765
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by xug
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:

PHP Code:
// Use script above the /forum directory? (true = yes, false = no)
$directoryonoff true;
// Path to forum directory (only set if using script above forum directory)
$directorypath '/home/xxxxxxx/public_html/forums/';
// Allow guests to view pages? (true = yes, false = no)
$guestview true
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
Reply With Quote
  #43  
Old 11-30-2003, 01:00 AM
sonic3d's Avatar
sonic3d sonic3d is offline
 
Join Date: Jan 2002
Location: Chicago
Posts: 301
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

is there a way that it will use phpinclude?

l8er
sonic
Reply With Quote
  #44  
Old 11-30-2003, 11:51 PM
Brad Brad is offline
 
Join Date: Nov 2001
Posts: 4,765
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by 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:

PHP Code:
if (THIS_SCRIPT == 'multipage')
{
     
/* your code here */

Reply With Quote
  #45  
Old 01-06-2004, 11:41 PM
97cobrapce 97cobrapce is offline
 
Join Date: Nov 2003
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

bumping...

Is this script compatible with vb3 rc1 or 2 yet?
Reply With Quote
  #46  
Old 01-07-2004, 12:24 AM
Brad Brad is offline
 
Join Date: Nov 2001
Posts: 4,765
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by 97cobrapce
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.
Reply With Quote
  #47  
Old 01-07-2004, 12:58 AM
Asterik's Avatar
Asterik Asterik is offline
 
Join Date: Jul 2003
Posts: 115
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

awsomeness I can't wait!!!
Reply With Quote
  #48  
Old 01-07-2004, 01:15 AM
97cobrapce 97cobrapce is offline
 
Join Date: Nov 2003
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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/ga...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!
Reply With Quote
  #49  
Old 01-28-2004, 08:26 PM
Cyricx Cyricx is offline
 
Join Date: Aug 2002
Location: Missouri
Posts: 1,144
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #50  
Old 01-29-2004, 02:58 AM
Cyricx Cyricx is offline
 
Join Date: Aug 2002
Location: Missouri
Posts: 1,144
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #51  
Old 02-05-2004, 12:21 AM
Cyricx Cyricx is offline
 
Join Date: Aug 2002
Location: Missouri
Posts: 1,144
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

*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
Reply With Quote
Reply

Thread Tools

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


All times are GMT. The time now is 01:14 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04414 seconds
  • Memory Usage 2,304KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_php
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete