Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Add-ons

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
      #52  
    Old 02-12-2006, 06:44 AM
    ffevo's Avatar
    ffevo ffevo is offline
     
    Join Date: Feb 2003
    Location: California
    Posts: 79
    Благодарил(а): 0 раз(а)
    Поблагодарили: 0 раз(а) в 0 сообщениях
    Default

    Alright. Im using PHP Includes. and When I add that Script ontop of my page. It changes the Directory. well.. when I add the Includes for the Global files it changes the directory for my Includes for the real directory obviously. :-/ Is thier anyway around this? can I use the script and Not have it screw up my Includes?

    THis is my PHP code I have. I even tried using Smettys Code or whatevers..


    PHP Code:
       <?php
     
    //Change chdir to fit where your forum is.
    $real_path realpath("index.php");
    $real_path dirname($real_path);
    chdir("$real_path/forums/");
    require(
    './global.php');
    require(
    './includes/functions_user.php');
    chdir("$real_path/");
    ?>
     <?php
    if(!isset($_GET['page'])) {
    $page 'news';
    } else {
    $page $_GET['page'];
    }
    ?>
    Reply With Quote
      #53  
    Old 02-28-2006, 08:09 PM
    Exitilus Exitilus is offline
     
    Join Date: Jul 2004
    Location: Spokane, WA
    Posts: 432
    Благодарил(а): 0 раз(а)
    Поблагодарили: 0 раз(а) в 0 сообщениях
    Default

    For some odd reason this just "quit" working. Not sure really what happened but i'm getting a completely blank page now?? .... O.o

    No changes were made what so ever *L* any ideas on this one?
    Reply With Quote
      #54  
    Old 04-11-2006, 04:34 PM
    Jordan17 Jordan17 is offline
     
    Join Date: Mar 2006
    Location: Teesside, UK
    Posts: 73
    Благодарил(а): 0 раз(а)
    Поблагодарили: 0 раз(а) в 0 сообщениях
    Default

    I was getting the "Unable to add cookies" message, but now all that happens is that If the user is not logged in, it doesn't load all of the page.

    I'm guessing theres some sort of kill or exit function somewhere in the code that is executed mid-way through the page.
    Reply With Quote
      #55  
    Old 05-03-2006, 12:22 PM
    Paprika Paprika is offline
     
    Join Date: Jul 2003
    Location: Ohio
    Posts: 50
    Благодарил(а): 0 раз(а)
    Поблагодарили: 0 раз(а) в 0 сообщениях
    Default

    Does this work for 3.5.4, and/or is there a similar mod avalible which does not require modification of the original files?
    Reply With Quote
      #56  
    Old 06-05-2006, 12:21 PM
    nemmeh nemmeh is offline
     
    Join Date: Jun 2006
    Posts: 2
    Благодарил(а): 0 раз(а)
    Поблагодарили: 0 раз(а) в 0 сообщениях
    Default

    I think $5 is quite reasonable to fix YOUR inability to read directions.
    As for all these "Unable to add cookies" errors people are recieving, try adding the chdir at the TOP of the lot.. not below your index.php includes (which no doubt will include <html> ref and thus ending the header portion of the PHP code.)

    This was clearly stated in the installation directions.

    Apart from that I installed this and it worked from the get-go. That is until I disabled the forums.. In which case the page was taken over by global.php's $warning. Which states the forums are disabled.

    removing the chdir will stop the login script from working.. at all.. If you want to change the dir back try:
    PHP Code:
    <?php
    $curdir 
    getcwd();
    chdir("/..../..../..../..../..../forum"); 
    require(
    './global.php'); 
    include(
    './includes/functions_user.php'); 
    chdir("$curdir");
    ?>
    Reply With Quote
      #57  
    Old 06-06-2006, 03:00 PM
    nemmeh nemmeh is offline
     
    Join Date: Jun 2006
    Posts: 2
    Благодарил(а): 0 раз(а)
    Поблагодарили: 0 раз(а) в 0 сообщениях
    Default

    After having a bit of a toy around with it i solved the inactive board problem.
    I havnt even bothered looking into the disabled user yet but i thought i would post what ive got in case anybody was interested or having a similar problem.

    I created a file called forumcheck.php which i simply include at the top of my formatpage (header.php) like so.

    PHP Code:
    <?php include("forumcheck.php"); ?>
    The contents of forumcheck.php (some details removed).
    PHP Code:
    <?
        $curdir = getcwd();
        chdir("/..../..../..../..../..../forum");  
        include("$curdir/blah.php"); //just my dbase login details etc.
        mysql_connect(localhost,yourdbase_username,yourdbase_password);
        @mysql_select_db(your_dbase) or die("Unable to select database");
        $query="select * from `vb3_setting` where `varname` like 'bbactive'";
        $result=mysql_query($query);
        $num=mysql_numrows($result);
        mysql_close();
        if(mysql_result($result,0,"value") == 1) {
            require('./global.php'); 
            include('./includes/functions_user.php'); 
            $config["forum"]["active"] = 1;
        }
        else { $config["forum"]["active"] = 0; }
        chdir("$curdir");
    ?>
    and lastly the display.
    PHP Code:
    <? 
        if($config["forum"]["active"] == 1) { include("login_inc.php"); }
        elseif($config["forum"]["active"] == 0) { print("<font color=#666666><b>Forums are currently disabled.</b></font>"); }
    ?>
    Hope that something here has helped somebody... =)
    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 06:13 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.04264 seconds
    • Memory Usage 2,268KB
    • Queries Executed 22 (?)
    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
    • (5)bbcode_php
    • (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
    • (2)pagenav_pagelink
    • (7)post_thanks_box
    • (7)post_thanks_button
    • (1)post_thanks_javascript
    • (1)post_thanks_navbar_search
    • (7)post_thanks_postbit_info
    • (6)postbit
    • (7)postbit_onlinestatus
    • (7)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