Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases

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
  #182  
Old 06-13-2003, 05:00 PM
tomjinx1 tomjinx1 is offline
 
Join Date: Sep 2002
Posts: 32
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Just go down to the last thing on your Admin CP which is your temples section. Click on add. Then give the template the appropriate name, select the style that the template is for, and then copy and paste the coding into the new template.
Reply With Quote
  #183  
Old 06-18-2003, 08:05 PM
dano dano is offline
 
Join Date: May 2003
Posts: 128
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
05-15-03 at 04:56 AM Dave Rosteck said this in Post #168
Can someone help me out here? The welcome panel comes up just fine but I can't get rid of the following error message:

Warning: chdir() [function.chdir]: No such file or directory (errno 2) in /home/davesmk/public_html/v3.php on line 2

Any ideas? Also, the welcome panel won't display my online status even though I have my forums at /forums. Help is much appreciated. The page is located at http://www.davesmk.com/v3.php
I was having the same issue and I looked everywhere for help. I basically just played with it and I got it to work. Not sure if it will screw things up, but I just changed it to:

<?php
("../forum/");
require('global.php');
?>

And it worked like a charm. I have tested it out, by logging in and out and with others, and there is no glitches that I can see. Maybe this will work for you.

Also, I am using 2.3.0 for those who want to know.
Reply With Quote
  #184  
Old 06-21-2003, 09:31 PM
Splitfyre Splitfyre is offline
 
Join Date: Dec 2001
Location: Vancouver, BC Canada
Posts: 169
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Cannot seem to get it to work. I get the following error:

Code:
Fatal error: Call to a member function on a non-object
It points to: error in webwelcome.php on line 24

So I look at line 24 and this is what it shows:

Code:
$getnewthread=$DB_site->query_first("SELECT COUNT(*) AS threads FROM thread WHERE lastpost > '$bbuserinfo[lastvisit]'");
Anyone know how I get this login to show up?!?
Reply With Quote
  #185  
Old 06-23-2003, 09:03 AM
M4g!k M4g!k is offline
 
Join Date: Jun 2003
Posts: 43
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hey! Im new to all this, IF i install this to my web-site, can i edit it so that if doens't show the avatar and fits in with my pages design?

http://www.indeathwefall.co.uk/index.php

I only want the log-in and regester links to work.
Reply With Quote
  #186  
Old 07-27-2003, 12:33 AM
VeoMorphine VeoMorphine is offline
 
Join Date: Nov 2002
Posts: 155
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i get this error when i try to use it on my site. Everything is right.

Database error in vBulletin 2.3.0:

Invalid SQL: SELECT COUNT(*) AS threads FROM thread WHERE lastpost > '0'
mysql error:

mysql error number: 0

Date: Saturday 26th of July 2003 08:31:16 PM
Script: http://www.elite-network.net/forums/index.php
Referer: http://www.elite-network.net/
Reply With Quote
  #187  
Old 08-03-2003, 10:29 AM
vnboy vnboy is offline
 
Join Date: Jul 2003
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi, I just downloaded this hack and it works just fine to me. In fact, I found some small mistakes in his codes, many of you have got these mistakes and couldn't figure it out, here's what you need to know:

for example, this is your site: http://yoursite.com/
--> your forum: http://yoursite.com/forums/
- your home.html now has been changed into home.php
- At the top of the page home.php, you MUST add these lines:
Quote:
<?php
chdir("./forums/"); // Darren is wrong when he wrote 2 dots (../), change "forums" to whatever directory your forum is!
require('global.php');
?>
- Whenever in your page you wanna add welcome panel, just add as Darren said:
Quote:
<?php include ("webwelcome.php"); ?>
that's all folks,

Good luck you guys!
Reply With Quote
  #188  
Old 08-09-2003, 03:56 AM
EVO VIII Chris EVO VIII Chris is offline
 
Join Date: Aug 2003
Location: Portland, OR
Posts: 46
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is there some simple way to make it so when you login you are not directed to the forum main page but instead back to the non-VB page you originally logged in from?

Thanks
Chris
Reply With Quote
  #189  
Old 08-09-2003, 05:08 AM
dcevoclub dcevoclub is offline
 
Join Date: Jul 2003
Posts: 72
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Fatal error: Call to undefined function: gettemplate() in C:\Personal Sites\dcevoclub\vbulletin\webwelcome.php on line 156

eval("\$whosonline = \"".gettemplate('webwelcome_whosonline')."\";") ;

and webwelcome_whosonline template exisits

www.dcevoclub.com/main.php is the test for it
Reply With Quote
  #190  
Old 08-17-2003, 11:12 AM
Asso Asso is offline
 
Join Date: Jul 2002
Location: Italy!
Posts: 75
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

it's possbile to have this hack for vb 3?
Reply With Quote
  #191  
Old 08-20-2003, 07:37 AM
livewars livewars is offline
 
Join Date: Aug 2003
Posts: 15
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I don't know if this has been mentioned yet but.... any chance of getting a mini calendar to work with it in the next version?
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 03:03 PM.


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.05032 seconds
  • Memory Usage 2,308KB
  • 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_code
  • (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
  • (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