Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
VB Login & Info on Non-VB Page Details »»
VB Login & Info on Non-VB Page
Version: 1.00, by adamgessel adamgessel is offline
Developer Last Online: Aug 2007 Show Printable Version Email this Page

Version: 3.5.0 RC3 Rating:
Released: 09-09-2005 Last Update: 09-09-2005 Installs: 57
 
No support by the author.

This is nothing too big, I just thought it might help some people out so I'm putting it up here.

=====================
DEMO
=====================
You can see exactly what I did at:
http://www.forumfreedom.net/

=====================
DESCRIPTION
=====================
If someone is logged in on your board, but they are on a non-vb page, this will display their username, amount of PMs (and if they have more than 0 it will be bold), and an option to logout (properly, using their logout hash so that it does it the first time), and has a couple more options. What I've done in mine is added two extra usergroups, Premium and Platinum, and if they are either of those then it tells them what usergroup they are in. In the install file, there are two different steps to take, one to install that part and one to not. So, if you have two usergroups that are premium and platinum accounts that people pay for, this will work good for you. You can of course add more premium usergroups easily. Otherwise, just install the other step and it will still work good . The code is simple, but I recommend knowing how vbulletin works before installing it. You will need to change some things in the code, but I think that it's worth it if you need something like this. This doesn't edit any code in vbulletin.

=====================
INSTALL
=====================

Install Time: Depends, if you already have a page with everything going then this should only take a few seconds, unless you have to troubleshoot it.

Difficulty: Medium, I say this because there are a few things you might have to change. It's easy to install if you know what you are doing.

PLEASE CLICK INSTALL!

