vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Deluxe vB User login and access control on non vB pages (https://vborg.vbsupport.ru/showthread.php?t=108026)

Billspaintball 03-21-2007 10:48 PM

Quote:

Originally Posted by Chicago_VLNU_4s (Post 1208688)
no help huh?

Its the configuration of your new server.
You will need to speak to your host and get them to fix it, or delete the display avatar section of the code.

Billspaintball 03-21-2007 10:52 PM

Quote:

Originally Posted by erinys (Post 1208644)
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!

I will have a look with phpMyAdmin at the users table when I get home.
I may be able to replicate it by changing that date and go from there.

erinys 04-01-2007 11:01 AM

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?

RoutineX 04-01-2007 07:18 PM

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 =)

Billspaintball 04-02-2007 11:49 PM

Quote:

Originally Posted by RoutineX (Post 1217750)
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.

You can delete that if you like and it should still work, however vB use that in their code for a reason so I did the same.
Quote:

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?
Yes there is a bunch of unnecessary stuff in global but I prefer to use it for several reasons.
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:

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 =)
Sorry, not sure.

xKillswitchx 04-05-2007 07:01 PM

Hey Bill, is there any other way to output usernames instead of $vbulletin->userinfo['userid']?

Billspaintball 04-10-2007 05:17 AM

Quote:

Originally Posted by xKillswitchx (Post 1220570)
Hey Bill, is there any other way to output usernames instead of $vbulletin->userinfo['userid']?

If you want their username just use
$vbulletin->userinfo['username']

KnicksCity 04-15-2007 09:30 PM

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.

Billspaintball 04-16-2007 02:10 PM

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

KnicksCity 04-16-2007 10:31 PM

Nevermind, no more error. Must have been something else.

By the way, I'm loving this mod. Good work and thanks! :)


All times are GMT. The time now is 11:46 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01474 seconds
  • Memory Usage 1,746KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete