The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Comments |
#62
|
|||
|
|||
Hi folks,
After a while of debugging my problems and so on, i managed to get all this worked out. Let start with the problems I had. After I logged in, I would still get the login form instead of the welcome back message. I fixed that by first making sure that vb3 was setting the cookies for my whole server, by using .bayareamuscle.com as the domain. I also had to put the initiation code, that calls/requires globals.php, at the very top of the php page: At the top of my non vb3 page: PHP Code:
So that fixed my problem witht he login box always showing up. Now on to the avatar on this page. This was actually very simple, all i had to do was add 3 lines to the current code. Lets start with the including of the required files: PHP Code:
PHP Code:
Sorry for the ugly code, but I just came up with it no more than 3 mins ago and since this page was still open, i figured i'd contribute with what i found. now ya can take care of the clean up. p.s. you can see this work at BayAreaMuscle.com, you are going to have to login as user: DemoUser and password: demo, i created an avatar for this demo user. Pz! |
#63
|
|||
|
|||
Whenever I try this, all variables that existed before global.php was called dissapaear. Is there any way around this or is vB's security just too powerful?
|
#64
|
|||
|
|||
Still no stable code for this?
|
#65
|
|||
|
|||
I just want a stable way of getting the vbulletin user id from whichever directory I call for it, but to no avail.
Vbullletin broke my site so I had to neuter it by adding globals variables that were important to me by including them in the "/includes/init.php" ignore array subroutine. It is fun to sometimes subtract globals that are important to vbulletin just to see how it reacts. ravenswood |
#66
|
|||
|
|||
Quote:
<script type='text/javascript' src='/forum/clientscript/vbulletin_md5.js'></script> I am running my script as below which I copied directly from the VB3 source code and it works great: (of course you have to include the chdir at the top of your non VB3 page first) <form method="post" class="login" action="/forum/login.php" onsubmit="md5hash(vb_login_password,vb_login_md5pa ssword)"> <p>Username:<input type="text" name="vb_login_username" id="navbar_username" size="10" accesskey="u" tabindex="1" onfocus="if (this.value == 'User Name') this.value = '';" /></p> <p>Password:<input type="password" name="vb_login_password" size="10" accesskey="p" tabindex="2" /></p> <input type="hidden" name="cookieuser" value="1" tabindex="3" id="cb_cookieuser_navbar" accesskey="c" checked="checked" /> <input type="hidden" name="s" value="" /> <input type="hidden" name="do" value="login" /><input type="hidden" name="forceredirect" value="1" /> <input type="hidden" name="vb_login_md5password" /> <input type="submit" value="Login" class="submit" /> |
#67
|
|||
|
|||
i asked that question because i have multiple 'OnSumbit = ???' commands. But i got mine to work, sort off. I still have a problem with cookies.
Sometimes it lets me in without entering username and password and sometimes i have to enter them. |
#68
|
|||
|
|||
Quote:
require("c:/www/username/public_html/forum/globals.php"); that will work from anywhere you do it. Just learn how you use: http://us2.php.net/manual/en/function.require.php to get the stable one, all you have to do is cusomize it for your use. and it's just a matter of changing the path for the files and you are set. You are not always going to get the perfect match with these mods. Learn to use the PHP manual and your life will be a bit easier: http://us2.php.net/manual/en/ That's the problem with php, it acts differently on different machines depending on config, os, and so on, but hey it's free! LOL Pz! |
#69
|
|||
|
|||
Quote:
yeah i am curious if this works for php nuke? |
#70
|
|||
|
|||
I can't seem to get this working right...
I have a www.mysite.com/downloads/index.php page that I want to implment this on My forums are in www.mysite.com/forums The top of my index page is: <?php chdir("../forums/"); require('./global.php'); chdir("../"); ?> and I was sure to change "forum" to "forums" throughout the rest fo the script. I get errors like: Warning: fopen(./file_info/descriptions/logo_sm.gif.0): failed to open stream: No such file or directory in /home/virtual/site1/fst/var/www/html/download/index.php on line 716 (also 718 and 718) I have a feeling that the first few lines of the page are what's screwing it up. The /download/index page reads the downloads directory and lists files in there. It also calls to a subdirectory at downloads/file_info for headers, etc. (it's using PHP Easy Download V0.995 By Paul Alger) Anybody able to help??? Thanks!! |
#71
|
|||
|
|||
chdir("../); should be chdir("../");
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|