The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
VB Login & Info on Non-VB Page Details »» | |||||||||||||||||||||||||
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
|
Comments |
#52
|
||||
|
||||
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:
|
#53
|
|||
|
|||
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? |
#54
|
|||
|
|||
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. |
#55
|
|||
|
|||
Does this work for 3.5.4, and/or is there a similar mod avalible which does not require modification of the original files?
|
#56
|
|||
|
|||
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:
|
#57
|
|||
|
|||
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 Code:
PHP Code:
|
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|