The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
welcome/login panel on non-vB page Details »» | |||||||||||||||||||||||||
I've seen a lot of requests for this around here, but no solutions.
Latest version is 1.30 Works with V2.2.9 Should work with earlier version of 2.2.x too. OVERVIEW ======== This hack/modification is designed to create a welcome panel on your non-vB homepage, so that users are either welcomed back if they are registered, or invited to login/register if they are not. There are config options to show avatar and/or PM information and/or who's online (with or without usernames) in your welcome panel. If you want to see a working example, then go to http://www.thebookforum.com The hack installed there does not show all of its features, but gives a general idea. The templates allow complete control over the look of the login/welcome panel. There is one PHP file (webwelcome.php) to upload, and ten custom VB templates to create. The templates can be modified to suit the design of your site. The ones that I have included in the zip file are those that I created for my site. There are options to include the following additional info - Avatar for guests or user's own avatar if logged in. If no avatar selected, a default one will be shown. Example guest and default avatars included in this release package. - PM info to logged in users (will not show if user cannot use PMs or has chosen not to) - Who's online (number of members of guests). Additional option to choose whether to show usernames. CREDITS ====== This hack also uses some code originally written by several members of vbulletin.org in particular Firefly and MrLister. Full credit is given in the php file for the relevent bits of code used. I have modified their code slightly to work with this hack. I have not formally asked their permission due to the open source nature of the hacks at vbulletin.org If they object I will remove their code from this hack release. HISTORY ====== V1.30 13 September 2002 Hack creation now very simple. No more copy & paste. I've changed a lot of the original vb code so copy & paste would be nearly impossible. Added option to include PM info and who's online (with or without usernames) in the welcome panel. Default templates included in the hack release altered to include these new options. New templates for the additional info to be shown. V1.20 11 September 2002 Added option to include user's avatar in the welcome panel. Default templates included in the hack release altered to include these new options. Default templates altered to be more generic. V1.10 13 May 2002 Fixes the bug where the "most users online...." on the forum page keeps reseting to zero. Removes a lot of the unecessary bloat from the script. Creation of script simplified. Now just cut and paste. NB template name change in this version - webwelcome_home is now called webwelcome. V1.00 07 April 2002 Original release. Show Your Support
|
Comments |
#72
|
||||
|
||||
Hello I really want this hack but this is what I get?
PHP Code:
|
#73
|
||||
|
||||
I've had vBhome installed on my site for the last few months. I then modified the script a little (mostly just took out the news part) and used that to make a column on the left side of every page that shows a users info (or login box), online users, buddy list, latest topics, and etc. The majority of my pages are coded in HTML, so I just used ssi to include the PHP file and it worked great. Now I'm starting to code more and more of my site in PHP, but I'm starting to run into problems. I can't seem to use SSI anywhere in a PHP file, so I tried using the PHP include function to include that file. That worked for the most part, but the only problem is a user can not log in from that page, and if someone is already logged in it won't show their info.
I decided to try and use this hack to see if I could get it to work with my PHP scripts, but I'm still not having any luck. I put this code Quote:
Quote:
Quote:
I've got this hack to work fine on a test page done in PHP, but I can't get it to work on a PHP script page. Does anyone have any idea how I can make this work or perhaps another way I can display a users login information on another PHP script? |
#74
|
|||
|
|||
Hi, I've updated the zip file to V1.30.
This new release contains options to show PM info and who's online (with or without usernames). There is no more copy&paste creation so things should be a bit simpler. There are a couple of more templates to create if you want to use the pm and who's online bits. I also fixed a very minor bug. If you chose not to show avatars the welcome text would not be centred in the box as there would still be a blank avatar column. A simple change to the webwelcome template and the php file has sorted that. OK, this include global.php does cause a few problems. This is mainly when you have other scripts running on the same page. If these scripts require other directories they may not work. I've got Tubedog's latest threads hack on my homepage, but it's creating problems when I try to pull info from my reviews engine (Censura). This is what I have at the very top of my index.php homepage. <?php chdir("forums/"); require('./global.php'); ?> <html> I then have this where I want to show my welcome panel <?php include("webwelcome.php"); ?> and it works OK. Different servers behave differently. I'm running Apache on Linux. Tony, I have no idea why you're getting that message Any other hacks/scripts on your page that may be creating trouble? Darren. PS I'll probably not be adding any new features to this hack from now. It does everything I personally need it to do on my site, and I don't have the time to do any custom work. Hopefully it will work with VB3, but if not I'll sort something out as I'll be going to VB3. |
#75
|
||||
|
||||
No matter what I try I can't seem to get this to work with another PHP script. I tried what you suggested above and put this right above <HTML> in the PHP file...
<?php chdir("forums/"); require('./global.php'); ?> And it came back with this error... Warning: Cannot add header information - headers already sent by (output started at /home/virtual/site72/fst/var/www/html/gallery/albums.php:32) in /home/virtual/site72/fst/var/www/html/forum/admin/functions.php on line 1603 Anyone have any suggestions on how to make this work or know if it's even possible to make it work with another PHP script? |
#76
|
|||
|
|||
Looks like your "gallery" script is conflicting and sending header info. Is there any other PHP code above the call to vbulletin's global.php file as this may be interfering.
|
#77
|
||||
|
||||
Yes, there is quite a bit of code above where I was calling the global.php file from. Here's what's above it...
Quote:
|
#78
|
|||
|
|||
Try putting it above your PHP code, so it's the very first bit of code on that page. Then chdir back to your current directory
ie. <?php chdir("forums/"); require('global.php'); chdir("../"); // Hack Prevention then your gallery php stuff Darren. |
#79
|
||||
|
||||
Well I tried your suggestion and put -
<?php chdir("/home/virtual/site72/fst/var/www/html/forum"); require('./global.php'); chdir("/home/virtual/site72/fst/var/www/html/gallery"); ?> At the very top of the file and got this error... Warning: Cannot send session cache limiter - headers already sent (output started at /home/virtual/site72/fst/var/www/html/gallery/albums.php:7) in /home/virtual/site72/fst/var/www/html/gallery/session.php on line 51 Fatal error: Call to a member function on a non-object in /home/virtual/site72/fst/var/www/html/webwelcome.php on line 22 I've been playing around with it for quite a while, but still no luck. If you happen to think of anything else that might work please let me know and thank you very much for your help thus far. |
#80
|
|||
|
|||
I can't get it to work. Only getting this error
Quote:
Quote:
*EDIT* Ok got it running now but it Displays the whole index.php Page with broken Buttons. |
#81
|
|||
|
|||
Hey Higgins, you need to allow GUESTS to view your board without registering. I had the same problem.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|