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
  #52  
Old 06-04-2002, 07:13 AM
Darren Lewis Darren Lewis is offline
 
Join Date: Mar 2002
Location: England
Posts: 144
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Colon33
...there is no forums folder just the root.
Then you probably don't need the chdir command, just the require global.php part.
Reply With Quote
  #53  
Old 06-04-2002, 08:37 PM
Colon33
Guest
 
Posts: n/a
Default

I require that file, and the entire login page appears. Is this normal? I try logging in with this new box that shows up and it says directory not found. Ideas?
Reply With Quote
  #54  
Old 06-05-2002, 10:25 AM
Darren Lewis Darren Lewis is offline
 
Join Date: Mar 2002
Location: England
Posts: 144
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

OK, let me see if I can work out what is going on. Have you got the script to work and display the welcome bit with the login box (similar to on my website ) If so, and the login box isn't working it may be due to the paths in the template files

Look in the webwelcome_logincode and webwelcome_logoutcode templates and make sure that the paths to member.php are correct. Because you are on a subdomain, you may need to make the paths absolute ie http://forums.yourdomain.com/member.php etc.. You will need to do this with all the templates (I wrote them for my site and haven't gotten around to making them more generic yet). You may be able to just use $bburl/member.php instead?

You will also need to alter the cookie settings in your admin control panel so that it affects the whole domain rather than just your subdomain (see some of the earlier posts about this).

Darren.
Reply With Quote
  #55  
Old 06-05-2002, 01:01 PM
belorofon belorofon is offline
 
Join Date: Mar 2002
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hello boardies,
I getting the following Error:

Quote:
Fatal error: Cannot redeclare stripslashesarray() in /homepages/34/d26705199/htdocs/dsluser/forum/global.php on line 31
On the top of the page I have in my code:
PHP Code:
<?php
chdir
("../forum/");
require(
'./global.php');
?>
If I dont paste this code I have sometimes a header error (can not add header...), but only sometimes...
Could ya help me?
Reply With Quote
  #56  
Old 06-05-2002, 04:20 PM
Darren Lewis Darren Lewis is offline
 
Join Date: Mar 2002
Location: England
Posts: 144
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi belorofon

Looking at your website in your profile, you have quite a few other scripts on the homepage.

The error message I got was
Quote:
Warning: Cannot add header information - headers already sent by (output started at /homepages/34/d26705199/htdocs/dsluser/page/home.php:8) in /homepages/34/d26705199/htdocs/dsluser/forum/admin/functions.php on line 1573

Warning: Cannot add header information - headers already sent by (output started at /homepages/34/d26705199/htdocs/dsluser/page/home.php:8) in /homepages/34/d26705199/htdocs/dsluser/forum/admin/functions.php on line 1573
Did you place the require global.php command at the very top of your page before ANY other code? Also make sure that there are no blank spaces before this code.

Darren.
Reply With Quote
  #57  
Old 06-05-2002, 08:59 PM
belorofon belorofon is offline
 
Join Date: Mar 2002
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If I wrote
PHP Code:
<?php require('../forum/global.php');?>
at the beginning of the side, then I get the following answer fromf the server:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=windows-1252"></HEAD>
<BODY></BODY></HTML>

with other words: nothing :cry:
Reply With Quote
  #58  
Old 06-09-2002, 07:13 PM
Colon33
Guest
 
Posts: n/a
Default

k guys.. this is what happens when i put that code at the top of my forum:

The entire template for the LOGIN screen on VB appears and distorts eveything with broken images. And i have all the new templates made and i have edited the files properly. It cant be that hard to do with a forum thats a sub-domain.
Reply With Quote
  #59  
Old 06-21-2002, 09:53 PM
FrankR310 FrankR310 is offline
 
Join Date: Jun 2002
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have installed and it seems to be working...only one prob...if i am logged in and i log out (from the homepage or from the forum)...and then i go back to my homepage..it says i am still logged in...if i hit refresh...it refreshes and then it updates with me as a guest.

similarly, if i am not logged in and i log in...then go back to my homepage..it doesnt say i am logged in unless i hit refresh.

one thing, i had to include the full path to the webwelcome.php in the include.

any ideas on how i can fix the logged in/logged out issue?

thank you so much for the hack!

frank

ps i want to use another hack called logician news on the homepage...will this cause any probs with this hack?

ps for those with vb 2.2.6, this is the version i am using and it worked fine other than the issue noted above. the lines referenced in the install instructions are still valid for 2.2.6.
Reply With Quote
  #60  
Old 06-22-2002, 06:49 AM
Darren Lewis Darren Lewis is offline
 
Join Date: Mar 2002
Location: England
Posts: 144
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi Frank, I too have this refresh issue. It's cuased by the browser (IE6 in my case) loading the page from it's internal cache. When you click refresh it loads the page from the server and the correct information is shown.

The way to get around it is have some code in the header of the page which tells the browser not to store it in its cache - can;t remember what that code is at the moment (perhaps someone else will enlighten us).

I'm not sure about Logicians hack. I'm running my own news script on my homepage. Only thing to be carefull with is the paths.

Darren.
Reply With Quote
  #61  
Old 06-22-2002, 02:06 PM
FrankR310 FrankR310 is offline
 
Join Date: Jun 2002
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

<meta http-equiv="Cache-Control" content="no-cache">

but it still running into the same issue.

so if you dont hit refresh and it says you are still logged in...am i indeed still logged in on the forum? kinda confused about this.

i wonder if the hack to take the user back to the page from which they logged in will work in forcing a reload? what do you think? i would think this would work on login...not so sure about logout..does that hack take the user back back to the page from which they logged out?

anyway, once again thank you for the hack! i went to your site...very nice..seems like you are pulling info from the forums in two diff formats..."Book News" and "Latest Discussions"...i wanted to do this but the other hack doesnt allow this or i dont know how to accomplish it. i did install the logician hack and all i had to do was specify the full path to the config file. is your news hack available on this site?


frank
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 03:38 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.07640 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
  • (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
  • (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