Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
welcome/login panel on non-vB page Details »»
welcome/login panel on non-vB page
Version: 1.00, by Darren Lewis Darren Lewis is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 04-06-2002 Last Update: Never Installs: 124
 
No support by the author.

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

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

Comments
  #42  
Old 05-13-2002, 10:24 AM
Darren Lewis Darren Lewis is offline
 
Join Date: Mar 2002
Location: England
Posts: 144
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Heat
I have noticed this bug too. The "Most number of users ever online" resets. Will there be a fix?
Hi, sorry for the delay in replying but I've been very busy lately. I'm currently running version 1.1 of this hack on my website, and things seem to be OK with the "most ever online users...." now.

I'm going to wait a while to see if it resets again (my forum doesn't tend to get a huge amount of traffic ). Once I'm satisfied things are OK, I'll release V1.1 (how do you decide version numbers anyway? should this be V2? :cross-eyed: )

I'll probably write a fresh webwelcome.php file, and then tell you which lines to copy across from the original vB index.php file.

Is anyone using the script to display birthdays, or PMs on the non-vB page, as my own V1.1 is not set to include this info?
Reply With Quote
  #43  
Old 05-13-2002, 04:33 PM
Heat Heat is offline
 
Join Date: Apr 2002
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

How often do you notice a reset? Mine happens every day.
Reply With Quote
  #44  
Old 05-13-2002, 04:55 PM
Darren Lewis Darren Lewis is offline
 
Join Date: Mar 2002
Location: England
Posts: 144
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I don't have a huge amount of traffic so it seemed to always say "Most users ever online was 1 on date & time I was visiting".

It seems to be OK now. Will probably try to get the new release written and uploaded soon.
Reply With Quote
  #45  
Old 05-13-2002, 07:36 PM
Darren Lewis Darren Lewis is offline
 
Join Date: Mar 2002
Location: England
Posts: 144
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

OK, I've released V1.10 of this hack. The zip file in the first post of this thread has been updated.

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 simlified. Now just cut and paste.
NB template name change in this version - webwelcome_home is now called webwelcome.
Reply With Quote
  #46  
Old 05-15-2002, 10:28 PM
SRozhon's Avatar
SRozhon SRozhon is offline
 
Join Date: Apr 2002
Location: IL
Posts: 64
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Please help! I Love this hack! It is exactly what I am looking for. I am having trouble getting it to work on my site though. I have the forum installed in a directory called /forum/ just like you do, but I don't understand where I am supposed to put the template files that we modified. I am a newbie so sorry if this is an obvious question but I've tried everything.
Reply With Quote
  #47  
Old 05-20-2002, 06:55 AM
Darren Lewis Darren Lewis is offline
 
Join Date: Mar 2002
Location: England
Posts: 144
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by SRozhon
Please help! I Love this hack! It is exactly what I am looking for. I am having trouble getting it to work on my site though. I have the forum installed in a directory called /forum/ just like you do, but I don't understand where I am supposed to put the template files that we modified. I am a newbie so sorry if this is an obvious question but I've tried everything.
The template files included in the zip file are the ones I use on my site. They will need to be modified to use on other sites (if I get some time I'll create a generic set to get people started). Create a new template from your admin control panel, and copy & paste the template contents across. Make sure that the name of the template matches (without the .htm extension). Do this for each of the seven new templates.

My forums are in the directory /forums so make sure that the paths are altered for your site.

Hope that helps
Reply With Quote
  #48  
Old 06-03-2002, 06:20 AM
Colon33
Guest
 
Posts: n/a
Default

I am getting this error whenever i am using this hack.

Quote:
Fatal error: Call to a member function on a non-object in /usr/local/psa/home/vhosts/forums.gamer-pit.com/httpdocs/webwelcome.php on line 15

If it has something to do with the require script at the very top of the website i am gonna be very mad. However, my forums are located as a sub-domina of my website, they look like this:

http://forums.mysite.com

My phpfile is located here:

http://www.mysite.com



So being a subdomain how would i make the top require file look?

I have been at this for about 3 hours so its time to rest.... lol
Reply With Quote
  #49  
Old 06-03-2002, 06:30 AM
scsa20's Avatar
scsa20 scsa20 is offline
 
Join Date: Mar 2002
Location: Mars
Posts: 458
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

just make it look like this:

PHP Code:
<?php
chdir
("/usr/local/psa/home/vhosts/forums.gamer-pit.com/httpdocs/forums/");
require(
'./global.php');
?>
hope that helps
Reply With Quote
  #50  
Old 06-03-2002, 06:49 PM
Darren Lewis Darren Lewis is offline
 
Join Date: Mar 2002
Location: England
Posts: 144
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Let us know if that works for you. Some server configuations seem to be very picky about paths to include files. On mine I don't have to use the full server path, just the relative path.

Darren.
Reply With Quote
  #51  
Old 06-04-2002, 03:03 AM
Colon33
Guest
 
Posts: n/a
Default

well i think i got it to work but if i put in the full path it says open_basedir restriction in effect, if i put those paths in the webwelcome.php page it calls the entire global.php page and messes up everything on my page. It only works if i put the webwelcome.php page into the root of my forums url.

Again, my forums are a subdomain of the site i am trying to use this on. there is no forums folder just the root.
Reply With Quote
Reply


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 04:48 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.09579 seconds
  • Memory Usage 2,314KB
  • 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
  • (1)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
  • (1)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (9)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