![]() |
I'm pretty sure thats basic VB since i dont have a lot of hacks and non of them is password related :)
I'll see if i can find the setting for you. Btw im getting reports of more members now getting my page down due to the hack / expired passwords, so its pretty serious. thanks for looking into it. |
Hello!
I have some problems with charset. My site use windows-1250 and forum use ISO-8859-1. After i install Deluxe vB User login script letters on my site get messed. If i remove inlusion of global.php letters are OK (but then script doesn't work) Can someone help me? |
any news bill?
|
hmmm. this worked before I switched servers.. It works and everything but now I get this error above the avatar
Quote:
|
First - thanks for the awesome hack - this is great and exactly what I need. But I seem to be redirecting to the forum home page on login. I'm using the newest VB, and would really prefer to return to the originating page.
|
Quote:
What browser are you using? If its Firefox can you try another browser such as IE and see if it does the same? |
Hey bill,
I guess no luck yet figuring out why a site wich uses this mod, turn completely 404 on the pages where this addon is included when someone his password is expired. This can potentional be very damaging to your site, as everyone in the community most likely is going to have his password expire sooner or later, and when that happends, the website will appear to be completely down :( If you cant find the problem, i would suggest to everyone to uninstall this addon, because it has the potential of breaking your entire site. I really hope you can find a solution for this, or at least talk with the DEV as to why this is happening. thanks! |
Quote:
Without being able to replicate the problem I cant fix it. |
Ouch, yes that is a problem
ok i checked in the phpmyadmin, and for the table "users" there is a row wich is called "passworddate" This row has the date it happend for me, and last changed it, so my guess is that if you set that date to a couple years backwards, the forum should set you expired password. else might wanna check with the guys on vbulletin.com thanks! |
Quote:
|
Quote:
You will need to speak to your host and get them to fix it, or delete the display avatar section of the code. |
Quote:
I may be able to replicate it by changing that date and go from there. |
Hi bill,
Sorry, i have deactivated this addon for now :( when you buy something in vbplaza and it expires (like a sticky topic) this addon also makes the whole site go 404 :( Something is up with the way it handles something when it "expires", and when it does it breaks every single page on the site where this module is loaded :( im running 3.6.4 btw, can that be the problem? this works fine on 3.6.4 right? |
Hi.
Just a couple of questions: 1) I debugged while running the script, and I can't really see that $session[sessionhash] and $session[sessionurl] is used. 2) I'm not 100% sure how this works when it comes to performance, but when I debugged and looked at the available variables from the global.php there were a huge amount of vars and arrays that isnt needed at all. Wouldn't it be best to only create objects of the things we really need (i.eg create the db object and get the $vbulletin[userinfo] array). If you i.eg look at $vbulletin['forumcache'] alone, it has over 408 arrays (depending on number of forums you have created) with 25 values each. Other unnecessary things are $header, headinclude, footer, etc etc. Wouldn't this cause a higher load if this is processed everytime a page is viewed? 3) After doing this, my second DB object won't retrieve info in UTF-8 anymore, even though I have: mysql_query( "SET NAMES 'utf8'", $myDBobj ); Any tips on how to solve this? Thanks =) |
Quote:
Quote:
1 - Better compatibility with future releases of vB. If vB make some changes to how various things work, chances are scripts will still work if they access those functions via the global.php file. 2 - Allows anyone to easily add any new function thats included in the global file. 3 - There is too much stuff happening behind the scenes in vB, its easy to miss some minor thing that causes problems later (like your UTF-8 one) 4 - More secure. Your not potentially creating any security holes with your own code trying to do back end stuff. 5 - The code in global.php is well tested and optimised. As for extra server load by using global.php, just consider that vB uses it on every page anyhow so it shouldant make much of a difference on server load. Quote:
|
Hey Bill, is there any other way to output usernames instead of $vbulletin->userinfo['userid']?
|
Quote:
$vbulletin->userinfo['username'] |
Is there a way to display a default image if the user does not have an avatar? With no avatar, errors are displaying because it can't find the image.
|
What error do you get?
I just deleted my Avatar to try and replicate the error, but It worked fine in IE7 and Firefox 2.0.0.3 |
Nevermind, no more error. Must have been something else.
By the way, I'm loving this mod. Good work and thanks! :) |
hey
i get this error =================================== Warning: main(): open_basedir restriction in effect. File(/var/www/virtual/devilsmania.com/www/forum/global.php) is not within the allowed path(s): (/var/www/virtual/devilsmania.com/www/www/:/var/www/virtual/devilsmania.com/_data/:/var/www/virtual/devilsmania.com/errors/:/usr/share/php/:/tmp/) in /var/www/virtual/devilsmania.com/www/www/index.php on line 3 Warning: main(/var/www/virtual/devilsmania.com/www/forum/global.php): failed to open stream: Operation not permitted in /var/www/virtual/devilsmania.com/www/www/index.php on line 3 Fatal error: main(): Failed opening required '/var/www/virtual/devilsmania.com/www/forum/global.php' (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/virtual/devilsmania.com/www/www/index.php on line 3 =================================== i have vb 3.6.5 forums : forum.devilsmania.com login for non VB page : www.devilsmania.com what to do ? sorry/thanks... |
Do step two of the troubleshooting guide to ensure that your using the correct paths.
https://vborg.vbsupport.ru/showpost....49&postcount=2 If the path is fine then try the sample login in step five to rule out anything on your page causing a conflict. |
Quote:
I have finally had enougth time to play around with this and find the cause and solution. Cause - When redirected for expired password you are redirected to the directory that your login script is located in, not your forums root. Fix - Edit phrase called Code:
passwordexpired Code:
Your password is {1} days old, and has therefore expired.<br /> Code:
Your password is {1} days old, and has therefore expired.<br /> Ive only tested this for expired passwords, not for expired vbplaza, but I would think you would have to edit the expiring vbplaza phrases in the same manner. |
ok fixed thanks ;)
|
Updated
Download the update from the first post, and see the 2nd post for additional workarounds for the 404 on Expired passwords and cross domain login issues. |
I'm kinda lost(which isnt hard hehe) I'm trying to make it so when loged out menu a appears but when loged in menu b appears...
I have used the conditionals in the web page its self is that right? if so I take it you can insert code/image/links etc? Please could someone clear things up abit here/help me out abit:) Carl |
Quote:
Quote:
The 2nd post in this thread shows various usage examples on how to do this. See https://vborg.vbsupport.ru/showpost....49&postcount=2 A brief example that shows one lot of text if your logged in and different text if your not is PHP Code:
Hope this helps. :) |
Thanks for clearing that up, I must be doing somthing wrong(probably somthing stupid) as I keep getting errors.
Thanks again, Carl |
Ok I get this error 'Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /home/*****/public_html/homepage.php on line 928'
Code:
This is the code I put in the website: |
Quote:
Just put \ in front of the " that are part of the HTML and not your PHP. Like this PHP Code:
|
It's me again lol
Thanks for that I did that and worked fine til I tried it on a menu... When I tried it on menu I got these errors; Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /home/---/public_html/homepage.php on line 928 Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /home/---/public_html/homepage.php on line 928 This is the code which I tried: PHP Code:
Carl |
Hi Carl.
Looks like you have missed using \ in a few places. For example near the top you have PHP Code:
PHP Code:
PHP Code:
PHP Code:
If you dont escape every " that is in your HTML inside the echo statement with \ it will cause a premature end to the echo statement and wont work. |
Ok well I have looked and replaced all the " with \" but I still seem to get errors for example:
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /home/----/public_html/homepage.php on line 1039 Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /home/----/public_html/homepage.php on line 1039 PHP Code:
I take it this is right? PHP Code:
Carl |
Hi Carl,
I should have been a little clearer. You need to escape the " that are part of the HTML code, not the " that are part of the PHP code. Quote:
Should be Code:
<?php If ($vbulletin->userinfo["userid"]!=0) Quote:
Hope that all makes sense |
Wow, I love it! Thank you very much for making this.
|
ok......I have saved the following in a test.php file located in my website root (local machine)
Code:
<?php Code:
Notice: Undefined index: REQUEST_URI in c:\inetpub\wwwroot\tradinglab\forums\includes\class_core.php on line 1952 |
Quote:
I would hazard a guess that its something to do with a server setting, or possibly your cookie path setting in your vB control panel. Quote:
PHP Code:
|
you are definetly right. I installed Vb on a live server, uploaded your hack and it works like a charm. thank you very much!!!!
|
First of all, great hack.
I am having one issue though. Code:
Warning: getimagesize() [function.getimagesize]: php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution in /home/ulancom/public_html/modules/login_vB36.php on line 34 |
Hey,
I'm still having a problem I've fixed other but... Code: Code: Code:
<?php Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /home/-----/public_html/homepage.php on line 1016 And line 1016 is: Code: Code:
echo "Your not logged in so we display this"; If some one could help me out this would be great. Regards, Carl |
All times are GMT. The time now is 03:02 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|