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
  #202  
Old 10-21-2003, 08:19 PM
Airwork Airwork is offline
 
Join Date: Oct 2003
Location: Netherlands
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is really the script I've been looking for, it looks just great.
Unfortunately, I can't get it to work. Tried everything, looked everywhere and am now desperate. Hope someone knows a brilliant solution to this:

Warning: main() [function.main]: open_basedir restriction in effect. File(/usr/local/lib/php/webwelcome.php) is not within the allowed path(s): (/www/htdocs/airwork) in /www/htdocs/airwork/test.php on line 17

Warning: main(/usr/local/lib/php/webwelcome.php) [function.main]: failed to create stream: Operation not permitted in /www/htdocs/airwork/test.php on line 17

Warning: main() [function.main]: Failed opening '/usr/local/lib/php/webwelcome.php' for inclusion (include_path='.:/usr/local/lib/php') in /www/htdocs/airwork/test.php on line 17

You can find it at http://www.airwork.nl/test.php

I contacted my host, but they say it has to do with my path, which I should set to usr/local/lip/php. I did as instructed, but still get the same error.

Anyone???
Reply With Quote
  #203  
Old 10-21-2003, 11:59 PM
danchuee danchuee is offline
 
Join Date: Aug 2003
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Airwork
This is really the script I've been looking for, it looks just great.
Unfortunately, I can't get it to work. Tried everything, looked everywhere and am now desperate. Hope someone knows a brilliant solution to this:

Warning: main() [function.main]: open_basedir restriction in effect. File(/usr/local/lib/php/webwelcome.php) is not within the allowed path(s): (/www/htdocs/airwork) in /www/htdocs/airwork/test.php on line 17

Warning: main(/usr/local/lib/php/webwelcome.php) [function.main]: failed to create stream: Operation not permitted in /www/htdocs/airwork/test.php on line 17

Warning: main() [function.main]: Failed opening '/usr/local/lib/php/webwelcome.php' for inclusion (include_path='.:/usr/local/lib/php') in /www/htdocs/airwork/test.php on line 17

You can find it at http://www.airwork.nl/test.php

I contacted my host, but they say it has to do with my path, which I should set to usr/local/lip/php. I did as instructed, but still get the same error.

Anyone???
You may want to contact your host again. It is a server issue. The admistrator is restricting access to specific directories. Usually in a hosting environment, they only allow you to access your directories. This is a security issue. Try placing the file within a directory you know works. Then try it.

Also you can call them to make sure that you can create more folders within that dir and that the config of the server os allows it.

Below is some info about what open_basedir is all about.

Quote:
open_basedir string
Limit the files that can be opened by PHP to the specified directory-tree, including the file itself. This directive is NOT affected by whether Safe Mode is turned On or Off.

When a script tries to open a file with, for example, fopen() or gzopen(), the location of the file is checked. When the file is outside the specified directory-tree, PHP will refuse to open it. All symbolic links are resolved, so it's not possible to avoid this restriction with a symlink.

The special value . indicates that the directory in which the script is stored will be used as base-directory.

Under Windows, separate the directories with a semicolon. On all other systems, separate the directories with a colon. As an Apache module, open_basedir paths from parent directories are now automatically inherited.

The restriction specified with open_basedir is actually a prefix, not a directory name. This means that "open_basedir = /dir/incl" also allows access to "/dir/include" and "/dir/incls" if they exist. When you want to restrict access to only the specified directory, end with a slash. For example: "open_basedir = /dir/incl/"
Reply With Quote
  #204  
Old 10-22-2003, 06:15 PM
Airwork Airwork is offline
 
Join Date: Oct 2003
Location: Netherlands
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by danchuee
You may want to contact your host again. It is a server issue. The admistrator is restricting access to specific directories. Usually in a hosting environment, they only allow you to access your directories. This is a security issue. Try placing the file within a directory you know works. Then try it.

Also you can call them to make sure that you can create more folders within that dir and that the config of the server os allows it.
Thank you danchuee. I have mailed my host your reply, but they still say it's the paths, because when a file is included in PHP it should state the whole path. As a service, they altered the paths for me in webwelcome.php and in the testpage (http://www.airwork.nl/test.php). So these should be allright this way.
On the upside the result is that I don't get errormessages anymore, on the downside it doesn't show anything at all...
Does that mean that the PHP problem is solved but that I did something wrong in other pages, perhaps the templates or somewhere else?
Reply With Quote
  #205  
Old 10-23-2003, 08:03 PM
Airwork Airwork is offline
 
Join Date: Oct 2003
Location: Netherlands
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Anyone please help? I really would like this feature on my website, I tried to find something like this for a long time. It's pretty frustrating that I can't get it to work.

Diana
Reply With Quote
  #206  
Old 11-15-2003, 09:53 PM
Airwork Airwork is offline
 
Join Date: Oct 2003
Location: Netherlands
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Guess not...
Reply With Quote
  #207  
Old 11-15-2003, 10:04 PM
Darren Lewis Darren Lewis is offline
 
Join Date: Mar 2002
Location: England
Posts: 144
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Airwork, the page http://www.airwork.nl/test.php is showing the login box. What's the problem you're having?
Reply With Quote
  #208  
Old 11-15-2003, 10:09 PM
Airwork Airwork is offline
 
Join Date: Oct 2003
Location: Netherlands
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sorry Darren, just minutes after my previous message I worked through the templates again and now it works. I am very, very happy and a quite embaressed that the solution was so simple in the end...

Thanks for this great hack!
Reply With Quote
  #209  
Old 11-15-2003, 10:12 PM
Darren Lewis Darren Lewis is offline
 
Join Date: Mar 2002
Location: England
Posts: 144
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great. Glad it's working OK for you
Reply With Quote
  #210  
Old 11-23-2003, 04:07 PM
Pikok Pikok is offline
 
Join Date: Jul 2002
Posts: 53
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi, i'm getting this error on the bottom of my main page after fully installing and configuring this hack:
Warning: mysql_query(): 17 is not a valid MySQL-Link resource in /home/hosting/host1009/forum/admin/db_mysql.php on line 93



There seems to have been a slight problem with the FFIntelligence headquarters database.
Please try again by pressing the refresh button in your browser.

An E-Mail has been dispatched to our Technical Staff, who you can also contact if the problem persists.

We apologise for any inconvenience.

i don't understand why i'm getting this error,...
could it be becos i use vbb 2.3.2?
the login box works perfect...i just need to get that error out of the way on my main page
any thoughts?
Reply With Quote
  #211  
Old 11-23-2003, 04:12 PM
Darren Lewis Darren Lewis is offline
 
Join Date: Mar 2002
Location: England
Posts: 144
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What other scripts are you running on your page? Are they all using the same database? Have you got a link to the page causing the problem?
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:28 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.05169 seconds
  • Memory Usage 2,317KB
  • 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
  • (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