Supporters / CoAuthors

    Show Your Support

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

    Comments
      #42  
    Old 12-22-2005, 03:11 AM
    Exitilus Exitilus is offline
     
    Join Date: Jul 2004
    Location: Spokane, WA
    Posts: 432
    Благодарил(а): 0 раз(а)
    Поблагодарили: 0 раз(а) в 0 сообщениях
    Default

    I'm using this and it works great. Though i'm wondering how would I set it to RE-Direct the person to my forums after logging in?

    Though if the person is still logged in I want them to see this page. Basically just want the re-direction after they log in.
    Reply With Quote
      #43  
    Old 12-22-2005, 09:54 AM
    Snetty Snetty is offline
     
    Join Date: Feb 2005
    Posts: 20
    Благодарил(а): 0 раз(а)
    Поблагодарили: 0 раз(а) в 0 сообщениях
    Default

    Just thought i'd post a change I made to the chdir part of this code. It means you don't have to worry about putting in the folder structure of your host, the code will figure it out for you.

    PHP Code:
    //Change chdir to fit where your forum is.
    $real_path realpath("index.php");
    $real_path dirname($real_path);
    chdir("$real_path/forum/");
    require(
    './global.php');
    require(
    './includes/functions_user.php');
    chdir("$real_path/"); 
    I've not been using php for terribly wrong so I don't know if there would be problems with this on some people's hosting. If so, let me know as I'd be interested to find out what they are.
    Reply With Quote
      #44  
    Old 12-22-2005, 03:13 PM
    sesmatik sesmatik is offline
     
    Join Date: Dec 2005
    Posts: 3
    Благодарил(а): 0 раз(а)
    Поблагодарили: 0 раз(а) в 0 сообщениях
    Default

    Warning: chdir(): No such file or directory (errno 2) in /home/bauforum/public_html/forum/aa.php on line 3


    Unable to add cookies, header already sent.
    File: /home/bauforum/public_html/forum/aa.php
    Line: 3


    i see this error message what can i do please help me

    already i am using vb 3.5.2
    Reply With Quote
      #45  
    Old 12-22-2005, 03:15 PM
    Snetty Snetty is offline
     
    Join Date: Feb 2005
    Posts: 20
    Благодарил(а): 0 раз(а)
    Поблагодарили: 0 раз(а) в 0 сообщениях
    Default

    sesmatik, are you using my chdir script there? if so, you need to adjust what your forum directory is called.
    Reply With Quote
      #46  
    Old 12-23-2005, 12:16 PM
    James B James B is offline
     
    Join Date: Feb 2005
    Location: UK
    Posts: 5
    Благодарил(а): 0 раз(а)
    Поблагодарили: 0 раз(а) в 0 сообщениях
    Default

    Adam - this is perfect! Thanks very much...

    All worked first time - just in a fairly plain page at the moment to try it out. This is going to be really handy.
    Reply With Quote
      #47  
    Old 12-24-2005, 02:38 AM
    Exitilus Exitilus is offline
     
    Join Date: Jul 2004
    Location: Spokane, WA
    Posts: 432
    Благодарил(а): 0 раз(а)
    Поблагодарили: 0 раз(а) в 0 сообщениях
    Default

    Quote:
    Originally Posted by Exitilus
    I'm using this and it works great. Though i'm wondering how would I set it to RE-Direct the person to my forums after logging in?

    Though if the person is still logged in I want them to see this page. Basically just want the re-direction after they log in.
    Anyone know how I could do this?
    Reply With Quote
      #48  
    Old 12-25-2005, 03:04 PM
    gizmo4321 gizmo4321 is offline
     
    Join Date: Nov 2004
    Posts: 34
    Благодарил(а): 0 раз(а)
    Поблагодарили: 0 раз(а) в 0 сообщениях
    Default

    I have the basics of it working in 3.5.2. :up:

    BTW, instead of all the if($vbulletin->userinfo['usergroupid']==xxx stuff, you could do a much simpler if(is_member_of($vbulletin->userinfo)) instead. You would have to include fuctions.php as well as the others, though.
    Reply With Quote
      #49  
    Old 12-26-2005, 12:39 AM
    Snoop-It's Avatar
    Snoop-It Snoop-It is offline
     
    Join Date: Jun 2005
    Posts: 129
    Благодарил(а): 0 раз(а)
    Поблагодарили: 0 раз(а) в 0 сообщениях
    Default

    thats all good but how do you get the GUESTS on that 1 page to show up on the Who's Online bit on the forum.. I.E, Guests viewing Unknown Location - http://blah.com/etc

    How does that go about?? same with the user once logged in..? because on my board, yes some 1 can log in on a non vb page BUT they will not be shown on who's online. i want that to be shown and any guests viewing that page aswell... what will i need to do??

    please help. thanks in advance!
    Reply With Quote
      #50  
    Old 12-26-2005, 04:08 AM
    kirupa kirupa is offline
     
    Join Date: Dec 2002
    Posts: 53
    Благодарил(а): 0 раз(а)
    Поблагодарили: 0 раз(а) в 0 сообщениях
    Default

    Hi,
    When I try out this code, it works perfectly in FF. When I test it out in the IE7 Beta, I am not seeing the log-in text fields. When I am already logged in though, both browsers displays the "Welcome...." message like they should.

    EDIT: Nevermind - the issue was with the <style type=text/css> line. Removing that fixed it!

    Thanks,
    Kirupa =)
    Reply With Quote
      #51  
    Old 12-30-2005, 02:54 PM
    adamgessel adamgessel is offline
     
    Join Date: Oct 2004
    Posts: 101
    Благодарил(а): 0 раз(а)
    Поблагодарили: 0 раз(а) в 0 сообщениях
    Default

    Sorry people I've had problems logging in to vBulletin.org the last month and a half or so... anyways, the demo site isn't up because they were charging me too much for it and I couldn't keep it up. Sorry about that.

    I have hosting somewhere else now and I'll look into putting up another vBulletin forum and having the demo there.
    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 06:29 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.04516 seconds
    • Memory Usage 2,308KB
    • Queries Executed 26 (?)
    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
    • (1)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
    • (3)pagenav_pagelink
    • (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